Home
last modified time | relevance | path

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

/system/bt/btif/src/
Dbtif_sdp_server.cc63 int sdp_handle; member
227 handle = sdp_slots[id].sdp_handle; in free_sdp_slot()
228 sdp_slots[id].sdp_handle = 0; in free_sdp_slot()
270 sdp_slots[id].sdp_handle = handle; in set_sdp_handle()
380 uint32_t sdp_handle = 0; in add_maps_sdp() local
392 sdp_handle = SDP_CreateRecord(); in add_maps_sdp()
393 if (sdp_handle == 0) { in add_maps_sdp()
395 return sdp_handle; in add_maps_sdp()
399 status &= SDP_AddServiceClassIdList(sdp_handle, 1, &service); in add_maps_sdp()
410 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.cc97 int sdp_handle; member
130 rfc_slots[i].sdp_handle = 0; in btsock_rfc_init()
403 slot->sdp_handle = in create_server_sdp_record()
405 return (slot->sdp_handle > 0); in create_server_sdp_record()
438 if (slot->sdp_handle > 0) { in cleanup_rfc_slot()
439 del_rfc_sdp_rec(slot->sdp_handle); in cleanup_rfc_slot()
440 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/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.cc130 uint32_t sdp_handle) { in bta_ag_add_record() argument
154 SDP_AddProtocolList(sdp_handle, BTA_AG_NUM_PROTO_ELEMS, proto_elem_list); in bta_ag_add_record()
159 result &= SDP_AddServiceClassIdList(sdp_handle, BTA_AG_NUM_SVC_ELEMS, in bta_ag_add_record()
170 result &= SDP_AddProfileDescriptorList(sdp_handle, profile_uuid, version); in bta_ag_add_record()
175 sdp_handle, ATTR_ID_SERVICE_NAME, TEXT_STR_DESC_TYPE, in bta_ag_add_record()
182 result &= SDP_AddAttribute(sdp_handle, ATTR_ID_DATA_STORES_OR_NETWORK, in bta_ag_add_record()
193 result &= SDP_AddAttribute(sdp_handle, ATTR_ID_SUPPORTED_FEATURES, in bta_ag_add_record()
198 result &= SDP_AddUuidSequence(sdp_handle, ATTR_ID_BROWSE_GROUP_LIST, 1, in bta_ag_add_record()
223 if (bta_ag_cb.profile[i].sdp_handle == 0) { in bta_ag_create_records()
224 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.cc772 uint32_t sdp_handle = SDP_CreateRecord(); in gatt_add_sdp_record() local
773 if (sdp_handle == 0) return 0; in gatt_add_sdp_record()
778 SDP_AddServiceClassIdList(sdp_handle, 1, &tmp); in gatt_add_sdp_record()
786 SDP_AddAttribute(sdp_handle, ATTR_ID_SERVICE_CLASS_ID_LIST, in gatt_add_sdp_record()
794 SDP_AddAttribute(sdp_handle, ATTR_ID_SERVICE_CLASS_ID_LIST, in gatt_add_sdp_record()
809 SDP_AddProtocolList(sdp_handle, 2, proto_elem_list); in gatt_add_sdp_record()
813 SDP_AddUuidSequence(sdp_handle, ATTR_ID_BROWSE_GROUP_LIST, 1, &list); in gatt_add_sdp_record()
815 return (sdp_handle); in gatt_add_sdp_record()
Dgatt_api.cc289 elem.sdp_handle = gatt_add_sdp_record(*p_uuid, elem.s_hdl, elem.e_hdl); in GATTS_AddService()
291 elem.sdp_handle = 0; in GATTS_AddService()
298 << ", sdp_hdl=" << loghex(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.cc65 uint32_t sdp_handle, bool browse_supported, in AddRecord() argument
68 categories, sdp_handle, browse_supported, in AddRecord()