Lines Matching refs:uuid
43 static tGATT_ATTR& allocate_attr_in_db(tGATT_SVC_DB& db, const Uuid& uuid,
64 Uuid uuid = in gatts_init_service_db() local
66 tGATT_ATTR& attr = allocate_attr_in_db(db, uuid, GATT_PERM_READ); in gatts_init_service_db()
68 attr.p_value->uuid = service_uuid; in gatts_init_service_db()
76 return &p_db->attr_list[0].p_value->uuid; in gatts_get_service_uuid()
124 if (read_long && attr.uuid.Is16Bit()) { in gatts_check_attr_readability()
125 switch (attr.uuid.As16Bit()) { in gatts_check_attr_readability()
169 VLOG(1) << __func__ << " uuid=" << attr16.uuid in read_attr_value()
177 if (!attr16.uuid.Is16Bit()) { in read_attr_value()
182 uint16_t uuid16 = attr16.uuid.As16Bit(); in read_attr_value()
185 *p_len = gatt_build_uuid_to_stream_len(attr16.p_value->uuid); in read_attr_value()
188 gatt_build_uuid_to_stream(&p, attr16.p_value->uuid); in read_attr_value()
195 uint8_t val_len = val_attr->uuid.GetShortestRepresentationSize(); in read_attr_value()
204 UINT16_TO_STREAM(p, val_attr->uuid.As16Bit()); in read_attr_value()
207 ARRAY_TO_STREAM(p, val_attr->uuid.To128BitLE(), (int)Uuid::kNumBytes128); in read_attr_value()
265 if (attr.handle >= s_handle && type == attr.uuid) { in gatts_db_read_attr_value_by_type()
330 Uuid uuid = Uuid::From16Bit(GATT_UUID_INCLUDE_SERVICE); in gatts_add_included_service() local
341 tGATT_ATTR& attr = allocate_attr_in_db(db, uuid, GATT_PERM_READ); in gatts_add_included_service()
369 Uuid uuid = Uuid::From16Bit(GATT_UUID_CHAR_DECLARE); in gatts_add_characteristic() local
374 tGATT_ATTR& char_decl = allocate_attr_in_db(db, uuid, GATT_PERM_READ); in gatts_add_characteristic()
592 if (p_attr->uuid.IsEmpty()) { in gatts_write_attr_perm_check()
594 } else if (p_attr->uuid.Is16Bit()) { in gatts_write_attr_perm_check()
595 switch (p_attr->uuid.As16Bit()) { in gatts_write_attr_perm_check()
622 if (p_attr->uuid.Is16Bit() && in gatts_write_attr_perm_check()
623 (p_attr->uuid.As16Bit() == GATT_UUID_CHAR_CLIENT_CONFIG || in gatts_write_attr_perm_check()
624 p_attr->uuid.As16Bit() == GATT_UUID_CHAR_SRVR_CONFIG)) { in gatts_write_attr_perm_check()
653 static tGATT_ATTR& allocate_attr_in_db(tGATT_SVC_DB& db, const Uuid& uuid, in allocate_attr_in_db() argument
664 attr.uuid = uuid; in allocate_attr_in_db()