• Home
  • Raw
  • Download

Lines Matching refs:uuid

45 static tGATT_ATTR& allocate_attr_in_db(tGATT_SVC_DB& db, const Uuid& uuid,
66 Uuid uuid = in gatts_init_service_db() local
68 tGATT_ATTR& attr = allocate_attr_in_db(db, uuid, GATT_PERM_READ); in gatts_init_service_db()
70 attr.p_value->uuid = service_uuid; in gatts_init_service_db()
78 return &p_db->attr_list[0].p_value->uuid; in gatts_get_service_uuid()
126 if (read_long && attr.uuid.Is16Bit()) { in gatts_check_attr_readability()
127 switch (attr.uuid.As16Bit()) { in gatts_check_attr_readability()
171 VLOG(1) << __func__ << " uuid=" << attr16.uuid in read_attr_value()
179 if (!attr16.uuid.Is16Bit()) { in read_attr_value()
184 uint16_t uuid16 = attr16.uuid.As16Bit(); in read_attr_value()
187 *p_len = gatt_build_uuid_to_stream_len(attr16.p_value->uuid); in read_attr_value()
190 gatt_build_uuid_to_stream(&p, attr16.p_value->uuid); in read_attr_value()
197 uint8_t val_len = val_attr->uuid.GetShortestRepresentationSize(); in read_attr_value()
206 UINT16_TO_STREAM(p, val_attr->uuid.As16Bit()); in read_attr_value()
209 ARRAY_TO_STREAM(p, val_attr->uuid.To128BitLE(), (int)Uuid::kNumBytes128); in read_attr_value()
278 if (attr.handle >= s_handle && type == attr.uuid) { in gatts_db_read_attr_value_by_type()
328 Uuid uuid = Uuid::From16Bit(GATT_UUID_INCLUDE_SERVICE); in gatts_add_included_service() local
339 tGATT_ATTR& attr = allocate_attr_in_db(db, uuid, GATT_PERM_READ); in gatts_add_included_service()
368 Uuid uuid = Uuid::From16Bit(GATT_UUID_CHAR_DECLARE); in gatts_add_characteristic() local
373 tGATT_ATTR& char_decl = allocate_attr_in_db(db, uuid, GATT_PERM_READ); in gatts_add_characteristic()
620 if (p_attr->uuid.IsEmpty()) { in gatts_write_attr_perm_check()
622 } else if (p_attr->uuid.Is16Bit()) { in gatts_write_attr_perm_check()
623 switch (p_attr->uuid.As16Bit()) { in gatts_write_attr_perm_check()
650 if (p_attr->uuid.Is16Bit() && in gatts_write_attr_perm_check()
651 (p_attr->uuid.As16Bit() == GATT_UUID_CHAR_CLIENT_CONFIG || in gatts_write_attr_perm_check()
652 p_attr->uuid.As16Bit() == GATT_UUID_CHAR_SRVR_CONFIG)) { in gatts_write_attr_perm_check()
681 static tGATT_ATTR& allocate_attr_in_db(tGATT_SVC_DB& db, const Uuid& uuid, in allocate_attr_in_db() argument
692 attr.uuid = uuid; in allocate_attr_in_db()