Home
last modified time | relevance | path

Searched refs:uuid16 (Results 1 – 25 of 50) sorted by relevance

12

/system/bt/stack/pan/
Dpan_main.c128 … remote_uuid->uu.uuid16 = (UINT16)((remote_uuid->uu.uuid128[2] << 8) | remote_uuid->uu.uuid128[3]); in pan_conn_ind_cb()
137 remote_uuid->uu.uuid16 = (UINT16)remote_uuid->uu.uuid32; in pan_conn_ind_cb()
162 … local_uuid->uu.uuid16 = (UINT16)((local_uuid->uu.uuid128[2] << 8) | local_uuid->uu.uuid128[3]); in pan_conn_ind_cb()
171 local_uuid->uu.uuid16 = (UINT16)local_uuid->uu.uuid32; in pan_conn_ind_cb()
183 … handle, pan_cb.role, local_uuid->uu.uuid16, remote_uuid->uu.uuid16, is_role_change?"YES":"NO"); in pan_conn_ind_cb()
193 if (remote_uuid->uu.uuid16 != UUID_SERVCLASS_PANU && in pan_conn_ind_cb()
194 remote_uuid->uu.uuid16 != UUID_SERVCLASS_NAP && in pan_conn_ind_cb()
195 remote_uuid->uu.uuid16 != UUID_SERVCLASS_GN) in pan_conn_ind_cb()
197 PAN_TRACE_ERROR ("Src UUID 0x%x is not valid", remote_uuid->uu.uuid16); in pan_conn_ind_cb()
203 if (local_uuid->uu.uuid16 != UUID_SERVCLASS_PANU && in pan_conn_ind_cb()
[all …]
Dpan_api.c330 src_uuid.uu.uuid16 = UUID_SERVCLASS_PANU; in PAN_Connect()
333 dst_uuid.uu.uuid16 = UUID_SERVCLASS_PANU; in PAN_Connect()
337 dst_uuid.uu.uuid16 = UUID_SERVCLASS_GN; in PAN_Connect()
341 dst_uuid.uu.uuid16 = UUID_SERVCLASS_NAP; in PAN_Connect()
343 mx_chan_id = dst_uuid.uu.uuid16; in PAN_Connect()
354 dst_uuid.uu.uuid16 = UUID_SERVCLASS_PANU; in PAN_Connect()
357 src_uuid.uu.uuid16 = UUID_SERVCLASS_GN; in PAN_Connect()
361 src_uuid.uu.uuid16 = UUID_SERVCLASS_NAP; in PAN_Connect()
363 mx_chan_id = src_uuid.uu.uuid16; in PAN_Connect()
401 pcb->src_uuid = src_uuid.uu.uuid16; in PAN_Connect()
[all …]
/system/bt/stack/gatt/
Dgatt_db.c216 UINT16 len = 0, uuid16 = 0; in read_attr_value() local
234 uuid16 = p_attr16->uuid; in read_attr_value()
238 if (uuid16 == GATT_UUID_PRI_SERVICE || uuid16 == GATT_UUID_SEC_SERVICE) in read_attr_value()
247 else if (uuid16 == GATT_UUID_CHAR_DECLARE) in read_attr_value()
274 else if (uuid16 == GATT_UUID_INCLUDE_SERVICE) in read_attr_value()
288 UINT16_TO_STREAM(p, p_attr16->p_value->incl_handle.service_type.uu.uuid16); in read_attr_value()
349 attr_uuid.uu.uuid16 = p_attr->uuid; in gatts_db_read_attr_value_by_type()
413 (type.uu.uuid16 == GATT_UUID_GAP_DEVICE_NAME)) in gatts_db_read_attr_value_by_type()
447 s_handle, e_handle, service.uu.uuid16); in gatts_add_included_service()
541 std_descr.uu.uuid16 ++; in gatt_convertchar_descr_type()
[all …]
Dgatt_attr.c286 uuid.uu.uuid16 = gatt_cb.gattp_attr.uuid = GATT_UUID_GATT_SRV_CHGD; in gatt_profile_db_init()
331 if (p_data->type.uu.uuid16 == GATT_UUID_CHAR_CLIENT_CONFIG) in gatt_disc_res_cback()
409 srvc_disc_param.service.uu.uuid16 = UUID_SERVCLASS_GATT_SERVER; in gatt_cl_start_config_ccc()
417 srvc_disc_param.service.uu.uuid16 = GATT_UUID_GATT_SRV_CHGD; in gatt_cl_start_config_ccc()
Dgatt_cl.c97 cl_req.browse.uuid.uu.uuid16 = disc_type_to_uuid[p_clcb->op_subtype]; in gatt_act_discovery()
103 cl_req.find_type_value.uuid.uu.uuid16 = disc_type_to_uuid[p_clcb->op_subtype]; in gatt_act_discovery()
158 msg.browse.uuid.uu.uuid16 = GATT_UUID_CHAR_DECLARE; in gatt_act_read()
428 result.type.uu.uuid16 = GATT_UUID_PRI_SERVICE; in gatt_process_find_type_value_rsp()
802 result.type.uu.uuid16 = disc_type_to_uuid[p_clcb->op_subtype]; in gatt_process_read_by_type_rsp()
841 STREAM_TO_UINT16(record_value.incl_service.service_type.uu.uuid16, p); in gatt_process_read_by_type_rsp()
/system/bt/btcore/test/
Duuid_test.cpp111 uint16_t uuid16 = 0xffff; in TEST_F() local
114 EXPECT_FALSE(uuid_128_to_16(uuid, &uuid16)); in TEST_F()
116 EXPECT_EQ((uint16_t)0xffff, uuid16); in TEST_F()
119 EXPECT_TRUE(uuid_128_to_16(uuid, &uuid16)); in TEST_F()
121 EXPECT_NE((uint16_t)0xffff, uuid16); in TEST_F()
122 EXPECT_EQ((uint16_t)0, uuid16); in TEST_F()
/system/bt/btif/src/
Dbtif_gatt_util.c93 p_dest->uu.uuid16 = (p_src->uu[13] << 8) + p_src->uu[12]; in btif_to_bta_uuid()
167 p_dest->uu[12] = p_src->uu.uuid16 & 0xff; in bta_to_btif_uuid()
168 p_dest->uu[13] = (p_src->uu.uuid16 >> 8) & 0xff; in bta_to_btif_uuid()
172 p_dest->uu[12] = p_src->uu.uuid16 & 0xff; in bta_to_btif_uuid()
173 p_dest->uu[13] = (p_src->uu.uuid16 >> 8) & 0xff; in bta_to_btif_uuid()
197 return p_uuid->uu.uuid16; in get_uuid16()
/system/bt/bta/gatt/
Dbta_gatts_utils.c206 return src.uu.uuid16 == tar.uu.uuid16; in bta_gatts_uuid_compare()
213 bta_gatt_convert_uuid16_to_uuid128(su, src.uu.uuid16); in bta_gatts_uuid_compare()
222 bta_gatt_convert_uuid16_to_uuid128(tu, tar.uu.uuid16); in bta_gatts_uuid_compare()
Dbta_gattc_cache.c88 p_attr->handle, p_attr->uuid.uu.uuid16, in display_cache_attribute()
98 p_cur_srvc->uuid.uu.uuid16, in display_cache_service()
143 i + 1, pp->uuid.uu.uuid16, pp->s_handle, pp->e_handle, pp->is_primary); in bta_gattc_display_explore_record()
237 value_handle, p_uuid->uu.uuid16, property); in bta_gattc_add_char_to_cache()
284 handle, p_uuid->uu.uuid16, property, type); in bta_gattc_add_attr_to_cache()
658 __func__, s_handle, uuid.uu.uuid16); in bta_gattc_add_srvc_to_list()
764 service_uuid.uu.uuid16, start_handle, end_handle); in bta_gattc_sdp_callback()
822 uuid.uu.uuid16 = UUID_PROTOCOL_ATT; in bta_gattc_sdp_service_disc()
998 p_cache->uuid.uu.uuid16, in bta_gattc_search_service()
Dbta_gattc_utils.c92 return p_src->uu.uuid16 == p_tar->uu.uuid16; in bta_gattc_uuid_compare()
99 bta_gatt_convert_uuid16_to_uuid128(su, p_src->uu.uuid16); in bta_gattc_uuid_compare()
108 bta_gatt_convert_uuid16_to_uuid128(tu, p_tar->uu.uuid16); in bta_gattc_uuid_compare()
/system/bt/bta/hh/
Dbta_hh_le.c668 p_desc->uuid.uu.uuid16 == short_uuid) in find_descriptor_by_short_uuid()
1108 pri_srvc.uu.uuid16 = UUID_SERVCLASS_LE_HID; in bta_hh_le_pri_service_discovery()
1418 if (incl_svc->uuid.uu.uuid16 == UUID_SERVCLASS_BATTERY && in process_included()
1427 if (p_char->uuid.uu.uuid16 == GATT_UUID_BATTERY_LEVEL && in process_included()
1467 LOG_DEBUG(LOG_TAG, "%s: %s 0x%04d", __func__, bta_hh_uuid_to_str(p_char->uuid.uu.uuid16), in bta_hh_le_search_hid_chars()
1468 p_char->uuid.uu.uuid16); in bta_hh_le_search_hid_chars()
1470 switch (p_char->uuid.uu.uuid16) in bta_hh_le_search_hid_chars()
1506 p_char->uuid.uu.uuid16, in bta_hh_le_search_hid_chars()
1514 bta_hh_uuid_to_str(p_char->uuid.uu.uuid16), in bta_hh_le_search_hid_chars()
1515 p_char->uuid.uu.uuid16); in bta_hh_le_search_hid_chars()
[all …]
/system/bt/btcore/src/
Duuid.c106 bool uuid_128_to_16(const bt_uuid_t *uuid, uint16_t *uuid16) { in uuid_128_to_16() argument
108 assert(uuid16 != NULL); in uuid_128_to_16()
113 *uuid16 = (uuid->uu[2] << 8) + uuid->uu[3]; in uuid_128_to_16()
/system/bt/stack/srvc/
Dsrvc_battery.c233 uuid.uu.uuid16 = GATT_UUID_BATTERY_LEVEL; in Battery_Instantiate()
250 uuid.uu.uuid16 = GATT_UUID_CHAR_CLIENT_CONFIG; in Battery_Instantiate()
262 uuid.uu.uuid16 = GATT_UUID_CHAR_PRESENT_FORMAT; in Battery_Instantiate()
275 uuid.uu.uuid16 = GATT_UUID_RPT_REF_DESCR; in Battery_Instantiate()
293 uuid.uu.uuid16 = UUID_SERVCLASS_BATTERY; in Battery_Instantiate()
Dsrvc_dis.c243 param.service.uuid.uu.uuid16 = dis_attr_uuid[dis_cb.dis_read_uuid_idx]; in dis_gatt_c_read_dis_req()
248 … GATT_TRACE_ERROR ("Read DISInfo: 0x%04x GATT_Read Failed", param.service.uuid.uu.uuid16); in dis_gatt_c_read_dis_req()
371 uuid.uu.uuid16 = p_db_attr->uuid = dis_attr_uuid[i]; in DIS_SrInit()
373 …GATT_TRACE_DEBUG ("DIS_SrInit: handle of new attribute 0x%04 = x%d", uuid.uu.uuid16, p_db_attr->h… in DIS_SrInit()
/system/bt/stack/btm/
Dbtm_inq.c140 static UINT8 btm_convert_uuid_to_eir_service( UINT16 uuid16 );
2561 static UINT8 btm_convert_uuid_to_eir_service( UINT16 uuid16 ) in btm_convert_uuid_to_eir_service() argument
2567 if( uuid16 == BTM_EIR_UUID_LKUP_TBL[xx]) in btm_convert_uuid_to_eir_service()
2588 BOOLEAN BTM_HasEirService( UINT32 *p_eir_uuid, UINT16 uuid16 ) in BTM_HasEirService() argument
2592 service_id = btm_convert_uuid_to_eir_service(uuid16); in BTM_HasEirService()
2613 tBTM_EIR_SEARCH_RESULT BTM_HasInquiryEirService( tBTM_INQ_RESULTS *p_results, UINT16 uuid16 ) in BTM_HasInquiryEirService() argument
2615 if( BTM_HasEirService( p_results->eir_uuid, uuid16 )) in BTM_HasInquiryEirService()
2639 void BTM_AddEirService( UINT32 *p_eir_uuid, UINT16 uuid16 ) in BTM_AddEirService() argument
2643 service_id = btm_convert_uuid_to_eir_service(uuid16); in BTM_AddEirService()
2660 void BTM_RemoveEirService( UINT32 *p_eir_uuid, UINT16 uuid16 ) in BTM_RemoveEirService() argument
[all …]
/system/bt/bta/sys/
Dbta_sys_conn.c555 void bta_sys_add_uuid(UINT16 uuid16) in bta_sys_add_uuid() argument
559 bta_sys_cb.eir_cb(uuid16, TRUE ); in bta_sys_add_uuid()
573 void bta_sys_remove_uuid(UINT16 uuid16) in bta_sys_remove_uuid() argument
577 bta_sys_cb.eir_cb(uuid16, FALSE); in bta_sys_remove_uuid()
Dbta_sys.h148 typedef void (tBTA_SYS_EIR_CBACK)(UINT16 uuid16, BOOLEAN adding);
269 extern void bta_sys_add_uuid(UINT16 uuid16);
270 extern void bta_sys_remove_uuid(UINT16 uuid16);
/system/bt/stack/bnep/
Dbnep_utils.c184 __func__, p_bcb->dst_uuid.uu.uuid16); in bnep_send_conn_req()
199 UINT16_TO_BE_STREAM (p, p_bcb->dst_uuid.uu.uuid16); in bnep_send_conn_req()
200 UINT16_TO_BE_STREAM (p, p_bcb->src_uuid.uu.uuid16); in bnep_send_conn_req()
217 __func__, p_bcb->dst_uuid.uu.uuid16, p_bcb->dst_uuid.len); in bnep_send_conn_req()
606 BE_STREAM_TO_UINT16 (p_bcb->src_uuid.uu.uuid16, p_setup); in bnep_process_setup_conn_req()
607 BE_STREAM_TO_UINT16 (p_bcb->dst_uuid.uu.uuid16, p_setup); in bnep_process_setup_conn_req()
611 p_bcb->src_uuid.uu.uuid16 == p_bcb->prv_src_uuid.uu.uuid16 && in bnep_process_setup_conn_req()
612 p_bcb->dst_uuid.uu.uuid16 == p_bcb->prv_dst_uuid.uu.uuid16) in bnep_process_setup_conn_req()
640 …VENT ("BNEP initiating security check for incoming call for uuid 0x%x", p_bcb->src_uuid.uu.uuid16); in bnep_process_setup_conn_req()
1363 return ((UINT32)src_uuid->uu.uuid16); in bnep_get_uuid32()
/system/bt/bta/ag/
Dbta_ag_sdp.c421 uuid_list[0].uu.uuid16 = UUID_SERVCLASS_HF_HANDSFREE; in bta_ag_do_disc()
430 uuid_list[0].uu.uuid16 = UUID_SERVCLASS_HF_HANDSFREE; in bta_ag_do_disc()
441 uuid_list[0].uu.uuid16 = UUID_SERVCLASS_HEADSET; /* Legacy from HSP v1.0 */ in bta_ag_do_disc()
444 uuid_list[1].uu.uuid16 = UUID_SERVCLASS_HEADSET_HS; in bta_ag_do_disc()
/system/bt/btcore/include/
Duuid.h74 bool uuid_128_to_16(const bt_uuid_t *uuid, uint16_t *uuid16);
/system/bt/btif/include/
Dbtif_util.h66 void uuid16_to_uuid128(uint16_t uuid16, bt_uuid_t* uuid128);
/system/bt/stack/sdp/
Dsdp_utils.c745 return (p_uuid1->uu.uuid16 == p_uuid2->uu.uuid16); in sdpu_compare_bt_uuids()
781 return (BOOLEAN)(p_btuuid->uu.uuid16 == p_attr->attr_value.v.u16); in sdpu_compare_uuid_with_attr()
1035 void sdpu_uuid16_to_uuid128(UINT16 uuid16, UINT8* p_uuid128) in sdpu_uuid16_to_uuid128() argument
1041 uuid16_bo = ntohs(uuid16); in sdpu_uuid16_to_uuid128()
/system/bt/stack/gap/
Dgap_ble.c404 uuid.uu.uuid16 = p_db_attr->uuid = GATT_UUID_GAP_DEVICE_NAME; in gap_attr_db_init()
410 uuid.uu.uuid16 = p_db_attr->uuid = GATT_UUID_GAP_ICON; in gap_attr_db_init()
420 uuid.uu.uuid16 = p_db_attr->uuid = GATT_UUID_GAP_PREF_CONN_PARAM; in gap_attr_db_init()
434 uuid.uu.uuid16 = p_db_attr->uuid = GATT_UUID_GAP_CENTRAL_ADDR_RESOL; in gap_attr_db_init()
521 param.service.uuid.uu.uuid16 = uuid; in gap_ble_send_cl_read_request()
/system/bt/bta/hf_client/
Dbta_hf_client_sdp.c317 uuid_list[0].uu.uuid16 = UUID_SERVCLASS_AG_HANDSFREE; in bta_hf_client_do_disc()
326 uuid_list[0].uu.uuid16 = UUID_SERVCLASS_AG_HANDSFREE; in bta_hf_client_do_disc()
/system/bt/bta/mce/
Dbta_mce_act.c47 .uu.uuid16 = UUID_SERVCLASS_MESSAGE_ACCESS

12