/system/bt/bta/mce/ |
bta_mce_act.c | 62 tSDP_DISC_REC *p_rec = NULL; local 83 p_rec = SDP_FindServiceUUIDInDb(p_bta_mce_cfg->p_sdp_db, (tBT_UUID*) &bta_mce_mas_uuid, p_rec); 85 APPL_TRACE_DEBUG("p_rec:%p", p_rec); 87 if (p_rec == NULL) 90 if (!SDP_FindProtocolListElemInRec(p_rec, UUID_PROTOCOL_RFCOMM, &pe)) 95 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_NAME)) == NULL) 101 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_MAS_INSTANCE_ID)) == NULL) 106 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SUPPORTED_MSG_TYPE)) == NULL [all...] |
/system/bt/bta/hf_client/ |
bta_hf_client_sdp.c | 219 tSDP_DISC_REC *p_rec = NULL; local 230 if ((p_rec = SDP_FindServiceInDb(bta_hf_client_cb.scb.p_disc_db, UUID_SERVCLASS_AG_HANDSFREE, p_rec)) == NULL) 238 if (SDP_FindProtocolListElemInRec(p_rec, UUID_PROTOCOL_RFCOMM, &pe)) 249 SDP_FindProfileVersionInRec(p_rec, UUID_SERVCLASS_HF_HANDSFREE, &bta_hf_client_cb.scb.peer_version); 252 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SUPPORTED_FEATURES)) != NULL) 269 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_NETWORK)) != NULL)
|
/system/bt/stack/a2dp/ |
a2d_api.c | 57 tSDP_DISC_REC *p_rec = NULL; local 71 if ((p_rec = SDP_FindServiceInDb(a2d_cb.find.p_db, 72 a2d_cb.find.service_uuid, p_rec)) == NULL) 79 if ((p_attr = SDP_FindAttributeInRec(p_rec, 87 if ((p_attr = SDP_FindAttributeInRec(p_rec, 95 if ((p_attr = SDP_FindAttributeInRec(p_rec, 102 if (SDP_FindProtocolListElemInRec(p_rec, UUID_PROTOCOL_AVDTP, &elem))
|
/external/libnfc-nci/src/nfa/dm/ |
nfa_dm_ndef.c | 369 UINT8 *p_rec, *p_ndef_start, *p_type, *p_payload, *p_rec_end; local 425 p_rec = p_ndef_start = p_msg_buf; 428 while (p_rec != NULL) 431 p_type = NDEF_RecGetType (p_rec, &tnf, &type_len); 437 p_payload = NDEF_RecGetPayload (p_rec, &payload_len); 463 ndef_data.p_data = p_rec; /* Start of record */ 467 ndef_data.len = payload_len + (UINT32) (p_payload - p_rec); 471 p_rec_end = p_rec; 496 ndef_data.len = (UINT32) (p_rec_end - p_rec); 531 p_rec = NDEF_MsgGetNextRec (p_rec) [all...] |
/external/libnfc-nci/src/nfc/ndef/ |
ndef_cho_utils.c | 171 UINT8 *p_rec, *p; local 191 p_rec = NDEF_MsgGetLastRecInMsg (p_msg); 194 p = NDEF_RecGetPayload (p_rec, &payload_len); 333 UINT8 *p_rec; local 340 p_rec = ndef_get_bt_oob_record (p_msg, max_size, p_cur_size, p_id_str); 342 if (!p_rec) 354 p_rec, eir_data, eir_data_len); 360 p = NDEF_RecGetPayload (p_rec, &oob_data_len); 382 UINT8 *p_rec; local 389 p_rec = ndef_get_bt_oob_record (p_msg, max_size, p_cur_size, p_id_str) 438 UINT8 *p_rec; local 492 UINT8 *p_rec; local 567 UINT8 *p_rec, *p_type; local [all...] |
ndef_utils.c | 81 UINT8 *p_rec = p_msg; local 99 for (count = 0; p_rec < p_end; count++) 102 if (p_rec + 3 > p_end) 105 rec_hdr = *p_rec++; 112 type_len = *p_rec++; 116 payload_len = *p_rec++; 120 if (p_rec + 4 > p_end) 123 BE_STREAM_TO_UINT32 (payload_len, p_rec); 130 if (p_rec + 1 > p_end) 133 id_len = *p_rec++ 222 UINT8 *p_rec = p_msg; local 366 UINT8 *p_rec = p_msg; local 417 UINT8 *p_rec = p_msg; local 465 UINT8 *p_rec = p_msg; local 522 UINT8 *p_rec; local 584 UINT8 *p_rec = p_msg; local 641 UINT8 *p_rec; local 841 UINT8 *p_rec = p_msg + *p_cur_size; local 937 UINT8 *p_rec; local 1030 UINT8 *p_rec; local 1453 UINT8 *p_rec = NDEF_MsgGetRecByIndex (p_msg, index); local 1521 UINT8 *p_rec; local [all...] |
/system/bt/bta/hl/ |
bta_hl_sdp.c | 582 tSDP_DISC_REC *p_rec; local 593 p_rec = p_db->p_first_rec; 597 p_rec = p_start_rec->p_next_rec; 600 while (p_rec) 602 p_attr = p_rec->p_first_attr; 615 return(p_rec); 624 p_rec = p_rec->p_next_rec;
|
bta_hl_act.c | 1688 tSDP_DISC_REC *p_rec = NULL; local [all...] |
bta_hl_utils.c | 102 tBTA_HL_SDP_REC *p_rec; local 109 p_rec = &p_sdp->sdp_rec[i]; 110 if (p_rec->ctrl_psm == ctrl_psm) 1837 tBTA_HL_SDP_REC *p_rec; local [all...] |
/system/bt/bta/sdp/ |
bta_sdp_act.c | 93 static void bta_create_mns_sdp_record(bluetooth_sdp_record *record, tSDP_DISC_REC *p_rec) 106 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_MAP_SUPPORTED_FEATURES)) != NULL) 111 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_NAME)) != NULL) 117 if (SDP_FindProfileVersionInRec(p_rec, UUID_SERVCLASS_MAP_PROFILE, &pversion)) 122 if (SDP_FindProtocolListElemInRec(p_rec, UUID_PROTOCOL_RFCOMM, &pe)) 127 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_GOEP_L2CAP_PSM)) != NULL) 133 static void bta_create_mas_sdp_record(bluetooth_sdp_record *record, tSDP_DISC_REC *p_rec) 149 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_MAS_INSTANCE_ID)) != NULL) 154 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SUPPORTED_MSG_TYPE)) != NULL) 159 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_MAP_SUPPORTED_FEATURES)) != NULL 383 tSDP_DISC_REC *p_rec = NULL; local [all...] |
/system/bt/stack/hid/ |
hidh_api.c | 77 void hidh_get_str_attr( tSDP_DISC_REC *p_rec, UINT16 attr_id, UINT16 max_len, char *str ) 82 if ((p_attr = SDP_FindAttributeInRec(p_rec, attr_id)) != NULL) 103 tSDP_DISC_REC *p_rec; local 120 if ((p_rec = SDP_FindServiceUUIDInDb (p_db, &hid_uuid, NULL)) == NULL) 129 if (((p_attr = SDP_FindAttributeInRec (p_rec, ATTR_ID_HID_DESCRIPTOR_LIST)) == NULL) 144 if (((p_attr = SDP_FindAttributeInRec (p_rec, ATTR_ID_HID_VIRTUAL_CABLE)) != NULL) && 150 if (((p_attr = SDP_FindAttributeInRec (p_rec, ATTR_ID_HID_RECONNECT_INITIATE)) != NULL) && 156 if (((p_attr = SDP_FindAttributeInRec (p_rec, ATTR_ID_HID_NORMALLY_CONNECTABLE)) != NULL) && 162 if (((p_attr = SDP_FindAttributeInRec (p_rec, ATTR_ID_HID_SDP_DISABLE)) != NULL)&& 168 if (((p_attr = SDP_FindAttributeInRec (p_rec, ATTR_ID_HID_BATTERY_POWER)) != NULL)& [all...] |
/system/bt/bta/ag/ |
bta_ag_sdp.c | 307 tSDP_DISC_REC *p_rec = NULL; local 332 if ((p_rec = SDP_FindServiceInDb(p_scb->p_disc_db, uuid, p_rec)) == NULL) 338 if ((p_rec = SDP_FindServiceInDb(p_scb->p_disc_db, uuid, p_rec)) == NULL) 350 if (SDP_FindProtocolListElemInRec(p_rec, UUID_PROTOCOL_RFCOMM, &pe)) 361 SDP_FindProfileVersionInRec(p_rec, uuid, &p_scb->peer_version); 366 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SUPPORTED_FEATURES)) != NULL) 377 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_REMOTE_AUDIO_VOLUME_CONTROL)) != NULL)
|
/system/bt/stack/sdp/ |
sdp_api.c | 264 tSDP_DISC_REC *p_rec; local 272 p_rec = p_db->p_first_rec; 274 p_rec = p_start_rec->p_next_rec; 276 while (p_rec) 278 p_attr = p_rec->p_first_attr; 282 return(p_rec); 287 p_rec = p_rec->p_next_rec; 305 tSDP_DISC_ATTR *SDP_FindAttributeInRec (tSDP_DISC_REC *p_rec, UINT16 attr_id) 310 p_attr = p_rec->p_first_attr 489 tSDP_DISC_REC *p_rec; local 597 tSDP_DISC_REC *p_rec; local 663 tSDP_DISC_REC *p_rec; local [all...] |
sdp_db.c | 59 tSDP_RECORD *sdp_db_service_search (tSDP_RECORD *p_rec, tSDP_UUID_SEQ *p_seq) 66 if (!p_rec) 67 p_rec = &sdp_cb.server_db.record[0]; 69 p_rec++; 73 for ( ; p_rec < p_end; p_rec++) 77 p_attr = &p_rec->attribute[0]; 78 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++) 96 if (xx == p_rec->num_attributes) 102 return (p_rec); 163 tSDP_RECORD *p_rec; local 333 tSDP_RECORD *p_rec = &sdp_cb.server_db.record[0]; local 400 tSDP_RECORD *p_rec = &sdp_cb.server_db.record[0]; local 855 tSDP_RECORD *p_rec = &sdp_cb.server_db.record[0]; local 930 tSDP_RECORD *p_rec; local [all...] |
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; local 744 p_rec = add_record (p_ccb->p_db, p_ccb->device_address); 745 if (!p_rec) 766 p = add_attr (p, p_ccb->p_db, p_rec, attr_id, NULL, 0); 790 tSDP_DISC_REC *p_rec; local 796 p_rec = (tSDP_DISC_REC *) p_db->p_free_mem; 800 p_rec->p_first_attr = NULL; 801 p_rec->p_next_rec = NULL; 803 memcpy (p_rec->remote_bd_addr, p_bda, BD_ADDR_LEN) [all...] |
sdp_server.c | 185 tSDP_RECORD *p_rec = NULL; local 214 p_rec = sdp_db_service_search (p_rec, &uid_seq); 216 if (p_rec) 217 rsp_handles[num_rsp_handles++] = p_rec->record_handle; 325 tSDP_RECORD *p_rec; local 356 p_rec = sdp_db_find_record (rec_handle); 357 if (!p_rec) 400 p_attr = sdp_db_find_attr_in_rec (p_rec, attr_seq.attr_entry[xx].start, attr_seq.attr_entry[xx].end); 468 p_ccb->list_len = sdpu_get_attrib_seq_len(p_rec, &attr_seq_sav) + 3 554 tSDP_RECORD *p_rec; local [all...] |
sdp_utils.c | 853 tSDP_RECORD *p_rec; local 857 for (p_rec = sdp_db_service_search (NULL, uid_seq); p_rec; p_rec = sdp_db_service_search (p_rec, uid_seq)) 861 len1 = sdpu_get_attrib_seq_len(p_rec, attr_seq ); 881 UINT16 sdpu_get_attrib_seq_len(tSDP_RECORD *p_rec, tSDP_ATTR_SEQ *attr_seq) 896 p_attr = sdp_db_find_attr_in_rec (p_rec,
|
/system/bt/bta/av/ |
bta_av_act.c | 1670 tSDP_DISC_REC *p_rec = NULL; local 1744 tSDP_DISC_REC *p_rec = SDP_FindServiceInDb(p_cb->p_disc_db, service_uuid, NULL); local [all...] |
/system/bt/bta/gatt/ |
bta_gattc_cache.c | 134 static void bta_gattc_display_explore_record(tBTA_GATTC_ATTR_REC *p_rec, UINT8 num_rec) 137 tBTA_GATTC_ATTR_REC *pp = p_rec; 343 tBTA_GATTC_ATTR_REC *p_rec = NULL; local 347 p_rec = p_srvc_cb->p_srvc_list + p_srvc_cb->cur_srvc_idx; 348 *p_s_hdl = p_rec->s_handle; 352 p_rec = p_srvc_cb->p_srvc_list + p_srvc_cb->cur_char_idx; 353 *p_s_hdl = p_rec->s_handle + 1; 356 *p_e_hdl = p_rec->e_handle; 358 APPL_TRACE_DEBUG("discover range [%d ~ %d]",p_rec->s_handle, p_rec->e_handle) 480 tBTA_GATTC_ATTR_REC *p_rec = p_srvc_cb->p_srvc_list + p_srvc_cb->cur_srvc_idx; local 549 tBTA_GATTC_ATTR_REC *p_rec = p_srvc_cb->p_srvc_list + p_srvc_cb->cur_char_idx; local 582 tBTA_GATTC_ATTR_REC *p_rec = NULL; local 611 tBTA_GATTC_ATTR_REC *p_rec = NULL; local 650 tBTA_GATTC_ATTR_REC *p_rec = NULL; local 689 tBTA_GATTC_ATTR_REC *p_rec = NULL; local [all...] |
/system/bt/stack/btm/ |
btm_ble.c | 1155 tBTM_SEC_DEV_REC *p_rec; local 1298 tBTM_SEC_DEV_REC *p_rec; local 1319 tBTM_SEC_DEV_REC *p_rec; local 1418 tBTM_SEC_DEV_REC *p_rec = btm_find_dev (bd_addr); local 1525 tBTM_SEC_DEV_REC *p_rec = btm_find_dev (bda); local 1625 tBTM_SEC_DEV_REC *p_rec = btm_find_dev (bda); local 2151 tBTM_SEC_DEV_REC *p_rec = btm_find_dev (bd_addr); local 2211 tBTM_SEC_DEV_REC *p_rec = btm_find_dev (bd_addr); local [all...] |
/system/bt/btif/src/ |
btif_hl.c | 1089 tBTA_HL_SDP_REC *p_rec; local [all...] |