Lines Matching refs:service
56 for (Service& service : services) { in FindService()
57 if (handle >= service.handle && handle <= service.end_handle) in FindService()
58 return &service; in FindService()
67 for (const Service& service : services) { in ToString() local
68 tmp << "Service: handle=" << loghex(service.handle) in ToString()
69 << ", end_handle=" << loghex(service.end_handle) in ToString()
70 << ", uuid=" << service.uuid << "\n"; in ToString()
72 for (const auto& is : service.included_services) { in ToString()
79 for (const Characteristic& c : service.characteristics) { in ToString()
99 for (const Service& service : services) { in Serialize() local
101 nv_attr.push_back({service.handle, in Serialize()
102 service.is_primary ? PRIMARY_SERVICE : SECONDARY_SERVICE, in Serialize()
103 {.service = {.uuid = service.uuid, in Serialize()
104 .end_handle = service.end_handle}}}); in Serialize()
107 for (const Service& service : services) { in Serialize() local
108 for (const IncludedService& p_isvc : service.included_services) { in Serialize()
116 for (const Characteristic& charac : service.characteristics) { in Serialize()
151 .uuid = attr.value.service.uuid, in Deserialize()
153 .end_handle = attr.value.service.end_handle, in Deserialize()
219 for (const Service& service : services) { in Hash() local
220 len += 4 + UuidSize(service.uuid); in Hash()
222 for (const auto& is : service.included_services) { in Hash()
226 for (const Characteristic& c : service.characteristics) { in Hash()
249 for (const Service& service : services) { in Hash() local
250 UINT16_TO_STREAM(p, service.handle); in Hash()
251 if (service.is_primary) { in Hash()
257 if (UuidSize(service.uuid) == Uuid::kNumBytes16) { in Hash()
258 UINT16_TO_STREAM(p, service.uuid.As16Bit()); in Hash()
260 ARRAY_TO_STREAM(p, service.uuid.To128BitLE(), (int)Uuid::kNumBytes128); in Hash()
263 for (const auto& is : service.included_services) { in Hash()
276 for (const Characteristic& c : service.characteristics) { in Hash()