Home
last modified time | relevance | path

Searched refs:service_uuid (Results 1 – 25 of 35) sorted by relevance

12

/system/bt/stack/a2dp/
Da2dp_api.cc80 a2dp_cb.find.p_db, a2dp_cb.find.service_uuid, p_rec)) == NULL) { in a2dp_sdp_cback()
119 a2dp_cb.find.service_uuid = 0; in a2dp_sdp_cback()
173 tA2DP_STATUS A2DP_AddRecord(uint16_t service_uuid, char* p_service_name, in A2DP_AddRecord() argument
182 LOG_VERBOSE("%s: uuid: 0x%x", __func__, service_uuid); in A2DP_AddRecord()
184 if ((sdp_handle == 0) || (service_uuid != UUID_SERVCLASS_AUDIO_SOURCE && in A2DP_AddRecord()
185 service_uuid != UUID_SERVCLASS_AUDIO_SINK)) in A2DP_AddRecord()
189 result &= SDP_AddServiceClassIdList(sdp_handle, 1, &service_uuid); in A2DP_AddRecord()
273 tA2DP_STATUS A2DP_FindService(uint16_t service_uuid, const RawAddress& bd_addr, in A2DP_FindService() argument
279 service_uuid); in A2DP_FindService()
280 if ((service_uuid != UUID_SERVCLASS_AUDIO_SOURCE && in A2DP_FindService()
[all …]
Da2dp_int.h48 uint16_t service_uuid; /* service UUID of search */ member
/system/bt/stack/avrc/
Davrc_sdp.cc61 avrc_cb.service_uuid = 0; in avrc_sdp_cback()
108 uint16_t AVRC_FindService(uint16_t service_uuid, const RawAddress& bd_addr, in AVRC_FindService() argument
113 AVRC_TRACE_API("%s uuid: %x", __func__, service_uuid); in AVRC_FindService()
114 if ((service_uuid != UUID_SERVCLASS_AV_REM_CTRL_TARGET && in AVRC_FindService()
115 service_uuid != UUID_SERVCLASS_AV_REMOTE_CONTROL) || in AVRC_FindService()
120 if (avrc_cb.service_uuid == UUID_SERVCLASS_AV_REM_CTRL_TARGET || in AVRC_FindService()
121 avrc_cb.service_uuid == UUID_SERVCLASS_AV_REMOTE_CONTROL) in AVRC_FindService()
130 Uuid uuid_list = Uuid::From16Bit(service_uuid); in AVRC_FindService()
137 avrc_cb.service_uuid = service_uuid; in AVRC_FindService()
185 uint16_t AVRC_AddRecord(uint16_t service_uuid, const char* p_service_name, in AVRC_AddRecord() argument
[all …]
Davrc_int.h152 uint16_t service_uuid; /* service UUID to search */ member
/system/bt/service/ipc/
Dlinux_ipc_host.h59 bool OnCreateService(const std::string& service_uuid);
62 bool OnDestroyService(const std::string& service_uuid);
65 bool OnAddCharacteristic(const std::string& service_uuid,
71 bool OnSetCharacteristicValue(const std::string& service_uuid,
76 bool OnSetAdvertisement(const std::string& service_uuid,
83 bool OnSetScanResponse(const std::string& service_uuid,
90 bool OnStartService(const std::string& service_uuid);
93 bool OnStopService(const std::string& service_uuid);
Dlinux_ipc_host.cc107 bool LinuxIPCHost::OnCreateService(const std::string& service_uuid) { in OnCreateService() argument
108 gatt_servers_[service_uuid] = std::unique_ptr<Server>(new Server); in OnCreateService()
111 bool status = gatt_servers_[service_uuid]->Initialize( in OnCreateService()
112 Uuid::FromString(service_uuid), &gattfd); in OnCreateService()
122 bool LinuxIPCHost::OnDestroyService(const std::string& service_uuid) { in OnDestroyService() argument
123 gatt_servers_.erase(service_uuid); in OnDestroyService()
129 bool LinuxIPCHost::OnAddCharacteristic(const std::string& service_uuid, in OnAddCharacteristic() argument
157 gatt_servers_[service_uuid]->AddCharacteristic( in OnAddCharacteristic()
161 gatt_servers_[service_uuid]->AddBlob(Uuid::FromString(characteristic_uuid), in OnAddCharacteristic()
169 const std::string& service_uuid, const std::string& characteristic_uuid, in OnSetCharacteristicValue() argument
[all …]
/system/bt/bta/ar/
Dbta_ar.cc220 void bta_ar_reg_avrc(uint16_t service_uuid, const char* service_name, in bta_ar_reg_avrc() argument
229 if (service_uuid == UUID_SERVCLASS_AV_REM_CTRL_TARGET) { in bta_ar_reg_avrc()
233 AVRC_AddRecord(service_uuid, service_name, provider_name, categories, in bta_ar_reg_avrc()
236 bta_sys_add_uuid(service_uuid); in bta_ar_reg_avrc()
240 } else if ((service_uuid == UUID_SERVCLASS_AV_REMOTE_CONTROL) || in bta_ar_reg_avrc()
241 (service_uuid == UUID_SERVCLASS_AV_REM_CTRL_CONTROL)) { in bta_ar_reg_avrc()
246 AVRC_AddRecord(service_uuid, service_name, provider_name, categories, in bta_ar_reg_avrc()
249 bta_sys_add_uuid(service_uuid); in bta_ar_reg_avrc()
271 void bta_ar_dereg_avrc(uint16_t service_uuid, tBTA_SYS_ID sys_id) { in bta_ar_dereg_avrc() argument
278 if (service_uuid == UUID_SERVCLASS_AV_REM_CTRL_TARGET) { in bta_ar_dereg_avrc()
[all …]
/system/bt/service/common/bluetooth/
Dscan_filter.cc57 void ScanFilter::SetServiceUuid(const Uuid& service_uuid) { in SetServiceUuid() argument
58 service_uuid_.reset(new Uuid(service_uuid)); in SetServiceUuid()
62 void ScanFilter::SetServiceUuidWithMask(const Uuid& service_uuid, in SetServiceUuidWithMask() argument
64 service_uuid_.reset(new Uuid(service_uuid)); in SetServiceUuidWithMask()
Dscan_filter.h52 const Uuid* service_uuid() const { return service_uuid_.get(); } in service_uuid() function
56 void SetServiceUuid(const Uuid& service_uuid);
62 void SetServiceUuidWithMask(const Uuid& service_uuid, const Uuid& mask);
/system/bt/bta/include/
Dbta_ar_api.h124 extern void bta_ar_reg_avrc(uint16_t service_uuid, const char* p_service_name,
139 extern void bta_ar_dereg_avrc(uint16_t service_uuid, tBTA_SYS_ID sys_id);
/system/bt/stack/include/
Da2dp_api.h121 extern tA2DP_STATUS A2DP_AddRecord(uint16_t service_uuid, char* p_service_name,
160 extern tA2DP_STATUS A2DP_FindService(uint16_t service_uuid,
Davrc_api.h233 extern uint16_t AVRC_AddRecord(uint16_t service_uuid,
278 extern uint16_t AVRC_FindService(uint16_t service_uuid,
/system/bt/btif/src/
Dbtif_sock_rfc.cc89 Uuid service_uuid; member
226 slot->service_uuid = uuid; in alloc_rfc_slot()
250 addr, srv_rs->service_name, srv_rs->service_uuid, srv_rs->scn, 0, false); in create_srv_accept_rfc_slot()
279 const Uuid* service_uuid, int channel, in btsock_rfc_listen() argument
282 CHECK((service_uuid != NULL) || in btsock_rfc_listen()
295 if (!service_uuid || service_uuid->IsEmpty()) { in btsock_rfc_listen()
301 service_uuid = &UUID_SPP; in btsock_rfc_listen()
304 int reserved_channel = get_reserved_rfc_channel(*service_uuid); in btsock_rfc_listen()
314 alloc_rfc_slot(NULL, service_name, *service_uuid, channel, flags, true); in btsock_rfc_listen()
340 const Uuid* service_uuid, int channel, in btsock_rfc_connect() argument
[all …]
Dbtif_sock.cc131 const Uuid* service_uuid, int channel, in btsock_listen() argument
148 status = btsock_rfc_listen(service_name, service_uuid, channel, sock_fd, in btsock_listen()
/system/bt/profile/avrcp/
Davrcp_internal.h33 virtual uint16_t AddRecord(uint16_t service_uuid, const char* p_service_name,
38 virtual uint16_t FindService(uint16_t service_uuid, const RawAddress& bd_addr,
/system/bt/stack/sdp/
Dsdp_api.cc364 uint16_t service_uuid, in SDP_FindServiceInDb() argument
389 p_sattr->attr_value.v.u16, service_uuid); in SDP_FindServiceInDb()
390 if (service_uuid == UUID_SERVCLASS_HDP_PROFILE) { in SDP_FindServiceInDb()
401 (service_uuid == 0 || in SDP_FindServiceInDb()
403 p_sattr->attr_value.v.u16 == service_uuid))) in SDP_FindServiceInDb()
424 && ((p_extra_sattr->attr_value.v.u16 == service_uuid) || in SDP_FindServiceInDb()
425 (service_uuid == 0))) { in SDP_FindServiceInDb()
438 ((p_attr->attr_value.v.u16 == service_uuid) || service_uuid == 0)) in SDP_FindServiceInDb()
Dsdp_utils.cc161 uint16_t service_uuid = sdpu_find_most_specific_service_uuid(p_rec); in sdpu_log_attribute_metrics() local
162 if (service_uuid == 0) { in sdpu_log_attribute_metrics()
168 bluetooth::common::LogSdpAttribute(bda, service_uuid, 0, 0, nullptr); in sdpu_log_attribute_metrics()
181 switch (service_uuid) { in sdpu_log_attribute_metrics()
210 switch (service_uuid) { in sdpu_log_attribute_metrics()
226 bda, service_uuid, ATTR_ID_SUPPORTED_FEATURES, version_array.size(), in sdpu_log_attribute_metrics()
240 bda, service_uuid, ATTR_ID_MAP_SUPPORTED_FEATURES, in sdpu_log_attribute_metrics()
254 bda, service_uuid, ATTR_ID_PBAP_SUPPORTED_FEATURES, in sdpu_log_attribute_metrics()
259 if (service_uuid == UUID_SERVCLASS_PNP_INFORMATION) { in sdpu_log_attribute_metrics()
/system/bt/bta/ag/
Dbta_ag_sdp.cc128 bool bta_ag_add_record(uint16_t service_uuid, const char* p_service_name, in bta_ag_add_record() argument
141 APPL_TRACE_DEBUG("%s uuid: %x", __func__, service_uuid); in bta_ag_add_record()
157 svc_class_id_list[0] = service_uuid; in bta_ag_add_record()
163 if (service_uuid == UUID_SERVCLASS_AG_HANDSFREE) { in bta_ag_add_record()
180 if (service_uuid == UUID_SERVCLASS_AG_HANDSFREE) { in bta_ag_add_record()
/system/bt/include/hardware/
Dbt_sock.h65 const bluetooth::Uuid* service_uuid, int channel,
/system/bt/bta/gatt/
Dbta_gattc_cache.cc246 Uuid service_uuid; in bta_gattc_sdp_callback() local
247 if (!SDP_FindServiceUUIDInRec(p_sdp_rec, &service_uuid)) continue; in bta_gattc_sdp_callback()
257 VLOG(1) << "Found ATT service uuid=" << service_uuid in bta_gattc_sdp_callback()
271 service_uuid, true); in bta_gattc_sdp_callback()
415 cb_data.srvc_res.service_uuid.inst_id = service.handle; in bta_gattc_search_service()
416 cb_data.srvc_res.service_uuid.uuid = service.uuid; in bta_gattc_search_service()
Dbta_gatts_int.h135 bluetooth::Uuid service_uuid; /* service UUID */ member
Dbta_gatts_api.cc143 bta_gatts_cb.srvc_cb[srvc_idx].service_uuid = service[0].uuid; in bta_gatts_add_service_impl()
/system/bt/btif/avrcp/
Davrcp_service.cc63 uint16_t AddRecord(uint16_t service_uuid, const char* p_service_name, in AddRecord() argument
67 return AVRC_AddRecord(service_uuid, p_service_name, p_provider_name, in AddRecord()
72 uint16_t FindService(uint16_t service_uuid, const RawAddress& bd_addr, in FindService() argument
75 return AVRC_FindService(service_uuid, bd_addr, p_db, p_cback); in FindService()
/system/bt/bta/av/
Dbta_av_api.cc111 uint16_t service_uuid) { in BTA_AvRegister() argument
123 p_buf->service_uuid = service_uuid; in BTA_AvRegister()
Dbta_av_act.cc1628 tBTA_AV_FEAT bta_av_check_peer_features(uint16_t service_uuid) { in bta_av_check_peer_features() argument
1636 APPL_TRACE_DEBUG("%s: service_uuid:x%x", __func__, service_uuid); in bta_av_check_peer_features()
1640 p_rec = SDP_FindServiceInDb(p_cb->p_disc_db, service_uuid, p_rec); in bta_av_check_peer_features()
1694 tBTA_AV_FEAT bta_avk_check_peer_features(uint16_t service_uuid) { in bta_avk_check_peer_features() argument
1698 APPL_TRACE_DEBUG("%s: service_uuid:x%x", __func__, service_uuid); in bta_avk_check_peer_features()
1702 SDP_FindServiceInDb(p_cb->p_disc_db, service_uuid, NULL); in bta_avk_check_peer_features()
1705 service_uuid); in bta_avk_check_peer_features()
1753 if (service_uuid == UUID_SERVCLASS_AV_REM_CTRL_TARGET && in bta_avk_check_peer_features()
1760 p_rec = SDP_FindServiceInDb(p_cb->p_disc_db, service_uuid, p_rec); in bta_avk_check_peer_features()

12