/system/bt/btif/src/ |
H A D | btif_gatt_util.cc | 52 int uuidType(const unsigned char* p_uuid) { argument 60 if (p_uuid[i] == BASE_UUID[i]) ++match; 62 if (p_uuid[i] != 0) all_zero = 0; 176 uint16_t get_uuid16(tBT_UUID* p_uuid) { argument 177 if (p_uuid->len == LEN_UUID_16) { 178 return p_uuid->uu.uuid16; 179 } else if (p_uuid->len == LEN_UUID_128) { 181 uint8_t* p = &p_uuid->uu.uuid128[LEN_UUID_128 - 4]; 184 } else /* p_uuid->len == LEN_UUID_32 */ 186 return (uint16_t)p_uuid [all...] |
H A D | btif_util.cc | 116 bool string_to_uuid(const char* str, bt_uuid_t* p_uuid) { argument 117 CHECK(p_uuid); 134 memcpy(&(p_uuid->uu[0]), &uuid0, 4); 135 memcpy(&(p_uuid->uu[4]), &uuid1, 2); 136 memcpy(&(p_uuid->uu[6]), &uuid2, 2); 137 memcpy(&(p_uuid->uu[8]), &uuid3, 2); 138 memcpy(&(p_uuid->uu[10]), &uuid4, 4); 139 memcpy(&(p_uuid->uu[14]), &uuid5, 2); 144 void uuid_to_string_legacy(bt_uuid_t* p_uuid, char* str, size_t str_len) { argument 148 memcpy(&uuid0, &(p_uuid [all...] |
H A D | btif_storage.cc | 231 bt_uuid_t* p_uuid = (bt_uuid_t*)prop->val + i; local 233 uuid_to_string_legacy(p_uuid, buf, sizeof(buf)); 337 bt_uuid_t* p_uuid = (bt_uuid_t*)prop->val; local 339 btif_split_uuids_string(value, p_uuid, BT_MAX_NUM_UUIDS); 516 size_t btif_split_uuids_string(const char* str, bt_uuid_t* p_uuid, argument 519 CHECK(p_uuid); 523 bool rc = string_to_uuid(str, p_uuid++); 583 bt_uuid_t* p_uuid = (bt_uuid_t*)property->val; local 595 uuid16_to_uuid128(UUID_SERVCLASS_AG_HANDSFREE, p_uuid + num_uuids); 602 p_uuid [all...] |
/system/bt/service/test/ |
H A D | low_energy_scanner_unittest.cc | 76 const bt_uuid_t* p_uuid, 74 ScanFilterAddRemove(int action, int filt_type, int filt_index, int company_id, int company_id_mask, const bt_uuid_t* p_uuid, const bt_uuid_t* p_uuid_mask, const bt_bdaddr_t* bd_addr, char addr_type, std::vector<uint8_t> data, std::vector<uint8_t> p_mask, FilterConfigCallback cb) argument
|
/system/bt/stack/gap/ |
H A D | gap_ble.cc | 186 bool gap_ble_dequeue_request(tGAP_CLCB* p_clcb, uint16_t* p_uuid, argument 194 *p_uuid = p_q->uuid;
|
/system/bt/stack/gatt/ |
H A D | gatt_sr.cc | 451 tBT_UUID* p_uuid; local 458 p_uuid = gatts_get_service_uuid(el.p_db); 459 if (p_uuid != NULL) { 460 if (op_code == GATT_REQ_READ_BY_GRP_TYPE) handle_len = 4 + p_uuid->len; 477 gatt_uuid_compare(value, *p_uuid)) { 490 gatt_build_uuid_to_stream(&p, *p_uuid);
|
H A D | gatt_api.cc | 126 static int uuidType(unsigned char* p_uuid) { argument 127 if (memcmp(p_uuid, BASE_UUID, 12) != 0) return LEN_UUID_128; 128 if (memcmp(p_uuid + 14, BASE_UUID + 14, 2) != 0) return LEN_UUID_32; 364 tBT_UUID* p_uuid = gatts_get_service_uuid(elem.p_db); local 365 elem.sdp_handle = gatt_add_sdp_record(p_uuid, elem.s_hdl, elem.e_hdl);
|
H A D | gatt_utils.cc | 643 uint8_t* p_uuid = *p_data; local 650 STREAM_TO_UINT16(p_uuid_rec->uu.uuid16, p_uuid); 658 if (p_uuid[xx] != base_uuid[xx]) { 664 if ((p_uuid[LEN_UUID_128 - 1] == 0) && 665 (p_uuid[LEN_UUID_128 - 2] == 0)) { 666 p_uuid += (LEN_UUID_128 - 4); 668 STREAM_TO_UINT16(p_uuid_rec->uu.uuid16, p_uuid); 670 p_uuid += (LEN_UUID_128 - LEN_UUID_32); 672 STREAM_TO_UINT32(p_uuid_rec->uu.uuid32, p_uuid); 677 memcpy(p_uuid_rec->uu.uuid128, p_uuid, LEN_UUID_12 931 gatt_add_sdp_record(tBT_UUID* p_uuid, uint16_t start_hdl, uint16_t end_hdl) argument [all...] |
/system/bt/stack/sdp/ |
H A D | sdp_api.cc | 289 * p_uuid - output parameter to save the UUID found. 294 bool SDP_FindServiceUUIDInRec(tSDP_DISC_REC* p_rec, tBT_UUID* p_uuid) { argument 306 p_uuid->len = LEN_UUID_16; 307 p_uuid->uu.uuid16 = p_sattr->attr_value.v.u16; 310 p_uuid->len = LEN_UUID_128; 312 p_uuid->uu.uuid128[i] = 315 p_uuid->len = LEN_UUID_32; 316 p_uuid->uu.uuid32 = p_sattr->attr_value.v.u32; 337 p_uuid->len = 2; 338 p_uuid 373 SDP_FindServiceUUIDInRec_128bit(tSDP_DISC_REC* p_rec, tBT_UUID* p_uuid) argument 583 SDP_FindServiceUUIDInDb(tSDP_DISCOVERY_DB* p_db, tBT_UUID* p_uuid, tSDP_DISC_REC* p_start_rec) argument [all...] |
H A D | sdp_db.cc | 109 static bool find_uuid_in_seq(uint8_t* p, uint32_t seq_len, uint8_t* p_uuid, argument 123 if (sdpu_compare_uuid_arrays(p, len, p_uuid, uuid_len)) return (true); 125 if (find_uuid_in_seq(p, len, p_uuid, uuid_len, nest_level + 1))
|
H A D | sdp_utils.cc | 569 bool sdpu_is_base_uuid(uint8_t* p_uuid) { argument 573 if (p_uuid[xx] != sdp_base_uuid[xx]) return (false);
|
/system/bt/bta/gatt/ |
H A D | bta_gattc_cache.cc | 204 tBT_UUID* p_uuid, 217 memcpy(&p_new_srvc->uuid, p_uuid, sizeof(tBT_UUID)); 233 tBT_UUID* p_uuid, 238 p_uuid->uu.uuid16, property); 261 memcpy(&characteristic->uuid, p_uuid, sizeof(tBT_UUID)); 279 tBTA_GATTC_SERV* p_srvc_cb, uint16_t handle, tBT_UUID* p_uuid, 285 p_uuid->uu.uuid16, property, type); 301 memcpy(&isvc->uuid, p_uuid, sizeof(tBT_UUID)); 319 memcpy(&descriptor->uuid, p_uuid, sizeof(tBT_UUID)); 931 void bta_gattc_search_service(tBTA_GATTC_CLCB* p_clcb, tBT_UUID* p_uuid) { argument 201 bta_gattc_add_srvc_to_cache(tBTA_GATTC_SERV* p_srvc_cb, uint16_t s_handle, uint16_t e_handle, tBT_UUID* p_uuid, bool is_primary) argument 230 bta_gattc_add_char_to_cache(tBTA_GATTC_SERV* p_srvc_cb, uint16_t attr_handle, uint16_t value_handle, tBT_UUID* p_uuid, uint8_t property) argument 278 bta_gattc_add_attr_to_cache( tBTA_GATTC_SERV* p_srvc_cb, uint16_t handle, tBT_UUID* p_uuid, uint8_t property, uint16_t incl_srvc_s_handle, tBTA_GATTC_ATTR_TYPE type) argument [all...] |
/system/bt/stack/btm/ |
H A D | btm_inq.cc | 126 static uint16_t btm_convert_uuid_to_uuid16(const uint8_t* p_uuid, 2579 * Parameters p_uuid - address of UUID 2586 static uint16_t btm_convert_uuid_to_uuid16(const uint8_t* p_uuid, argument 2598 STREAM_TO_UINT16(uuid16, p_uuid); 2601 STREAM_TO_UINT32(uuid32, p_uuid); 2608 if (p_uuid[xx] != base_uuid[xx]) { 2614 if ((p_uuid[LEN_UUID_128 - 1] == 0) && 2615 (p_uuid[LEN_UUID_128 - 2] == 0)) { 2616 p_uuid += (LEN_UUID_128 - 4); 2617 STREAM_TO_UINT16(uuid16, p_uuid); [all...] |
/system/bt/bta/jv/ |
H A D | bta_jv_act.cc | 82 extern void uuid_to_string_legacy(bt_uuid_t* p_uuid, char* str, size_t str_len); 83 static inline void logu(const char* title, const uint8_t* p_uuid) { argument 85 uuid_to_string_legacy((bt_uuid_t*)p_uuid, uuids, sizeof(uuids));
|
/system/bt/bta/dm/ |
H A D | bta_dm_act.cc | 1141 p_data->search.p_uuid != NULL) { 1143 memcpy(bta_dm_search_cb.p_srvc_uuid, p_data->search.p_uuid, len); 1223 p_data->discover.p_uuid != NULL) { 1225 memcpy(bta_dm_search_cb.p_srvc_uuid, p_data->discover.p_uuid, len); 1496 tBT_UUID* p_uuid = bta_dm_search_cb.p_srvc_uuid; local 1527 if (bta_dm_search_cb.uuid_to_search != 0 && p_uuid != NULL) { 1528 p_uuid += 1531 service = p_uuid->uu.uuid16; 4485 tBT_UUID* p_uuid = bta_dm_search_cb.p_srvc_uuid + bta_dm_search_cb.num_uuid - local 4488 p_uuid [all...] |
H A D | bta_dm_int.h | 154 tBT_UUID* p_uuid; member in struct:__anon78 166 tBT_UUID* p_uuid; member in struct:__anon79
|
/system/bt/bta/include/ |
H A D | bta_api.h | 146 tBT_UUID* p_uuid; member in struct:__anon259 1555 * num_uuid, and p_uuid is the pointer to the list of 1576 * services.p_uuid. 1596 * p_services->p_uuid.
|