Home
last modified time | relevance | path

Searched refs:pimpl_ (Results 1 – 25 of 81) sorted by relevance

1234

/packages/modules/Bluetooth/system/bta/le_audio/
Dmock_iso_manager.cc39 if (!pimpl_) return; in RegisterCigCallbacks()
40 pimpl_->RegisterCigCallbacks(callbacks); in RegisterCigCallbacks()
45 if (!pimpl_) return; in RegisterBigCallbacks()
46 pimpl_->RegisterBigCallbacks(callbacks); in RegisterBigCallbacks()
50 if (!pimpl_) return; in RegisterOnIsoTrafficActiveCallback()
51 pimpl_->RegisterOnIsoTrafficActiveCallbacks(callback); in RegisterOnIsoTrafficActiveCallback()
56 if (!pimpl_) return; in CreateCig()
57 pimpl_->CreateCig(cig_id, std::move(cig_params)); in CreateCig()
62 if (!pimpl_) return; in ReconfigureCig()
63 pimpl_->ReconfigureCig(cig_id, std::move(cig_params)); in ReconfigureCig()
[all …]
Dmock_codec_manager.cc36 if (!pimpl_) return types::CodecLocation::HOST; in GetCodecLocation()
37 return pimpl_->GetCodecLocation(); in GetCodecLocation()
44 if (pimpl_) in UpdateActiveSourceAudioConfig()
45 return pimpl_->UpdateActiveSourceAudioConfig(stream_conf, delay_ms, in UpdateActiveSourceAudioConfig()
53 if (pimpl_) in UpdateActiveSinkAudioConfig()
54 return pimpl_->UpdateActiveSinkAudioConfig(stream_conf, delay_ms, in UpdateActiveSinkAudioConfig()
60 if (!pimpl_) return nullptr; in GetOffloadCodecConfig()
61 return pimpl_->GetOffloadCodecConfig(ctx_type); in GetOffloadCodecConfig()
66 if (!pimpl_) return nullptr; in GetBroadcastOffloadConfig()
67 return pimpl_->GetBroadcastOffloadConfig(); in GetBroadcastOffloadConfig()
[all …]
Dcontent_control_id_keeper.cc114 : pimpl_(std::make_unique<impl>(*this)) {} in ContentControlIdKeeper()
117 if (!pimpl_->IsRunning()) pimpl_->Start(); in Start()
121 if (pimpl_->IsRunning()) pimpl_->Stop(); in Stop()
126 if (!pimpl_->IsRunning()) { in GetCcid()
130 return pimpl_->ccid_keeper_impl_->GetCcid(context_type); in GetCcid()
135 if (pimpl_->IsRunning()) { in SetCcid()
137 pimpl_->ccid_keeper_impl_->RemoveCcid(ccid); in SetCcid()
139 pimpl_->ccid_keeper_impl_->SetCcid(context_type, ccid); in SetCcid()
146 if (pimpl_->IsRunning()) pimpl_->ccid_keeper_impl_->SetCcid(contexts, ccid); in SetCcid()
Dcodec_manager.cc436 CodecManager::CodecManager() : pimpl_(std::make_unique<impl>(*this)) {} in CodecManager()
440 if (!pimpl_->IsRunning()) pimpl_->Start(offloading_preference); in Start()
444 if (pimpl_->IsRunning()) pimpl_->Stop(); in Stop()
448 if (!pimpl_->IsRunning()) { in GetCodecLocation()
452 return pimpl_->codec_manager_impl_->GetCodecLocation(); in GetCodecLocation()
456 if (!pimpl_->IsRunning()) { in GetAidlVersionInUsed()
460 return pimpl_->codec_manager_impl_->GetAidlVersionInUsed(); in GetAidlVersionInUsed()
467 if (pimpl_->IsRunning()) in UpdateActiveSourceAudioConfig()
468 pimpl_->codec_manager_impl_->UpdateActiveSourceAudioConfig( in UpdateActiveSourceAudioConfig()
476 if (pimpl_->IsRunning()) in UpdateActiveSinkAudioConfig()
[all …]
/packages/modules/Bluetooth/system/stack/btm/
Dbtm_iso.cc54 IsoManager::IsoManager() : pimpl_(std::make_unique<impl>(*this)) {} in IsoManager()
57 pimpl_->iso_impl_->handle_register_cis_callbacks(callbacks); in RegisterCigCallbacks()
61 pimpl_->iso_impl_->handle_register_big_callbacks(callbacks); in RegisterBigCallbacks()
65 pimpl_->iso_impl_->handle_register_on_iso_traffic_active_callback(callback); in RegisterOnIsoTrafficActiveCallback()
70 pimpl_->iso_impl_->create_cig(cig_id, std::move(cig_params)); in CreateCig()
75 pimpl_->iso_impl_->reconfigure_cig(cig_id, std::move(cig_params)); in ReconfigureCig()
79 pimpl_->iso_impl_->remove_cig(cig_id, force); in RemoveCig()
84 pimpl_->iso_impl_->establish_cis(std::move(conn_params)); in EstablishCis()
88 pimpl_->iso_impl_->disconnect_cis(cis_handle, reason); in DisconnectCis()
93 pimpl_->iso_impl_->setup_iso_data_path(iso_handle, std::move(path_params)); in SetupIsoDataPath()
[all …]
/packages/modules/Bluetooth/system/stack/test/common/
Dmock_eatt.cc39 EattExtension::EattExtension() : pimpl_(std::make_unique<impl>()) {} in EattExtension()
42 return pimpl_->IsEattSupportedByPeer(bd_addr); in IsEattSupportedByPeer()
46 pimpl_->Connect(bd_addr); in Connect()
50 pimpl_->Disconnect(bd_addr, cid); in Disconnect()
55 pimpl_->Reconfigure(bd_addr, cid, mtu); in Reconfigure()
58 pimpl_->ReconfigureAll(bd_addr, mtu); in ReconfigureAll()
63 return pimpl_->FindEattChannelByCid(bd_addr, cid); in FindEattChannelByCid()
68 return pimpl_->FindEattChannelByTransId(bd_addr, trans_id); in FindEattChannelByTransId()
73 return pimpl_->IsIndicationPending(bd_addr, indication_handle); in IsIndicationPending()
78 return pimpl_->GetChannelAvailableForIndication(bd_addr); in GetChannelAvailableForIndication()
[all …]
/packages/modules/Bluetooth/system/gd/os/android/
Dwakelock_native.cc81 pimpl_->suspend_service = ISystemSuspend::fromBinder( in Initialize()
83 ASSERT_LOG(pimpl_->suspend_service, "Cannot get ISystemSuspend service"); in Initialize()
85 pimpl_->suspend_service->asBinder().get(), in Initialize()
86 pimpl_->suspend_death_recipient.get(), in Initialize()
87 static_cast<void*>(&pimpl_->onDeath)); in Initialize()
91 if (!pimpl_->suspend_service) { in Acquire()
96 if (pimpl_->current_wakelock) { in Acquire()
101 auto status = pimpl_->suspend_service->acquireWakeLock( in Acquire()
102 WakeLockType::PARTIAL, lock_name, &pimpl_->current_wakelock); in Acquire()
103 if (!pimpl_->current_wakelock) { in Acquire()
[all …]
/packages/modules/Bluetooth/system/common/
Dmetrics.cc297 : pimpl_(new impl(kMaxNumBluetoothSession, kMaxNumPairEvent, in BluetoothMetricsLogger()
310 pimpl_->pair_event_queue_->Enqueue(event); in LogPairEvent()
312 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_log_lock_); in LogPairEvent()
313 pimpl_->bluetooth_log_->set_num_pair_event( in LogPairEvent()
314 pimpl_->bluetooth_log_->num_pair_event() + 1); in LogPairEvent()
327 pimpl_->wake_event_queue_->Enqueue(event); in LogWakeEvent()
329 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_log_lock_); in LogWakeEvent()
330 pimpl_->bluetooth_log_->set_num_wake_event( in LogWakeEvent()
331 pimpl_->bluetooth_log_->num_wake_event() + 1); in LogWakeEvent()
349 pimpl_->scan_event_queue_->Enqueue(event); in LogScanEvent()
[all …]
/packages/modules/Bluetooth/system/gd/storage/
Dstorage_module.cc87 pimpl_.reset(); in ~StorageModule()
106 return Mutation(&pimpl_->cache_, &pimpl_->memory_only_cache_); in Modify()
111 if (pimpl_->has_pending_config_save_) { in SaveDelayed()
114 pimpl_->config_save_alarm_.Schedule( in SaveDelayed()
116 pimpl_->has_pending_config_save_ = true; in SaveDelayed()
121 if (pimpl_->has_pending_config_save_) { in SaveImmediately()
122 pimpl_->config_save_alarm_.Cancel(); in SaveImmediately()
123 pimpl_->has_pending_config_save_ = false; in SaveImmediately()
130 ASSERT(LegacyConfigFile::FromPath(config_file_path_).Write(pimpl_->cache_)); in SaveImmediately()
132 ASSERT(LegacyConfigFile::FromPath(config_backup_path_).Write(pimpl_->cache_)); in SaveImmediately()
[all …]
/packages/modules/Bluetooth/system/gd/hci/
Dacl_manager.cc204 AclManager::AclManager() : pimpl_(std::make_unique<impl>(*this)) {} in AclManager()
210 common::Unretained(pimpl_->classic_impl_), in RegisterCallbacks()
218 pimpl_->classic_impl_, in UnregisterCallbacks()
227 pimpl_->le_impl_, in RegisterLeCallbacks()
236 pimpl_->le_impl_, in RegisterLeAcceptlistCallbacks()
243 …CallOn(pimpl_->le_impl_, &le_impl::handle_unregister_le_callbacks, common::Unretained(callbacks), … in UnregisterLeCallbacks()
250 pimpl_->le_impl_, in UnregisterLeAcceptlistCallbacks()
257 CallOn(pimpl_->classic_impl_, &classic_impl::create_connection, address); in CreateConnection()
262 CallOn(pimpl_->le_impl_, &le_impl::add_device_to_background_connection_list, address_with_type); in CreateLeConnection()
264 CallOn(pimpl_->le_impl_, &le_impl::create_le_connection, address_with_type, true, is_direct); in CreateLeConnection()
[all …]
Dvendor_specific_event_manager.cc101 pimpl_ = std::make_unique<impl>(this); in VendorSpecificEventManager()
110 pimpl_->start(GetHandler(), GetDependency<hci::HciLayer>(), GetDependency<hci::Controller>()); in Start()
114 pimpl_->stop(); in Stop()
115 pimpl_.reset(); in Stop()
124 CallOn(pimpl_.get(), &impl::register_event, event, handler); in RegisterEventHandler()
128 CallOn(pimpl_.get(), &impl::unregister_event, event); in UnregisterEventHandler()
/packages/modules/Bluetooth/system/gd/hci/acl_manager/
Dclassic_acl_connection.cc352pimpl_ = new ClassicAclConnection::impl(acl_connection_interface, std::move(queue), address, handl… in ClassicAclConnection()
356 if (pimpl_) pimpl_->PutEventCallbacks(); in ~ClassicAclConnection()
357 delete pimpl_; in ~ClassicAclConnection()
362 return pimpl_->GetEventCallbacks(std::move(invalidate_callbacks)); in GetEventCallbacks()
366 return pimpl_->tracker.RegisterCallbacks(callbacks, handler); in RegisterCallbacks()
372 pimpl_->tracker.client_handler_->BindOnce(&check_command_status<DisconnectStatusView>)); in Disconnect()
379pimpl_->tracker.client_handler_->BindOnce(&check_command_status<ChangeConnectionPacketTypeStatusVi… in ChangeConnectionPacketType()
386pimpl_->tracker.client_handler_->BindOnce(&check_command_status<AuthenticationRequestedStatusView>… in AuthenticationRequested()
393pimpl_->tracker.client_handler_->BindOnce(&check_command_status<SetConnectionEncryptionStatusView>… in SetConnectionEncryption()
400pimpl_->tracker.client_handler_->BindOnce(&check_command_status<ChangeConnectionLinkKeyStatusView>… in ChangeConnectionLinkKey()
[all …]
Dle_acl_connection.cc129 pimpl_ = new LeAclConnection::impl(le_acl_connection_interface, std::move(queue), handle); in LeAclConnection()
133 if (pimpl_) pimpl_->PutEventCallbacks(); in ~LeAclConnection()
134 delete pimpl_; in ~LeAclConnection()
175 return pimpl_->tracker.RegisterCallbacks(callbacks, handler); in RegisterCallbacks()
179 pimpl_->tracker.le_acl_connection_interface_->EnqueueCommand( in Disconnect()
181 pimpl_->tracker.client_handler_->BindOnce([](CommandStatusView status) { in Disconnect()
199 pimpl_->tracker.OnLeSubrateChange(hci_status, 0, 0, 0, 0); in OnLeSubrateRequestStatus()
205 pimpl_->tracker.le_acl_connection_interface_->EnqueueCommand( in LeSubrateRequest()
207pimpl_->tracker.client_handler_->BindOnceOn(this, &LeAclConnection::OnLeSubrateRequestStatus)); in LeSubrateRequest()
212 return pimpl_->GetEventCallbacks(std::move(invalidate_callbacks)); in GetEventCallbacks()
[all …]
Dacl_scheduler.cc210 AclScheduler::AclScheduler() : pimpl_(std::make_unique<impl>()){}; in AclScheduler()
216 …&impl::EnqueueOutgoingAclConnection, common::Unretained(pimpl_.get()), address, std::move(start_co… in EnqueueOutgoingAclConnection()
220 …GetHandler()->Call(&impl::RegisterPendingIncomingConnection, common::Unretained(pimpl_.get()), add… in RegisterPendingIncomingConnection()
230 common::Unretained(pimpl_.get()), in ReportAclConnectionCompletion()
238 GetHandler()->Call(&impl::ReportOutgoingAclConnectionFailure, common::Unretained(pimpl_.get())); in ReportOutgoingAclConnectionFailure()
247 common::Unretained(pimpl_.get()), in CancelAclConnection()
259 common::Unretained(pimpl_.get()), in EnqueueRemoteNameRequest()
266 …GetHandler()->Call(&impl::ReportRemoteNameRequestCompletion, common::Unretained(pimpl_.get()), add… in ReportRemoteNameRequestCompletion()
271 …&impl::CancelRemoteNameRequest, common::Unretained(pimpl_.get()), address, std::move(cancel_reques… in CancelRemoteNameRequest()
279 pimpl_->Stop(); in Stop()
/packages/modules/Bluetooth/system/stack/eatt/
Deatt.cc70 return instance->pimpl_->eatt_impl_.get(); in GetImplInstance()
128 EattExtension::EattExtension() : pimpl_(std::make_unique<impl>()) {} in EattExtension()
131 return pimpl_->eatt_impl_->is_eatt_supported_by_peer(bd_addr); in IsEattSupportedByPeer()
135 pimpl_->eatt_impl_->connect(bd_addr); in Connect()
139 pimpl_->eatt_impl_->disconnect(bd_addr, cid); in Disconnect()
144 pimpl_->eatt_impl_->reconfigure(bd_addr, cid, mtu); in Reconfigure()
147 pimpl_->eatt_impl_->reconfigure_all(bd_addr, mtu); in ReconfigureAll()
152 return pimpl_->eatt_impl_->find_eatt_channel_by_cid(bd_addr, cid); in FindEattChannelByCid()
157 return pimpl_->eatt_impl_->find_eatt_channel_by_transid(bd_addr, trans_id); in FindEattChannelByTransId()
162 return pimpl_->eatt_impl_->is_indication_pending(bd_addr, indication_handle); in IsIndicationPending()
[all …]
/packages/modules/Bluetooth/system/gd/l2cap/classic/
Dl2cap_classic_module.cc97 pimpl_ = std::make_unique<impl>(GetHandler(), GetDependency<hci::AclManager>()); in Start()
101 pimpl_.reset(); in Stop()
109 …return std::unique_ptr<FixedChannelManager>(new FixedChannelManager(&pimpl_->fixed_channel_service… in GetFixedChannelManager()
110 … &pimpl_->link_manager_, pimpl_->l2cap_handler_)); in GetFixedChannelManager()
115 … &pimpl_->dynamic_channel_service_manager_impl_, &pimpl_->link_manager_, pimpl_->l2cap_handler_)); in GetDynamicChannelManager()
121pimpl_->dynamic_channel_service_manager_impl_.SetSecurityEnforcementInterface(security_enforcement… in InjectSecurityEnforcementInterface()
123pimpl_->dynamic_channel_service_manager_impl_.SetSecurityEnforcementInterface(&default_security_mo… in InjectSecurityEnforcementInterface()
129 pimpl_->security_interface_impl_.RegisterLinkSecurityInterfaceListener(handler, listener); in GetSecurityInterface()
130 return &pimpl_->security_interface_impl_; in GetSecurityInterface()
134 pimpl_->link_manager_.RegisterLinkPropertyListener(handler, listener); in SetLinkPropertyListener()
[all …]
/packages/modules/Bluetooth/system/gd/l2cap/le/
Dl2cap_le_module.cc77 pimpl_ = std::make_unique<impl>(GetHandler(), GetDependency<hci::AclManager>()); in Start()
81 pimpl_.reset(); in Stop()
89 …return std::unique_ptr<FixedChannelManager>(new FixedChannelManager(&pimpl_->fixed_channel_service… in GetFixedChannelManager()
90 … &pimpl_->link_manager_, pimpl_->l2cap_handler_)); in GetFixedChannelManager()
95 … &pimpl_->dynamic_channel_service_manager_impl_, &pimpl_->link_manager_, pimpl_->l2cap_handler_)); in GetDynamicChannelManager()
100pimpl_->dynamic_channel_service_manager_impl_.SetSecurityEnforcementInterface(security_enforcement… in InjectSecurityEnforcementInterface()
102pimpl_->dynamic_channel_service_manager_impl_.SetSecurityEnforcementInterface(&default_security_mo… in InjectSecurityEnforcementInterface()
107 pimpl_->link_manager_.RegisterLinkPropertyListener(handler, listener); in SetLinkPropertyListener()
/packages/modules/Bluetooth/system/gd/facade/
Dgrpc_root_server.cc158 GrpcRootServer::GrpcRootServer() : pimpl_(new impl()) {} in GrpcRootServer()
163 ASSERT(!pimpl_->started_); in StartServer()
164 pimpl_->started_ = true; in StartServer()
169 pimpl_->root_facade_service_ = std::make_unique<RootFacadeService>(grpc_port); in StartServer()
170 builder.RegisterService(pimpl_->root_facade_service_.get()); in StartServer()
172 pimpl_->server_ = builder.BuildAndStart(); in StartServer()
174 ASSERT(pimpl_->server_ != nullptr); in StartServer()
178 ASSERT(pimpl_->started_); in StopServer()
179 pimpl_->server_->Shutdown(); in StopServer()
180 pimpl_->started_ = false; in StopServer()
[all …]
/packages/modules/Bluetooth/system/gd/neighbor/
Dscan.cc162 neighbor::ScanModule::ScanModule() : pimpl_(std::make_unique<impl>(*this)) {} in ScanModule()
165 pimpl_.reset(); in ~ScanModule()
169 pimpl_->SetInquiryScan(true); in SetInquiryScan()
173 pimpl_->SetInquiryScan(false); in ClearInquiryScan()
177 pimpl_->SetPageScan(true); in SetPageScan()
181 pimpl_->SetPageScan(false); in ClearPageScan()
185 return pimpl_->IsInquiryEnabled(); in IsInquiryEnabled()
189 return pimpl_->IsPageEnabled(); in IsPageEnabled()
197 pimpl_->Start(); in Start()
201 pimpl_->Stop(); in Stop()
Dconnectability.cc71 neighbor::ConnectabilityModule::ConnectabilityModule() : pimpl_(std::make_unique<impl>(*this)) {} in ConnectabilityModule()
74 pimpl_.reset(); in ~ConnectabilityModule()
78 pimpl_->StartConnectability(); in StartConnectability()
82 pimpl_->StopConnectability(); in StopConnectability()
86 return pimpl_->IsConnectable(); in IsConnectable()
97 pimpl_->Start(); in Start()
101 pimpl_->Stop(); in Stop()
Dinquiry.cc389 neighbor::InquiryModule::InquiryModule() : pimpl_(std::make_unique<impl>(*this)) {} in InquiryModule()
392 pimpl_.reset(); in ~InquiryModule()
396 pimpl_->RegisterCallbacks(callbacks); in RegisterCallbacks()
400 pimpl_->UnregisterCallbacks(); in UnregisterCallbacks()
406 common::Unretained(pimpl_.get()), in StartGeneralInquiry()
415 common::Unretained(pimpl_.get()), in StartLimitedInquiry()
423 …n::BindOnce(&neighbor::InquiryModule::impl::StopOneShotInquiry, common::Unretained(pimpl_.get()))); in StopInquiry()
430 common::Unretained(pimpl_.get()), in StartGeneralPeriodicInquiry()
442 common::Unretained(pimpl_.get()), in StartLimitedPeriodicInquiry()
452 …::BindOnce(&neighbor::InquiryModule::impl::StopPeriodicInquiry, common::Unretained(pimpl_.get()))); in StopPeriodicInquiry()
[all …]
Ddiscoverability.cc135 neighbor::DiscoverabilityModule::DiscoverabilityModule() : pimpl_(std::make_unique<impl>(*this)) {} in DiscoverabilityModule()
138 pimpl_.reset(); in ~DiscoverabilityModule()
148 pimpl_->StartDiscoverability(laps); in StartGeneralDiscoverability()
164 pimpl_->StartDiscoverability(laps); in StartLimitedDiscoverability()
168 pimpl_->StopDiscoverability(); in StopDiscoverability()
172 return pimpl_->IsGeneralDiscoverabilityEnabled(); in IsGeneralDiscoverabilityEnabled()
176 return pimpl_->IsLimitedDiscoverabilityEnabled(); in IsLimitedDiscoverabilityEnabled()
188 pimpl_->Start(); in Start()
Dpage.cc170 neighbor::PageModule::PageModule() : pimpl_(std::make_unique<impl>(*this)) {} in PageModule()
173 pimpl_.reset(); in ~PageModule()
177 pimpl_->SetScanActivity(params); in SetScanActivity()
181 return pimpl_->GetScanActivity(); in GetScanActivity()
185 pimpl_->SetScanType(hci::PageScanType::INTERLACED); in SetInterlacedScan()
189 pimpl_->SetScanType(hci::PageScanType::STANDARD); in SetStandardScan()
193 pimpl_->SetTimeout(timeout); in SetTimeout()
204 pimpl_->Start(); in Start()
208 pimpl_->Stop(); in Stop()
/packages/modules/Bluetooth/system/main/shim/
Dacl.cc1385 pimpl_ = std::make_unique<Acl::impl>(max_acceptlist_size, in Acl()
1411 pimpl_->DumpConnectionHistory(); in ~Acl()
1418 if (!pimpl_->handle_to_classic_connection_map_.empty()) { in CheckForOrphanedAclConnections()
1420 for (const auto& connection : pimpl_->handle_to_classic_connection_map_) { in CheckForOrphanedAclConnections()
1432 if (!pimpl_->handle_to_le_connection_map_.empty()) { in CheckForOrphanedAclConnections()
1434 for (const auto& connection : pimpl_->handle_to_le_connection_map_) { in CheckForOrphanedAclConnections()
1455 if (pimpl_->IsClassicAcl(handle)) { in write_data_sync()
1456 pimpl_->EnqueueClassicPacket(handle, std::move(packet)); in write_data_sync()
1457 } else if (pimpl_->IsLeAcl(handle)) { in write_data_sync()
1458 pimpl_->EnqueueLePacket(handle, std::move(packet)); in write_data_sync()
[all …]
/packages/modules/Bluetooth/system/gd/btaa/android/
Dactivity_attribution.cc201 CallOn(pimpl_.get(), &impl::on_hci_packet, truncate_packet, type, original_length); in Capture()
205 CallOn(pimpl_.get(), &impl::on_wakelock_acquired); in OnWakelockAcquired()
209 CallOn(pimpl_.get(), &impl::on_wakelock_released); in OnWakelockReleased()
213 CallOn(pimpl_.get(), &impl::on_wakeup); in OnWakeup()
217 CallOn(pimpl_.get(), &impl::register_callback, callback); in RegisterActivityAttributionCallback()
222 CallOn(pimpl_.get(), &impl::notify_activity_attribution_info, uid, package_name, device_address); in NotifyActivityAttributionInfo()
232 pimpl_ = std::make_unique<impl>(this); in Start()
236 pimpl_.reset(); in Stop()
244 pimpl_->Dump(std::move(promise), fb_builder); in GetDumpsysData()

1234