Home
last modified time | relevance | path

Searched refs:iUnknown (Results 1 – 25 of 26) sorted by relevance

12

/base/powermgr/battery_lite/frameworks/native/src/small/
Dbattery_framework.c47 static int32_t GetBatSocProxy(IUnknown *iUnknown) in GetBatSocProxy() argument
54 if (iUnknown == NULL) { in GetBatSocProxy()
58 BatteryProxyInterface *proxy = (BatteryProxyInterface *)iUnknown; in GetBatSocProxy()
63 static BatteryChargeState GetChargingStatusProxy(IUnknown *iUnknown) in GetChargingStatusProxy() argument
70 if (iUnknown == NULL) { in GetChargingStatusProxy()
74 BatteryProxyInterface *proxy = (BatteryProxyInterface *)iUnknown; in GetChargingStatusProxy()
79 static BatteryHealthState GetHealthStatusProxy(IUnknown *iUnknown) in GetHealthStatusProxy() argument
86 if (iUnknown == NULL) { in GetHealthStatusProxy()
90 BatteryProxyInterface *proxy = (BatteryProxyInterface *)iUnknown; in GetHealthStatusProxy()
95 static BatteryPluggedType GetPluggedTypeProxy(IUnknown *iUnknown) in GetPluggedTypeProxy() argument
[all …]
/base/powermgr/battery_lite/frameworks/native/include/
Dbatterymgr_intf_define.h27 int32_t (*GetBatSocFunc)(IUnknown *iUnknown); \
28 BatteryChargeState (*GetChargingStatusFunc)(IUnknown *iUnknown); \
29 BatteryHealthState (*GetHealthStatusFunc)(IUnknown *iUnknown); \
30 BatteryPluggedType (*GetPluggedTypeFunc)(IUnknown *iUnknown); \
31 int32_t (*GetBatVoltageFunc)(IUnknown *iUnknown); \
32 char* (*GetBatTechnologyFunc)(IUnknown *iUnknown); \
33 int32_t (*GetBatTemperatureFunc)(IUnknown *iUnknown)
Dbattery_framework.h33 IUnknown *iUnknown = SAMGR_GetInstance()->GetFeatureApi(BATTERY_SERVICE, BATTERY_INNER); in GetBatteryIUnknown() local
34 if (iUnknown == NULL) { in GetBatteryIUnknown()
38 return iUnknown; in GetBatteryIUnknown()
/base/powermgr/powermgr_lite/frameworks/src/small/
Dpower_manage.c40 static int32_t AcquireRunningLockEntryProxy(IUnknown *iUnknown, RunningLockEntry *entry, int32_t ti…
41 static int32_t ReleaseRunningLockEntryProxy(IUnknown *iUnknown, RunningLockEntry *entry);
42 static BOOL IsAnyRunningLockHoldingProxy(IUnknown *iUnknown);
43 static void SuspendDeviceProxy(IUnknown *iUnknown, SuspendDeviceType reason, BOOL suspendImmed);
44 static void WakeupDeviceProxy(IUnknown *iUnknown, WakeupDeviceType reason, const char* details);
60 entry->iUnknown.QueryInterface = IUNKNOWN_QueryInterface; in CreatClient()
61 entry->iUnknown.AddRef = IUNKNOWN_AddRef; in CreatClient()
62 entry->iUnknown.Release = IUNKNOWN_Release; in CreatClient()
63 entry->iUnknown.Invoke = NULL; in CreatClient()
64 entry->iUnknown.AcquireRunningLockEntryFunc = AcquireRunningLockEntryProxy; in CreatClient()
[all …]
Dpower_screen_saver.c39 static int32_t SetScreenSaverStateProxy(IUnknown *iUnknown, BOOL enable);
55 entry->iUnknown.QueryInterface = IUNKNOWN_QueryInterface; in CreatClient()
56 entry->iUnknown.AddRef = IUNKNOWN_AddRef; in CreatClient()
57 entry->iUnknown.Release = IUNKNOWN_Release; in CreatClient()
58 entry->iUnknown.Invoke = NULL; in CreatClient()
59 entry->iUnknown.SetScreenSaverStateFunc = SetScreenSaverStateProxy; in CreatClient()
81 …IUnknown *iUnknown = SAMGR_GetInstance()->GetFeatureApi(POWER_MANAGE_SERVICE, POWER_SCREEN_SAVER_F… in GetScreenSaverProxyInterface() local
82 if (iUnknown == NULL) { in GetScreenSaverProxyInterface()
88 int ret = iUnknown->QueryInterface(iUnknown, DEFAULT_VERSION, (void **)&g_intf); in GetScreenSaverProxyInterface()
112 static int32_t SetScreenSaverStateProxy(IUnknown *iUnknown, BOOL enable) in SetScreenSaverStateProxy() argument
[all …]
/base/powermgr/powermgr_lite/services/src/
Dpower_manage_feature.c62 int32_t OnAcquireRunningLockEntry(IUnknown *iUnknown, RunningLockEntry *entry, int32_t timeoutMs) in OnAcquireRunningLockEntry() argument
64 (void)iUnknown; in OnAcquireRunningLockEntry()
68 int32_t OnReleaseRunningLockEntry(IUnknown *iUnknown, RunningLockEntry *entry) in OnReleaseRunningLockEntry() argument
70 (void)iUnknown; in OnReleaseRunningLockEntry()
74 BOOL OnIsAnyRunningLockHolding(IUnknown *iUnknown) in OnIsAnyRunningLockHolding() argument
76 (void)iUnknown; in OnIsAnyRunningLockHolding()
80 void OnSuspendDevice(IUnknown *iUnknown, SuspendDeviceType reason, BOOL suspendImmed) in OnSuspendDevice() argument
85 (void)iUnknown; in OnSuspendDevice()
90 void OnWakeupDevice(IUnknown *iUnknown, WakeupDeviceType reason, const char* details) in OnWakeupDevice() argument
95 (void)iUnknown; in OnWakeupDevice()
Dscreen_saver_feature.c65 int32_t OnSetScreenSaverState(IUnknown *iUnknown, BOOL enable) in OnSetScreenSaverState() argument
67 (void)iUnknown; in OnSetScreenSaverState()
/base/powermgr/battery_lite/services/include/
Dbattery_manage_feature.h45 int32_t BatterySocImpl(IUnknown *iUnknown);
46 BatteryChargeState ChargingStatusImpl(IUnknown *iUnknown);
47 BatteryHealthState HealthStatusImpl(IUnknown *iUnknown);
48 BatteryPluggedType PluggedTypeImpl(IUnknown *iUnknown);
49 int32_t VoltageImpl(IUnknown *iUnknown);
50 char* TechnologyImpl(IUnknown *iUnknown);
52 int32_t BatteryTemperatureImpl(IUnknown *iUnknown);
/base/powermgr/powermgr_lite/frameworks/include/
Dpower_manage_intf_define.h31 …int32_t (*AcquireRunningLockEntryFunc)(IUnknown *iUnknown, RunningLockEntry *entry, int32_t timeou…
32 …int32_t (*ReleaseRunningLockEntryFunc)(IUnknown *iUnknown, RunningLockEntry *entry); …
33 …BOOL (*IsAnyRunningLockHoldingFunc)(IUnknown *iUnknown); …
34 …void (*SuspendDeviceFunc)(IUnknown *iUnknown, SuspendDeviceType reason, BOOL suspendImmed); …
35 void (*WakeupDeviceFunc)(IUnknown *iUnknown, WakeupDeviceType reason, const char* details)
Dscreen_saver_intf_define.h28 int32_t (*SetScreenSaverStateFunc)(IUnknown *iUnknown, BOOL enable)
/base/powermgr/powermgr_lite/services/include/
Dpower_manage_feature.h34 int32_t OnAcquireRunningLockEntry(IUnknown *iUnknown, RunningLockEntry *entry, int32_t timeoutMs);
35 int32_t OnReleaseRunningLockEntry(IUnknown *iUnknown, RunningLockEntry *entry);
36 BOOL OnIsAnyRunningLockHolding(IUnknown *iUnknown);
37 void OnSuspendDevice(IUnknown *iUnknown, SuspendDeviceType reason, BOOL suspendImmed);
38 void OnWakeupDevice(IUnknown *iUnknown, WakeupDeviceType reason, const char* details);
Dscreen_saver_feature.h34 int32_t OnSetScreenSaverState(IUnknown *iUnknown, BOOL enable);
/base/security/permission_lite/services/pms_client/
Dperm_client.c100 entry->iUnknown.QueryInterface = IUNKNOWN_QueryInterface; in CreatClient()
101 entry->iUnknown.AddRef = IUNKNOWN_AddRef; in CreatClient()
102 entry->iUnknown.Release = IUNKNOWN_Release; in CreatClient()
103 entry->iUnknown.Invoke = NULL; in CreatClient()
104 entry->iUnknown.CheckSelfPermission = CheckSelfPermission; in CreatClient()
105 entry->iUnknown.QueryPermission = QueryPermission; in CreatClient()
121 IUnknown *iUnknown = SAMGR_GetInstance()->GetFeatureApi(PERMISSION_SERVICE, PERM_FEATURE); in GetClientApi() local
122 if (iUnknown == NULL) { in GetClientApi()
127 (void)iUnknown->QueryInterface(iUnknown, CLIENT_PROXY_VER, (void **)&clientApi); in GetClientApi()
159 entry->iUnknown.QueryInterface = IUNKNOWN_QueryInterface; in CreatInnerClient()
[all …]
/base/powermgr/battery_lite/services/src/
Dbattery_manage_feature.c47 int32_t BatterySocImpl(IUnknown *iUnknown) in BatterySocImpl() argument
57 BatteryChargeState ChargingStatusImpl(IUnknown *iUnknown) in ChargingStatusImpl() argument
67 BatteryHealthState HealthStatusImpl(IUnknown *iUnknown) in HealthStatusImpl() argument
77 BatteryPluggedType PluggedTypeImpl(IUnknown *iUnknown) in PluggedTypeImpl() argument
87 int32_t VoltageImpl(IUnknown *iUnknown) in VoltageImpl() argument
97 char* TechnologyImpl(IUnknown *iUnknown) in TechnologyImpl() argument
107 int32_t BatteryTemperatureImpl(IUnknown *iUnknown) in BatteryTemperatureImpl() argument
Dbattery_device.c172 IUnknown *iUnknown = SAMGR_GetInstance()->GetDefaultFeatureApi(BATTERY_DEVICE); in ChargingApiGet() local
173 if (iUnknown == NULL) { in ChargingApiGet()
176 … int ret = iUnknown->QueryInterface(iUnknown, DEFAULT_VERSION, (void **)(&g_batteryFeatureHandle)); in ChargingApiGet()
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/src/
Dhks_samgr_client_proxy.c107 static int32_t IpcAsyncCall(IUnknown *iUnknown, enum HksMessage type, const struct HksBlob *inBlob,
112 HksMgrClientApi *proxy = (HksMgrClientApi *)iUnknown;
152 entry->iUnknown.QueryInterface = IUNKNOWN_QueryInterface; in HKS_CreatClient()
153 entry->iUnknown.AddRef = IUNKNOWN_AddRef; in HKS_CreatClient()
154 entry->iUnknown.Release = IUNKNOWN_Release; in HKS_CreatClient()
155 entry->iUnknown.Invoke = NULL; in HKS_CreatClient()
156 entry->iUnknown.IpcAsyncCallBack = IpcAsyncCall; in HKS_CreatClient()
176 IUnknown *iUnknown = SAMGR_GetInstance()->GetFeatureApi(HKS_SAMGR_SERVICE, HKS_SAMGR_FEATRURE); in HksSendRequestSync() local
177 HKS_IF_NULL_RETURN(iUnknown, HKS_ERROR_NULL_POINTER) in HksSendRequestSync()
179 int32_t ret = iUnknown->QueryInterface(iUnknown, DEFAULT_VERSION, (void **)&clientProxy); in HksSendRequestSync()
/base/powermgr/powermgr_lite/frameworks/src/mini/
Dpower_manage.c39 …IUnknown *iUnknown = SAMGR_GetInstance()->GetFeatureApi(POWER_MANAGE_SERVICE, POWER_MANAGE_FEATURE… in GetPowerManageInterface() local
40 if (iUnknown == NULL) { in GetPowerManageInterface()
46 int ret = iUnknown->QueryInterface(iUnknown, DEFAULT_VERSION, (void **)&g_intf); in GetPowerManageInterface()
/base/powermgr/battery_lite/frameworks/native/src/mini/
Dbattery_framework.c32 IUnknown *iUnknown = GetBatteryIUnknown(); in GetBatteryInterface() local
33 if (iUnknown == NULL) { in GetBatteryInterface()
38 int ret = iUnknown->QueryInterface(iUnknown, DEFAULT_VERSION, (void **)&g_intf); in GetBatteryInterface()
/base/security/permission_lite/services/unittest/pms/src/
Dacts_pms_check_test.cpp101 IUnknown *iUnknown = SAMGR_GetInstance()->GetFeatureApi(PERMISSION_SERVICE, PERM_INNER); in SetUpTestCase() local
102 iUnknown->QueryInterface(iUnknown, DEFAULT_VERSION, (void **)&g_interface); in SetUpTestCase()
/base/security/device_auth/frameworks/src/lite/
Dipc_dev_auth_proxy.c33 IUnknown *iUnknown = NULL; in GetProxyInstance() local
36 iUnknown = SAMGR_GetInstance()->GetDefaultFeatureApi(serviceName); in GetProxyInstance()
37 if (iUnknown == NULL) { in GetProxyInstance()
41 ret = iUnknown->QueryInterface(iUnknown, CLIENT_PROXY_VER, (void **)&clientProxy); in GetProxyInstance()
/base/hiviewdfx/hiview_lite/
Dhiview_service.c29 static void Output(IUnknown *iUnknown, int16 msgId, uint16 type);
95 static void Output(IUnknown *iUnknown, int16 msgId, uint16 type) in Output() argument
97 HiviewService *service = GET_OBJECT(iUnknown, HiviewService, iUnknown); in Output()
Dhiview_service.h50 void (*Output)(IUnknown *iUnknown, int16 msgId, uint16 type);
/base/sensors/sensor_lite/frameworks/src/
Dsensor_agent_client.c21 IUnknown *iUnknown = SAMGR_GetInstance()->GetDefaultFeatureApi(SENSOR_SERVICE); in GetServiceProxy() local
22 if (iUnknown == NULL) { in GetServiceProxy()
27 int32_t result = iUnknown->QueryInterface(iUnknown, DEFAULT_VERSION, (void **)&sensor); in GetServiceProxy()
/base/powermgr/powermgr_lite/services/src/screensaver/small/
Dscreen_saver_handler.cpp44 IUnknown *iUnknown = SAMGR_GetInstance()->GetFeatureApi(AMS_SERVICE, AMS_FEATURE); in GetAmsInterface() local
45 if (iUnknown == nullptr) { in GetAmsInterface()
50 int ret = iUnknown->QueryInterface(iUnknown, DEFAULT_VERSION, (void **)&ams); in GetAmsInterface()
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/include/
Dhks_samgr_client.h24 …int32_t (*IpcAsyncCallBack)(IUnknown *iUnknown, enum HksMessageType type, const struct HksBlob *in…

12