/system/chre/util/tests/ |
D | singleton_test.cc | 21 using chre::Singleton; 23 TEST(Singleton, Lifecycle) { in TEST() argument 24 EXPECT_FALSE(Singleton<int>::isInitialized()); in TEST() 25 EXPECT_EQ(Singleton<int>::safeGet(), nullptr); in TEST() 27 Singleton<int>::init(0x1337); in TEST() 28 ASSERT_NE(Singleton<int>::get(), nullptr); in TEST() 29 EXPECT_TRUE(Singleton<int>::isInitialized()); in TEST() 30 EXPECT_EQ(*Singleton<int>::get(), 0x1337); in TEST() 31 Singleton<int>::init(0xcafe); in TEST() 32 ASSERT_NE(Singleton<int>::get(), nullptr); in TEST() [all …]
|
/system/core/libutils/include/utils/ |
D | Singleton.h | 48 class ANDROID_API Singleton 67 ~Singleton() { } in ~Singleton() 68 Singleton() { } in Singleton() function 71 Singleton(const Singleton&); 72 Singleton& operator = (const Singleton&); 92 (::android::Singleton< TYPE >::sLock)(::android::Mutex::PRIVATE); \ 93 template<> TYPE* ::android::Singleton< TYPE >::sInstance(nullptr); /* NOLINT */ \ 94 template class ::android::Singleton< TYPE >;
|
/system/chre/util/include/chre/util/ |
D | singleton_impl.h | 29 Singleton<ObjectType>::sObject; 32 bool Singleton<ObjectType>::sIsInitialized = false; 36 void Singleton<ObjectType>::init(Args &&... args) { in init() 44 void Singleton<ObjectType>::deinit() { in deinit() 52 bool Singleton<ObjectType>::isInitialized() { in isInitialized() 57 ObjectType *Singleton<ObjectType>::get() { in get() 62 ObjectType *Singleton<ObjectType>::safeGet() { in safeGet()
|
D | singleton.h | 37 class Singleton : public NonCopyable {
|
/system/chre/platform/shared/include/chre/platform/shared/ |
D | dram_vote_client.h | 102 typedef Singleton<DramVoteClient> DramVoteClientSingleton; 104 extern template class Singleton<DramVoteClient>;
|
D | log_buffer_manager.h | 134 typedef Singleton<LogBufferManager> LogBufferManagerSingleton; 138 extern template class Singleton<LogBufferManager>;
|
/system/chre/platform/slpi/include/chre/platform/slpi/see/ |
D | island_vote_client.h | 116 typedef Singleton<IslandVoteClient> IslandVoteClientSingleton; 118 extern template class Singleton<IslandVoteClient>;
|
/system/core/libutils/ |
D | Singleton_test.h | 26 struct SingletonTestData : Singleton<SingletonTestData> {
|
/system/chre/platform/android/include/chre/platform/android/ |
D | host_link.h | 28 typedef chre::Singleton<::android::chre::SocketServer> SocketServerSingleton;
|
/system/chre/platform/linux/include/chre/platform/linux/ |
D | platform_log.h | 81 typedef Singleton<PlatformLog> PlatformLogSingleton;
|
/system/chre/core/ |
D | event_loop_manager.cc | 75 template class Singleton<EventLoopManager>; variable
|
/system/chre/core/include/chre/core/ |
D | event_loop_manager.h | 348 typedef Singleton<EventLoopManager> EventLoopManagerSingleton; 352 extern template class Singleton<EventLoopManager>;
|
/system/chre/platform/shared/ |
D | dram_vote_client.cc | 96 template class Singleton<DramVoteClient>; variable
|
D | log_buffer_manager.cc | 159 template class Singleton<LogBufferManager>; variable
|
/system/chre/apps/power_test/common/include/ |
D | request_manager.h | 168 typedef chre::Singleton<chre::RequestManager> RequestManagerSingleton;
|
/system/chre/apps/test/common/chre_audio_concurrency_test/inc/ |
D | chre_audio_concurrency_test_manager.h | 134 typedef chre::Singleton<Manager> ManagerSingleton;
|
/system/chre/apps/test/common/chre_cross_validator_wifi/inc/ |
D | chre_cross_validator_wifi_manager.h | 214 typedef chre::Singleton<Manager> ManagerSingleton;
|
/system/chre/platform/slpi/see/ |
D | island_vote_client.cc | 134 template class Singleton<IslandVoteClient>; variable
|
/system/chre/apps/test/common/chre_settings_test/inc/ |
D | chre_settings_test_manager.h | 176 typedef chre::Singleton<Manager> ManagerSingleton;
|
/system/chre/apps/test/common/chre_stress_test/inc/ |
D | chre_stress_test_manager.h | 206 typedef chre::Singleton<Manager> ManagerSingleton;
|
/system/chre/apps/test/common/chre_cross_validator_sensor/inc/ |
D | chre_cross_validator_sensor_manager.h | 389 typedef chre::Singleton<Manager> ManagerSingleton;
|
/system/tools/aidl/build/ |
D | aidl_api.go | 468 func freezeApiSingletonFactory() android.Singleton {
|
/system/chre/doc/ |
D | framework_overview.md | 21 that support CHRE. The EventLoopManager is a Singleton object which owns the
|
D | nanoapp_developer_guide.md | 129 * `chre::Singleton`: a container for a statically allocated object with explicit
|
/system/tools/hidl/build/ |
D | hidl_interface.go | 169 func allHidlLintsFactory() android.Singleton {
|