Home
last modified time | relevance | path

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

12

/hardware/qcom/sdm845/display/libdrmutils/
Ddrm_lib_loader.cpp41 DRMLibLoader *DRMLibLoader::s_instance = nullptr; member in drm_utils::DRMLibLoader
47 if (!s_instance) { in GetInstance()
48 s_instance = new DRMLibLoader(); in GetInstance()
51 return s_instance; in GetInstance()
56 if (s_instance) { in Destroy()
57 delete s_instance; in Destroy()
58 s_instance = nullptr; in Destroy()
Ddrm_master.cpp56 DRMMaster *DRMMaster::s_instance = nullptr; member in drm_utils::DRMMaster
62 if (!s_instance) { in GetInstance()
63 s_instance = new DRMMaster(); in GetInstance()
64 if (s_instance->Init() < 0) { in GetInstance()
65 delete s_instance; in GetInstance()
66 s_instance = nullptr; in GetInstance()
71 *master = s_instance; in GetInstance()
77 delete s_instance; in DestroyInstance()
78 s_instance = nullptr; in DestroyInstance()
Ddrm_res_mgr.cpp43 DRMResMgr *DRMResMgr::s_instance = nullptr; member in drm_utils::DRMResMgr
92 if (!s_instance) { in GetInstance()
93 s_instance = new DRMResMgr(); in GetInstance()
94 if (s_instance->Init() < 0) { in GetInstance()
95 delete s_instance; in GetInstance()
96 s_instance = nullptr; in GetInstance()
101 *res_mgr = s_instance; in GetInstance()
Ddrm_lib_loader.h58 static DRMLibLoader *s_instance; // Singleton instance variable
Ddrm_master.h91 static DRMMaster *s_instance; // Singleton instance variable
/hardware/qcom/display/msm8998/libdrmutils/
Ddrm_lib_loader.cpp41 DRMLibLoader *DRMLibLoader::s_instance = nullptr; member in drm_utils::DRMLibLoader
47 if (!s_instance) { in GetInstance()
48 s_instance = new DRMLibLoader(); in GetInstance()
51 return s_instance; in GetInstance()
56 if (s_instance) { in Destroy()
57 delete s_instance; in Destroy()
58 s_instance = nullptr; in Destroy()
Ddrm_master.cpp56 DRMLogger *DRMLogger::s_instance = nullptr; member in drm_utils::DRMLogger
57 DRMMaster *DRMMaster::s_instance = nullptr; member in drm_utils::DRMMaster
63 if (!s_instance) { in GetInstance()
64 s_instance = new DRMMaster(); in GetInstance()
65 if (s_instance->Init() < 0) { in GetInstance()
66 delete s_instance; in GetInstance()
67 s_instance = nullptr; in GetInstance()
72 *master = s_instance; in GetInstance()
78 delete s_instance; in DestroyInstance()
79 s_instance = nullptr; in DestroyInstance()
Ddrm_res_mgr.cpp43 DRMResMgr *DRMResMgr::s_instance = nullptr; member in drm_utils::DRMResMgr
92 if (!s_instance) { in GetInstance()
93 s_instance = new DRMResMgr(); in GetInstance()
94 if (s_instance->Init() < 0) { in GetInstance()
95 delete s_instance; in GetInstance()
96 s_instance = nullptr; in GetInstance()
101 *res_mgr = s_instance; in GetInstance()
Ddrm_logger.h45 static void Set(DRMLogger *logger) { s_instance = logger; } in Set()
46 static DRMLogger *Get() { return s_instance; } in Get()
49 static DRMLogger *s_instance;
Ddrm_lib_loader.h58 static DRMLibLoader *s_instance; // Singleton instance variable
/hardware/qcom/display/msm8909/libdrmutils/
Ddrm_lib_loader.cpp41 DRMLibLoader *DRMLibLoader::s_instance = nullptr; member in drm_utils::DRMLibLoader
47 if (!s_instance) { in GetInstance()
48 s_instance = new DRMLibLoader(); in GetInstance()
51 return s_instance; in GetInstance()
56 if (s_instance) { in Destroy()
57 delete s_instance; in Destroy()
58 s_instance = nullptr; in Destroy()
Ddrm_master.cpp56 DRMLogger *DRMLogger::s_instance = nullptr; member in drm_utils::DRMLogger
57 DRMMaster *DRMMaster::s_instance = nullptr; member in drm_utils::DRMMaster
63 if (!s_instance) { in GetInstance()
64 s_instance = new DRMMaster(); in GetInstance()
65 if (s_instance->Init() < 0) { in GetInstance()
66 delete s_instance; in GetInstance()
67 s_instance = nullptr; in GetInstance()
72 *master = s_instance; in GetInstance()
78 delete s_instance; in DestroyInstance()
79 s_instance = nullptr; in DestroyInstance()
Ddrm_res_mgr.cpp43 DRMResMgr *DRMResMgr::s_instance = nullptr; member in drm_utils::DRMResMgr
92 if (!s_instance) { in GetInstance()
93 s_instance = new DRMResMgr(); in GetInstance()
94 if (s_instance->Init() < 0) { in GetInstance()
95 delete s_instance; in GetInstance()
96 s_instance = nullptr; in GetInstance()
101 *res_mgr = s_instance; in GetInstance()
Ddrm_logger.h45 static void Set(DRMLogger *logger) { s_instance = logger; } in Set()
46 static DRMLogger *Get() { return s_instance; } in Get()
49 static DRMLogger *s_instance;
Ddrm_lib_loader.h58 static DRMLibLoader *s_instance; // Singleton instance variable
Ddrm_master.h89 static DRMMaster *s_instance; // Singleton instance variable
/hardware/qcom/display/msm8909w_3100/libdrmutils/
Ddrm_lib_loader.cpp41 DRMLibLoader *DRMLibLoader::s_instance = nullptr; member in drm_utils::DRMLibLoader
47 if (!s_instance) { in GetInstance()
48 s_instance = new DRMLibLoader(); in GetInstance()
51 return s_instance; in GetInstance()
56 if (s_instance) { in Destroy()
57 delete s_instance; in Destroy()
58 s_instance = nullptr; in Destroy()
Ddrm_master.cpp56 DRMLogger *DRMLogger::s_instance = nullptr; member in drm_utils::DRMLogger
57 DRMMaster *DRMMaster::s_instance = nullptr; member in drm_utils::DRMMaster
63 if (!s_instance) { in GetInstance()
64 s_instance = new DRMMaster(); in GetInstance()
65 if (s_instance->Init() < 0) { in GetInstance()
66 delete s_instance; in GetInstance()
67 s_instance = nullptr; in GetInstance()
72 *master = s_instance; in GetInstance()
78 delete s_instance; in DestroyInstance()
79 s_instance = nullptr; in DestroyInstance()
Ddrm_res_mgr.cpp43 DRMResMgr *DRMResMgr::s_instance = nullptr; member in drm_utils::DRMResMgr
92 if (!s_instance) { in GetInstance()
93 s_instance = new DRMResMgr(); in GetInstance()
94 if (s_instance->Init() < 0) { in GetInstance()
95 delete s_instance; in GetInstance()
96 s_instance = nullptr; in GetInstance()
101 *res_mgr = s_instance; in GetInstance()
Ddrm_logger.h45 static void Set(DRMLogger *logger) { s_instance = logger; } in Set()
46 static DRMLogger *Get() { return s_instance; } in Get()
49 static DRMLogger *s_instance;
Ddrm_lib_loader.h58 static DRMLibLoader *s_instance; // Singleton instance variable
Ddrm_master.h89 static DRMMaster *s_instance; // Singleton instance variable
/hardware/qcom/display/msm8909/gralloc/
Dgr_adreno_info.cpp44 AdrenoMemInfo *AdrenoMemInfo::s_instance = nullptr; member in gralloc1::AdrenoMemInfo
49 if (!s_instance) { in GetInstance()
50 s_instance = new AdrenoMemInfo(); in GetInstance()
53 return s_instance; in GetInstance()
/hardware/qcom/display/msm8909w_3100/libgralloc1/
Dgr_adreno_info.cpp44 AdrenoMemInfo *AdrenoMemInfo::s_instance = nullptr; member in gralloc1::AdrenoMemInfo
49 if (!s_instance) { in GetInstance()
50 s_instance = new AdrenoMemInfo(); in GetInstance()
53 return s_instance; in GetInstance()
/hardware/qcom/sdm845/display/gralloc/
Dgr_adreno_info.cpp44 AdrenoMemInfo *AdrenoMemInfo::s_instance = nullptr; member in gralloc::AdrenoMemInfo
49 if (!s_instance) { in GetInstance()
50 s_instance = new AdrenoMemInfo(); in GetInstance()
53 return s_instance; in GetInstance()

12