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(LOG_TAG, "%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 bd_addr.ToString().c_str(), 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
227 slot->service_uuid = uuid; in alloc_rfc_slot()
251 addr, srv_rs->service_name, srv_rs->service_uuid, srv_rs->scn, 0, false); in create_srv_accept_rfc_slot()
280 const Uuid* service_uuid, int channel, in btsock_rfc_listen() argument
283 CHECK((service_uuid != NULL) || in btsock_rfc_listen()
296 if (!service_uuid || service_uuid->IsEmpty()) { in btsock_rfc_listen()
302 service_uuid = &UUID_SPP; in btsock_rfc_listen()
305 int reserved_channel = get_reserved_rfc_channel(*service_uuid); in btsock_rfc_listen()
315 alloc_rfc_slot(NULL, service_name, *service_uuid, channel, flags, true); in btsock_rfc_listen()
341 const Uuid* service_uuid, int channel, in btsock_rfc_connect() argument
[all …]
Dbtif_sock.cc133 const Uuid* service_uuid, int channel, in btsock_listen() argument
150 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/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/stack/sdp/
Dsdp_api.cc411 uint16_t service_uuid, in SDP_FindServiceInDb() argument
436 p_sattr->attr_value.v.u16, service_uuid); in SDP_FindServiceInDb()
437 if (service_uuid == UUID_SERVCLASS_HDP_PROFILE) { in SDP_FindServiceInDb()
448 (service_uuid == 0 || in SDP_FindServiceInDb()
450 p_sattr->attr_value.v.u16 == service_uuid))) in SDP_FindServiceInDb()
471 && ((p_extra_sattr->attr_value.v.u16 == service_uuid) || in SDP_FindServiceInDb()
472 (service_uuid == 0))) { in SDP_FindServiceInDb()
485 ((p_attr->attr_value.v.u16 == service_uuid) || service_uuid == 0)) in SDP_FindServiceInDb()
Dsdp_utils.cc167 uint16_t service_uuid = sdpu_find_most_specific_service_uuid(p_rec); in sdpu_log_attribute_metrics() local
168 if (service_uuid == 0) { in sdpu_log_attribute_metrics()
174 bluetooth::common::LogSdpAttribute(bda, service_uuid, 0, 0, nullptr); in sdpu_log_attribute_metrics()
187 switch (service_uuid) { in sdpu_log_attribute_metrics()
216 switch (service_uuid) { in sdpu_log_attribute_metrics()
232 bda, service_uuid, ATTR_ID_SUPPORTED_FEATURES, version_array.size(), in sdpu_log_attribute_metrics()
246 bda, service_uuid, ATTR_ID_MAP_SUPPORTED_FEATURES, in sdpu_log_attribute_metrics()
260 bda, service_uuid, ATTR_ID_PBAP_SUPPORTED_FEATURES, in sdpu_log_attribute_metrics()
265 if (service_uuid == UUID_SERVCLASS_PNP_INFORMATION) { in sdpu_log_attribute_metrics()
/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
/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.cc1619 tBTA_AV_FEAT bta_av_check_peer_features(uint16_t service_uuid) { in bta_av_check_peer_features() argument
1627 APPL_TRACE_DEBUG("%s: service_uuid:x%x", __func__, service_uuid); in bta_av_check_peer_features()
1631 p_rec = SDP_FindServiceInDb(p_cb->p_disc_db, service_uuid, p_rec); in bta_av_check_peer_features()
1685 tBTA_AV_FEAT bta_avk_check_peer_features(uint16_t service_uuid) { in bta_avk_check_peer_features() argument
1689 APPL_TRACE_DEBUG("%s: service_uuid:x%x", __func__, service_uuid); in bta_avk_check_peer_features()
1693 SDP_FindServiceInDb(p_cb->p_disc_db, service_uuid, NULL); in bta_avk_check_peer_features()
1696 service_uuid); in bta_avk_check_peer_features()
1745 p_rec = SDP_FindServiceInDb(p_cb->p_disc_db, service_uuid, p_rec); in bta_avk_check_peer_features()
/system/bt/stack/gatt/
Dgatt_attr.cc283 Uuid service_uuid = Uuid::From16Bit(UUID_SERVCLASS_GATT_SERVER); in gatt_profile_db_init() local
288 {.type = BTGATT_DB_PRIMARY_SERVICE, .uuid = service_uuid}, in gatt_profile_db_init()

12