Home
last modified time | relevance | path

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

123

/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()
51 if (!pimpl_) return; in CreateCig()
52 pimpl_->CreateCig(cig_id, std::move(cig_params)); in CreateCig()
57 if (!pimpl_) return; in ReconfigureCig()
58 pimpl_->ReconfigureCig(cig_id, std::move(cig_params)); in ReconfigureCig()
62 pimpl_->RemoveCig(cig_id, force); in RemoveCig()
67 if (!pimpl_) return; in EstablishCis()
[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 …]
Dcodec_manager.cc347 CodecManager::CodecManager() : pimpl_(std::make_unique<impl>(*this)) {} in CodecManager()
351 if (!pimpl_->IsRunning()) pimpl_->Start(offloading_preference); in Start()
355 if (pimpl_->IsRunning()) pimpl_->Stop(); in Stop()
359 if (!pimpl_->IsRunning()) { in GetCodecLocation()
363 return pimpl_->codec_manager_impl_->GetCodecLocation(); in GetCodecLocation()
370 if (pimpl_->IsRunning()) in UpdateActiveSourceAudioConfig()
371 pimpl_->codec_manager_impl_->UpdateActiveSourceAudioConfig( in UpdateActiveSourceAudioConfig()
379 if (pimpl_->IsRunning()) in UpdateActiveSinkAudioConfig()
380 pimpl_->codec_manager_impl_->UpdateActiveSinkAudioConfig( in UpdateActiveSinkAudioConfig()
386 if (pimpl_->IsRunning()) { in GetOffloadCodecConfig()
[all …]
Dcontent_control_id_keeper.cc99 : pimpl_(std::make_unique<impl>(*this)) {} in ContentControlIdKeeper()
102 if (!pimpl_->IsRunning()) pimpl_->Start(); in Start()
106 if (pimpl_->IsRunning()) pimpl_->Stop(); in Stop()
110 if (!pimpl_->IsRunning()) { in GetCcid()
114 return pimpl_->ccid_keeper_impl_->GetCcid(context_type); in GetCcid()
118 if (pimpl_->IsRunning()) { in SetCcid()
119 pimpl_->ccid_keeper_impl_->SetCcid(context_type, ccid); in SetCcid()
/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()
66 pimpl_->iso_impl_->create_cig(cig_id, std::move(cig_params)); in CreateCig()
71 pimpl_->iso_impl_->reconfigure_cig(cig_id, std::move(cig_params)); in ReconfigureCig()
75 pimpl_->iso_impl_->remove_cig(cig_id, force); in RemoveCig()
80 pimpl_->iso_impl_->establish_cis(std::move(conn_params)); in EstablishCis()
84 pimpl_->iso_impl_->disconnect_cis(cis_handle, reason); in DisconnectCis()
89 pimpl_->iso_impl_->setup_iso_data_path(iso_handle, std::move(path_params)); in SetupIsoDataPath()
93 pimpl_->iso_impl_->remove_iso_data_path(iso_handle, data_path_dir); in RemoveIsoDataPath()
[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/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/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/gd/hci/
Dacl_manager.cc131 AclManager::AclManager() : pimpl_(std::make_unique<impl>(*this)) {} in AclManager()
136 … common::Unretained(pimpl_->classic_impl_), common::Unretained(callbacks), in RegisterCallbacks()
143 pimpl_->classic_impl_, in UnregisterCallbacks()
152 pimpl_->le_impl_, in RegisterLeCallbacks()
160 …CallOn(pimpl_->le_impl_, &le_impl::handle_unregister_le_callbacks, common::Unretained(callbacks), … in UnregisterLeCallbacks()
164 CallOn(pimpl_->classic_impl_, &classic_impl::create_connection, address); in CreateConnection()
169 CallOn(pimpl_->le_impl_, &le_impl::add_device_to_background_connection_list, address_with_type); in CreateLeConnection()
171 CallOn(pimpl_->le_impl_, &le_impl::create_le_connection, address_with_type, true, is_direct); in CreateLeConnection()
175 …CallOn(pimpl_->le_impl_, &le_impl::is_on_background_connection_list, address_with_type, std::move(… in IsOnBackgroundList()
179 CallOn(pimpl_->le_impl_, &le_impl::set_le_suggested_default_data_parameters, octets, time); in SetLeSuggestedDefaultDataParameters()
[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.cc121 pimpl_ = new LeAclConnection::impl(le_acl_connection_interface, std::move(queue), handle); in LeAclConnection()
125 if (pimpl_) pimpl_->PutEventCallbacks(); in ~LeAclConnection()
126 delete pimpl_; in ~LeAclConnection()
130 return pimpl_->tracker.RegisterCallbacks(callbacks, handler); in RegisterCallbacks()
134 pimpl_->tracker.le_acl_connection_interface_->EnqueueCommand( in Disconnect()
136 pimpl_->tracker.client_handler_->BindOnce([](CommandStatusView status) { in Disconnect()
150 return pimpl_->GetEventCallbacks(std::move(invalidate_callbacks)); in GetEventCallbacks()
159 pimpl_->tracker.le_acl_connection_interface_->EnqueueCommand( in LeConnectionUpdate()
162 pimpl_->tracker.client_handler_->BindOnce([](CommandStatusView status) { in LeConnectionUpdate()
170 pimpl_->tracker.le_acl_connection_interface_->EnqueueCommand( in ReadRemoteVersionInformation()
[all …]
/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/storage/
Dstorage_module.cc87 pimpl_.reset(); in ~StorageModule()
106 return Mutation(&pimpl_->cache_, &pimpl_->memory_only_cache_); in Modify()
111 return &pimpl_->cache_; in GetConfigCache()
116 return &pimpl_->memory_only_cache_; in GetMemoryOnlyConfigCache()
121 if (pimpl_->has_pending_config_save_) { in SaveDelayed()
124 pimpl_->config_save_alarm_.Schedule( in SaveDelayed()
126 pimpl_->has_pending_config_save_ = true; in SaveDelayed()
131 if (pimpl_->has_pending_config_save_) { in SaveImmediately()
132 pimpl_->config_save_alarm_.Cancel(); in SaveImmediately()
133 pimpl_->has_pending_config_save_ = false; in SaveImmediately()
[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()
Dname_db.cc116 neighbor::NameDbModule::NameDbModule() : pimpl_(std::make_unique<impl>(*this)) {} in NameDbModule()
119 pimpl_.reset(); in ~NameDbModule()
126 common::Unretained(pimpl_.get()), in ReadRemoteNameRequest()
133 return pimpl_->IsNameCached(address); in IsNameCached()
137 return pimpl_->ReadCachedRemoteName(address); in ReadCachedRemoteName()
155 pimpl_->Start(); in Start()
159 pimpl_->Stop(); in Stop()
/packages/modules/Bluetooth/system/main/shim/
Dacl.cc1254 pimpl_ = std::make_unique<Acl::impl>(max_acceptlist_size, in Acl()
1280 pimpl_->DumpConnectionHistory(); in ~Acl()
1287 if (!pimpl_->handle_to_classic_connection_map_.empty()) { in CheckForOrphanedAclConnections()
1289 for (const auto& connection : pimpl_->handle_to_classic_connection_map_) { in CheckForOrphanedAclConnections()
1301 if (!pimpl_->handle_to_le_connection_map_.empty()) { in CheckForOrphanedAclConnections()
1303 for (const auto& connection : pimpl_->handle_to_le_connection_map_) { in CheckForOrphanedAclConnections()
1324 if (pimpl_->IsClassicAcl(handle)) { in write_data_sync()
1325 pimpl_->EnqueueClassicPacket(handle, std::move(packet)); in write_data_sync()
1326 } else if (pimpl_->IsLeAcl(handle)) { in write_data_sync()
1327 pimpl_->EnqueueLePacket(handle, std::move(packet)); in write_data_sync()
[all …]
/packages/modules/Bluetooth/system/gd/btaa/android/
Dactivity_attribution.cc200 CallOn(pimpl_.get(), &impl::on_hci_packet, truncate_packet, type, original_length); in Capture()
204 CallOn(pimpl_.get(), &impl::on_wakelock_acquired); in OnWakelockAcquired()
208 CallOn(pimpl_.get(), &impl::on_wakelock_released); in OnWakelockReleased()
212 CallOn(pimpl_.get(), &impl::on_wakeup); in OnWakeup()
216 CallOn(pimpl_.get(), &impl::register_callback, callback); in RegisterActivityAttributionCallback()
221 CallOn(pimpl_.get(), &impl::notify_activity_attribution_info, uid, package_name, device_address); in NotifyActivityAttributionInfo()
231 pimpl_ = std::make_unique<impl>(this); in Start()
235 pimpl_.reset(); in Stop()
243 pimpl_->Dump(std::move(promise), fb_builder); in GetDumpsysData()

123