Home
last modified time | relevance | path

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

12

/hardware/qcom/sm7250/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()
/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;
/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_lib_loader.h58 static DRMLibLoader *s_instance; // Singleton instance variable
/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()
/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
/hardware/qcom/sm8150/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.cpp58 DRMMaster *DRMMaster::s_instance = nullptr; member in drm_utils::DRMMaster
64 if (!s_instance) { in GetInstance()
65 s_instance = new DRMMaster(); in GetInstance()
66 if (s_instance->Init() < 0) { in GetInstance()
67 delete s_instance; in GetInstance()
68 s_instance = nullptr; in GetInstance()
73 *master = s_instance; in GetInstance()
79 delete s_instance; in DestroyInstance()
80 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()
/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/sm8150/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()
/hardware/qcom/sm7250/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