/system/bt/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) 220 uint16_t get_uuid16(tBT_UUID *p_uuid) argument 222 if (p_uuid->len == LEN_UUID_16) 224 return p_uuid->uu.uuid16; 226 else if (p_uuid->len == LEN_UUID_128) 229 UINT8 *p = &p_uuid->uu.uuid128[LEN_UUID_128 - 4]; 233 else /* p_uuid->len == LEN_UUID_32 */ 235 return(UINT16) p_uuid [all...] |
H A D | btif_util.c | 114 void string_to_uuid(char *str, bt_uuid_t *p_uuid) argument 129 memcpy(&(p_uuid->uu[0]), &uuid0, 4); 130 memcpy(&(p_uuid->uu[4]), &uuid1, 2); 131 memcpy(&(p_uuid->uu[6]), &uuid2, 2); 132 memcpy(&(p_uuid->uu[8]), &uuid3, 2); 133 memcpy(&(p_uuid->uu[10]), &uuid4, 4); 134 memcpy(&(p_uuid->uu[14]), &uuid5, 2); 140 void uuid_to_string_legacy(bt_uuid_t *p_uuid, char *str) argument 145 memcpy(&uuid0, &(p_uuid->uu[0]), 4); 146 memcpy(&uuid1, &(p_uuid [all...] |
H A D | btif_storage.c | 199 static void btif_in_split_uuids_string_to_list(char *str, bt_uuid_t *p_uuid, argument 213 string_to_uuid(buf, p_uuid + num); 280 bt_uuid_t *p_uuid = (bt_uuid_t*)prop->val + i; local 282 uuid_to_string_legacy(p_uuid, buf); 390 bt_uuid_t *p_uuid = (bt_uuid_t*)prop->val; local 392 btif_in_split_uuids_string_to_list(value, p_uuid, &num_uuids); 639 bt_uuid_t *p_uuid = (bt_uuid_t*)property->val; local 656 p_uuid+num_uuids); 663 p_uuid+num_uuids); 669 p_uuid [all...] |
H A D | btif_gatt_client.c | 2126 int company_id_mask, const bt_uuid_t *p_uuid, 2152 if (p_uuid != NULL) 2153 memcpy(&btif_filt_cb.uuid, p_uuid, sizeof(bt_uuid_t)); 2124 btif_gattc_scan_filter_add_remove(int client_if, 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, int data_len, char* p_data, int mask_len, char* p_mask) argument
|
/system/bt/stack/gap/ |
H A D | gap_ble.c | 197 BOOLEAN gap_ble_dequeue_request (tGAP_CLCB *p_clcb, UINT16 * p_uuid, tGAP_BLE_CMPL_CBACK **p_cback) argument 204 *p_uuid = p_q->uuid;
|
/system/bt/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); 912 ** p_uuid: pointer to attribute UUID 918 static void *allocate_attr_in_db(tGATT_SVC_DB *p_db, tBT_UUID *p_uuid, tGATT_PERM perm) argument 925 if (p_uuid == NULL) 931 if (p_uuid->len == LEN_UUID_16) 933 else if (p_uuid->len == LEN_UUID_32) 956 if (p_uuid->len == LEN_UUID_16 && p_uuid->uu.uuid16 != GATT_ILLEGAL_UUID) 959 p_attr16->uuid = p_uuid->uu.uuid16; 961 else if (p_uuid [all...] |
H A D | gatt_sr.c | 533 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 | 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);
|
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...] |
/system/bt/stack/sdp/ |
H A D | sdp_api.c | 329 ** p_uuid - output parameter to save the UUID found. 334 BOOLEAN SDP_FindServiceUUIDInRec(tSDP_DISC_REC *p_rec, tBT_UUID * p_uuid) argument 352 p_uuid->len = LEN_UUID_16; 353 p_uuid->uu.uuid16 = p_sattr->attr_value.v.u16; 357 p_uuid->len = LEN_UUID_128; 358 memcpy(p_uuid->uu.uuid128, p_sattr->attr_value.v.array, LEN_UUID_128); 362 p_uuid->len = LEN_UUID_32; 363 p_uuid->uu.uuid32 = p_sattr->attr_value.v.u32; 385 p_uuid->len = 2; 386 p_uuid 425 SDP_FindServiceUUIDInRec_128bit(tSDP_DISC_REC *p_rec, tBT_UUID * p_uuid) argument 655 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 | 118 static BOOLEAN find_uuid_in_seq (UINT8 *p , UINT32 seq_len, UINT8 *p_uuid, argument 136 if (sdpu_compare_uuid_arrays (p, len, p_uuid, uuid_len)) 141 if (find_uuid_in_seq (p, len, p_uuid, uuid_len, nest_level + 1))
|
H A D | sdp_utils.c | 642 BOOLEAN sdpu_is_base_uuid (UINT8 *p_uuid) argument 647 if (p_uuid[xx] != sdp_base_uuid[xx])
|
/system/bt/bta/gatt/ |
H A D | bta_gattc_cache.c | 92 j + 1, p_attr->attr_handle, p_attr->p_uuid->uuid16, p_attr->inst_id, 240 static UINT8 bta_gattc_get_char_inst_id(tBTA_GATTC_CACHE *p_service_cache, tBT_UUID *p_uuid) argument 252 if (bta_gattc_uuid_compare(&attr_uuid, p_uuid, TRUE)) 269 static UINT8 bta_gattc_get_char_descr_inst_id(tBTA_GATTC_CACHE_ATTR *p_char_attr, tBT_UUID *p_uuid) argument 281 if (bta_gattc_uuid_compare(&attr_uuid, p_uuid, TRUE)) 300 tBT_UUID *p_uuid, 322 memcpy(&p_new_srvc->service_uuid.id.uuid, p_uuid, sizeof(tBT_UUID)); 353 tBT_UUID *p_uuid, 359 UINT16 len = sizeof(tBTA_GATTC_CACHE_ATTR) + p_uuid->len; 364 APPL_TRACE_DEBUG("handle=%d uuid16=0x%x property=0x%x type=%d", handle, p_uuid 298 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 351 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 1248 bta_gattc_search_service(tBTA_GATTC_CLCB *p_clcb, tBT_UUID *p_uuid) argument [all...] |
H A D | bta_gattc_utils.c | 461 void bta_gattc_pack_attr_uuid(tBTA_GATTC_CACHE_ATTR *p_attr, tBT_UUID *p_uuid) argument 463 UINT8 *pp = (UINT8 *)p_attr->p_uuid; 465 memset(p_uuid, 0, sizeof(tBT_UUID)); 467 p_uuid->len = p_attr->uuid_len; 471 STREAM_TO_UINT16(p_uuid->uu.uuid16, pp); 475 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);
|
/system/bt/stack/btm/ |
H A D | btm_inq.c | 138 static UINT16 btm_convert_uuid_to_uuid16( UINT8 *p_uuid, UINT8 uuid_size ); 2825 ** Parameters p_uuid - address of UUID 2832 static UINT16 btm_convert_uuid_to_uuid16( UINT8 *p_uuid, UINT8 uuid_size ) argument 2844 STREAM_TO_UINT16 (uuid16, p_uuid); 2847 STREAM_TO_UINT32 (uuid32, p_uuid); 2856 if (p_uuid[xx] != base_uuid[xx]) 2864 if ((p_uuid[LEN_UUID_128 - 1] == 0) && (p_uuid[LEN_UUID_128 - 2] == 0)) 2866 p_uuid += (LEN_UUID_128 - 4); 2867 STREAM_TO_UINT16(uuid16, p_uuid); [all...] |
/system/bt/bta/jv/ |
H A D | bta_jv_act.c | 101 extern void uuid_to_string_legacy(bt_uuid_t *p_uuid, char *str); 102 static inline void logu(const char* title, const uint8_t * p_uuid) argument 105 uuid_to_string_legacy((bt_uuid_t*)p_uuid, uuids);
|
/system/bt/bta/dm/ |
H A D | bta_dm_act.c | 1155 p_data->search.p_uuid != NULL) 1167 memcpy(bta_dm_search_cb.p_srvc_uuid, p_data->search.p_uuid, len); 1269 p_data->discover.p_uuid != NULL) 1276 memcpy(bta_dm_search_cb.p_srvc_uuid, p_data->discover.p_uuid, len); 1572 tBT_UUID *p_uuid = bta_dm_search_cb.p_srvc_uuid; local 1608 if (bta_dm_search_cb.uuid_to_search != 0 && p_uuid != NULL) 1610 p_uuid += (bta_dm_search_cb.num_uuid - bta_dm_search_cb.uuid_to_search); 1612 service = p_uuid->uu.uuid16; 5442 tBT_UUID *p_uuid = bta_dm_search_cb.p_srvc_uuid + local 5445 p_uuid [all...] |
H A D | bta_dm_int.h | 190 tBT_UUID *p_uuid; member in struct:__anon78 205 tBT_UUID *p_uuid; member in struct:__anon79
|
/system/bt/stack/include/ |
H A D | btm_ble_api.h | 394 UINT16 *p_uuid; member in struct:__anon1052 402 UINT32 *p_uuid; member in struct:__anon1053
|
/system/bt/bta/include/ |
H A D | bta_api.h | 164 tBT_UUID *p_uuid; member in struct:__anon271 360 UINT16 *p_uuid; member in struct:__anon278 1930 ** p_uuid is the pointer to the list of UUID values. 1949 ** services.p_uuid. 1968 ** p_services->p_uuid.
|