Searched refs:Singleton (Results 1 – 14 of 14) sorted by relevance
21 using chre::Singleton;23 TEST(Singleton, Lifecycle) { in TEST() argument24 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 …]
48 class ANDROID_API Singleton67 ~Singleton() { } in ~Singleton()68 Singleton() { } in Singleton() function71 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 >;
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()
37 class Singleton : public NonCopyable {
33 typedef Singleton<SeeHelper> SeeHelperSingleton;44 typedef Singleton<BigImageSeeHelper> BigImageSeeHelperSingleton;
114 typedef Singleton<IslandVoteClient> IslandVoteClientSingleton;116 extern template class Singleton<IslandVoteClient>;
265 typedef Singleton<EventLoopManager> EventLoopManagerSingleton;269 extern template class Singleton<EventLoopManager>;
26 struct SingletonTestData : Singleton<SingletonTestData> {
34 typedef Singleton<SmrHelper> SmrHelperSingleton;
28 typedef chre::Singleton<::android::chre::SocketServer> SocketServerSingleton;
50 typedef Singleton<PlatformLog> PlatformLogSingleton;
106 template class Singleton<EventLoopManager>; variable
134 template class Singleton<IslandVoteClient>; variable
169 func allHidlLintsFactory() android.Singleton {