/external/bluetooth/bluedroid/btif/include/ |
H A D | btif_util.h | 75 void uuid_to_string(bt_uuid_t *p_uuid, char *str); 76 void string_to_uuid(char *str, bt_uuid_t *p_uuid);
|
H A D | btif_gatt_util.h | 36 uint16_t get_uuid16(tBT_UUID *p_uuid);
|
/external/bluetooth/bluedroid/btif/src/ |
H A D | btif_util.c | 137 void string_to_uuid(char *str, bt_uuid_t *p_uuid) argument 152 memcpy(&(p_uuid->uu[0]), &uuid0, 4); 153 memcpy(&(p_uuid->uu[4]), &uuid1, 2); 154 memcpy(&(p_uuid->uu[6]), &uuid2, 2); 155 memcpy(&(p_uuid->uu[8]), &uuid3, 2); 156 memcpy(&(p_uuid->uu[10]), &uuid4, 4); 157 memcpy(&(p_uuid->uu[14]), &uuid5, 2); 163 void uuid_to_string(bt_uuid_t *p_uuid, char *str) argument 168 memcpy(&uuid0, &(p_uuid->uu[0]), 4); 169 memcpy(&uuid1, &(p_uuid [all...] |
H A D | btif_gatt_util.c | 51 int uuidType(unsigned char* p_uuid) argument 62 if (p_uuid[i] == BASE_UUID[i]) 65 if (p_uuid[i] != 0) 219 uint16_t get_uuid16(tBT_UUID *p_uuid) argument 221 if (p_uuid->len == LEN_UUID_16) 223 return p_uuid->uu.uuid16; 225 else if (p_uuid->len == LEN_UUID_128) 228 UINT8 *p = &p_uuid->uu.uuid128[LEN_UUID_128 - 4]; 232 else /* p_uuid->len == LEN_UUID_32 */ 234 return(UINT16) p_uuid [all...] |
H A D | btif_gatt_multi_adv_util.c | 409 p_multi_adv_data_cb->inst_cb[cbindex].data.p_services->p_uuid = 411 p_uuid_out16 = p_multi_adv_data_cb->inst_cb[cbindex].data.p_services->p_uuid; 414 if (NULL != p_multi_adv_data_cb->inst_cb[cbindex].data.p_services->p_uuid) 432 p_multi_adv_data_cb->inst_cb[cbindex].data.p_service_32b->p_uuid = 434 p_uuid_out32 = p_multi_adv_data_cb->inst_cb[cbindex].data.p_service_32b->p_uuid; 437 if (NULL != p_multi_adv_data_cb->inst_cb[cbindex].data.p_service_32b->p_uuid) 574 if (p_multi_inst_cb->data.p_services->p_uuid != NULL) 575 GKI_freebuf(p_multi_inst_cb->data.p_services->p_uuid); 592 if (p_multi_inst_cb->data.p_service_32b->p_uuid != NULL) 593 GKI_freebuf(p_multi_inst_cb->data.p_service_32b->p_uuid); [all...] |
H A D | btif_storage.c | 197 static void btif_in_split_uuids_string_to_list(char *str, bt_uuid_t *p_uuid, argument 211 string_to_uuid(buf, p_uuid + num); 281 bt_uuid_t *p_uuid = (bt_uuid_t*)prop->val + i; local 283 uuid_to_string(p_uuid, buf); 391 bt_uuid_t *p_uuid = (bt_uuid_t*)prop->val; local 393 btif_in_split_uuids_string_to_list(value, p_uuid, &num_uuids); 620 bt_uuid_t *p_uuid = (bt_uuid_t*)property->val; local 637 p_uuid+num_uuids); 644 p_uuid+num_uuids); 650 p_uuid [all...] |
H A D | btif_sock_rfc.c | 61 extern void uuid_to_string(bt_uuid_t *p_uuid, char *str); 62 static inline void logu(const char* title, const uint8_t * p_uuid) argument 65 uuid_to_string((bt_uuid_t*)p_uuid, uuids);
|
/external/bluetooth/bluedroid/stack/sdp/ |
H A D | sdp_api.c | 336 ** p_uuid - output parameter to save the UUID found. 341 BOOLEAN SDP_FindServiceUUIDInRec(tSDP_DISC_REC *p_rec, tBT_UUID * p_uuid) argument 359 p_uuid->len = LEN_UUID_16; 360 p_uuid->uu.uuid16 = p_sattr->attr_value.v.u16; 364 p_uuid->len = LEN_UUID_128; 365 memcpy(p_uuid->uu.uuid128, p_sattr->attr_value.v.array, LEN_UUID_128); 369 p_uuid->len = LEN_UUID_32; 370 p_uuid->uu.uuid32 = p_sattr->attr_value.v.u32; 392 p_uuid->len = 2; 393 p_uuid 432 SDP_FindServiceUUIDInRec_128bit(tSDP_DISC_REC *p_rec, tBT_UUID * p_uuid) argument 662 SDP_FindServiceUUIDInDb(tSDP_DISCOVERY_DB *p_db, tBT_UUID *p_uuid, tSDP_DISC_REC *p_start_rec) argument [all...] |
H A D | sdp_db.c | 119 static BOOLEAN find_uuid_in_seq (UINT8 *p , UINT32 seq_len, UINT8 *p_uuid, argument 137 if (sdpu_compare_uuid_arrays (p, len, p_uuid, uuid_len)) 142 if (find_uuid_in_seq (p, len, p_uuid, uuid_len, nest_level + 1))
|
H A D | sdpint.h | 289 extern BOOLEAN sdpu_is_base_uuid (UINT8 *p_uuid);
|
H A D | sdp_utils.c | 638 BOOLEAN sdpu_is_base_uuid (UINT8 *p_uuid) argument 643 if (p_uuid[xx] != sdp_base_uuid[xx])
|
/external/bluetooth/bluedroid/bta/gatt/ |
H A D | bta_gattc_cache.c | 89 j + 1, p_attr->attr_handle, p_attr->p_uuid->uuid16, p_attr->inst_id, 237 static UINT8 bta_gattc_get_char_inst_id(tBTA_GATTC_CACHE *p_service_cache, tBT_UUID *p_uuid) argument 249 if (bta_gattc_uuid_compare(&attr_uuid, p_uuid, TRUE)) 266 static UINT8 bta_gattc_get_char_descr_inst_id(tBTA_GATTC_CACHE_ATTR *p_char_attr, tBT_UUID *p_uuid) argument 278 if (bta_gattc_uuid_compare(&attr_uuid, p_uuid, TRUE)) 297 tBT_UUID *p_uuid, 319 memcpy(&p_new_srvc->service_uuid.id.uuid, p_uuid, sizeof(tBT_UUID)); 350 tBT_UUID *p_uuid, 356 UINT16 len = sizeof(tBTA_GATTC_CACHE_ATTR) + p_uuid->len; 361 APPL_TRACE_DEBUG("handle=%d uuid16=0x%x property=0x%x type=%d", handle, p_uuid 295 bta_gattc_add_srvc_to_cache(tBTA_GATTC_SERV *p_srvc_cb, UINT16 s_handle, UINT16 e_handle, tBT_UUID *p_uuid, BOOLEAN is_primary, UINT8 srvc_inst) argument 348 bta_gattc_add_attr_to_cache(tBTA_GATTC_SERV *p_srvc_cb, UINT16 handle, tBT_UUID *p_uuid, UINT8 property, tBTA_GATTC_ATTR_TYPE type) argument 1247 bta_gattc_search_service(tBTA_GATTC_CLCB *p_clcb, tBT_UUID *p_uuid) argument [all...] |
H A D | bta_gattc_utils.c | 458 void bta_gattc_pack_attr_uuid(tBTA_GATTC_CACHE_ATTR *p_attr, tBT_UUID *p_uuid) argument 460 UINT8 *pp = (UINT8 *)p_attr->p_uuid; 462 memset(p_uuid, 0, sizeof(tBT_UUID)); 464 p_uuid->len = p_attr->uuid_len; 468 STREAM_TO_UINT16(p_uuid->uu.uuid16, pp); 472 memcpy(p_uuid->uu.uuid128, pp, LEN_UUID_128);
|
H A D | bta_gattc_int.h | 255 tBTA_GATTC_UUID *p_uuid; member in struct:gattc_attr_cache 523 extern void bta_gattc_pack_attr_uuid(tBTA_GATTC_CACHE_ATTR *p_attr, tBT_UUID *p_uuid); 540 extern void bta_gattc_search_service(tBTA_GATTC_CLCB *p_clcb, tBT_UUID *p_uuid);
|
/external/bluetooth/bluedroid/stack/gatt/ |
H A D | gatt_db.c | 42 static void *allocate_attr_in_db(tGATT_SVC_DB *p_db, tBT_UUID *p_uuid, tGATT_PERM perm); 917 ** p_uuid: pointer to attribute UUID 923 static void *allocate_attr_in_db(tGATT_SVC_DB *p_db, tBT_UUID *p_uuid, tGATT_PERM perm) argument 930 if (p_uuid == NULL) 936 if (p_uuid->len == LEN_UUID_16) 938 else if (p_uuid->len == LEN_UUID_32) 961 if (p_uuid->len == LEN_UUID_16 && p_uuid->uu.uuid16 != GATT_ILLEGAL_UUID) 964 p_attr16->uuid = p_uuid->uu.uuid16; 966 else if (p_uuid [all...] |
H A D | gatt_utils.c | 1104 UINT8 *p_uuid = *p_data; local 1112 STREAM_TO_UINT16 (p_uuid_rec->uu.uuid16, p_uuid); 1121 if (p_uuid[xx] != base_uuid[xx]) 1129 if ((p_uuid[LEN_UUID_128 - 1] == 0) && (p_uuid[LEN_UUID_128 - 2] == 0)) 1131 p_uuid += (LEN_UUID_128 - 4); 1133 STREAM_TO_UINT16(p_uuid_rec->uu.uuid16, p_uuid); 1137 p_uuid += (LEN_UUID_128 - LEN_UUID_32); 1139 STREAM_TO_UINT32(p_uuid_rec->uu.uuid32, p_uuid); 1145 memcpy(p_uuid_rec->uu.uuid128, p_uuid, LEN_UUID_12 1472 gatt_add_sdp_record(tBT_UUID *p_uuid, UINT16 start_hdl, UINT16 end_hdl) argument [all...] |
H A D | gatt_sr.c | 534 tBT_UUID *p_uuid; local 551 if ((p_uuid = gatts_get_service_uuid (p_rcb->p_db)) != NULL) 554 handle_len = 4 + p_uuid->len; 574 gatt_uuid_compare(value, *p_uuid)) 590 gatt_build_uuid_to_stream(&p, *p_uuid);
|
H A D | gatt_api.c | 470 tBT_UUID *p_uuid; local 515 p_uuid = gatts_get_service_uuid (p_sreg->p_db); 517 p_sreg->sdp_handle = gatt_add_sdp_record(p_uuid, p_sreg->s_hdl, p_sreg->e_hdl);
|
/external/bluetooth/bluedroid/stack/include/ |
H A D | sdp_api.h | 337 tBT_UUID *p_uuid, 348 ** p_uuid - output parameter to save the UUID found. 353 SDP_API extern BOOLEAN SDP_FindServiceUUIDInRec_128bit(tSDP_DISC_REC *p_rec, tBT_UUID * p_uuid); 750 SDP_API BOOLEAN SDP_FindServiceUUIDInRec(tSDP_DISC_REC *p_rec, tBT_UUID *p_uuid);
|
/external/bluetooth/bluedroid/bta/dm/ |
H A D | bta_dm_api.c | 475 p_msg->p_uuid = NULL; 934 void BTA_DmEirAddUUID (tBT_UUID *p_uuid) argument 943 memcpy (&(p_msg->uuid), p_uuid, sizeof(tBT_UUID)); 961 void BTA_DmEirRemoveUUID (tBT_UUID *p_uuid) argument 970 memcpy (&(p_msg->uuid), p_uuid, sizeof(tBT_UUID)); 1830 p_msg->p_uuid = (tBT_UUID *)(p_msg + 1); 1831 memcpy(p_msg->p_uuid, p_services->p_uuid, sizeof(tBT_UUID) * p_services->num_uuid); 1849 ** p_services->p_uuid. 1877 ** p_services->p_uuid [all...] |
H A D | bta_dm_act.c | 1223 p_data->search.p_uuid != NULL) 1235 memcpy(bta_dm_search_cb.p_srvc_uuid, p_data->search.p_uuid, len); 1316 p_data->discover.p_uuid != NULL) 1323 memcpy(bta_dm_search_cb.p_srvc_uuid, p_data->discover.p_uuid, len); 1650 tBT_UUID *p_uuid = bta_dm_search_cb.p_srvc_uuid; local 1687 if (bta_dm_search_cb.uuid_to_search != 0 && p_uuid != NULL) 1689 p_uuid += (bta_dm_search_cb.num_uuid - bta_dm_search_cb.uuid_to_search); 1691 service = p_uuid->uu.uuid16; 5816 tBT_UUID *p_uuid = bta_dm_search_cb.p_srvc_uuid + local 5819 p_uuid [all...] |
H A D | bta_dm_int.h | 220 tBT_UUID *p_uuid; member in struct:__anon476 235 tBT_UUID *p_uuid; member in struct:__anon477
|
/external/bluetooth/bluedroid/stack/btm/ |
H A D | btm_inq.c | 156 static UINT16 btm_convert_uuid_to_uuid16( UINT8 *p_uuid, UINT8 uuid_size ); 3305 ** Parameters p_uuid - address of UUID 3312 static UINT16 btm_convert_uuid_to_uuid16( UINT8 *p_uuid, UINT8 uuid_size ) argument 3324 STREAM_TO_UINT16 (uuid16, p_uuid); 3327 STREAM_TO_UINT32 (uuid32, p_uuid); 3336 if (p_uuid[xx] != base_uuid[xx]) 3344 if ((p_uuid[LEN_UUID_128 - 1] == 0) && (p_uuid[LEN_UUID_128 - 2] == 0)) 3346 p_uuid += (LEN_UUID_128 - 4); 3347 STREAM_TO_UINT16(uuid16, p_uuid); [all...] |
H A D | btm_ble_gap.c | 1232 p_data->p_services->p_uuid) 1248 UINT16_TO_STREAM(p, *(p_data->p_services->p_uuid + i)); 1258 p_data->p_service_32b->p_uuid) 1274 UINT32_TO_STREAM(p, *(p_data->p_service_32b->p_uuid + i)); 1299 p_data->p_sol_service_32b->p_uuid) 1315 UINT32_TO_STREAM(p, *(p_data->p_sol_service_32b->p_uuid + i));
|
/external/bluetooth/bluedroid/bta/include/ |
H A D | bta_api.h | 165 tBT_UUID *p_uuid; member in struct:__anon674 356 UINT16 *p_uuid; member in struct:__anon681 1813 BTA_API extern void BTA_DmEirAddUUID (tBT_UUID *p_uuid); 1826 BTA_API extern void BTA_DmEirRemoveUUID (tBT_UUID *p_uuid); 2179 ** p_uuid is the pointer to the list of UUID values. 2198 ** services.p_uuid. 2217 ** p_services->p_uuid.
|