Home
last modified time | relevance | path

Searched refs:sdp_handle (Results 1 – 24 of 24) sorted by relevance

/system/bt/btif/src/
Dbtif_sdp_server.cc62 int sdp_handle; member
225 handle = sdp_slots[id].sdp_handle; in free_sdp_slot()
226 sdp_slots[id].sdp_handle = 0; in free_sdp_slot()
268 sdp_slots[id].sdp_handle = handle; in set_sdp_handle()
377 uint32_t sdp_handle = 0; in add_maps_sdp() local
389 sdp_handle = SDP_CreateRecord(); in add_maps_sdp()
390 if (sdp_handle == 0) { in add_maps_sdp()
392 return sdp_handle; in add_maps_sdp()
396 status &= SDP_AddServiceClassIdList(sdp_handle, 1, &service); in add_maps_sdp()
407 status &= SDP_AddProtocolList(sdp_handle, 3, protoList); in add_maps_sdp()
[all …]
Dbtif_sock_sdp.cc100 static bool create_base_record(const uint32_t sdp_handle, const char* name, in create_base_record() argument
126 if (!SDP_AddProtocolList(sdp_handle, num_proto_elements, proto_list)) in create_base_record()
132 if (!SDP_AddAttribute(sdp_handle, ATTR_ID_SERVICE_NAME, TEXT_STR_DESC_TYPE, in create_base_record()
138 if (!SDP_AddUuidSequence(sdp_handle, ATTR_ID_BROWSE_GROUP_LIST, 1, &list)) in create_base_record()
144 sdp_handle, channel, name, with_obex); in create_base_record()
Dbtif_sock_rfc.cc95 int sdp_handle; member
124 rfc_slots[i].sdp_handle = 0; in btsock_rfc_init()
393 slot->sdp_handle = in create_server_sdp_record()
395 return (slot->sdp_handle > 0); in create_server_sdp_record()
422 if (slot->sdp_handle > 0) { in cleanup_rfc_slot()
423 del_rfc_sdp_rec(slot->sdp_handle); in cleanup_rfc_slot()
424 slot->sdp_handle = 0; in cleanup_rfc_slot()
/system/bt/stack/pan/
Dpan_utils.cc66 uint32_t sdp_handle; in pan_register_with_sdp() local
72 sdp_handle = SDP_CreateRecord(); in pan_register_with_sdp()
74 if (sdp_handle == 0) { in pan_register_with_sdp()
80 SDP_AddServiceClassIdList(sdp_handle, 1, &uuid); in pan_register_with_sdp()
83 SDP_AddAttribute(sdp_handle, ATTR_ID_PROTOCOL_DESC_LIST, in pan_register_with_sdp()
88 SDP_AddLanguageBaseAttrIDList(sdp_handle, LANG_ID_CODE_ENGLISH, in pan_register_with_sdp()
92 SDP_AddProfileDescriptorList(sdp_handle, uuid, PAN_PROFILE_VERSION); in pan_register_with_sdp()
95 SDP_AddAttribute(sdp_handle, ATTR_ID_SERVICE_NAME, TEXT_STR_DESC_TYPE, in pan_register_with_sdp()
99 SDP_AddAttribute(sdp_handle, ATTR_ID_SERVICE_DESCRIPTION, TEXT_STR_DESC_TYPE, in pan_register_with_sdp()
106 SDP_AddAttribute(sdp_handle, ATTR_ID_SECURITY_DESCRIPTION, UINT_DESC_TYPE, 2, in pan_register_with_sdp()
[all …]
/system/bt/bta/hl/
Dbta_hl_sdp.cc198 result &= SDP_AddServiceClassIdList(p_cb->sdp_handle, num_services, in bta_hl_sdp_update()
209 result &= SDP_AddProtocolList(p_cb->sdp_handle, BTA_HL_NUM_PROTO_ELEMS, in bta_hl_sdp_update()
213 SDP_AddProfileDescriptorList(p_cb->sdp_handle, profile_uuid, version); in bta_hl_sdp_update()
224 p_cb->sdp_handle, BTA_HL_NUM_ADD_PROTO_LISTS, &add_proto_list); in bta_hl_sdp_update()
230 p_cb->sdp_handle, (uint16_t)ATTR_ID_SERVICE_NAME, in bta_hl_sdp_update()
239 p_cb->sdp_handle, (uint16_t)ATTR_ID_SERVICE_DESCRIPTION, in bta_hl_sdp_update()
249 SDP_AddAttribute(p_cb->sdp_handle, (uint16_t)ATTR_ID_PROVIDER_NAME, in bta_hl_sdp_update()
291 result &= bta_hl_add_sup_feature_list(p_cb->sdp_handle, in bta_hl_sdp_update()
296 result &= SDP_AddAttribute(p_cb->sdp_handle, ATTR_ID_HDP_DATA_EXCH_SPEC, in bta_hl_sdp_update()
303 SDP_AddAttribute(p_cb->sdp_handle, ATTR_ID_HDP_MCAP_SUP_PROC, in bta_hl_sdp_update()
[all …]
Dbta_hl_int.h485 uint32_t sdp_handle; /* SDP record handle */ member
Dbta_hl_utils.cc2508 if (p_acb->sdp_handle) SDP_DeleteRecord(p_acb->sdp_handle); in bta_hl_clean_app()
/system/bt/bta/hf_client/
Dbta_hf_client_sdp.cc91 uint32_t sdp_handle) { in bta_hf_client_add_record() argument
112 result &= SDP_AddProtocolList(sdp_handle, BTA_HF_CLIENT_NUM_PROTO_ELEMS, in bta_hf_client_add_record()
118 result &= SDP_AddServiceClassIdList(sdp_handle, BTA_HF_CLIENT_NUM_SVC_ELEMS, in bta_hf_client_add_record()
125 result &= SDP_AddProfileDescriptorList(sdp_handle, profile_uuid, version); in bta_hf_client_add_record()
130 sdp_handle, ATTR_ID_SERVICE_NAME, TEXT_STR_DESC_TYPE, in bta_hf_client_add_record()
152 result &= SDP_AddAttribute(sdp_handle, ATTR_ID_SUPPORTED_FEATURES, in bta_hf_client_add_record()
156 result &= SDP_AddUuidSequence(sdp_handle, ATTR_ID_BROWSE_GROUP_LIST, 1, in bta_hf_client_add_record()
175 if (client_cb_arr->sdp_handle == 0) { in bta_hf_client_create_record()
176 client_cb_arr->sdp_handle = SDP_CreateRecord(); in bta_hf_client_create_record()
180 client_cb_arr->sdp_handle); in bta_hf_client_create_record()
[all …]
Dbta_hf_client_int.h188 uint32_t sdp_handle; member
235 uint32_t sdp_handle);
/system/bt/stack/avrc/
Davrc_sdp.cc187 uint32_t sdp_handle, bool browse_supported, in AVRC_AddRecord() argument
210 result &= SDP_AddServiceClassIdList(sdp_handle, count, class_list); in AVRC_AddRecord()
234 result &= SDP_AddProtocolList(sdp_handle, AVRC_NUM_PROTO_ELEMS, in AVRC_AddRecord()
251 SDP_AddAdditionProtoLists(sdp_handle, 1, &avrc_add_proto_desc_list); in AVRC_AddRecord()
255 sdp_handle, UUID_SERVCLASS_AV_REMOTE_CONTROL, profile_version); in AVRC_AddRecord()
260 result &= SDP_AddAttribute(sdp_handle, ATTR_ID_SUPPORTED_FEATURES, in AVRC_AddRecord()
266 sdp_handle, ATTR_ID_PROVIDER_NAME, TEXT_STR_DESC_TYPE, in AVRC_AddRecord()
273 sdp_handle, ATTR_ID_SERVICE_NAME, TEXT_STR_DESC_TYPE, in AVRC_AddRecord()
279 result &= SDP_AddUuidSequence(sdp_handle, ATTR_ID_BROWSE_GROUP_LIST, 1, in AVRC_AddRecord()
/system/bt/stack/a2dp/
Da2dp_api.cc175 uint32_t sdp_handle) { in A2DP_AddRecord() argument
184 if ((sdp_handle == 0) || (service_uuid != UUID_SERVCLASS_AUDIO_SOURCE && in A2DP_AddRecord()
189 result &= SDP_AddServiceClassIdList(sdp_handle, 1, &service_uuid); in A2DP_AddRecord()
202 result &= SDP_AddProtocolList(sdp_handle, A2DP_NUM_PROTO_ELEMS, proto_list); in A2DP_AddRecord()
206 sdp_handle, UUID_SERVCLASS_ADV_AUDIO_DISTRIBUTION, A2DP_VERSION); in A2DP_AddRecord()
212 result &= SDP_AddAttribute(sdp_handle, ATTR_ID_SUPPORTED_FEATURES, in A2DP_AddRecord()
219 sdp_handle, ATTR_ID_PROVIDER_NAME, TEXT_STR_DESC_TYPE, in A2DP_AddRecord()
226 sdp_handle, ATTR_ID_SERVICE_NAME, TEXT_STR_DESC_TYPE, in A2DP_AddRecord()
232 result &= SDP_AddUuidSequence(sdp_handle, ATTR_ID_BROWSE_GROUP_LIST, 1, in A2DP_AddRecord()
/system/bt/bta/ag/
Dbta_ag_sdp.cc129 uint32_t sdp_handle) { in bta_ag_add_record() argument
153 SDP_AddProtocolList(sdp_handle, BTA_AG_NUM_PROTO_ELEMS, proto_elem_list); in bta_ag_add_record()
158 result &= SDP_AddServiceClassIdList(sdp_handle, BTA_AG_NUM_SVC_ELEMS, in bta_ag_add_record()
169 result &= SDP_AddProfileDescriptorList(sdp_handle, profile_uuid, version); in bta_ag_add_record()
174 sdp_handle, ATTR_ID_SERVICE_NAME, TEXT_STR_DESC_TYPE, in bta_ag_add_record()
181 result &= SDP_AddAttribute(sdp_handle, ATTR_ID_DATA_STORES_OR_NETWORK, in bta_ag_add_record()
192 result &= SDP_AddAttribute(sdp_handle, ATTR_ID_SUPPORTED_FEATURES, in bta_ag_add_record()
197 result &= SDP_AddUuidSequence(sdp_handle, ATTR_ID_BROWSE_GROUP_LIST, 1, in bta_ag_add_record()
222 if (bta_ag_cb.profile[i].sdp_handle == 0) { in bta_ag_create_records()
223 bta_ag_cb.profile[i].sdp_handle = SDP_CreateRecord(); in bta_ag_create_records()
[all …]
Dbta_ag_int.h183 uint32_t sdp_handle; member
322 uint32_t sdp_handle);
/system/bt/bta/hd/
Dbta_hd_act.cc131 if (bta_hd_cb.sdp_handle != 0) { in bta_hd_api_disable()
132 SDP_DeleteRecord(bta_hd_cb.sdp_handle); in bta_hd_api_disable()
184 if (bta_hd_cb.sdp_handle != 0) { in bta_hd_register_act()
185 SDP_DeleteRecord(bta_hd_cb.sdp_handle); in bta_hd_register_act()
189 bta_hd_cb.sdp_handle = SDP_CreateRecord(); in bta_hd_register_act()
190 HID_DevAddRecord(bta_hd_cb.sdp_handle, p_app_data->name, in bta_hd_register_act()
232 if (bta_hd_cb.sdp_handle != 0) { in bta_hd_unregister_act()
233 SDP_DeleteRecord(bta_hd_cb.sdp_handle); in bta_hd_unregister_act()
236 bta_hd_cb.sdp_handle = 0; in bta_hd_unregister_act()
Dbta_hd_int.h134 uint32_t sdp_handle; member
/system/bt/stack/include/
Da2dp_api.h123 uint32_t sdp_handle);
Davrc_api.h236 uint32_t sdp_handle, bool browse_supported,
/system/bt/stack/gatt/
Dgatt_utils.cc761 uint32_t sdp_handle = SDP_CreateRecord(); in gatt_add_sdp_record() local
762 if (sdp_handle == 0) return 0; in gatt_add_sdp_record()
767 SDP_AddServiceClassIdList(sdp_handle, 1, &tmp); in gatt_add_sdp_record()
775 SDP_AddAttribute(sdp_handle, ATTR_ID_SERVICE_CLASS_ID_LIST, in gatt_add_sdp_record()
783 SDP_AddAttribute(sdp_handle, ATTR_ID_SERVICE_CLASS_ID_LIST, in gatt_add_sdp_record()
798 SDP_AddProtocolList(sdp_handle, 2, proto_elem_list); in gatt_add_sdp_record()
802 SDP_AddUuidSequence(sdp_handle, ATTR_ID_BROWSE_GROUP_LIST, 1, &list); in gatt_add_sdp_record()
804 return (sdp_handle); in gatt_add_sdp_record()
Dgatt_api.cc290 elem.sdp_handle = gatt_add_sdp_record(*p_uuid, elem.s_hdl, elem.e_hdl); in GATTS_AddService()
292 elem.sdp_handle = 0; in GATTS_AddService()
299 elem.s_hdl, elem.e_hdl, elem.type, elem.sdp_handle); in GATTS_AddService()
388 if (it->sdp_handle) { in GATTS_StopService()
389 SDP_DeleteRecord(it->sdp_handle); in GATTS_StopService()
Dgatt_int.h258 uint32_t sdp_handle; /* primamry service SDP handle */ member
/system/bt/profile/avrcp/
Davrcp_internal.h35 uint32_t sdp_handle, bool browse_supported,
/system/bt/include/hardware/
Dbt_sdp.h153 bt_status_t (*remove_sdp_record)(int sdp_handle);
/system/bt/bta/jv/
Dbta_jv_int.h114 uint32_t sdp_handle[BTA_JV_MAX_SDP_REC]; /* SDP records created */ member
/system/bt/btif/avrcp/
Davrcp_service.cc61 uint32_t sdp_handle, bool browse_supported, in AddRecord() argument
64 categories, sdp_handle, browse_supported, in AddRecord()