Home
last modified time | relevance | path

Searched refs:RETURN_IF (Results 1 – 23 of 23) sorted by relevance

/base/powermgr/battery_manager/services/native/test/unittest/src/
Dbattery_light_test.cpp103 RETURN_IF(!g_light.isAvailable());
123 RETURN_IF(!g_light.isAvailable());
138 RETURN_IF(!g_light.isAvailable());
153 RETURN_IF(!g_light.isAvailable());
168 RETURN_IF(!g_light.isAvailable());
/base/powermgr/power_manager/services/zidl/src/
Dpower_shutdown_callback_proxy.cpp31 RETURN_IF(remote == nullptr); in ShutdownCallback()
Dpower_mode_callback_proxy.cpp29 RETURN_IF(remote == nullptr); in OnPowerModeChanged()
Dpower_state_callback_proxy.cpp29 RETURN_IF(remote == nullptr); in OnPowerStateChanged()
/base/powermgr/battery_manager/services/native/src/
Dbattery_light.cpp62 RETURN_IF(!available_); in TurnOff()
72 RETURN_IF(!available_); in TurnOn()
Dbattery_service.cpp237RETURN_IF(status.serviceName != BATTERY_HDI_NAME || status.deviceClass != DEVICE_CLASS_DEFAULT); in RegisterHdiStatusListener()
/base/powermgr/power_manager/services/native/src/
Dshutdown_service.cpp145 RETURN_IF((callback == nullptr) || (callback->AsObject() == nullptr)); in AddCallback()
158 RETURN_IF((callback == nullptr) || (callback->AsObject() == nullptr)); in RemoveCallback()
170 RETURN_IF(remote.promote() == nullptr); in OnRemoteDied()
Dpower_mode_module.cpp133 RETURN_IF((callback == nullptr) || (callback->AsObject() == nullptr)); in AddCallback()
146 RETURN_IF((callback == nullptr) || (callback->AsObject() == nullptr)); in RemoveCallback()
159 RETURN_IF(remote.promote() == nullptr); in OnRemoteDied()
Dpower_state_machine.cpp354 RETURN_IF(callback == nullptr); in RegisterPowerStateCallback()
356 RETURN_IF(object == nullptr); in RegisterPowerStateCallback()
368 RETURN_IF(callback == nullptr); in UnRegisterPowerStateCallback()
370 RETURN_IF(object == nullptr); in UnRegisterPowerStateCallback()
/base/powermgr/display_manager/service/zidl/src/
Ddisplay_power_callback_proxy.cpp29 RETURN_IF(remote == nullptr); in OnDisplayStateChanged()
/base/powermgr/power_manager/frameworks/napi/power/
Dpower_napi.cpp159 RETURN_IF(asyncInfo == nullptr); in SetPowerModeCallback()
165 RETURN_IF(asyncInfo == nullptr); in SetPowerModeCallback()
190 RETURN_IF(asyncInfo == nullptr); in SetPowerModePromise()
196 RETURN_IF(asyncInfo == nullptr); in SetPowerModePromise()
/base/powermgr/power_manager/frameworks/napi/runninglock/
Drunninglock_napi.cpp147 RETURN_IF(asyncInfo == nullptr); in CreateAsyncCallback()
153 RETURN_IF(asyncInfo == nullptr); in CreateAsyncCallback()
182 RETURN_IF(asyncInfo == nullptr); in CreatePromise()
188 RETURN_IF(asyncInfo == nullptr); in CreatePromise()
/base/powermgr/battery_manager/utils/native/include/
Dpower_common.h28 #define RETURN_IF(cond) if (cond) {return;} macro
/base/powermgr/power_manager/utils/native/include/
Dpower_common.h28 #define RETURN_IF(cond) if (cond) {return;} macro
/base/powermgr/display_manager/utils/native/include/
Ddisplay_common.h28 #define RETURN_IF(cond) if (cond) {return;} macro
/base/powermgr/battery_manager/frameworks/js/napi/
Dsystem_battery.cpp124 RETURN_IF(successRef_ == nullptr); in SuccessCallback()
149 RETURN_IF(failRef_ == nullptr); in FailCallback()
177 RETURN_IF(completeRef_ == nullptr); in CompleteCallback()
/base/usb/usb_manager/utils/native/include/
Dusb_common.h90 #define RETURN_IF(cond) \ macro
/base/powermgr/power_manager/services/native/src/actions/default/
Dsystem_suspend_controller.cpp51RETURN_IF(status.serviceName != HDI_SERVICE_NAME || status.deviceClass != DEVICE_CLASS_DEFAULT); in RegisterHdiStatusListener()
/base/powermgr/battery_manager/frameworks/native/src/
Dbattery_srv_client.cpp69 RETURN_IF(proxy_ == nullptr); in ResetProxy()
/base/powermgr/display_manager/frameworks/native/
Ddisplay_power_mgr_client.cpp77 RETURN_IF(proxy_ == nullptr); in OnRemoteDied()
/base/powermgr/power_manager/frameworks/native/
Dpower_mgr_client.cpp91 RETURN_IF(proxy_ == nullptr); in ResetProxy()
/base/powermgr/display_manager/frameworks/napi/
Dbrightness.cpp376 RETURN_IF(callbackRef == nullptr); in CallFunction()
/base/usb/usb_manager/interfaces/innerkits/native/src/
Dusb_srv_client.cpp67 RETURN_IF(proxy_ == nullptr); in ResetProxy()