Home
last modified time | relevance | path

Searched refs:p_uuid (Results 1 – 25 of 29) sorted by relevance

12

/external/bluetooth/bluedroid/btif/src/
Dbtif_util.c135 void string_to_uuid(char *str, bt_uuid_t *p_uuid) in string_to_uuid() argument
150 memcpy(&(p_uuid->uu[0]), &uuid0, 4); in string_to_uuid()
151 memcpy(&(p_uuid->uu[4]), &uuid1, 2); in string_to_uuid()
152 memcpy(&(p_uuid->uu[6]), &uuid2, 2); in string_to_uuid()
153 memcpy(&(p_uuid->uu[8]), &uuid3, 2); in string_to_uuid()
154 memcpy(&(p_uuid->uu[10]), &uuid4, 4); in string_to_uuid()
155 memcpy(&(p_uuid->uu[14]), &uuid5, 2); in string_to_uuid()
161 void uuid_to_string(bt_uuid_t *p_uuid, char *str) in uuid_to_string() argument
166 memcpy(&uuid0, &(p_uuid->uu[0]), 4); in uuid_to_string()
167 memcpy(&uuid1, &(p_uuid->uu[4]), 2); in uuid_to_string()
[all …]
Dbtif_gatt_util.c51 int uuidType(unsigned char* p_uuid) in uuidType() argument
62 if (p_uuid[i] == BASE_UUID[i]) in uuidType()
65 if (p_uuid[i] != 0) in uuidType()
219 uint16_t get_uuid16(tBT_UUID *p_uuid) in get_uuid16() argument
221 if (p_uuid->len == LEN_UUID_16) in get_uuid16()
223 return p_uuid->uu.uuid16; in get_uuid16()
225 else if (p_uuid->len == LEN_UUID_128) in get_uuid16()
228 UINT8 *p = &p_uuid->uu.uuid128[LEN_UUID_128 - 4]; in get_uuid16()
234 return(UINT16) p_uuid->uu.uuid32; in get_uuid16()
Dbtif_gatt_multi_adv_util.c404 p_multi_adv_data_cb->inst_cb[cbindex].data.p_services->p_uuid = in btif_gattc_copy_datacb()
406 p_uuid_out16 = p_multi_adv_data_cb->inst_cb[cbindex].data.p_services->p_uuid; in btif_gattc_copy_datacb()
409 if (NULL != p_multi_adv_data_cb->inst_cb[cbindex].data.p_services->p_uuid) in btif_gattc_copy_datacb()
427 p_multi_adv_data_cb->inst_cb[cbindex].data.p_service_32b->p_uuid = in btif_gattc_copy_datacb()
429 … p_uuid_out32 = p_multi_adv_data_cb->inst_cb[cbindex].data.p_service_32b->p_uuid; in btif_gattc_copy_datacb()
432 if (NULL != p_multi_adv_data_cb->inst_cb[cbindex].data.p_service_32b->p_uuid) in btif_gattc_copy_datacb()
563 btif_gattc_cleanup((void**) &p_multi_inst_cb->data.p_services->p_uuid); in btif_gattc_cleanup_multi_inst_cb()
578 btif_gattc_cleanup((void**) &p_multi_inst_cb->data.p_service_32b->p_uuid); in btif_gattc_cleanup_multi_inst_cb()
584 btif_gattc_cleanup((void**) &p_multi_inst_cb->data.p_sol_services->p_uuid); in btif_gattc_cleanup_multi_inst_cb()
590 btif_gattc_cleanup((void**) &p_multi_inst_cb->data.p_sol_service_32b->p_uuid); in btif_gattc_cleanup_multi_inst_cb()
Dbtif_storage.c197 static void btif_in_split_uuids_string_to_list(char *str, bt_uuid_t *p_uuid, in btif_in_split_uuids_string_to_list() argument
211 string_to_uuid(buf, p_uuid + num); in btif_in_split_uuids_string_to_list()
281 bt_uuid_t *p_uuid = (bt_uuid_t*)prop->val + i; in prop2cfg() local
283 uuid_to_string(p_uuid, buf); in prop2cfg()
391 bt_uuid_t *p_uuid = (bt_uuid_t*)prop->val; in cfg2prop() local
393 btif_in_split_uuids_string_to_list(value, p_uuid, &num_uuids); in cfg2prop()
620 bt_uuid_t *p_uuid = (bt_uuid_t*)property->val; in btif_storage_get_adapter_property() local
637 p_uuid+num_uuids); in btif_storage_get_adapter_property()
644 p_uuid+num_uuids); in btif_storage_get_adapter_property()
650 p_uuid+num_uuids); in btif_storage_get_adapter_property()
[all …]
Dbtif_sock_rfc.c61 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) in logu() argument
65 uuid_to_string((bt_uuid_t*)p_uuid, uuids); in logu()
/external/bluetooth/bluedroid/stack/sdp/
Dsdp_api.c341 BOOLEAN SDP_FindServiceUUIDInRec(tSDP_DISC_REC *p_rec, tBT_UUID * p_uuid) in SDP_FindServiceUUIDInRec() argument
359 p_uuid->len = LEN_UUID_16; in SDP_FindServiceUUIDInRec()
360 p_uuid->uu.uuid16 = p_sattr->attr_value.v.u16; in SDP_FindServiceUUIDInRec()
364 p_uuid->len = LEN_UUID_128; in SDP_FindServiceUUIDInRec()
365 memcpy(p_uuid->uu.uuid128, p_sattr->attr_value.v.array, LEN_UUID_128); in SDP_FindServiceUUIDInRec()
369 p_uuid->len = LEN_UUID_32; in SDP_FindServiceUUIDInRec()
370 p_uuid->uu.uuid32 = p_sattr->attr_value.v.u32; in SDP_FindServiceUUIDInRec()
392 p_uuid->len = 2; in SDP_FindServiceUUIDInRec()
393 p_uuid->uu.uuid16 = p_extra_sattr->attr_value.v.u16; in SDP_FindServiceUUIDInRec()
408 p_uuid->len = 2; in SDP_FindServiceUUIDInRec()
[all …]
Dsdp_db.c119 static BOOLEAN find_uuid_in_seq (UINT8 *p , UINT32 seq_len, UINT8 *p_uuid, in find_uuid_in_seq() argument
137 if (sdpu_compare_uuid_arrays (p, len, p_uuid, uuid_len)) in find_uuid_in_seq()
142 if (find_uuid_in_seq (p, len, p_uuid, uuid_len, nest_level + 1)) in find_uuid_in_seq()
Dsdp_utils.c638 BOOLEAN sdpu_is_base_uuid (UINT8 *p_uuid) in sdpu_is_base_uuid() argument
643 if (p_uuid[xx] != sdp_base_uuid[xx]) in sdpu_is_base_uuid()
Dsdpint.h289 extern BOOLEAN sdpu_is_base_uuid (UINT8 *p_uuid);
/external/bluetooth/bluedroid/bta/gatt/
Dbta_gattc_cache.c89 j + 1, p_attr->attr_handle, p_attr->p_uuid->uuid16, p_attr->inst_id, in bta_gattc_display_cache_server()
237 static UINT8 bta_gattc_get_char_inst_id(tBTA_GATTC_CACHE *p_service_cache, tBT_UUID *p_uuid) in bta_gattc_get_char_inst_id() argument
249 if (bta_gattc_uuid_compare(&attr_uuid, p_uuid, TRUE)) in bta_gattc_get_char_inst_id()
266 static UINT8 bta_gattc_get_char_descr_inst_id(tBTA_GATTC_CACHE_ATTR *p_char_attr, tBT_UUID *p_uuid) in bta_gattc_get_char_descr_inst_id() argument
278 if (bta_gattc_uuid_compare(&attr_uuid, p_uuid, TRUE)) in bta_gattc_get_char_descr_inst_id()
297 tBT_UUID *p_uuid, in bta_gattc_add_srvc_to_cache() argument
319 memcpy(&p_new_srvc->service_uuid.id.uuid, p_uuid, sizeof(tBT_UUID)); in bta_gattc_add_srvc_to_cache()
350 tBT_UUID *p_uuid, in bta_gattc_add_attr_to_cache() argument
356 UINT16 len = sizeof(tBTA_GATTC_CACHE_ATTR) + p_uuid->len; in bta_gattc_add_attr_to_cache()
361 …APPL_TRACE_DEBUG("handle=%d uuid16=0x%x property=0x%x type=%d", handle, p_uuid->uu.uuid16, propert… in bta_gattc_add_attr_to_cache()
[all …]
Dbta_gattc_utils.c458 void bta_gattc_pack_attr_uuid(tBTA_GATTC_CACHE_ATTR *p_attr, tBT_UUID *p_uuid) in bta_gattc_pack_attr_uuid() argument
460 UINT8 *pp = (UINT8 *)p_attr->p_uuid; in bta_gattc_pack_attr_uuid()
462 memset(p_uuid, 0, sizeof(tBT_UUID)); in bta_gattc_pack_attr_uuid()
464 p_uuid->len = p_attr->uuid_len; in bta_gattc_pack_attr_uuid()
468 STREAM_TO_UINT16(p_uuid->uu.uuid16, pp); in bta_gattc_pack_attr_uuid()
472 memcpy(p_uuid->uu.uuid128, pp, LEN_UUID_128); in bta_gattc_pack_attr_uuid()
Dbta_gattc_int.h255 tBTA_GATTC_UUID *p_uuid; member
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/
Dgatt_db.c42 static void *allocate_attr_in_db(tGATT_SVC_DB *p_db, tBT_UUID *p_uuid, tGATT_PERM perm);
923 static void *allocate_attr_in_db(tGATT_SVC_DB *p_db, tBT_UUID *p_uuid, tGATT_PERM perm) in allocate_attr_in_db() argument
930 if (p_uuid == NULL) in allocate_attr_in_db()
936 if (p_uuid->len == LEN_UUID_16) in allocate_attr_in_db()
938 else if (p_uuid->len == LEN_UUID_32) in allocate_attr_in_db()
961 if (p_uuid->len == LEN_UUID_16 && p_uuid->uu.uuid16 != GATT_ILLEGAL_UUID) in allocate_attr_in_db()
964 p_attr16->uuid = p_uuid->uu.uuid16; in allocate_attr_in_db()
966 else if (p_uuid->len == LEN_UUID_32) in allocate_attr_in_db()
970 p_attr32->uuid = p_uuid->uu.uuid32; in allocate_attr_in_db()
972 else if (p_uuid->len == LEN_UUID_128) in allocate_attr_in_db()
[all …]
Dgatt_utils.c1104 UINT8 *p_uuid = *p_data; in gatt_parse_uuid_from_cmd() local
1112 STREAM_TO_UINT16 (p_uuid_rec->uu.uuid16, p_uuid); in gatt_parse_uuid_from_cmd()
1121 if (p_uuid[xx] != base_uuid[xx]) in gatt_parse_uuid_from_cmd()
1129 if ((p_uuid[LEN_UUID_128 - 1] == 0) && (p_uuid[LEN_UUID_128 - 2] == 0)) in gatt_parse_uuid_from_cmd()
1131 p_uuid += (LEN_UUID_128 - 4); in gatt_parse_uuid_from_cmd()
1133 STREAM_TO_UINT16(p_uuid_rec->uu.uuid16, p_uuid); in gatt_parse_uuid_from_cmd()
1137 p_uuid += (LEN_UUID_128 - LEN_UUID_32); in gatt_parse_uuid_from_cmd()
1139 STREAM_TO_UINT32(p_uuid_rec->uu.uuid32, p_uuid); in gatt_parse_uuid_from_cmd()
1145 memcpy(p_uuid_rec->uu.uuid128, p_uuid, LEN_UUID_128); in gatt_parse_uuid_from_cmd()
1472 UINT32 gatt_add_sdp_record (tBT_UUID *p_uuid, UINT16 start_hdl, UINT16 end_hdl) in gatt_add_sdp_record() argument
[all …]
Dgatt_sr.c534 tBT_UUID *p_uuid; in gatt_build_primary_service_rsp() local
551 if ((p_uuid = gatts_get_service_uuid (p_rcb->p_db)) != NULL) in gatt_build_primary_service_rsp()
554 handle_len = 4 + p_uuid->len; in gatt_build_primary_service_rsp()
574 gatt_uuid_compare(value, *p_uuid)) in gatt_build_primary_service_rsp()
590 gatt_build_uuid_to_stream(&p, *p_uuid); in gatt_build_primary_service_rsp()
Dgatt_api.c470 tBT_UUID *p_uuid; in GATTS_StartService() local
515 p_uuid = gatts_get_service_uuid (p_sreg->p_db); in GATTS_StartService()
517 p_sreg->sdp_handle = gatt_add_sdp_record(p_uuid, p_sreg->s_hdl, p_sreg->e_hdl); in GATTS_StartService()
Dgatt_int.h581 extern UINT32 gatt_add_sdp_record (tBT_UUID *p_uuid, UINT16 start_hdl, UINT16 end_hdl);
582 extern BOOLEAN gatt_parse_uuid_from_cmd(tBT_UUID *p_uuid, UINT16 len, UINT8 **p_data);
/external/bluetooth/bluedroid/btif/include/
Dbtif_util.h75 void uuid_to_string(bt_uuid_t *p_uuid, char *str);
76 void string_to_uuid(char *str, bt_uuid_t *p_uuid);
Dbtif_gatt_util.h36 uint16_t get_uuid16(tBT_UUID *p_uuid);
/external/bluetooth/bluedroid/stack/include/
Dsdp_api.h337 tBT_UUID *p_uuid,
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);
Dbtm_ble_api.h353 UINT16 *p_uuid; member
361 UINT32 *p_uuid; member
/external/bluetooth/bluedroid/bta/dm/
Dbta_dm_api.c475 p_msg->p_uuid = NULL; in BTA_DmDiscoverUUID()
934 void BTA_DmEirAddUUID (tBT_UUID *p_uuid) in BTA_DmEirAddUUID() argument
943 memcpy (&(p_msg->uuid), p_uuid, sizeof(tBT_UUID)); in BTA_DmEirAddUUID()
961 void BTA_DmEirRemoveUUID (tBT_UUID *p_uuid) in BTA_DmEirRemoveUUID() argument
970 memcpy (&(p_msg->uuid), p_uuid, sizeof(tBT_UUID)); in BTA_DmEirRemoveUUID()
1830 p_msg->p_uuid = (tBT_UUID *)(p_msg + 1); in bta_dm_discover_send_msg()
1831 memcpy(p_msg->p_uuid, p_services->p_uuid, sizeof(tBT_UUID) * p_services->num_uuid); in bta_dm_discover_send_msg()
1938 p_msg->p_uuid = (tBT_UUID *)(p_msg + 1); in BTA_DmSearchExt()
1939 memcpy(p_msg->p_uuid, p_services->p_uuid, sizeof(tBT_UUID) * p_services->num_uuid); in BTA_DmSearchExt()
1942 p_msg->p_uuid = NULL; in BTA_DmSearchExt()
/external/bluetooth/bluedroid/stack/btm/
Dbtm_inq.c156 static UINT16 btm_convert_uuid_to_uuid16( UINT8 *p_uuid, UINT8 uuid_size );
3312 static UINT16 btm_convert_uuid_to_uuid16( UINT8 *p_uuid, UINT8 uuid_size ) in btm_convert_uuid_to_uuid16() argument
3324 STREAM_TO_UINT16 (uuid16, p_uuid); in btm_convert_uuid_to_uuid16()
3327 STREAM_TO_UINT32 (uuid32, p_uuid); in btm_convert_uuid_to_uuid16()
3336 if (p_uuid[xx] != base_uuid[xx]) in btm_convert_uuid_to_uuid16()
3344 if ((p_uuid[LEN_UUID_128 - 1] == 0) && (p_uuid[LEN_UUID_128 - 2] == 0)) in btm_convert_uuid_to_uuid16()
3346 p_uuid += (LEN_UUID_128 - 4); in btm_convert_uuid_to_uuid16()
3347 STREAM_TO_UINT16(uuid16, p_uuid); in btm_convert_uuid_to_uuid16()
Dbtm_ble_gap.c1228 p_data->p_services->p_uuid) in btm_ble_build_adv_data()
1244 UINT16_TO_STREAM(p, *(p_data->p_services->p_uuid + i)); in btm_ble_build_adv_data()
1254 p_data->p_service_32b->p_uuid) in btm_ble_build_adv_data()
1270 UINT32_TO_STREAM(p, *(p_data->p_service_32b->p_uuid + i)); in btm_ble_build_adv_data()
1295 p_data->p_sol_service_32b->p_uuid) in btm_ble_build_adv_data()
1311 UINT32_TO_STREAM(p, *(p_data->p_sol_service_32b->p_uuid + i)); in btm_ble_build_adv_data()
/external/bluetooth/bluedroid/bta/include/
Dbta_api.h165 tBT_UUID *p_uuid; member
356 UINT16 *p_uuid; member
1810 BTA_API extern void BTA_DmEirAddUUID (tBT_UUID *p_uuid);
1823 BTA_API extern void BTA_DmEirRemoveUUID (tBT_UUID *p_uuid);

12