Home
last modified time | relevance | path

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

12

/system/bt/btif/src/
Dbtif_util.c115 bool string_to_uuid(const char *str, bt_uuid_t *p_uuid) in string_to_uuid() argument
117 assert(p_uuid); in string_to_uuid()
136 memcpy(&(p_uuid->uu[0]), &uuid0, 4); in string_to_uuid()
137 memcpy(&(p_uuid->uu[4]), &uuid1, 2); in string_to_uuid()
138 memcpy(&(p_uuid->uu[6]), &uuid2, 2); in string_to_uuid()
139 memcpy(&(p_uuid->uu[8]), &uuid3, 2); in string_to_uuid()
140 memcpy(&(p_uuid->uu[10]), &uuid4, 4); in string_to_uuid()
141 memcpy(&(p_uuid->uu[14]), &uuid5, 2); in string_to_uuid()
146 void uuid_to_string_legacy(bt_uuid_t *p_uuid, char *str) in uuid_to_string_legacy() argument
151 memcpy(&uuid0, &(p_uuid->uu[0]), 4); in uuid_to_string_legacy()
[all …]
Dbtif_gatt_util.c53 int uuidType(unsigned char* p_uuid) in uuidType() argument
64 if (p_uuid[i] == BASE_UUID[i]) in uuidType()
67 if (p_uuid[i] != 0) in uuidType()
193 uint16_t get_uuid16(tBT_UUID *p_uuid) in get_uuid16() argument
195 if (p_uuid->len == LEN_UUID_16) in get_uuid16()
197 return p_uuid->uu.uuid16; in get_uuid16()
199 else if (p_uuid->len == LEN_UUID_128) in get_uuid16()
202 UINT8 *p = &p_uuid->uu.uuid128[LEN_UUID_128 - 4]; in get_uuid16()
208 return(UINT16) p_uuid->uu.uuid32; in get_uuid16()
Dbtif_storage.c229 bt_uuid_t *p_uuid = (bt_uuid_t*)prop->val + i; in prop2cfg() local
231 uuid_to_string_legacy(p_uuid, buf); in prop2cfg()
343 bt_uuid_t *p_uuid = (bt_uuid_t*)prop->val; in cfg2prop() local
344 size_t num_uuids = btif_split_uuids_string(value, p_uuid, BT_MAX_NUM_UUIDS); in cfg2prop()
548 size_t btif_split_uuids_string(const char *str, bt_uuid_t *p_uuid, size_t max_uuids) in btif_split_uuids_string() argument
551 assert(p_uuid); in btif_split_uuids_string()
556 bool rc = string_to_uuid(str, p_uuid++); in btif_split_uuids_string()
611 bt_uuid_t *p_uuid = (bt_uuid_t*)property->val; in btif_storage_get_adapter_property() local
628 p_uuid+num_uuids); in btif_storage_get_adapter_property()
635 p_uuid+num_uuids); in btif_storage_get_adapter_property()
[all …]
Dbtif_gatt_client.c1907 int company_id_mask, const bt_uuid_t *p_uuid, in btif_gattc_scan_filter_add_remove() argument
1933 if (p_uuid != NULL) in btif_gattc_scan_filter_add_remove()
1934 memcpy(&btif_filt_cb.uuid, p_uuid, sizeof(bt_uuid_t)); in btif_gattc_scan_filter_add_remove()
/system/bt/stack/sdp/
Dsdp_api.c336 BOOLEAN SDP_FindServiceUUIDInRec(tSDP_DISC_REC *p_rec, tBT_UUID * p_uuid) in SDP_FindServiceUUIDInRec() argument
354 p_uuid->len = LEN_UUID_16; in SDP_FindServiceUUIDInRec()
355 p_uuid->uu.uuid16 = p_sattr->attr_value.v.u16; in SDP_FindServiceUUIDInRec()
359 p_uuid->len = LEN_UUID_128; in SDP_FindServiceUUIDInRec()
361 p_uuid->uu.uuid128[i] = p_sattr->attr_value.v.array[LEN_UUID_128-i-1]; in SDP_FindServiceUUIDInRec()
365 p_uuid->len = LEN_UUID_32; in SDP_FindServiceUUIDInRec()
366 p_uuid->uu.uuid32 = p_sattr->attr_value.v.u32; in SDP_FindServiceUUIDInRec()
388 p_uuid->len = 2; in SDP_FindServiceUUIDInRec()
389 p_uuid->uu.uuid16 = p_extra_sattr->attr_value.v.u16; in SDP_FindServiceUUIDInRec()
404 p_uuid->len = 2; in SDP_FindServiceUUIDInRec()
[all …]
Dsdp_db.c118 static BOOLEAN find_uuid_in_seq (UINT8 *p , UINT32 seq_len, UINT8 *p_uuid, in find_uuid_in_seq() argument
136 if (sdpu_compare_uuid_arrays (p, len, p_uuid, uuid_len)) in find_uuid_in_seq()
141 if (find_uuid_in_seq (p, len, p_uuid, uuid_len, nest_level + 1)) in find_uuid_in_seq()
Dsdpint.h285 extern BOOLEAN sdpu_is_base_uuid (UINT8 *p_uuid);
Dsdp_utils.c631 BOOLEAN sdpu_is_base_uuid (UINT8 *p_uuid) in sdpu_is_base_uuid() argument
636 if (p_uuid[xx] != sdp_base_uuid[xx]) in sdpu_is_base_uuid()
/system/bt/btif/include/
Dbtif_util.h73 bool string_to_uuid(const char *str, bt_uuid_t *p_uuid);
75 void uuid_to_string_legacy(bt_uuid_t *p_uuid, char *str);
Dbtif_gatt_util.h34 uint16_t get_uuid16(tBT_UUID *p_uuid);
Dbtif_storage.h320 size_t btif_split_uuids_string(const char *str, bt_uuid_t *p_uuid, size_t max_uuids);
/system/bt/stack/gatt/
Dgatt_db.c42 static void *allocate_attr_in_db(tGATT_SVC_DB *p_db, tBT_UUID *p_uuid, tGATT_PERM perm);
910 static void *allocate_attr_in_db(tGATT_SVC_DB *p_db, tBT_UUID *p_uuid, tGATT_PERM perm) in allocate_attr_in_db() argument
917 if (p_uuid == NULL) in allocate_attr_in_db()
923 if (p_uuid->len == LEN_UUID_16) in allocate_attr_in_db()
925 else if (p_uuid->len == LEN_UUID_32) in allocate_attr_in_db()
948 if (p_uuid->len == LEN_UUID_16 && p_uuid->uu.uuid16 != GATT_ILLEGAL_UUID) in allocate_attr_in_db()
951 p_attr16->uuid = p_uuid->uu.uuid16; in allocate_attr_in_db()
953 else if (p_uuid->len == LEN_UUID_32) in allocate_attr_in_db()
957 p_attr32->uuid = p_uuid->uu.uuid32; in allocate_attr_in_db()
959 else if (p_uuid->len == LEN_UUID_128) in allocate_attr_in_db()
[all …]
Dgatt_utils.c1133 UINT8 *p_uuid = *p_data; in gatt_parse_uuid_from_cmd() local
1141 STREAM_TO_UINT16 (p_uuid_rec->uu.uuid16, p_uuid); in gatt_parse_uuid_from_cmd()
1150 if (p_uuid[xx] != base_uuid[xx]) in gatt_parse_uuid_from_cmd()
1158 if ((p_uuid[LEN_UUID_128 - 1] == 0) && (p_uuid[LEN_UUID_128 - 2] == 0)) in gatt_parse_uuid_from_cmd()
1160 p_uuid += (LEN_UUID_128 - 4); in gatt_parse_uuid_from_cmd()
1162 STREAM_TO_UINT16(p_uuid_rec->uu.uuid16, p_uuid); in gatt_parse_uuid_from_cmd()
1166 p_uuid += (LEN_UUID_128 - LEN_UUID_32); in gatt_parse_uuid_from_cmd()
1168 STREAM_TO_UINT32(p_uuid_rec->uu.uuid32, p_uuid); in gatt_parse_uuid_from_cmd()
1174 memcpy(p_uuid_rec->uu.uuid128, p_uuid, LEN_UUID_128); in gatt_parse_uuid_from_cmd()
1527 UINT32 gatt_add_sdp_record (tBT_UUID *p_uuid, UINT16 start_hdl, UINT16 end_hdl) in gatt_add_sdp_record() argument
[all …]
Dgatt_sr.c512 tBT_UUID *p_uuid; in gatt_build_primary_service_rsp() local
529 if ((p_uuid = gatts_get_service_uuid (p_rcb->p_db)) != NULL) in gatt_build_primary_service_rsp()
532 handle_len = 4 + p_uuid->len; in gatt_build_primary_service_rsp()
552 gatt_uuid_compare(value, *p_uuid)) in gatt_build_primary_service_rsp()
568 gatt_build_uuid_to_stream(&p, *p_uuid); in gatt_build_primary_service_rsp()
Dgatt_api.c469 tBT_UUID *p_uuid; in GATTS_StartService() local
514 p_uuid = gatts_get_service_uuid (p_sreg->p_db); in GATTS_StartService()
516 p_sreg->sdp_handle = gatt_add_sdp_record(p_uuid, p_sreg->s_hdl, p_sreg->e_hdl); in GATTS_StartService()
Dgatt_int.h561 extern UINT32 gatt_add_sdp_record (tBT_UUID *p_uuid, UINT16 start_hdl, UINT16 end_hdl);
562 extern BOOLEAN gatt_parse_uuid_from_cmd(tBT_UUID *p_uuid, UINT16 len, UINT8 **p_data);
/system/bt/stack/include/
Dsdp_api.h323 tBT_UUID *p_uuid,
339 BOOLEAN SDP_FindServiceUUIDInRec_128bit(tSDP_DISC_REC *p_rec, tBT_UUID * p_uuid);
677 BOOLEAN SDP_FindServiceUUIDInRec(tSDP_DISC_REC *p_rec, tBT_UUID *p_uuid);
/system/bt/bta/gatt/
Dbta_gattc_cache.c202 tBT_UUID *p_uuid, in bta_gattc_add_srvc_to_cache() argument
215 memcpy(&p_new_srvc->uuid, p_uuid, sizeof(tBT_UUID)); in bta_gattc_add_srvc_to_cache()
231 tBT_UUID *p_uuid, in bta_gattc_add_char_to_cache() argument
237 value_handle, p_uuid->uu.uuid16, property); in bta_gattc_add_char_to_cache()
257 memcpy(&characteristic->uuid, p_uuid, sizeof(tBT_UUID)); in bta_gattc_add_char_to_cache()
276 tBT_UUID *p_uuid, in bta_gattc_add_attr_to_cache() argument
284 handle, p_uuid->uu.uuid16, property, type); in bta_gattc_add_attr_to_cache()
298 memcpy(&isvc->uuid, p_uuid, sizeof(tBT_UUID)); in bta_gattc_add_attr_to_cache()
315 memcpy(&descriptor->uuid, p_uuid, sizeof(tBT_UUID)); in bta_gattc_add_attr_to_cache()
982 void bta_gattc_search_service(tBTA_GATTC_CLCB *p_clcb, tBT_UUID *p_uuid) in bta_gattc_search_service() argument
[all …]
Dbta_gattc_int.h481 extern void bta_gattc_search_service(tBTA_GATTC_CLCB *p_clcb, tBT_UUID *p_uuid);
/system/bt/bta/dm/
Dbta_dm_api.c290 p_msg->p_uuid = NULL; in BTA_DmDiscoverUUID()
1201 p_msg->p_uuid = (tBT_UUID *)(p_msg + 1); in bta_dm_discover_send_msg()
1202 memcpy(p_msg->p_uuid, p_services->p_uuid, in bta_dm_discover_send_msg()
1299 p_msg->p_uuid = (tBT_UUID *)(p_msg + 1); in BTA_DmSearchExt()
1300 memcpy(p_msg->p_uuid, p_services->p_uuid, in BTA_DmSearchExt()
1303 p_msg->p_uuid = NULL; in BTA_DmSearchExt()
Dbta_dm_act.c1218 p_data->search.p_uuid != NULL) { in bta_dm_search_start()
1220 memcpy(bta_dm_search_cb.p_srvc_uuid, p_data->search.p_uuid, len); in bta_dm_search_start()
1313 p_data->discover.p_uuid != NULL) { in bta_dm_discover()
1315 memcpy(bta_dm_search_cb.p_srvc_uuid, p_data->discover.p_uuid, len); in bta_dm_discover()
1598 tBT_UUID *p_uuid = bta_dm_search_cb.p_srvc_uuid; in bta_dm_sdp_result() local
1634 if (bta_dm_search_cb.uuid_to_search != 0 && p_uuid != NULL) in bta_dm_sdp_result()
1636 p_uuid += (bta_dm_search_cb.num_uuid - bta_dm_search_cb.uuid_to_search); in bta_dm_sdp_result()
1638 service = p_uuid->uu.uuid16; in bta_dm_sdp_result()
5339 tBT_UUID *p_uuid = bta_dm_search_cb.p_srvc_uuid + in btm_dm_start_disc_gatt_services() local
5342 p_uuid = bta_dm_search_cb.p_srvc_uuid + in btm_dm_start_disc_gatt_services()
[all …]
Dbta_dm_int.h188 tBT_UUID *p_uuid; member
203 tBT_UUID *p_uuid; member
/system/bt/stack/btm/
Dbtm_inq.c144 static UINT16 btm_convert_uuid_to_uuid16( UINT8 *p_uuid, UINT8 uuid_size );
2857 static UINT16 btm_convert_uuid_to_uuid16( UINT8 *p_uuid, UINT8 uuid_size ) in btm_convert_uuid_to_uuid16() argument
2869 STREAM_TO_UINT16 (uuid16, p_uuid); in btm_convert_uuid_to_uuid16()
2872 STREAM_TO_UINT32 (uuid32, p_uuid); in btm_convert_uuid_to_uuid16()
2881 if (p_uuid[xx] != base_uuid[xx]) in btm_convert_uuid_to_uuid16()
2889 if ((p_uuid[LEN_UUID_128 - 1] == 0) && (p_uuid[LEN_UUID_128 - 2] == 0)) in btm_convert_uuid_to_uuid16()
2891 p_uuid += (LEN_UUID_128 - 4); in btm_convert_uuid_to_uuid16()
2892 STREAM_TO_UINT16(uuid16, p_uuid); in btm_convert_uuid_to_uuid16()
/system/bt/stack/gap/
Dgap_ble.c197 BOOLEAN gap_ble_dequeue_request (tGAP_CLCB *p_clcb, UINT16 * p_uuid, tGAP_BLE_CMPL_CBACK **p_cback) in gap_ble_dequeue_request() argument
204 *p_uuid = p_q->uuid; in gap_ble_dequeue_request()
/system/bt/bta/jv/
Dbta_jv_act.c87 extern void uuid_to_string_legacy(bt_uuid_t *p_uuid, char *str);
88 static inline void logu(const char* title, const uint8_t * p_uuid) in logu() argument
91 uuid_to_string_legacy((bt_uuid_t*)p_uuid, uuids); in logu()

12