/external/bluetooth/bluedroid/btif/src/ |
H A D | btif_gatt_util.c | 52 int uuidType(unsigned char* p_uuid) argument 63 if (p_uuid[i] == BASE_UUID[i]) 66 if (p_uuid[i] != 0) 194 uint16_t get_uuid16(tBT_UUID *p_uuid) argument 196 if (p_uuid->len == LEN_UUID_16) 198 return p_uuid->uu.uuid16; 200 else if (p_uuid->len == LEN_UUID_128) 203 UINT8 *p = &p_uuid->uu.uuid128[LEN_UUID_128 - 4]; 207 else /* p_uuid->len == LEN_UUID_32 */ 209 return(UINT16) p_uuid [all...] |
H A D | btif_util.c | 135 void string_to_uuid(char *str, bt_uuid_t *p_uuid) argument 150 memcpy(&(p_uuid->uu[0]), &uuid0, 4); 151 memcpy(&(p_uuid->uu[4]), &uuid1, 2); 152 memcpy(&(p_uuid->uu[6]), &uuid2, 2); 153 memcpy(&(p_uuid->uu[8]), &uuid3, 2); 154 memcpy(&(p_uuid->uu[10]), &uuid4, 4); 155 memcpy(&(p_uuid->uu[14]), &uuid5, 2); 161 void uuid_to_string(bt_uuid_t *p_uuid, char *str) argument 166 memcpy(&uuid0, &(p_uuid->uu[0]), 4); 167 memcpy(&uuid1, &(p_uuid [all...] |
H A D | btif_sock_rfc.c | 59 extern void uuid_to_string(bt_uuid_t *p_uuid, char *str); 60 static inline void logu(const char* title, const uint8_t * p_uuid) argument 63 uuid_to_string((bt_uuid_t*)p_uuid, uuids);
|
H A D | btif_storage.c | 227 static void btif_in_split_uuids_string_to_list(char *str, bt_uuid_t *p_uuid, argument 241 string_to_uuid(buf, p_uuid + num); 307 bt_uuid_t *p_uuid = (bt_uuid_t*)prop->val + i; local 309 uuid_to_string(p_uuid, buf); 417 bt_uuid_t *p_uuid = (bt_uuid_t*)prop->val; local 419 btif_in_split_uuids_string_to_list(value, p_uuid, &num_uuids); 623 bt_uuid_t *p_uuid = (bt_uuid_t*)property->val; local 640 p_uuid+num_uuids); 647 p_uuid+num_uuids); 653 p_uuid [all...] |
/external/bluetooth/bluedroid/bta/gatt/ |
H A D | bta_gattc_utils.c | 456 void bta_gattc_pack_attr_uuid(tBTA_GATTC_CACHE_ATTR *p_attr, tBT_UUID *p_uuid) argument 458 UINT8 *pp = (UINT8 *)p_attr->p_uuid; 460 memset(p_uuid, 0, sizeof(tBT_UUID)); 462 p_uuid->len = p_attr->uuid_len; 466 STREAM_TO_UINT16(p_uuid->uu.uuid16, pp); 470 memcpy(p_uuid->uu.uuid128, pp, LEN_UUID_128);
|
H A D | bta_gattc_cache.c | 88 j + 1, p_attr->attr_handle, p_attr->p_uuid->uuid16, p_attr->inst_id, 236 static UINT8 bta_gattc_get_char_inst_id(tBTA_GATTC_CACHE *p_service_cache, tBT_UUID *p_uuid) argument 248 if (bta_gattc_uuid_compare(&attr_uuid, p_uuid, TRUE)) 265 static UINT8 bta_gattc_get_char_descr_inst_id(tBTA_GATTC_CACHE_ATTR *p_char_attr, tBT_UUID *p_uuid) argument 277 if (bta_gattc_uuid_compare(&attr_uuid, p_uuid, TRUE)) 296 tBT_UUID *p_uuid, 318 memcpy(&p_new_srvc->service_uuid.id.uuid, p_uuid, sizeof(tBT_UUID)); 349 tBT_UUID *p_uuid, 355 UINT16 len = sizeof(tBTA_GATTC_CACHE_ATTR) + p_uuid->len; 360 APPL_TRACE_DEBUG4("handle=%d uuid16=0x%x property=0x%x type=%d", handle, p_uuid 294 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 347 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 1229 bta_gattc_search_service(tBTA_GATTC_CLCB *p_clcb, tBT_UUID *p_uuid) argument [all...] |
H A D | bta_gattc_int.h | 234 tBTA_GATTC_UUID *p_uuid; member in struct:gattc_attr_cache 496 extern void bta_gattc_pack_attr_uuid(tBTA_GATTC_CACHE_ATTR *p_attr, tBT_UUID *p_uuid); 513 extern void bta_gattc_search_service(tBTA_GATTC_CLCB *p_clcb, tBT_UUID *p_uuid);
|
/external/bluetooth/bluedroid/stack/gatt/ |
H A D | gatt_sr.c | 535 tBT_UUID *p_uuid; local 550 if ((p_uuid = gatts_get_service_uuid (p_rcb->p_db)) != NULL) 553 handle_len = 4 + p_uuid->len; 573 gatt_uuid_compare(value, *p_uuid)) 589 gatt_build_uuid_to_stream(&p, *p_uuid);
|
H A D | gatt_api.c | 469 tBT_UUID *p_uuid; local 514 p_uuid = gatts_get_service_uuid (p_sreg->p_db); 516 p_sreg->sdp_handle = gatt_add_sdp_record(p_uuid, p_sreg->s_hdl, p_sreg->e_hdl);
|
H A D | gatt_utils.c | 1058 UINT8 *p_uuid = *p_data; local 1066 STREAM_TO_UINT16 (p_uuid_rec->uu.uuid16, p_uuid); 1075 if (p_uuid[xx] != base_uuid[xx]) 1083 if ((p_uuid[LEN_UUID_128 - 1] == 0) && (p_uuid[LEN_UUID_128 - 2] == 0)) 1085 p_uuid += (LEN_UUID_128 - 4); 1087 STREAM_TO_UINT16(p_uuid_rec->uu.uuid16, p_uuid); 1095 memcpy(p_uuid_rec->uu.uuid128, p_uuid, LEN_UUID_128); 1388 UINT32 gatt_add_sdp_record (tBT_UUID *p_uuid, UINT16 start_hdl, UINT16 end_hdl) argument 1401 switch (p_uuid [all...] |
/external/bluetooth/bluedroid/stack/sdp/ |
H A D | sdp_api.c | 333 ** p_uuid - output parameter to save the UUID found. 338 BOOLEAN SDP_FindServiceUUIDInRec(tSDP_DISC_REC *p_rec, tBT_UUID * p_uuid) argument 356 p_uuid->len = LEN_UUID_16; 357 p_uuid->uu.uuid16 = p_sattr->attr_value.v.u16; 361 p_uuid->len = LEN_UUID_128; 362 memcpy(p_uuid->uu.uuid128, p_sattr->attr_value.v.array, LEN_UUID_128); 366 p_uuid->len = LEN_UUID_32; 367 p_uuid->uu.uuid32 = p_sattr->attr_value.v.u32; 389 p_uuid->len = 2; 390 p_uuid 429 SDP_FindServiceUUIDInRec_128bit(tSDP_DISC_REC *p_rec, tBT_UUID * p_uuid) argument 658 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 | 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/dm/ |
H A D | bta_dm_api.c | 483 p_msg->p_uuid = NULL; 925 void BTA_DmEirAddUUID (tBT_UUID *p_uuid) argument 934 memcpy (&(p_msg->uuid), p_uuid, sizeof(tBT_UUID)); 952 void BTA_DmEirRemoveUUID (tBT_UUID *p_uuid) argument 961 memcpy (&(p_msg->uuid), p_uuid, sizeof(tBT_UUID)); 1553 ** p_services->p_uuid. 1584 p_msg->p_uuid = (tBT_UUID *)(p_msg + 1); 1585 memcpy(p_msg->p_uuid, p_services->p_uuid, sizeof(tBT_UUID) * p_services->num_uuid); 1606 ** p_uuid i [all...] |
H A D | bta_dm_act.c | 1203 p_data->search.p_uuid != NULL) 1215 memcpy(bta_dm_search_cb.p_srvc_uuid, p_data->search.p_uuid, len); 1296 p_data->discover.p_uuid != NULL) 1303 memcpy(bta_dm_search_cb.p_srvc_uuid, p_data->discover.p_uuid, len); 1628 tBT_UUID *p_uuid = bta_dm_search_cb.p_srvc_uuid; local 1665 if (bta_dm_search_cb.uuid_to_search != 0 && p_uuid != NULL) 1667 p_uuid += (bta_dm_search_cb.num_uuid - bta_dm_search_cb.uuid_to_search); 1669 service = p_uuid->uu.uuid16; 5045 tBT_UUID *p_uuid = bta_dm_search_cb.p_srvc_uuid + local 5048 p_uuid [all...] |
H A D | bta_dm_int.h | 198 tBT_UUID *p_uuid; member in struct:__anon472 212 tBT_UUID *p_uuid; member in struct:__anon473
|
/external/bluetooth/bluedroid/bta/jv/ |
H A D | bta_jv_act.c | 54 extern void uuid_to_string(bt_uuid_t *p_uuid, char *str); 55 static inline void logu(const char* title, const uint8_t * p_uuid) argument 58 uuid_to_string((bt_uuid_t*)p_uuid, uuids);
|
/external/bluetooth/bluedroid/stack/include/ |
H A D | btm_ble_api.h | 252 UINT16 *p_uuid; member in struct:__anon1348
|
/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 ); 3267 ** Parameters p_uuid - address of UUID 3274 static UINT16 btm_convert_uuid_to_uuid16( UINT8 *p_uuid, UINT8 uuid_size ) argument 3286 STREAM_TO_UINT16 (uuid16, p_uuid); 3289 STREAM_TO_UINT32 (uuid32, p_uuid); 3298 if (p_uuid[xx] != base_uuid[xx]) 3306 if ((p_uuid[LEN_UUID_128 - 1] == 0) && (p_uuid[LEN_UUID_128 - 2] == 0)) 3308 p_uuid += (LEN_UUID_128 - 4); 3309 STREAM_TO_UINT16(uuid16, p_uuid); [all...] |
/external/bluetooth/bluedroid/bta/include/ |
H A D | bta_api.h | 165 tBT_UUID *p_uuid; member in struct:__anon634 349 UINT16 *p_uuid; member in struct:__anon641 1447 BTA_API extern void BTA_DmEirAddUUID (tBT_UUID *p_uuid); 1460 BTA_API extern void BTA_DmEirRemoveUUID (tBT_UUID *p_uuid); 1799 ** p_uuid is the pointer to the list of UUID values. 1818 ** services.p_uuid.
|