/base/powermgr/power_manager/test/apitest/inner_api/shutdown/ |
D | takeover_shutdown_callback_test.h | 31 bool OnTakeOverShutdown(bool isReboot) override; 37 bool OnTakeOverShutdown(bool isReboot) override; 43 bool OnTakeOverShutdown(bool isReboot) override; 48 bool OnTakeOverShutdown(bool isReboot) override;
|
D | takeover_shutdown_callback_test.cpp | 70 bool TakeOverShutdownCallbackTest::TakeOverShutdownCallback::OnTakeOverShutdown(bool isReboot) in OnTakeOverShutdown() argument 72 POWER_HILOGI(LABEL_TEST, "OnTakeOverShutdown called, isReboot=%{public}d", isReboot); in OnTakeOverShutdown() 73 g_isReboot = isReboot; in OnTakeOverShutdown() 78 …keOverShutdownCallbackTest::HighPriorityTakeOverShutdownCallback::OnTakeOverShutdown(bool isReboot) in OnTakeOverShutdown() argument 84 …akeOverShutdownCallbackTest::LowPriorityTakeOverShutdownCallback::OnTakeOverShutdown(bool isReboot) in OnTakeOverShutdown() argument 90 bool TakeOverShutdownCallbackTest::NotTakeOverShutdownCallback::OnTakeOverShutdown(bool isReboot) in OnTakeOverShutdown() argument 92 POWER_HILOGI(LABEL_TEST, "OnTakeOverShutdown called, isReboot=%{public}d", isReboot); in OnTakeOverShutdown()
|
/base/powermgr/power_manager/services/native/src/shutdown/ |
D | shutdown_controller.cpp | 101 void ShutdownController::RebootOrShutdown(const std::string& reason, bool isReboot) in RebootOrShutdown() argument 108 bool isTakeOver = TriggerTakeOverShutdownCallback(isReboot); in RebootOrShutdown() 119 …WER_HILOGD(FEATURE_SHUTDOWN, "reason = %{public}s, reboot = %{public}d", reason.c_str(), isReboot); in RebootOrShutdown() 128 isReboot ? devicePowerAction_->Reboot(reason) : devicePowerAction_->Shutdown(reason); in RebootOrShutdown() 224 bool ShutdownController::TriggerTakeOverShutdownCallback(bool isReboot) in TriggerTakeOverShutdownCallback() argument 228 isTakeover = TriggerTakeOverShutdownCallbackInner(highPriorityCallbacks, isReboot); in TriggerTakeOverShutdownCallback() 231 isTakeover = TriggerTakeOverShutdownCallbackInner(defaultPriorityCallbacks, isReboot); in TriggerTakeOverShutdownCallback() 234 isTakeover = TriggerTakeOverShutdownCallbackInner(lowPriorityCallbacks, isReboot); in TriggerTakeOverShutdownCallback() 238 …ller::TriggerTakeOverShutdownCallbackInner(std::set<sptr<IRemoteObject>>& callbacks, bool isReboot) in TriggerTakeOverShutdownCallbackInner() argument 243 isTakeover = callback->OnTakeOverShutdown(isReboot); in TriggerTakeOverShutdownCallbackInner()
|
D | shutdown_controller.h | 56 bool TriggerTakeOverShutdownCallback(bool isReboot); 62 void RebootOrShutdown(const std::string& reason, bool isReboot); 67 …bool TriggerTakeOverShutdownCallbackInner(std::set<sptr<IRemoteObject>>& callbacks, bool isReboot);
|
/base/powermgr/power_manager/services/zidl/src/shutdown/ |
D | takeover_shutdown_callback_stub.cpp | 52 bool isReboot; in OnTakeOverShutdownCallbackStub() local 53 READ_PARCEL_WITH_RET(data, Bool, isReboot, E_READ_PARCEL_ERROR); in OnTakeOverShutdownCallbackStub() 54 int32_t isTakeOver = OnTakeOverShutdown(isReboot); in OnTakeOverShutdownCallbackStub()
|
D | takeover_shutdown_callback_proxy.cpp | 26 bool TakeOverShutdownCallbackProxy::OnTakeOverShutdown(bool isReboot) in OnTakeOverShutdown() argument 40 WRITE_PARCEL_WITH_RET(data, Bool, isReboot, false); in OnTakeOverShutdown()
|
/base/powermgr/power_manager/interfaces/inner_api/native/include/shutdown/ |
D | itakeover_shutdown_callback.h | 33 virtual bool OnTakeOverShutdown(bool isReboot) = 0;
|
D | takeover_shutdown_callback_stub.h | 34 bool OnTakeOverShutdown(bool isReboot) override in OnTakeOverShutdown() argument
|
/base/powermgr/power_manager/services/zidl/include/shutdown/ |
D | takeover_shutdown_callback_proxy.h | 33 virtual bool OnTakeOverShutdown(bool isReboot) override;
|
/base/powermgr/power_manager/test/unittest/include/ |
D | shutdown_client_test.h | 43 bool OnTakeOverShutdown(bool isReboot) override;
|
/base/powermgr/power_manager/frameworks/napi/power/ |
D | power.cpp | 37 napi_value Power::RebootOrShutdown(napi_env env, napi_callback_info info, bool isReboot) in RebootOrShutdown() argument 57 POWER_HILOGD(FEATURE_SHUTDOWN, "reboot: %{public}d, reason: %{public}s", isReboot, reason); in RebootOrShutdown() 58 if (isReboot) { in RebootOrShutdown()
|
D | power.h | 45 static napi_value RebootOrShutdown(napi_env env, napi_callback_info info, bool isReboot);
|
D | power_napi.h | 38 static napi_value RebootOrShutdown(napi_env env, napi_callback_info info, bool isReboot);
|
D | power_napi.cpp | 138 napi_value PowerNapi::RebootOrShutdown(napi_env env, napi_callback_info info, bool isReboot) in RebootOrShutdown() argument 150 …POWER_HILOGD(FEATURE_SHUTDOWN, "reboot: %{public}d, reason: %{public}s", isReboot, reason.c_str()); in RebootOrShutdown() 153 if (isReboot) { in RebootOrShutdown()
|
/base/powermgr/power_manager/test/unittest/src/ |
D | shutdown_client_test.cpp | 66 bool ShutdownClientTest::TakeOverShutdownCallback::OnTakeOverShutdown(bool isReboot) in OnTakeOverShutdown() argument
|