Home
last modified time | relevance | path

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

/system/chre/util/tests/
Dsingleton_test.cc21 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/
DSingleton.h48 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/
Dsingleton_impl.h29 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()
Dsingleton.h37 class Singleton : public NonCopyable {
/system/chre/platform/shared/include/chre/platform/shared/
Ddram_vote_client.h102 typedef Singleton<DramVoteClient> DramVoteClientSingleton;
104 extern template class Singleton<DramVoteClient>;
Dlog_buffer_manager.h134 typedef Singleton<LogBufferManager> LogBufferManagerSingleton;
138 extern template class Singleton<LogBufferManager>;
/system/chre/platform/slpi/include/chre/platform/slpi/see/
Disland_vote_client.h116 typedef Singleton<IslandVoteClient> IslandVoteClientSingleton;
118 extern template class Singleton<IslandVoteClient>;
/system/core/libutils/
DSingleton_test.h26 struct SingletonTestData : Singleton<SingletonTestData> {
/system/chre/platform/android/include/chre/platform/android/
Dhost_link.h28 typedef chre::Singleton<::android::chre::SocketServer> SocketServerSingleton;
/system/chre/platform/linux/include/chre/platform/linux/
Dplatform_log.h81 typedef Singleton<PlatformLog> PlatformLogSingleton;
/system/chre/core/
Devent_loop_manager.cc75 template class Singleton<EventLoopManager>; variable
/system/chre/core/include/chre/core/
Devent_loop_manager.h348 typedef Singleton<EventLoopManager> EventLoopManagerSingleton;
352 extern template class Singleton<EventLoopManager>;
/system/chre/platform/shared/
Ddram_vote_client.cc96 template class Singleton<DramVoteClient>; variable
Dlog_buffer_manager.cc159 template class Singleton<LogBufferManager>; variable
/system/chre/apps/power_test/common/include/
Drequest_manager.h168 typedef chre::Singleton<chre::RequestManager> RequestManagerSingleton;
/system/chre/apps/test/common/chre_audio_concurrency_test/inc/
Dchre_audio_concurrency_test_manager.h134 typedef chre::Singleton<Manager> ManagerSingleton;
/system/chre/apps/test/common/chre_cross_validator_wifi/inc/
Dchre_cross_validator_wifi_manager.h214 typedef chre::Singleton<Manager> ManagerSingleton;
/system/chre/platform/slpi/see/
Disland_vote_client.cc134 template class Singleton<IslandVoteClient>; variable
/system/chre/apps/test/common/chre_settings_test/inc/
Dchre_settings_test_manager.h176 typedef chre::Singleton<Manager> ManagerSingleton;
/system/chre/apps/test/common/chre_stress_test/inc/
Dchre_stress_test_manager.h206 typedef chre::Singleton<Manager> ManagerSingleton;
/system/chre/apps/test/common/chre_cross_validator_sensor/inc/
Dchre_cross_validator_sensor_manager.h389 typedef chre::Singleton<Manager> ManagerSingleton;
/system/tools/aidl/build/
Daidl_api.go468 func freezeApiSingletonFactory() android.Singleton {
/system/chre/doc/
Dframework_overview.md21 that support CHRE. The EventLoopManager is a Singleton object which owns the
Dnanoapp_developer_guide.md129 * `chre::Singleton`: a container for a statically allocated object with explicit
/system/tools/hidl/build/
Dhidl_interface.go169 func allHidlLintsFactory() android.Singleton {