Home
last modified time | relevance | path

Searched refs:isReboot (Results 1 – 15 of 15) sorted by relevance

/base/powermgr/power_manager/test/apitest/inner_api/shutdown/
Dtakeover_shutdown_callback_test.h31 bool OnTakeOverShutdown(bool isReboot) override;
37 bool OnTakeOverShutdown(bool isReboot) override;
43 bool OnTakeOverShutdown(bool isReboot) override;
48 bool OnTakeOverShutdown(bool isReboot) override;
Dtakeover_shutdown_callback_test.cpp70 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/
Dshutdown_controller.cpp101 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()
Dshutdown_controller.h56 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/
Dtakeover_shutdown_callback_stub.cpp52 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()
Dtakeover_shutdown_callback_proxy.cpp26 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/
Ditakeover_shutdown_callback.h33 virtual bool OnTakeOverShutdown(bool isReboot) = 0;
Dtakeover_shutdown_callback_stub.h34 bool OnTakeOverShutdown(bool isReboot) override in OnTakeOverShutdown() argument
/base/powermgr/power_manager/services/zidl/include/shutdown/
Dtakeover_shutdown_callback_proxy.h33 virtual bool OnTakeOverShutdown(bool isReboot) override;
/base/powermgr/power_manager/test/unittest/include/
Dshutdown_client_test.h43 bool OnTakeOverShutdown(bool isReboot) override;
/base/powermgr/power_manager/frameworks/napi/power/
Dpower.cpp37 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()
Dpower.h45 static napi_value RebootOrShutdown(napi_env env, napi_callback_info info, bool isReboot);
Dpower_napi.h38 static napi_value RebootOrShutdown(napi_env env, napi_callback_info info, bool isReboot);
Dpower_napi.cpp138 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/
Dshutdown_client_test.cpp66 bool ShutdownClientTest::TakeOverShutdownCallback::OnTakeOverShutdown(bool isReboot) in OnTakeOverShutdown() argument