Searched refs:g_intf (Results 1 – 5 of 5) sorted by relevance
/ohos5.0/base/powermgr/powermgr_lite/frameworks/src/mini/ |
H A D | power_manage.c | 27 static PowerManageInterface *g_intf = NULL; variable 31 if (g_intf != NULL) { in GetPowerManageInterface() 32 return g_intf; in GetPowerManageInterface() 35 if (g_intf != NULL) { in GetPowerManageInterface() 37 return g_intf; in GetPowerManageInterface() 46 int ret = iUnknown->QueryInterface(iUnknown, DEFAULT_VERSION, (void **)&g_intf); in GetPowerManageInterface() 47 if ((ret != EC_SUCCESS) || (g_intf == NULL)) { in GetPowerManageInterface() 54 return g_intf; in GetPowerManageInterface()
|
/ohos5.0/base/powermgr/powermgr_lite/frameworks/src/small/ |
H A D | power_screen_saver.c | 37 static ScreenSaverProxyInterface *g_intf = NULL; variable 70 if (g_intf != NULL) { in GetScreenSaverProxyInterface() 71 return g_intf; in GetScreenSaverProxyInterface() 74 if (g_intf != NULL) { in GetScreenSaverProxyInterface() 76 return g_intf; in GetScreenSaverProxyInterface() 88 int ret = iUnknown->QueryInterface(iUnknown, DEFAULT_VERSION, (void **)&g_intf); in GetScreenSaverProxyInterface() 89 if ((ret != EC_SUCCESS) || (g_intf == NULL)) { in GetScreenSaverProxyInterface() 96 return g_intf; in GetScreenSaverProxyInterface()
|
H A D | power_manage.c | 38 static PowerManageProxyInterface *g_intf = NULL; variable 81 if (g_intf != NULL) { in GetPowerManageProxyInterface() 82 return g_intf; in GetPowerManageProxyInterface() 85 if (g_intf != NULL) { in GetPowerManageProxyInterface() 87 return g_intf; in GetPowerManageProxyInterface() 99 int ret = iUnknown->QueryInterface(iUnknown, DEFAULT_VERSION, (void **)&g_intf); in GetPowerManageProxyInterface() 100 if ((ret != EC_SUCCESS) || (g_intf == NULL)) { in GetPowerManageProxyInterface() 107 return g_intf; in GetPowerManageProxyInterface()
|
/ohos5.0/base/powermgr/battery_lite/frameworks/native/src/mini/ |
H A D | battery_framework.c | 23 static BatteryInterface *g_intf = NULL; variable 28 if (g_intf != NULL) { in GetBatteryInterface() 30 return g_intf; in GetBatteryInterface() 38 int ret = iUnknown->QueryInterface(iUnknown, DEFAULT_VERSION, (void **)&g_intf); in GetBatteryInterface() 39 if ((ret != EC_SUCCESS) || (g_intf == NULL)) { in GetBatteryInterface() 44 return g_intf; in GetBatteryInterface()
|
/ohos5.0/base/powermgr/battery_lite/frameworks/native/src/small/ |
H A D | battery_framework.c | 218 static BatteryProxyInterface *g_intf = NULL; in GetBatteryInterface() local 221 if (g_intf != NULL) { in GetBatteryInterface() 223 return g_intf; in GetBatteryInterface() 233 int ret = iUnknown->QueryInterface(iUnknown, DEFAULT_VERSION, (void **)&g_intf); in GetBatteryInterface() 234 if ((ret != EC_SUCCESS) || (g_intf == NULL)) { in GetBatteryInterface() 240 return g_intf; in GetBatteryInterface()
|