Home
last modified time | relevance | path

Searched refs:Singleton (Results 1 – 14 of 14) 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/slpi/include/chre/platform/slpi/see/
Dsee_client.h33 typedef Singleton<SeeHelper> SeeHelperSingleton;
44 typedef Singleton<BigImageSeeHelper> BigImageSeeHelperSingleton;
Disland_vote_client.h114 typedef Singleton<IslandVoteClient> IslandVoteClientSingleton;
116 extern template class Singleton<IslandVoteClient>;
/system/chre/core/include/chre/core/
Devent_loop_manager.h265 typedef Singleton<EventLoopManager> EventLoopManagerSingleton;
269 extern template class Singleton<EventLoopManager>;
/system/core/libutils/
DSingleton_test.h26 struct SingletonTestData : Singleton<SingletonTestData> {
/system/chre/platform/slpi/include/chre/platform/slpi/smgr/
Dsmgr_client.h34 typedef Singleton<SmrHelper> SmrHelperSingleton;
/system/chre/platform/android/include/chre/platform/android/
Dhost_link.h28 typedef chre::Singleton<::android::chre::SocketServer> SocketServerSingleton;
/system/chre/platform/shared/include/chre/platform/shared/
Dplatform_log.h50 typedef Singleton<PlatformLog> PlatformLogSingleton;
/system/chre/core/
Devent_loop_manager.cc106 template class Singleton<EventLoopManager>; variable
/system/chre/platform/slpi/see/
Disland_vote_client.cc134 template class Singleton<IslandVoteClient>; variable
/system/tools/hidl/build/
Dhidl_interface.go169 func allHidlLintsFactory() android.Singleton {