Home
last modified time | relevance | path

Searched refs:GetInstance (Results 1 – 25 of 124) sorted by relevance

12345

/system/bt/main/shim/
Dentry.cc41 os::Handler* GetGdShimHandler() { return Stack::GetInstance()->GetHandler(); } in GetGdShimHandler()
44 return Stack::GetInstance() in GetAdvertising()
46 ->GetInstance<hci::LeAdvertisingManager>(); in GetAdvertising()
50 return Stack::GetInstance() in GetController()
52 ->GetInstance<hci::Controller>(); in GetController()
56 return Stack::GetInstance() in GetConnectability()
58 ->GetInstance<neighbor::ConnectabilityModule>(); in GetConnectability()
62 return Stack::GetInstance() in GetDiscoverability()
64 ->GetInstance<neighbor::DiscoverabilityModule>(); in GetDiscoverability()
68 return Stack::GetInstance()->GetStackManager()->GetInstance<Dumpsys>(); in GetDumpsys()
[all …]
Dacl_api.cc32 Stack::GetInstance()->GetAcl()->CreateClassicConnection(address); in ACL_CreateClassicConnection()
38 Stack::GetInstance()->GetAcl()->CancelClassicConnection(address); in ACL_CancelClassicConnection()
45 Stack::GetInstance()->GetAcl()->AcceptLeConnectionFrom( in ACL_AcceptLeConnectionFrom()
53 Stack::GetInstance()->GetAcl()->IgnoreLeConnectionFrom( in ACL_IgnoreLeConnectionFrom()
61 Stack::GetInstance()->GetAcl()->WriteData(handle, std::move(packet)); in ACL_WriteData()
76 Stack::GetInstance() in ACL_ConfigureLePrivacy()
78 ->GetInstance<bluetooth::hci::AclManager>() in ACL_ConfigureLePrivacy()
87 ? Stack::GetInstance()->GetAcl()->DisconnectClassic(handle, reason) in ACL_Disconnect()
88 : Stack::GetInstance()->GetAcl()->DisconnectLe(handle, reason); in ACL_Disconnect()
92 Stack::GetInstance()->GetAcl()->Shutdown(); in ACL_Shutdown()
[all …]
Dmetric_id_api.cc50 return MetricIdManager::GetInstance().Init( in InitMetricIdAllocator()
54 bool CloseMetricIdAllocator() { return MetricIdManager::GetInstance().Close(); } in CloseMetricIdAllocator()
57 return MetricIdManager::GetInstance().IsEmpty(); in IsEmptyMetricIdAllocator()
62 return MetricIdManager::GetInstance().AllocateId(address); in AllocateIdFromMetricIdAllocator()
67 return MetricIdManager::GetInstance().SaveDevice(address); in SaveDeviceOnMetricIdAllocator()
72 return MetricIdManager::GetInstance().ForgetDevice(address); in ForgetDeviceFromMetricIdAllocator()
76 return MetricIdManager::GetInstance().IsValidId(id); in IsValidIdFromMetricIdAllocator()
Dbtm_api.cc272 static ShimUi* GetInstance() { in GetInstance() function in ShimUi
404 static ShimBondListener* GetInstance() { in GetInstance() function in ShimBondListener
468 MetricIdAllocator::GetInstance().AllocateId( in OnDeviceBonded()
474 : MetricIdAllocator::GetInstance().SaveDevice( in OnDeviceBonded()
490 MetricIdAllocator::GetInstance().ForgetDevice( in OnDeviceUnbonded()
536 Stack::GetInstance()->GetBtm()->StartActiveScanning(); in BTM_StartInquiry()
538 Stack::GetInstance()->GetBtm()->SetScanningTimer( in BTM_StartInquiry()
542 Stack::GetInstance()->GetBtm()->StopActiveScanning(); in BTM_StartInquiry()
546 Stack::GetInstance()->GetBtm()->StartActiveScanning(); in BTM_StartInquiry()
549 if (!Stack::GetInstance()->GetBtm()->StartInquiry( in BTM_StartInquiry()
[all …]
Dshim.cc27 bluetooth::shim::Stack::GetInstance()->StartIdleMode(); in IdleModuleStartUp()
32 bluetooth::shim::Stack::GetInstance()->StartEverything(); in ShimModuleStartUp()
37 bluetooth::shim::Stack::GetInstance()->Stop(); in GeneralShutDown()
98 return bluetooth::shim::Stack::GetInstance()->IsRunning(); in is_gd_stack_started_up()
102 return bluetooth::shim::Stack::GetInstance()->IsDumpsysModuleStarted(); in is_gd_dumpsys_module_started()
Dactivity_attribution.cc31 static ActivityAttributionInterfaceImpl* GetInstance() { in GetInstance() function in ActivityAttributionInterfaceImpl
83 return ActivityAttributionInterfaceImpl::GetInstance(); in get_activity_attribution_instance()
Dstack.cc58 Stack* Stack::GetInstance() { in GetInstance() function in bluetooth::shim::Stack
71 ASSERT(stack_manager_.GetInstance<storage::StorageModule>() != nullptr); in StartIdleMode()
141 ASSERT(stack_manager_.GetInstance<storage::StorageModule>() != nullptr); in StartEverything()
142 ASSERT(stack_manager_.GetInstance<shim::Dumpsys>() != nullptr); in StartEverything()
145 stack_manager_.GetInstance<neighbor::InquiryModule>()); in StartEverything()
/system/bt/stack/test/
Dbtm_iso_test.cc141 manager_instance_ = IsoManager::GetInstance(); in InitIsoManager()
197 IsoManager::GetInstance()->HandleHciEvent(HCI_BLE_CIS_EST_EVT, in InitIsoManager()
205 IsoManager::GetInstance()->HandleDisconnect(handle, reason); in InitIsoManager()
240 IsoManager::GetInstance()->HandleHciEvent( in InitIsoManager()
252 IsoManager::GetInstance()->HandleHciEvent(HCI_BLE_TERM_BIG_CPL_EVT, in InitIsoManager()
489 auto* iso_mgr = IsoManager::GetInstance(); in TEST_F()
494 auto* iso_mgr = IsoManager::GetInstance(); in TEST_F()
502 IsoManager::GetInstance()->Start(); in TEST_F()
504 ASSERT_EXIT(IsoManager::GetInstance()->RegisterBigCallbacks(nullptr), in TEST_F()
508 IsoManager::GetInstance()->Stop(); in TEST_F()
[all …]
/system/bt/common/
Daddress_obfuscator_unittest.cc82 AddressObfuscator::GetInstance()->Initialize(kEmptyKey); in TEST()
83 EXPECT_FALSE(AddressObfuscator::GetInstance()->IsInitialized()); in TEST()
87 AddressObfuscator::GetInstance()->Initialize(kTestKey1); in TEST()
88 EXPECT_TRUE(AddressObfuscator::GetInstance()->IsInitialized()); in TEST()
92 AddressObfuscator::GetInstance()->Initialize(kTestKey1); in TEST()
93 std::string result = AddressObfuscator::GetInstance()->Obfuscate(kTestData1); in TEST()
99 AddressObfuscator::GetInstance()->Initialize(kTestKey2); in TEST()
101 AddressObfuscator::GetInstance()->Obfuscate(kTestData2_1); in TEST()
107 AddressObfuscator::GetInstance()->Initialize(kTestKey2); in TEST()
109 AddressObfuscator::GetInstance()->Obfuscate(kTestData2_2); in TEST()
[all …]
Dmetrics_unittest.cc406 BluetoothMetricsLogger::GetInstance()->Reset(); in SetUp()
410 BluetoothMetricsLogger::GetInstance()->Reset(); in TearDown()
424 BluetoothMetricsLogger::GetInstance()->LogPairEvent( in TEST_F()
427 BluetoothMetricsLogger::GetInstance()->WriteString(&msg_str); in TEST_F()
436 BluetoothMetricsLogger::GetInstance()->LogWakeEvent( in TEST_F()
439 BluetoothMetricsLogger::GetInstance()->WriteString(&msg_str); in TEST_F()
450 BluetoothMetricsLogger::GetInstance()->LogWakeEvent( in TEST_F()
456 BluetoothMetricsLogger::GetInstance()->WriteString(&msg_str); in TEST_F()
468 BluetoothMetricsLogger::GetInstance()->LogScanEvent( in TEST_F()
472 BluetoothMetricsLogger::GetInstance()->WriteString(&msg_str); in TEST_F()
[all …]
Dmetric_id_allocator_unittest.cc51 auto& allocator = MetricIdAllocator::GetInstance(); in TEST()
62 auto& allocator = MetricIdAllocator::GetInstance(); in TEST()
75 auto& allocator = MetricIdAllocator::GetInstance(); in TEST()
91 auto& allocator = MetricIdAllocator::GetInstance(); in TEST()
111 auto& allocator = MetricIdAllocator::GetInstance(); in TEST()
131 auto& allocator = MetricIdAllocator::GetInstance(); in TEST()
182 auto& allocator = MetricIdAllocator::GetInstance(); in TEST()
321 auto& allocator = MetricIdAllocator::GetInstance(); in TEST()
385 auto& allocator = MetricIdAllocator::GetInstance(); in TEST()
408 auto& allocator = MetricIdAllocator::GetInstance(); in TEST()
[all …]
Dmetrics.cc582 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(*address); in LogLinkLayerConnectionEvent()
583 metric_id = MetricIdAllocator::GetInstance().AllocateId(*address); in LogLinkLayerConnectionEvent()
632 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogA2dpAudioUnderrunEvent()
633 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogA2dpAudioUnderrunEvent()
659 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogA2dpAudioOverrunEvent()
660 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogA2dpAudioOverrunEvent()
686 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogA2dpPlaybackEvent()
687 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogA2dpPlaybackEvent()
709 obfuscated_id = AddressObfuscator::GetInstance()->Obfuscate(address); in LogReadRssiResult()
710 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogReadRssiResult()
[all …]
/system/core/init/
Dreboot_test.cpp64 auto s = ServiceList::GetInstance().FindService(name); in ~RebootTest()
66 ServiceList::GetInstance().RemoveService(*s); in ~RebootTest()
77 for (const auto& s : ServiceList::GetInstance()) { in GetServiceNames()
104 ServiceList& service_list = ServiceList::GetInstance(); in AddTestService()
124 auto service_a = ServiceList::GetInstance().FindService("A"); in TEST_F()
126 auto service_b = ServiceList::GetInstance().FindService("B"); in TEST_F()
144 ServiceList::GetInstance().AddService(std::move(oneshot_service)); in TEST_F()
151 auto oneshot_service_after_stop = ServiceList::GetInstance().FindService(oneshot_service_name); in TEST_F()
164 auto service_a = ServiceList::GetInstance().FindService("A"); in TEST_F()
166 auto service_b = ServiceList::GetInstance().FindService("B"); in TEST_F()
[all …]
Dreboot.cpp90 for (const auto& s : ServiceList::GetInstance()) { in GetPostDataDebuggingServices()
192 Service* service = ServiceList::GetInstance().FindService("blank_screen"); in TurnOffBacklight()
525 for (const auto& s : ServiceList::GetInstance().services_in_shutdown_order()) { in StopServices()
552 for (const auto& s : ServiceList::GetInstance()) { in StopServicesAndLogViolations()
640 for (const auto& s : ServiceList::GetInstance()) { in DoReboot()
666 Service* boot_anim = ServiceList::GetInstance().FindService("bootanim"); in DoReboot()
667 Service* surface_flinger = ServiceList::GetInstance().FindService("surfaceflinger"); in DoReboot()
679 for (const auto& service : ServiceList::GetInstance()) { in DoReboot()
710 Service* vold_service = ServiceList::GetInstance().FindService("vold"); in DoReboot()
764 for (const auto& s : ServiceList::GetInstance()) { in EnterShutdown()
[all …]
Dbuiltins.cpp156 for (const auto& service : ServiceList::GetInstance()) { in ForEachServiceInClass()
167 for (const auto& service : ServiceList::GetInstance()) { in do_class_start()
189 for (const auto& service : ServiceList::GetInstance()) { in do_class_start_post_data()
239 Service* svc = ServiceList::GetInstance().FindService(args[1]); in do_enable()
258 ServiceList::GetInstance().AddService(std::move(*service)); in do_exec()
271 ServiceList::GetInstance().AddService(std::move(*service)); in do_exec_background()
276 Service* service = ServiceList::GetInstance().FindService(args[1]); in do_exec_start()
377 Service* svc = ServiceList::GetInstance().FindInterface(args[1]); in do_interface_restart()
384 Service* svc = ServiceList::GetInstance().FindInterface(args[1]); in do_interface_start()
393 Service* svc = ServiceList::GetInstance().FindInterface(args[1]); in do_interface_stop()
[all …]
Dinit.cpp279 ServiceList::GetInstance().DumpState(); in DumpState()
280 ActionManager::GetInstance().DumpState(); in DumpState()
342 ActionManager::GetInstance().QueuePropertyChange(name, value); in PropertyChanged()
351 for (const auto& s : ServiceList::GetInstance()) { in HandleProcessActions()
430 service = ServiceList::GetInstance().FindInterface(name); in HandleControlMessage()
432 service = ServiceList::GetInstance().FindService(name); in HandleControlMessage()
534 …ActionManager::GetInstance().QueueBuiltinAction(property_enable_triggers_action, "enable_property_… in queue_property_triggers_action()
535 ActionManager::GetInstance().QueueAllPropertyActions(); in queue_property_triggers_action()
662 for (const auto& service : ServiceList::GetInstance()) { in HandleKeychord()
852 ActionManager& am = ActionManager::GetInstance(); in SecondStageMain()
[all …]
/system/core/libprocessgroup/cgrouprc/
Dcgroup_file.cpp79 static CgroupFile* GetInstance() { in GetInstance() function
87 auto file = GetInstance(); in ACgroupFile_getVersion()
93 auto file = GetInstance(); in ACgroupFile_getControllerCount()
99 auto file = GetInstance(); in ACgroupFile_getController()
/system/bt/gd/os/android/
Dmetrics.cc52 metric_id = MetricIdManager::GetInstance().AllocateId(*address); in LogMetricLinkLayerConnectionEvent()
109 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricA2dpAudioUnderrunEvent()
136 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricA2dpAudioOverrunEvent()
164 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricA2dpPlaybackEvent()
182 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricReadRssiResult()
201 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricReadFailedContactCounterResult()
225 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricReadTxPowerLevelResult()
249 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricSmpPairingEvent()
274 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricClassicPairingEvent()
309 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricSdpAttribute()
[all …]
/system/bt/btif/src/
Dbtif_metrics_logging.cc125 return bluetooth::common::MetricIdAllocator::GetInstance().Init( in init_metric_id_allocator()
134 return bluetooth::common::MetricIdAllocator::GetInstance().Close(); in close_metric_id_allocator()
141 return bluetooth::common::MetricIdAllocator::GetInstance().AllocateId( in allocate_metric_id_from_metric_id_allocator()
149 return bluetooth::common::MetricIdAllocator::GetInstance().SaveDevice( in save_metric_id_from_metric_id_allocator()
157 bluetooth::common::MetricIdAllocator::GetInstance().ForgetDevice(address); in forget_device_from_metric_id_allocator()
/system/memory/libmeminfo/vts/
Dvts_meminfo_test.cpp60 android::vintf::VintfObject::GetInstance() in TEST()
81 android::vintf::VintfObject::GetInstance() in TEST()
102 KernelVersion kernel_version = VintfObject::GetInstance() in TEST()
/system/bt/gd/common/
Dmetric_id_manager_unittest.cc51 auto& manager = MetricIdManager::GetInstance(); in TEST()
63 auto& manager = MetricIdManager::GetInstance(); in TEST()
77 auto& manager = MetricIdManager::GetInstance(); in TEST()
94 auto& manager = MetricIdManager::GetInstance(); in TEST()
115 auto& manager = MetricIdManager::GetInstance(); in TEST()
142 auto& manager = MetricIdManager::GetInstance(); in TEST()
200 auto& manager = MetricIdManager::GetInstance(); in TEST()
346 auto& manager = MetricIdManager::GetInstance(); in TEST()
410 auto& manager = MetricIdManager::GetInstance(); in TEST()
433 auto& manager = MetricIdManager::GetInstance(); in TEST()
[all …]
/system/apex/apexd/
Dapexd_test.cpp189 ApexFileRepository::GetInstance().Reset(decompression_dir_); in SetUp()
219 auto& instance = ApexFileRepository::GetInstance(); in TEST_F()
250 auto& instance = ApexFileRepository::GetInstance(); in TEST_F()
273 auto& instance = ApexFileRepository::GetInstance(); in TEST_F()
295 auto& instance = ApexFileRepository::GetInstance(); in TEST_F()
317 auto& instance = ApexFileRepository::GetInstance(); in TEST_F()
521 auto& instance = ApexFileRepository::GetInstance(); in TEST_F()
535 auto& instance = ApexFileRepository::GetInstance(); in TEST_F()
569 auto& instance = ApexFileRepository::GetInstance(); in TEST_F()
765 ApexFileRepository::GetInstance().AddPreInstalledApex({GetBuiltInDir()}); in TEST_F()
[all …]
/system/core/fs_mgr/liblp/
Ddevice_test.cpp38 if (!IPropertyFetcher::GetInstance()->GetBoolProperty("ro.boot.dynamic_partitions", in SetUp()
69 if (IPropertyFetcher::GetInstance()->GetBoolProperty("ro.boot.dynamic_partitions_retrofit", in TEST_F()
/system/core/libprocessgroup/
Dsched_policy.cpp139 static bool enabled = (CgroupMap::GetInstance().FindController("cpuset").IsUsable()); in cpusets_enabled()
144 return (CgroupMap::GetInstance().FindController("schedtune").IsUsable()); in schedtune_enabled()
148 return (CgroupMap::GetInstance().FindController("cpu").IsUsable()); in cpuctl_enabled()
158 auto controller = CgroupMap::GetInstance().FindController(subsys); in getCGroupSubsys()
/system/bt/stack/gatt/
Dgatt_utils.cc289 if (p_tcb->eatt && EattExtension::GetInstance()->IsIndicationPending( in gatt_is_srv_chg_ind_pending()
573 EattExtension::GetInstance()->StartIndicationConfirmationTimer(p_tcb->peer_bda, cid); in gatt_start_conf_timer()
591 EattExtension::GetInstance()->StopIndicationConfirmationTimer(tcb.peer_bda, cid); in gatt_stop_conf_timer()
608 EattExtension::GetInstance()->StartAppIndicationTimer(tcb.peer_bda, cid); in gatt_start_ind_ack_timer()
626 EattExtension::GetInstance()->StopAppIndicationTimer(p_tcb->peer_bda, cid); in gatt_stop_ind_ack_timer()
983 EattExtension::GetInstance()->FindEattChannelByCid(tcb.peer_bda, cid); in gatt_tcb_is_cid_busy()
1041 EattExtension::GetInstance()->GetChannelAvailableForIndication(p_tcb->peer_bda); in gatt_tcb_get_cid_available_for_indication()
1077 EattExtension::GetInstance()->FindEattChannelByCid(tcb.peer_bda, cid); in gatt_tcb_find_indicate_handle()
1101 EattExtension::GetInstance()->GetChannelAvailableForClientRequest(tcb.peer_bda); in gatt_tcb_get_att_cid()
1122 EattExtension::GetInstance()->FindEattChannelByCid(tcb.peer_bda, cid); in gatt_tcb_get_payload_size_tx()
[all …]

12345