Home
last modified time | relevance | path

Searched refs:NoDestructor (Results 1 – 6 of 6) sorted by relevance

/system/libbase/include/android-base/
Dno_destructor.h61 class NoDestructor {
66 explicit NoDestructor(Args&&... args) { in NoDestructor() function
72 explicit NoDestructor(const T& x) { new (storage_) T(x); } in NoDestructor() function
73 explicit NoDestructor(T&& x) { new (storage_) T(std::move(x)); } in NoDestructor() function
75 NoDestructor(const NoDestructor&) = delete;
76 NoDestructor& operator=(const NoDestructor&) = delete;
78 ~NoDestructor() = default;
/system/core/adb/daemon/
Dlogging.cpp36 using android::base::NoDestructor;
38 static NoDestructor<std::mutex> log_mutex;
39 static NoDestructor<CachedProperty> log_property GUARDED_BY(log_mutex)("debug.adbd.logging");
42 static NoDestructor<CachedProperty> persist_log_property
Dauth.cpp63 static android::base::NoDestructor<std::map<uint32_t, weak_ptr<atransport>>> transports;
/system/libbase/
Dno_destructor_test.cpp48 android::base::NoDestructor<Bomb> b; in TEST()
58 android::base::NoDestructor<Bomb> b; in TEST()
59 const android::base::NoDestructor<Bomb>& c = b; in TEST()
/system/incremental_delivery/incfs/
Dincfs.cpp69 static android::base::NoDestructor<android::incfs::MountRegistry> instance{}; in registry()
141 static const android::base::NoDestructor<std::string> kValue{ in incFsPropertyValue()
/system/core/adb/
Dtransport.cpp1177 static const android::base::NoDestructor<FeatureSet> features([] { in supported_features()