/system/bt/stack/sdp/ |
D | sdp_db.c | 59 tSDP_RECORD *sdp_db_service_search (tSDP_RECORD *p_rec, tSDP_UUID_SEQ *p_seq) in sdp_db_service_search() argument 66 if (!p_rec) in sdp_db_service_search() 67 p_rec = &sdp_cb.server_db.record[0]; in sdp_db_service_search() 69 p_rec++; in sdp_db_service_search() 73 for ( ; p_rec < p_end; p_rec++) in sdp_db_service_search() 77 p_attr = &p_rec->attribute[0]; in sdp_db_service_search() 78 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++) in sdp_db_service_search() 96 if (xx == p_rec->num_attributes) in sdp_db_service_search() 102 return (p_rec); in sdp_db_service_search() 163 tSDP_RECORD *p_rec; in sdp_db_find_record() local [all …]
|
D | sdp_api.c | 264 tSDP_DISC_REC *p_rec; in SDP_FindAttributeInDb() local 272 p_rec = p_db->p_first_rec; in SDP_FindAttributeInDb() 274 p_rec = p_start_rec->p_next_rec; in SDP_FindAttributeInDb() 276 while (p_rec) in SDP_FindAttributeInDb() 278 p_attr = p_rec->p_first_attr; in SDP_FindAttributeInDb() 282 return(p_rec); in SDP_FindAttributeInDb() 287 p_rec = p_rec->p_next_rec; in SDP_FindAttributeInDb() 305 tSDP_DISC_ATTR *SDP_FindAttributeInRec (tSDP_DISC_REC *p_rec, UINT16 attr_id) in SDP_FindAttributeInRec() argument 310 p_attr = p_rec->p_first_attr; in SDP_FindAttributeInRec() 336 BOOLEAN SDP_FindServiceUUIDInRec(tSDP_DISC_REC *p_rec, tBT_UUID * p_uuid) in SDP_FindServiceUUIDInRec() argument [all …]
|
D | sdp_server.c | 185 tSDP_RECORD *p_rec = NULL; in process_service_search() local 214 p_rec = sdp_db_service_search (p_rec, &uid_seq); in process_service_search() 216 if (p_rec) in process_service_search() 217 rsp_handles[num_rsp_handles++] = p_rec->record_handle; in process_service_search() 325 tSDP_RECORD *p_rec; in process_service_attr_req() local 356 p_rec = sdp_db_find_record (rec_handle); in process_service_attr_req() 357 if (!p_rec) in process_service_attr_req() 400 …p_attr = sdp_db_find_attr_in_rec (p_rec, attr_seq.attr_entry[xx].start, attr_seq.attr_entry[xx].en… in process_service_attr_req() 468 p_ccb->list_len = sdpu_get_attrib_seq_len(p_rec, &attr_seq_sav) + 3; in process_service_attr_req() 554 tSDP_RECORD *p_rec; in process_service_search_attr_req() local [all …]
|
D | sdp_discovery.c | 53 static UINT8 *add_attr (UINT8 *p, tSDP_DISCOVERY_DB *p_db, tSDP_DISC_REC *p_rec, 726 tSDP_DISC_REC *p_rec; in save_attr_seq() local 744 p_rec = add_record (p_ccb->p_db, p_ccb->device_address); in save_attr_seq() 745 if (!p_rec) in save_attr_seq() 766 p = add_attr (p, p_ccb->p_db, p_rec, attr_id, NULL, 0); in save_attr_seq() 790 tSDP_DISC_REC *p_rec; in add_record() local 796 p_rec = (tSDP_DISC_REC *) p_db->p_free_mem; in add_record() 800 p_rec->p_first_attr = NULL; in add_record() 801 p_rec->p_next_rec = NULL; in add_record() 803 memcpy (p_rec->remote_bd_addr, p_bda, BD_ADDR_LEN); in add_record() [all …]
|
D | sdp_utils.c | 853 tSDP_RECORD *p_rec; in sdpu_get_list_len() local 857 …for (p_rec = sdp_db_service_search (NULL, uid_seq); p_rec; p_rec = sdp_db_service_search (p_rec, u… in sdpu_get_list_len() 861 len1 = sdpu_get_attrib_seq_len(p_rec, attr_seq ); in sdpu_get_list_len() 881 UINT16 sdpu_get_attrib_seq_len(tSDP_RECORD *p_rec, tSDP_ATTR_SEQ *attr_seq) in sdpu_get_attrib_seq_len() argument 896 p_attr = sdp_db_find_attr_in_rec (p_rec, in sdpu_get_attrib_seq_len()
|
D | sdpint.h | 292 extern UINT16 sdpu_get_attrib_seq_len(tSDP_RECORD *p_rec, tSDP_ATTR_SEQ *attr_seq); 299 extern tSDP_RECORD *sdp_db_service_search (tSDP_RECORD *p_rec, tSDP_UUID_SEQ *p_seq); 301 extern tSDP_ATTRIBUTE *sdp_db_find_attr_in_rec (tSDP_RECORD *p_rec, UINT16 start_attr, UINT16 end_a…
|
/system/bt/bta/sdp/ |
D | bta_sdp_act.c | 93 static void bta_create_mns_sdp_record(bluetooth_sdp_record *record, tSDP_DISC_REC *p_rec) in bta_create_mns_sdp_record() argument 106 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_MAP_SUPPORTED_FEATURES)) != NULL) in bta_create_mns_sdp_record() 111 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_NAME)) != NULL) in bta_create_mns_sdp_record() 117 if (SDP_FindProfileVersionInRec(p_rec, UUID_SERVCLASS_MAP_PROFILE, &pversion)) in bta_create_mns_sdp_record() 122 if (SDP_FindProtocolListElemInRec(p_rec, UUID_PROTOCOL_RFCOMM, &pe)) in bta_create_mns_sdp_record() 127 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_GOEP_L2CAP_PSM)) != NULL) in bta_create_mns_sdp_record() 133 static void bta_create_mas_sdp_record(bluetooth_sdp_record *record, tSDP_DISC_REC *p_rec) in bta_create_mas_sdp_record() argument 149 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_MAS_INSTANCE_ID)) != NULL) in bta_create_mas_sdp_record() 154 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SUPPORTED_MSG_TYPE)) != NULL) in bta_create_mas_sdp_record() 159 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_MAP_SUPPORTED_FEATURES)) != NULL) in bta_create_mas_sdp_record() [all …]
|
/system/bt/stack/btm/ |
D | btm_ble.c | 1159 tBTM_SEC_DEV_REC *p_rec; in btm_sec_save_le_key() local 1171 if ((p_rec = btm_find_dev (bd_addr)) != NULL && (p_keys || key_type== BTM_LE_KEY_LID)) in btm_sec_save_le_key() 1173 btm_ble_init_pseudo_addr (p_rec, bd_addr); in btm_sec_save_le_key() 1178 memcpy(p_rec->ble.keys.pltk, p_keys->penc_key.ltk, BT_OCTET16_LEN); in btm_sec_save_le_key() 1179 memcpy(p_rec->ble.keys.rand, p_keys->penc_key.rand, BT_OCTET8_LEN); in btm_sec_save_le_key() 1180 p_rec->ble.keys.sec_level = p_keys->penc_key.sec_level; in btm_sec_save_le_key() 1181 p_rec->ble.keys.ediv = p_keys->penc_key.ediv; in btm_sec_save_le_key() 1182 p_rec->ble.keys.key_size = p_keys->penc_key.key_size; in btm_sec_save_le_key() 1183 p_rec->ble.key_type |= BTM_LE_KEY_PENC; in btm_sec_save_le_key() 1184 p_rec->sec_flags |= BTM_SEC_LE_LINK_KEY_KNOWN; in btm_sec_save_le_key() [all …]
|
D | btm_ble_gap.c | 739 static void btm_ble_resolve_random_addr_on_adv(void * p_rec, void *p) in btm_ble_resolve_random_addr_on_adv() argument 741 tBTM_SEC_DEV_REC *match_rec = (tBTM_SEC_DEV_REC *) p_rec; in btm_ble_resolve_random_addr_on_adv()
|
/system/bt/bta/mce/ |
D | bta_mce_act.c | 62 tSDP_DISC_REC *p_rec = NULL; in bta_mce_search_cback() local 83 … p_rec = SDP_FindServiceUUIDInDb(p_bta_mce_cfg->p_sdp_db, (tBT_UUID*) &bta_mce_mas_uuid, p_rec); in bta_mce_search_cback() 85 APPL_TRACE_DEBUG("p_rec:%p", p_rec); in bta_mce_search_cback() 87 if (p_rec == NULL) in bta_mce_search_cback() 90 if (!SDP_FindProtocolListElemInRec(p_rec, UUID_PROTOCOL_RFCOMM, &pe)) in bta_mce_search_cback() 95 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_NAME)) == NULL) in bta_mce_search_cback() 101 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_MAS_INSTANCE_ID)) == NULL) in bta_mce_search_cback() 106 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SUPPORTED_MSG_TYPE)) == NULL) in bta_mce_search_cback() 112 } while (p_rec != NULL && found < BTA_MCE_MAX_MAS_INSTANCES); in bta_mce_search_cback()
|
/system/bt/stack/hid/ |
D | hidh_api.c | 77 void hidh_get_str_attr( tSDP_DISC_REC *p_rec, UINT16 attr_id, UINT16 max_len, char *str ) in hidh_get_str_attr() argument 82 if ((p_attr = SDP_FindAttributeInRec(p_rec, attr_id)) != NULL) in hidh_get_str_attr() 103 tSDP_DISC_REC *p_rec; in hidh_search_callback() local 120 if ((p_rec = SDP_FindServiceUUIDInDb (p_db, &hid_uuid, NULL)) == NULL) in hidh_search_callback() 129 if (((p_attr = SDP_FindAttributeInRec (p_rec, ATTR_ID_HID_DESCRIPTOR_LIST)) == NULL) in hidh_search_callback() 144 if (((p_attr = SDP_FindAttributeInRec (p_rec, ATTR_ID_HID_VIRTUAL_CABLE)) != NULL) && in hidh_search_callback() 150 if (((p_attr = SDP_FindAttributeInRec (p_rec, ATTR_ID_HID_RECONNECT_INITIATE)) != NULL) && in hidh_search_callback() 156 if (((p_attr = SDP_FindAttributeInRec (p_rec, ATTR_ID_HID_NORMALLY_CONNECTABLE)) != NULL) && in hidh_search_callback() 162 if (((p_attr = SDP_FindAttributeInRec (p_rec, ATTR_ID_HID_SDP_DISABLE)) != NULL)&& in hidh_search_callback() 168 if (((p_attr = SDP_FindAttributeInRec (p_rec, ATTR_ID_HID_BATTERY_POWER)) != NULL)&& in hidh_search_callback() [all …]
|
/system/bt/bta/gatt/ |
D | bta_gattc_cache.c | 134 static void bta_gattc_display_explore_record(tBTA_GATTC_ATTR_REC *p_rec, UINT8 num_rec) in bta_gattc_display_explore_record() argument 137 tBTA_GATTC_ATTR_REC *pp = p_rec; in bta_gattc_display_explore_record() 343 tBTA_GATTC_ATTR_REC *p_rec = NULL; in bta_gattc_get_disc_range() local 347 p_rec = p_srvc_cb->p_srvc_list + p_srvc_cb->cur_srvc_idx; in bta_gattc_get_disc_range() 348 *p_s_hdl = p_rec->s_handle; in bta_gattc_get_disc_range() 352 p_rec = p_srvc_cb->p_srvc_list + p_srvc_cb->cur_char_idx; in bta_gattc_get_disc_range() 353 *p_s_hdl = p_rec->s_handle + 1; in bta_gattc_get_disc_range() 356 *p_e_hdl = p_rec->e_handle; in bta_gattc_get_disc_range() 358 APPL_TRACE_DEBUG("discover range [%d ~ %d]",p_rec->s_handle, p_rec->e_handle); in bta_gattc_get_disc_range() 480 tBTA_GATTC_ATTR_REC *p_rec = p_srvc_cb->p_srvc_list + p_srvc_cb->cur_srvc_idx; in bta_gattc_explore_srvc() local [all …]
|
/system/bt/bta/hf_client/ |
D | bta_hf_client_sdp.c | 219 tSDP_DISC_REC *p_rec = NULL; in bta_hf_client_sdp_find_attr() local 230 …if ((p_rec = SDP_FindServiceInDb(bta_hf_client_cb.scb.p_disc_db, UUID_SERVCLASS_AG_HANDSFREE, p_re… in bta_hf_client_sdp_find_attr() 238 if (SDP_FindProtocolListElemInRec(p_rec, UUID_PROTOCOL_RFCOMM, &pe)) in bta_hf_client_sdp_find_attr() 249 …SDP_FindProfileVersionInRec(p_rec, UUID_SERVCLASS_HF_HANDSFREE, &bta_hf_client_cb.scb.peer_version… in bta_hf_client_sdp_find_attr() 252 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SUPPORTED_FEATURES)) != NULL) in bta_hf_client_sdp_find_attr() 269 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_NETWORK)) != NULL) in bta_hf_client_sdp_find_attr()
|
/system/bt/stack/a2dp/ |
D | a2d_api.c | 57 tSDP_DISC_REC *p_rec = NULL; in a2d_sdp_cback() local 71 if ((p_rec = SDP_FindServiceInDb(a2d_cb.find.p_db, in a2d_sdp_cback() 72 a2d_cb.find.service_uuid, p_rec)) == NULL) in a2d_sdp_cback() 79 if ((p_attr = SDP_FindAttributeInRec(p_rec, in a2d_sdp_cback() 87 if ((p_attr = SDP_FindAttributeInRec(p_rec, in a2d_sdp_cback() 95 if ((p_attr = SDP_FindAttributeInRec(p_rec, in a2d_sdp_cback() 102 if (SDP_FindProtocolListElemInRec(p_rec, UUID_PROTOCOL_AVDTP, &elem)) in a2d_sdp_cback()
|
/system/bt/bta/ag/ |
D | bta_ag_sdp.c | 307 tSDP_DISC_REC *p_rec = NULL; in bta_ag_sdp_find_attr() local 332 if ((p_rec = SDP_FindServiceInDb(p_scb->p_disc_db, uuid, p_rec)) == NULL) in bta_ag_sdp_find_attr() 338 if ((p_rec = SDP_FindServiceInDb(p_scb->p_disc_db, uuid, p_rec)) == NULL) in bta_ag_sdp_find_attr() 350 if (SDP_FindProtocolListElemInRec(p_rec, UUID_PROTOCOL_RFCOMM, &pe)) in bta_ag_sdp_find_attr() 361 SDP_FindProfileVersionInRec(p_rec, uuid, &p_scb->peer_version); in bta_ag_sdp_find_attr() 366 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SUPPORTED_FEATURES)) != NULL) in bta_ag_sdp_find_attr() 377 … if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_REMOTE_AUDIO_VOLUME_CONTROL)) != NULL) in bta_ag_sdp_find_attr()
|
/system/bt/stack/include/ |
D | sdp_api.h | 285 tSDP_DISC_ATTR *SDP_FindAttributeInRec (tSDP_DISC_REC *p_rec, 339 BOOLEAN SDP_FindServiceUUIDInRec_128bit(tSDP_DISC_REC *p_rec, tBT_UUID * p_uuid); 367 BOOLEAN SDP_FindProtocolListElemInRec (tSDP_DISC_REC *p_rec, 383 BOOLEAN SDP_FindAddProtoListsElemInRec (tSDP_DISC_REC *p_rec, 402 BOOLEAN SDP_FindProfileVersionInRec (tSDP_DISC_REC *p_rec, 677 BOOLEAN SDP_FindServiceUUIDInRec(tSDP_DISC_REC *p_rec, tBT_UUID *p_uuid);
|
/system/bt/bta/hl/ |
D | bta_hl_sdp.c | 582 tSDP_DISC_REC *p_rec; in bta_hl_find_sink_or_src_srv_class_in_db() local 593 p_rec = p_db->p_first_rec; in bta_hl_find_sink_or_src_srv_class_in_db() 597 p_rec = p_start_rec->p_next_rec; in bta_hl_find_sink_or_src_srv_class_in_db() 600 while (p_rec) in bta_hl_find_sink_or_src_srv_class_in_db() 602 p_attr = p_rec->p_first_attr; in bta_hl_find_sink_or_src_srv_class_in_db() 615 return(p_rec); in bta_hl_find_sink_or_src_srv_class_in_db() 624 p_rec = p_rec->p_next_rec; in bta_hl_find_sink_or_src_srv_class_in_db()
|
D | bta_hl_utils.c | 102 tBTA_HL_SDP_REC *p_rec; in bta_hl_find_sdp_idx_using_ctrl_psm() local 109 p_rec = &p_sdp->sdp_rec[i]; in bta_hl_find_sdp_idx_using_ctrl_psm() 110 if (p_rec->ctrl_psm == ctrl_psm) in bta_hl_find_sdp_idx_using_ctrl_psm() 1837 tBTA_HL_SDP_REC *p_rec; in bta_hl_validate_peer_cfg() local 1849 p_rec = &p_mcb->sdp.sdp_rec[sdp_idx]; in bta_hl_validate_peer_cfg() 1850 for (i=0; i< p_rec->num_mdeps; i++) in bta_hl_validate_peer_cfg() 1852 APPL_TRACE_DEBUG("mdep_id %d peer_mdep_id %d",p_rec->mdep_cfg[i].mdep_id , peer_mdep_id); in bta_hl_validate_peer_cfg() 1853 APPL_TRACE_DEBUG("mdep_role %d peer_mdep_role %d",p_rec->mdep_cfg[i].mdep_role, in bta_hl_validate_peer_cfg() 1855 if ( (p_rec->mdep_cfg[i].mdep_id == peer_mdep_id) && in bta_hl_validate_peer_cfg() 1856 (p_rec->mdep_cfg[i].mdep_role == peer_mdep_role)) in bta_hl_validate_peer_cfg() [all …]
|
D | bta_hl_act.c | 1688 tSDP_DISC_REC *p_rec = NULL; in bta_hl_sdp_cback() local 1712 if (bta_hl_find_service_in_db(app_idx, mcl_idx, service_uuid, &p_rec)) in bta_hl_sdp_cback() 1722 if (SDP_FindProtocolListElemInRec(p_rec, UUID_PROTOCOL_L2CAP, &pe)) in bta_hl_sdp_cback() 1731 if (SDP_FindAddProtoListsElemInRec(p_rec, UUID_PROTOCOL_L2CAP, &pe)) in bta_hl_sdp_cback() 1742 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_NAME)) != NULL) in bta_hl_sdp_cback() 1752 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_DESCRIPTION)) != NULL) in bta_hl_sdp_cback() 1763 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_PROVIDER_NAME)) != NULL) in bta_hl_sdp_cback() 1772 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_HDP_MCAP_SUP_PROC))!=NULL) in bta_hl_sdp_cback() 1782 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_HDP_SUP_FEAT_LIST ))!=NULL) in bta_hl_sdp_cback()
|
/system/bt/bta/av/ |
D | bta_av_act.c | 1667 tSDP_DISC_REC *p_rec = NULL; in bta_av_check_peer_features() local 1677 if ((p_rec = SDP_FindServiceInDb(p_cb->p_disc_db, service_uuid, p_rec)) == NULL) in bta_av_check_peer_features() 1682 if (( SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_CLASS_ID_LIST)) != NULL) in bta_av_check_peer_features() 1695 if (( SDP_FindAttributeInRec(p_rec, ATTR_ID_BT_PROFILE_DESC_LIST)) != NULL) in bta_av_check_peer_features() 1698 SDP_FindProfileVersionInRec(p_rec, UUID_SERVCLASS_AV_REMOTE_CONTROL, in bta_av_check_peer_features() 1709 if ((p_attr = SDP_FindAttributeInRec(p_rec, in bta_av_check_peer_features() 1741 tSDP_DISC_REC *p_rec = SDP_FindServiceInDb(p_cb->p_disc_db, service_uuid, NULL); in bta_avk_check_peer_features() local 1742 while (p_rec) in bta_avk_check_peer_features() 1746 if (( SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_CLASS_ID_LIST)) != NULL) in bta_avk_check_peer_features() 1759 if (( SDP_FindAttributeInRec(p_rec, ATTR_ID_BT_PROFILE_DESC_LIST)) != NULL) in bta_avk_check_peer_features() [all …]
|
/system/bt/btif/src/ |
D | btif_hl.c | 1089 tBTA_HL_SDP_REC *p_rec; in btif_hl_find_peer_mdep_id() local 1120 p_rec = &p_mcb->sdp.sdp_rec[p_mcb->sdp_idx]; in btif_hl_find_peer_mdep_id() 1121 num_mdeps = p_rec->num_mdeps; in btif_hl_find_peer_mdep_id() 1126 … BTIF_TRACE_DEBUG("p_rec->mdep_cfg[%d].mdep_role=%d",i, p_rec->mdep_cfg[i].mdep_role); in btif_hl_find_peer_mdep_id() 1127 … BTIF_TRACE_DEBUG("p_rec->mdep_cfg[%d].data_type =%d",i, p_rec->mdep_cfg[i].data_type ); in btif_hl_find_peer_mdep_id() 1128 if ((p_rec->mdep_cfg[i].mdep_role == peer_mdep_role) && in btif_hl_find_peer_mdep_id() 1129 (p_rec->mdep_cfg[i].data_type == data_type)) in btif_hl_find_peer_mdep_id() 1132 *p_peer_mdep_id = p_rec->mdep_cfg[i].mdep_id; in btif_hl_find_peer_mdep_id()
|