Lines Matching refs:handle
150 uint32_t handle = SDP_CreateRecord(); in add_sdp_by_uuid() local
151 if (handle == 0) { in add_sdp_by_uuid()
170 if (!create_base_record(handle, name, channel, false /* with_obex */)) in add_sdp_by_uuid()
180 if (!SDP_AddSequence(handle, (uint16_t)ATTR_ID_SERVICE_CLASS_ID_LIST, 1, in add_sdp_by_uuid()
186 __func__, name, handle); in add_sdp_by_uuid()
190 tBTA_CUSTOM_UUID curr = {uuid, handle}; in add_sdp_by_uuid()
194 return handle; in add_sdp_by_uuid()
197 SDP_DeleteRecord(handle); in add_sdp_by_uuid()
208 uint32_t handle = SDP_CreateRecord(); in add_pbap_sdp() local
209 if (handle == 0) { in add_pbap_sdp()
221 if (!create_base_record(handle, name, channel, true /* with_obex */)) in add_pbap_sdp()
226 if (!SDP_AddServiceClassIdList(handle, 1, &service)) goto error; in add_pbap_sdp()
230 if (!SDP_AddProfileDescriptorList(handle, UUID_SERVCLASS_PHONE_ACCESS, in add_pbap_sdp()
236 if (!SDP_AddAttribute(handle, ATTR_ID_SUPPORTED_REPOSITORIES, UINT_DESC_TYPE, in add_pbap_sdp()
245 name, handle); in add_pbap_sdp()
247 return handle; in add_pbap_sdp()
250 SDP_DeleteRecord(handle); in add_pbap_sdp()
262 uint32_t handle = SDP_CreateRecord(); in add_ops_sdp() local
263 if (handle == 0) { in add_ops_sdp()
282 if (!create_base_record(handle, name, channel, true /* with_obex */)) in add_ops_sdp()
287 if (!SDP_AddServiceClassIdList(handle, 1, &service)) goto error; in add_ops_sdp()
291 if (!SDP_AddProfileDescriptorList(handle, UUID_SERVCLASS_OBEX_OBJECT_PUSH, in add_ops_sdp()
304 if (!SDP_AddSequence(handle, (uint16_t)ATTR_ID_SUPPORTED_FORMATS_LIST, j, in add_ops_sdp()
318 name, handle); in add_ops_sdp()
320 return handle; in add_ops_sdp()
323 SDP_DeleteRecord(handle); in add_ops_sdp()
336 int handle = SDP_CreateRecord(); in add_spp_sdp() local
337 if (handle == 0) { in add_spp_sdp()
349 if (!create_base_record(handle, name, channel, false /* with_obex */)) in add_spp_sdp()
353 if (!SDP_AddServiceClassIdList(handle, 1, &service)) goto error; in add_spp_sdp()
356 if (!SDP_AddProfileDescriptorList(handle, UUID_SERVCLASS_SERIAL_PORT, in add_spp_sdp()
363 name, handle); in add_spp_sdp()
365 return handle; in add_spp_sdp()
368 SDP_DeleteRecord(handle); in add_spp_sdp()
403 int handle = 0; in add_rfc_sdp_by_uuid() local
406 handle = add_ops_sdp(name, final_channel); in add_rfc_sdp_by_uuid()
409 handle = add_pbap_sdp(name, final_channel); in add_rfc_sdp_by_uuid()
411 handle = add_spp_sdp(name, final_channel); in add_rfc_sdp_by_uuid()
414 handle = 0xff; in add_rfc_sdp_by_uuid()
416 handle = add_sdp_by_uuid(name, uuid, final_channel); in add_rfc_sdp_by_uuid()
419 return handle; in add_rfc_sdp_by_uuid()
466 void del_rfc_sdp_rec(int handle) { in del_rfc_sdp_rec() argument
467 APPL_TRACE_DEBUG("del_rfc_sdp_rec: handle:0x%x", handle); in del_rfc_sdp_rec()
469 if ((handle != -1) && (handle != 0)) { in del_rfc_sdp_rec()
471 const tBTA_CUSTOM_UUID curr = {Uuid::kEmpty, (uint32_t)handle}; in del_rfc_sdp_rec()
474 BTA_JvDeleteRecord(handle); in del_rfc_sdp_rec()