Home
last modified time | relevance | path

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

123

/system/bt/gd/os/android/
Dwakelock_native.cc61 pimpl_->suspend_service = ISystemSuspend::getService(); in Initialize()
62 ASSERT_LOG(pimpl_->suspend_service, "Cannot get ISystemSuspend service"); in Initialize()
63 pimpl_->suspend_death_recipient = new Impl::SystemSuspendDeathRecipient(pimpl_.get()); in Initialize()
64 pimpl_->suspend_service->linkToDeath(pimpl_->suspend_death_recipient, 0 /* cookie */); in Initialize()
68 if (!pimpl_->suspend_service) { in Acquire()
73 if (pimpl_->current_wakelock) { in Acquire()
78pimpl_->current_wakelock = pimpl_->suspend_service->acquireWakeLock(WakeLockType::PARTIAL, lock_na… in Acquire()
79 if (!pimpl_->current_wakelock) { in Acquire()
88 if (!pimpl_->current_wakelock) { in Release()
92 pimpl_->current_wakelock->release(); in Release()
[all …]
/system/bt/stack/test/common/
Dmock_eatt.cc37 EattExtension::EattExtension() : pimpl_(std::make_unique<impl>()) {} in EattExtension()
40 return pimpl_->IsEattSupportedByPeer(bd_addr); in IsEattSupportedByPeer()
44 pimpl_->Connect(bd_addr); in Connect()
48 pimpl_->Disconnect(bd_addr); in Disconnect()
53 pimpl_->Reconfigure(bd_addr, cid, mtu); in Reconfigure()
56 pimpl_->ReconfigureAll(bd_addr, mtu); in ReconfigureAll()
61 return pimpl_->FindEattChannelByCid(bd_addr, cid); in FindEattChannelByCid()
66 return pimpl_->FindEattChannelByTransId(bd_addr, trans_id); in FindEattChannelByTransId()
71 return pimpl_->IsIndicationPending(bd_addr, indication_handle); in IsIndicationPending()
76 return pimpl_->GetChannelAvailableForIndication(bd_addr); in GetChannelAvailableForIndication()
[all …]
/system/bt/stack/btm/
Dbtm_iso.cc50 IsoManager::IsoManager() : pimpl_(std::make_unique<impl>(*this)) {} in IsoManager()
53 pimpl_->iso_impl_->handle_register_cis_callbacks(callbacks); in RegisterCigCallbacks()
57 pimpl_->iso_impl_->handle_register_big_callbacks(callbacks); in RegisterBigCallbacks()
62 pimpl_->iso_impl_->create_cig(cig_id, std::move(cig_params)); in CreateCig()
67 pimpl_->iso_impl_->reconfigure_cig(cig_id, std::move(cig_params)); in ReconfigureCig()
71 pimpl_->iso_impl_->remove_cig(cig_id); in RemoveCig()
76 pimpl_->iso_impl_->establish_cis(std::move(conn_params)); in EstablishCis()
80 pimpl_->iso_impl_->disconnect_cis(cis_handle, reason); in DisconnectCis()
85 pimpl_->iso_impl_->setup_iso_data_path(iso_handle, std::move(path_params)); in SetupIsoDataPath()
89 pimpl_->iso_impl_->remove_iso_data_path(iso_handle, data_path_dir); in RemoveIsoDataPath()
[all …]
/system/bt/stack/eatt/
Deatt.cc65 return instance->pimpl_->eatt_impl_.get(); in GetImplInstance()
118 EattExtension::EattExtension() : pimpl_(std::make_unique<impl>()) {} in EattExtension()
121 return pimpl_->eatt_impl_->is_eatt_supported_by_peer(bd_addr); in IsEattSupportedByPeer()
125 pimpl_->eatt_impl_->connect(bd_addr); in Connect()
129 pimpl_->eatt_impl_->disconnect(bd_addr); in Disconnect()
134 pimpl_->eatt_impl_->reconfigure(bd_addr, cid, mtu); in Reconfigure()
137 pimpl_->eatt_impl_->reconfigure_all(bd_addr, mtu); in ReconfigureAll()
142 return pimpl_->eatt_impl_->find_eatt_channel_by_cid(bd_addr, cid); in FindEattChannelByCid()
147 return pimpl_->eatt_impl_->find_eatt_channel_by_transid(bd_addr, trans_id); in FindEattChannelByTransId()
152 return pimpl_->eatt_impl_->is_indication_pending(bd_addr, indication_handle); in IsIndicationPending()
[all …]
/system/bt/common/
Dmetrics.cc291 : pimpl_(new impl(kMaxNumBluetoothSession, kMaxNumPairEvent, in BluetoothMetricsLogger()
304 pimpl_->pair_event_queue_->Enqueue(event); in LogPairEvent()
306 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_log_lock_); in LogPairEvent()
307 pimpl_->bluetooth_log_->set_num_pair_event( in LogPairEvent()
308 pimpl_->bluetooth_log_->num_pair_event() + 1); in LogPairEvent()
321 pimpl_->wake_event_queue_->Enqueue(event); in LogWakeEvent()
323 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_log_lock_); in LogWakeEvent()
324 pimpl_->bluetooth_log_->set_num_wake_event( in LogWakeEvent()
325 pimpl_->bluetooth_log_->num_wake_event() + 1); in LogWakeEvent()
343 pimpl_->scan_event_queue_->Enqueue(event); in LogScanEvent()
[all …]
/system/bt/gd/storage/
Dstorage_module.cc81 pimpl_.reset(); in ~StorageModule()
100 return Mutation(&pimpl_->cache_, &pimpl_->memory_only_cache_); in Modify()
105 return &pimpl_->cache_; in GetConfigCache()
110 return &pimpl_->memory_only_cache_; in GetMemoryOnlyConfigCache()
115 if (pimpl_->has_pending_config_save_) { in SaveDelayed()
118 pimpl_->config_save_alarm_.Schedule( in SaveDelayed()
120 pimpl_->has_pending_config_save_ = true; in SaveDelayed()
125 if (pimpl_->has_pending_config_save_) { in SaveImmediately()
126 pimpl_->config_save_alarm_.Cancel(); in SaveImmediately()
127 pimpl_->has_pending_config_save_ = false; in SaveImmediately()
[all …]
/system/bt/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()
/system/bt/gd/hci/
Dacl_manager.cc126 AclManager::AclManager() : pimpl_(std::make_unique<impl>(*this)) {} in AclManager()
131 … common::Unretained(pimpl_->classic_impl_), common::Unretained(callbacks), in RegisterCallbacks()
138 pimpl_->classic_impl_, in UnregisterCallbacks()
147 pimpl_->le_impl_, in RegisterLeCallbacks()
155 …CallOn(pimpl_->le_impl_, &le_impl::handle_unregister_le_callbacks, common::Unretained(callbacks), … in UnregisterLeCallbacks()
159 CallOn(pimpl_->classic_impl_, &classic_impl::create_connection, address); in CreateConnection()
163 CallOn(pimpl_->le_impl_, &le_impl::create_le_connection, address_with_type, true, is_direct); in CreateLeConnection()
167 CallOn(pimpl_->le_impl_, &le_impl::set_le_suggested_default_data_parameters, octets, time); in SetLeSuggestedDefaultDataParameters()
181 pimpl_->le_impl_, in SetPrivacyPolicyForInitiatorAddress()
198 pimpl_->le_impl_, in SetPrivacyPolicyForInitiatorAddressForTest()
[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()
/system/bt/gd/hci/acl_manager/
Dclassic_acl_connection.cc348pimpl_ = new ClassicAclConnection::impl(acl_connection_interface, std::move(queue), address, handl… in ClassicAclConnection()
352 delete pimpl_; in ~ClassicAclConnection()
356 return pimpl_->GetEventCallbacks(); in GetEventCallbacks()
360 return pimpl_->tracker.RegisterCallbacks(callbacks, handler); in RegisterCallbacks()
366 pimpl_->tracker.client_handler_->BindOnce(&check_command_status<DisconnectStatusView>)); in Disconnect()
373pimpl_->tracker.client_handler_->BindOnce(&check_command_status<ChangeConnectionPacketTypeStatusVi… in ChangeConnectionPacketType()
380pimpl_->tracker.client_handler_->BindOnce(&check_command_status<AuthenticationRequestedStatusView>… in AuthenticationRequested()
387pimpl_->tracker.client_handler_->BindOnce(&check_command_status<SetConnectionEncryptionStatusView>… in SetConnectionEncryption()
394pimpl_->tracker.client_handler_->BindOnce(&check_command_status<ChangeConnectionLinkKeyStatusView>… in ChangeConnectionLinkKey()
401 pimpl_->tracker.client_handler_->BindOnce(&check_command_status<ReadClockOffsetStatusView>)); in ReadClockOffset()
[all …]
Dle_acl_connection.cc114 pimpl_ = new LeAclConnection::impl(le_acl_connection_interface, std::move(queue), handle); in LeAclConnection()
118 delete pimpl_; in ~LeAclConnection()
122 return pimpl_->tracker.RegisterCallbacks(callbacks, handler); in RegisterCallbacks()
126 pimpl_->tracker.le_acl_connection_interface_->EnqueueCommand( in Disconnect()
128 pimpl_->tracker.client_handler_->BindOnce([](CommandStatusView status) { in Disconnect()
141 return pimpl_->GetEventCallbacks(); in GetEventCallbacks()
150 pimpl_->tracker.le_acl_connection_interface_->EnqueueCommand( in LeConnectionUpdate()
153 pimpl_->tracker.client_handler_->BindOnce([](CommandStatusView status) { in LeConnectionUpdate()
161 pimpl_->tracker.le_acl_connection_interface_->EnqueueCommand( in ReadRemoteVersionInformation()
163 pimpl_->tracker.client_handler_->BindOnce([](CommandStatusView status) { in ReadRemoteVersionInformation()
/system/bt/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 …]
/system/bt/gd/neighbor/
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()
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()
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()
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 …]
Dname.cc193 neighbor::NameModule::NameModule() : pimpl_(std::make_unique<impl>(*this)) {} in NameModule()
196 pimpl_.reset(); in ~NameModule()
210 common::Unretained(pimpl_.get()), in ReadRemoteNameRequest()
225 common::Unretained(pimpl_.get()), in CancelRemoteNameRequest()
239 pimpl_->Start(); in Start()
243 pimpl_->Stop(); in Stop()
/system/bt/gd/iso/
Diso_module.cc50pimpl_ = std::make_unique<impl>(GetHandler(), GetDependency<hci::HciLayer>(), GetDependency<hci::C… in Start()
54 pimpl_.reset(); in Stop()
62 …return std::unique_ptr<IsoManager>(new IsoManager(pimpl_->iso_handler_, &pimpl_->iso_manager_impl)… in GetIsoManager()
/system/bt/gd/btaa/android/
Dactivity_attribution.cc163 CallOn(pimpl_.get(), &impl::on_hci_packet, truncate_packet, type, original_length); in Capture()
167 CallOn(pimpl_.get(), &impl::on_wakelock_acquired); in OnWakelockAcquired()
171 CallOn(pimpl_.get(), &impl::on_wakelock_released); in OnWakelockReleased()
175 CallOn(pimpl_.get(), &impl::on_wakeup); in OnWakeup()
179 CallOn(pimpl_.get(), &impl::register_callback, callback); in RegisterActivityAttributionCallback()
189 pimpl_ = std::make_unique<impl>(this); in Start()
193 pimpl_.reset(); in Stop()
201 pimpl_->Dump(std::move(promise), fb_builder); in GetDumpsysData()
/system/bt/gd/security/
Dsecurity_module.cc104 pimpl_ = std::make_unique<impl>( in Start()
118 pimpl_.reset(); in Stop()
127 new SecurityManager(pimpl_->security_handler_, &pimpl_->security_manager_impl)); in GetSecurityManager()
132 new FacadeConfigurationApi(pimpl_->security_handler_, &pimpl_->security_manager_impl)); in GetFacadeConfigurationApi()
/system/bt/main/shim/
Dacl.cc1049 pimpl_ = std::make_unique<Acl::impl>(max_acceptlist_size); in Acl()
1069 pimpl_->DumpConnectionHistory(); in ~Acl()
1076 if (!pimpl_->handle_to_classic_connection_map_.empty()) { in CheckForOrphanedAclConnections()
1078 for (const auto& connection : pimpl_->handle_to_classic_connection_map_) { in CheckForOrphanedAclConnections()
1090 if (!pimpl_->handle_to_le_connection_map_.empty()) { in CheckForOrphanedAclConnections()
1092 for (const auto& connection : pimpl_->handle_to_le_connection_map_) { in CheckForOrphanedAclConnections()
1113 if (pimpl_->IsClassicAcl(handle)) { in write_data_sync()
1114 pimpl_->EnqueueClassicPacket(handle, std::move(packet)); in write_data_sync()
1115 } else if (pimpl_->IsLeAcl(handle)) { in write_data_sync()
1116 pimpl_->EnqueueLePacket(handle, std::move(packet)); in write_data_sync()
[all …]
/system/bt/gd/shim/
Ddumpsys.cc147 CallOn(pimpl_.get(), &Dumpsys::impl::DumpWithArgsSync, fd, args, std::move(promise)); in Dump()
152 CallOn(pimpl_.get(), &Dumpsys::impl::DumpWithArgsSync, fd, args, std::move(promise)); in Dump()
165 pimpl_ = std::make_unique<impl>(*this, reflection_schema_); in Start()
169 pimpl_.reset(); in Stop()
187 builder.add_number_of_bundled_schemas(pimpl_->GetNumberOfBundledSchemas()); in GetDumpsysData()
/system/bt/gd/l2cap/internal/
Denhanced_retransmission_mode_channel_data_controller.cc35 scheduler_(scheduler), pimpl_(std::make_unique<impl>(this, handler)) {} in ErtmController()
822 pimpl_->data_request(SegmentationAndReassembly::UNSEGMENTED, std::move(segments[0])); in OnSdu()
825 pimpl_->data_request(SegmentationAndReassembly::START, std::move(segments[0]), sdu_size); in OnSdu()
827 pimpl_->data_request(SegmentationAndReassembly::CONTINUATION, std::move(segments[i])); in OnSdu()
829 pimpl_->data_request(SegmentationAndReassembly::END, std::move(segments.back())); in OnSdu()
867 pimpl_->recv_i_frame(f, tx_seq, req_seq, sar, i_frame_start_view.GetL2capSduLength(), in on_pdu_no_fcs()
870 pimpl_->recv_i_frame(f, tx_seq, req_seq, sar, 0, i_frame_view.GetPayload()); in on_pdu_no_fcs()
883 pimpl_->recv_rr(req_seq, p, f); in on_pdu_no_fcs()
886 pimpl_->recv_rnr(req_seq, p, f); in on_pdu_no_fcs()
889 pimpl_->recv_rej(req_seq, p, f); in on_pdu_no_fcs()
[all …]

123