Lines Matching refs:p_attr
36 tSDP_DISC_ATTR* p_attr; in bta_create_mns_sdp_record() local
47 p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_MAP_SUPPORTED_FEATURES); in bta_create_mns_sdp_record()
48 if (p_attr != NULL) { in bta_create_mns_sdp_record()
49 record->mns.supported_features = p_attr->attr_value.v.u32; in bta_create_mns_sdp_record()
52 p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_NAME); in bta_create_mns_sdp_record()
53 if (p_attr != NULL) { in bta_create_mns_sdp_record()
55 SDP_DISC_ATTR_LEN(p_attr->attr_len_type); in bta_create_mns_sdp_record()
56 record->mns.hdr.service_name = (char*)p_attr->attr_value.v.array; in bta_create_mns_sdp_record()
68 p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_GOEP_L2CAP_PSM); in bta_create_mns_sdp_record()
69 if (p_attr != NULL) { in bta_create_mns_sdp_record()
70 record->mns.hdr.l2cap_psm = p_attr->attr_value.v.u16; in bta_create_mns_sdp_record()
76 tSDP_DISC_ATTR* p_attr; in bta_create_mas_sdp_record() local
90 p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_MAS_INSTANCE_ID); in bta_create_mas_sdp_record()
91 if (p_attr != NULL) { in bta_create_mas_sdp_record()
92 record->mas.mas_instance_id = p_attr->attr_value.v.u8; in bta_create_mas_sdp_record()
95 p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SUPPORTED_MSG_TYPE); in bta_create_mas_sdp_record()
96 if (p_attr != NULL) { in bta_create_mas_sdp_record()
97 record->mas.supported_message_types = p_attr->attr_value.v.u8; in bta_create_mas_sdp_record()
100 p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_MAP_SUPPORTED_FEATURES); in bta_create_mas_sdp_record()
101 if (p_attr != NULL) { in bta_create_mas_sdp_record()
102 record->mas.supported_features = p_attr->attr_value.v.u32; in bta_create_mas_sdp_record()
105 p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_NAME); in bta_create_mas_sdp_record()
106 if (p_attr != NULL) { in bta_create_mas_sdp_record()
108 SDP_DISC_ATTR_LEN(p_attr->attr_len_type); in bta_create_mas_sdp_record()
109 record->mas.hdr.service_name = (char*)p_attr->attr_value.v.array; in bta_create_mas_sdp_record()
121 p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_GOEP_L2CAP_PSM); in bta_create_mas_sdp_record()
122 if (p_attr != NULL) { in bta_create_mas_sdp_record()
123 record->mas.hdr.l2cap_psm = p_attr->attr_value.v.u16; in bta_create_mas_sdp_record()
129 tSDP_DISC_ATTR* p_attr; in bta_create_pse_sdp_record() local
142 p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SUPPORTED_REPOSITORIES); in bta_create_pse_sdp_record()
143 if (p_attr != NULL) { in bta_create_pse_sdp_record()
144 record->pse.supported_repositories = p_attr->attr_value.v.u8; in bta_create_pse_sdp_record()
146 p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_PBAP_SUPPORTED_FEATURES); in bta_create_pse_sdp_record()
147 if (p_attr != NULL) { in bta_create_pse_sdp_record()
148 record->pse.supported_features = p_attr->attr_value.v.u32; in bta_create_pse_sdp_record()
151 p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_NAME); in bta_create_pse_sdp_record()
152 if (p_attr != NULL) { in bta_create_pse_sdp_record()
154 SDP_DISC_ATTR_LEN(p_attr->attr_len_type); in bta_create_pse_sdp_record()
155 record->pse.hdr.service_name = (char*)p_attr->attr_value.v.array; in bta_create_pse_sdp_record()
167 p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_GOEP_L2CAP_PSM); in bta_create_pse_sdp_record()
168 if (p_attr != NULL) { in bta_create_pse_sdp_record()
169 record->pse.hdr.l2cap_psm = p_attr->attr_value.v.u16; in bta_create_pse_sdp_record()
175 tSDP_DISC_ATTR *p_attr, *p_sattr; in bta_create_ops_sdp_record() local
187 p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_NAME); in bta_create_ops_sdp_record()
188 if (p_attr != NULL) { in bta_create_ops_sdp_record()
190 SDP_DISC_ATTR_LEN(p_attr->attr_len_type); in bta_create_ops_sdp_record()
191 record->ops.hdr.service_name = (char*)p_attr->attr_value.v.array; in bta_create_ops_sdp_record()
203 p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_GOEP_L2CAP_PSM); in bta_create_ops_sdp_record()
204 if (p_attr != NULL) { in bta_create_ops_sdp_record()
205 record->ops.hdr.l2cap_psm = p_attr->attr_value.v.u16; in bta_create_ops_sdp_record()
207 p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SUPPORTED_FORMATS_LIST); in bta_create_ops_sdp_record()
208 if (p_attr != NULL) { in bta_create_ops_sdp_record()
210 if (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) != DATA_ELE_SEQ_DESC_TYPE) { in bta_create_ops_sdp_record()
215 __func__, p_attr->attr_len_type); in bta_create_ops_sdp_record()
220 SDP_DISC_ATTR_LEN(p_attr->attr_len_type) / 2; in bta_create_ops_sdp_record()
223 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr != NULL; in bta_create_ops_sdp_record()
260 tSDP_DISC_ATTR* p_attr; in bta_create_sap_sdp_record() local
271 p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_NAME); in bta_create_sap_sdp_record()
272 if (p_attr != NULL) { in bta_create_sap_sdp_record()
274 SDP_DISC_ATTR_LEN(p_attr->attr_len_type); in bta_create_sap_sdp_record()
275 record->sap.hdr.service_name = (char*)p_attr->attr_value.v.array; in bta_create_sap_sdp_record()
289 tSDP_DISC_ATTR* p_attr; in bta_create_dip_sdp_record() local
301 p_attr = in bta_create_dip_sdp_record()
303 if (p_attr != nullptr) in bta_create_dip_sdp_record()
304 record->dip.spec_id = p_attr->attr_value.v.u16; in bta_create_dip_sdp_record()
308 p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_VENDOR_ID); in bta_create_dip_sdp_record()
309 if (p_attr != nullptr) in bta_create_dip_sdp_record()
310 record->dip.vendor = p_attr->attr_value.v.u16; in bta_create_dip_sdp_record()
314 p_attr = in bta_create_dip_sdp_record()
316 if (p_attr != nullptr) in bta_create_dip_sdp_record()
317 record->dip.vendor_id_source = p_attr->attr_value.v.u16; in bta_create_dip_sdp_record()
321 p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_PRODUCT_ID); in bta_create_dip_sdp_record()
322 if (p_attr != nullptr) in bta_create_dip_sdp_record()
323 record->dip.product = p_attr->attr_value.v.u16; in bta_create_dip_sdp_record()
327 p_attr = in bta_create_dip_sdp_record()
329 if (p_attr != nullptr) in bta_create_dip_sdp_record()
330 record->dip.version = p_attr->attr_value.v.u16; in bta_create_dip_sdp_record()
334 p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_PRIMARY_RECORD); in bta_create_dip_sdp_record()
335 if (p_attr != nullptr) in bta_create_dip_sdp_record()
336 record->dip.primary_record = !(!p_attr->attr_value.v.u8); in bta_create_dip_sdp_record()
343 tSDP_DISC_ATTR* p_attr; in bta_create_raw_sdp_record() local
354 p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_NAME); in bta_create_raw_sdp_record()
355 if (p_attr != NULL) { in bta_create_raw_sdp_record()
357 SDP_DISC_ATTR_LEN(p_attr->attr_len_type); in bta_create_raw_sdp_record()
358 record->pse.hdr.service_name = (char*)p_attr->attr_value.v.array; in bta_create_raw_sdp_record()