Home
last modified time | relevance | path

Searched refs:reason (Results 1 – 25 of 363) sorted by relevance

12345678910>>...15

/base/powermgr/power_manager/services/native/src/suspend/
Dsuspend_controller.cpp106 void SuspendController::ExecSuspendMonitorByReason(SuspendDeviceType reason) in ExecSuspendMonitorByReason() argument
109 if (monitorMap_.find(reason) != monitorMap_.end()) { in ExecSuspendMonitorByReason()
110 auto monitor = monitorMap_[reason]; in ExecSuspendMonitorByReason()
218 void SuspendController::ControlListener(SuspendDeviceType reason, uint32_t action, uint32_t delay) in ControlListener() argument
238 pid, uid, reason, action, delay); in ControlListener()
240 if (reason == SuspendDeviceType::SUSPEND_DEVICE_REASON_TIMEOUT) { in ControlListener()
248 …::INACTIVE, stateMachine_->GetReasionBySuspendType(static_cast<SuspendDeviceType>(reason)), force); in ControlListener()
250 StartSleepTimer(reason, action, delay); in ControlListener()
254 void SuspendController::StartSleepTimer(SuspendDeviceType reason, uint32_t action, uint32_t delay) in StartSleepTimer() argument
264 sleepReason_ = reason; in StartSleepTimer()
[all …]
Dsuspend_controller.h43 void ExecSuspendMonitorByReason(SuspendDeviceType reason);
50 void HandleAction(SuspendDeviceType reason, uint32_t action);
67 void ControlListener(SuspendDeviceType reason, uint32_t action, uint32_t delay);
68 void StartSleepTimer(SuspendDeviceType reason, uint32_t action, uint32_t delay);
69 void HandleAutoSleep(SuspendDeviceType reason);
70 void HandleForceSleep(SuspendDeviceType reason);
71 void HandleHibernate(SuspendDeviceType reason);
72 void HandleShutdown(SuspendDeviceType reason);
/base/hiviewdfx/faultloggerd/test/unittest/panic_handler/
Drustpanic_listener.cpp28 std::string reason; in OnEvent() local
29 sysEvent->GetParamValue("REASON", reason); in OnEvent()
30 reasons.emplace(reason); in OnEvent()
38 bool RustPanicListener::CheckKeywordInReasons(const std::string& reason) in CheckKeywordInReasons() argument
41 if (rs.find(reason) != std::string::npos) { in CheckKeywordInReasons()
/base/powermgr/power_manager/services/native/src/actions/default/
Ddevice_power_action.cpp31 void DevicePowerAction::Reboot(const std::string& reason) in Reboot() argument
33 std::string rebootReason = Updater(reason); in Reboot()
38 void DevicePowerAction::Shutdown(const std::string& reason) in Shutdown() argument
44 std::string DevicePowerAction::Updater(const std::string& reason) in Updater() argument
46 return (reason.find(UPDATER_CMD) != std::string::npos) ? UPDATER_CMD : REBOOT_CMD; in Updater()
Ddevice_power_action.h28 void Reboot(const std::string& reason) override;
29 void Shutdown(const std::string& reason) override;
32 std::string Updater(const std::string& reason);
/base/telephony/cellular_data/services/include/
Ddata_disconnect_params.h28 DataDisconnectParams(const std::string &apnType, DisConnectionReason reason) in DataDisconnectParams() argument
29 : apnType_(apnType), reason_(reason) in DataDisconnectParams()
49 void SetReason(DisConnectionReason reason) in SetReason() argument
51 reason_ = reason; in SetReason()
/base/powermgr/power_manager/test/unittest/src/
Ddevice_state_action_native_test.cpp51 StateChangeReason reason = StateChangeReason::STATE_CHANGE_REASON_INIT; variable
52 EXPECT_TRUE(deviceStateAction->SetDisplayState(state, reason) == ActionResult::SUCCESS);
55 EXPECT_TRUE(deviceStateAction->SetDisplayState(state, reason) == ActionResult::SUCCESS);
58 EXPECT_TRUE(deviceStateAction->SetDisplayState(state, reason) == ActionResult::SUCCESS);
61 EXPECT_TRUE(deviceStateAction->SetDisplayState(state, reason) == ActionResult::SUCCESS);
64 EXPECT_TRUE(deviceStateAction->SetDisplayState(state, reason) == ActionResult::FAILED);
80reason) == ActionResult::FAILED);
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/include/
Dhisysevent_base_query_callback.h46 virtual void OnComplete(int32_t reason, int32_t total) in OnComplete() argument
49 callback->OnComplete(reason, total); in OnComplete()
53 virtual void OnComplete(int32_t reason, int32_t total, int64_t seq) in OnComplete() argument
55 OnComplete(reason, total); in OnComplete()
/base/update/updater/services/flashd/daemon/
Dsystem_depend.cpp55 string reason = cmd; in RebootDevice() local
56 if (reason.size() == 0) { in RebootDevice()
59 propertyVal = Base::StringFormat("reboot,%s", reason.c_str()); in RebootDevice()
/base/powermgr/power_manager/test/unittest/include/servicetest/
Dpowermgr_service_test_proxy.h52 SuspendDeviceType reason = SuspendDeviceType::SUSPEND_DEVICE_REASON_APPLICATION,
54 …PowerErrors WakeupDevice(int64_t callTimeMs, WakeupDeviceType reason = WakeupDeviceType::WAKEUP_DE…
63 PowerErrors RebootDevice(const std::string& reason);
64 PowerErrors RebootDeviceForDeprecated(const std::string& reason);
65 PowerErrors ShutDownDevice(const std::string& reason);
/base/powermgr/power_manager/interfaces/inner_api/native/include/
Dpower_mgr_client.h38 PowerErrors RebootDevice(const std::string& reason);
39 PowerErrors RebootDeviceForDeprecated(const std::string& reason);
47 PowerErrors ShutDownDevice(const std::string& reason);
54 …PowerErrors SuspendDevice(SuspendDeviceType reason = SuspendDeviceType::SUSPEND_DEVICE_REASON_APPL…
62 PowerErrors WakeupDevice(WakeupDeviceType reason = WakeupDeviceType::WAKEUP_DEVICE_APPLICATION,
Dipower_mgr.h48 virtual PowerErrors RebootDevice(const std::string& reason) = 0;
49 virtual PowerErrors RebootDeviceForDeprecated(const std::string& reason) = 0;
50 virtual PowerErrors ShutDownDevice(const std::string& reason) = 0;
51 …virtual PowerErrors SuspendDevice(int64_t callTimeMs, SuspendDeviceType reason, bool suspendImmed)…
52 …virtual PowerErrors WakeupDevice(int64_t callTimeMs, WakeupDeviceType reason, const std::string& d…
/base/powermgr/power_manager/services/native/src/actions/default/display/
Ddevice_state_action.cpp86 uint32_t DeviceStateAction::SetDisplayState(const DisplayState state, StateChangeReason reason) in SetDisplayState() argument
89 static_cast<uint32_t>(state), static_cast<uint32_t>(reason)); in SetDisplayState()
106 …if (currentState == DisplayState::DISPLAY_OFF && reason != StateChangeReason::STATE_CHANGE_REASON_… in SetDisplayState()
119 reason != StateChangeReason::STATE_CHANGE_REASON_SENSOR) { in SetDisplayState()
133 bool ret = DisplayPowerMgrClient::GetInstance().SetDisplayState(dispState, reason); in SetDisplayState()
151 DisplayPowerMgr::DisplayState state, uint32_t reason) in OnDisplayStateChanged() argument
161 if (StateChangeReason(reason) != StateChangeReason::STATE_CHANGE_REASON_SENSOR) { in OnDisplayStateChanged()
170 if (StateChangeReason(reason) != StateChangeReason::STATE_CHANGE_REASON_SENSOR) { in OnDisplayStateChanged()
/base/request/request/services/service/rust/src/
Dtask_info.rs44 pub reason: u8, field
54 pub reason: Reason, field
72 pub reason: u8, field
80 reason: self.reason as u8, in to_c_struct()
88 reason: Reason::from(c_struct.reason), in from_c_struct()
207 pub reason: u8, field
216 pub reason: u8, field
233 reason: self.reason, in to_c_struct()
/base/powermgr/power_manager/frameworks/napi/power/
Dpower.cpp50 char reason[REASON_MAX] = {0}; in RebootOrShutdown() local
52 status = napi_get_value_string_utf8(env, args[0], reason, REASON_MAX - 1, &reasonLen); in RebootOrShutdown()
57 POWER_HILOGD(FEATURE_SHUTDOWN, "reboot: %{public}d, reason: %{public}s", isReboot, reason); in RebootOrShutdown()
59 g_powerMgrClient.RebootDeviceForDeprecated(std::string(reason)); in RebootOrShutdown()
61 g_powerMgrClient.ShutDownDevice(std::string(reason)); in RebootOrShutdown()
162 char reason[REASON_MAX] = {0}; in WakeupDevice() local
164 status = napi_get_value_string_utf8(env, args[0], reason, REASON_MAX - 1, &reasonLen); in WakeupDevice()
169 POWER_HILOGD(FEATURE_WAKEUP, "Wakeup type: APPLICATION, reason: %{public}s", reason); in WakeupDevice()
170 g_powerMgrClient.WakeupDevice(WakeupDeviceType::WAKEUP_DEVICE_APPLICATION, std::string(reason)); in WakeupDevice()
/base/powermgr/powermgr_lite/frameworks/src/small/
Dpower_manage.c43 static void SuspendDeviceProxy(IUnknown *iUnknown, SuspendDeviceType reason, BOOL suspendImmed);
44 static void WakeupDeviceProxy(IUnknown *iUnknown, WakeupDeviceType reason, const char* details);
240 static void SuspendDeviceProxy(IUnknown *iUnknown, SuspendDeviceType reason, BOOL suspendImmed) in SuspendDeviceProxy() argument
245 WriteInt32(&request, (int32_t)reason); in SuspendDeviceProxy()
250 POWER_HILOGD("Suspend device done, reason: %{public}d", reason); in SuspendDeviceProxy()
253 static void WakeupDeviceProxy(IUnknown *iUnknown, WakeupDeviceType reason, const char* details) in WakeupDeviceProxy() argument
258 WriteInt32(&request, (int32_t)reason); in WakeupDeviceProxy()
263 POWER_HILOGD("Wakeup device done, reason: %{public}d", reason); in WakeupDeviceProxy()
266 void SuspendDevice(SuspendDeviceType reason, BOOL suspendImmed) in SuspendDevice() argument
270 intf->SuspendDeviceFunc((IUnknown *)intf, reason, suspendImmed); in SuspendDevice()
[all …]
/base/request/request/services/service/rust/src/c_wrapper/include/
Dc_task_info.h35 uint8_t reason; member
44 uint8_t reason; member
50 uint8_t reason; member
89 uint8_t reason; member
/base/powermgr/power_manager/services/native/include/actions/
Didevice_power_action.h28 virtual void Reboot(const std::string& reason) = 0;
29 virtual void Shutdown(const std::string& reason) = 0;
/base/powermgr/power_manager/test/mock/action/
Dmock_power_action.h29 MOCK_METHOD1(Reboot, void(const std::string& reason));
30 MOCK_METHOD1(Shutdown, void(const std::string& reason));
/base/powermgr/power_manager/test/systemtest/mock/
Dmock_power_action.h28 MOCK_METHOD1(Reboot, void(const std::string& reason));
29 MOCK_METHOD1(Shutdown, void(const std::string& reason));
/base/powermgr/powermgr_lite/services/src/
Dpower_manage_feature.c80 void OnSuspendDevice(IUnknown *iUnknown, SuspendDeviceType reason, BOOL suspendImmed) in OnSuspendDevice() argument
86 …POWER_HILOGI("Suspending device, reason: %{public}d, suspendImmed: %{public}d", reason, suspendImm… in OnSuspendDevice()
90 void OnWakeupDevice(IUnknown *iUnknown, WakeupDeviceType reason, const char* details) in OnWakeupDevice() argument
96 POWER_HILOGI("Waking up device, reason: %{public}d", reason); in OnWakeupDevice()
/base/powermgr/power_manager/services/native/src/
Dpower_mgr_service.cpp230 SuspendDeviceType reason = SuspendDeviceType::SUSPEND_DEVICE_REASON_LID; in HallSensorCallback() local
231 suspendController->ExecSuspendMonitorByReason(reason); in HallSensorCallback()
234 WakeupDeviceType reason = WakeupDeviceType::WAKEUP_DEVICE_LID; in HallSensorCallback() local
235 wakeupController->ExecWakeupMonitorByReason(reason); in HallSensorCallback()
278 SuspendDeviceType reason = SuspendDeviceType::SUSPEND_DEVICE_REASON_SWITCH; in SwitchSubscriberInit() local
279 suspendController->ExecSuspendMonitorByReason(reason); in SwitchSubscriberInit()
282 WakeupDeviceType reason = WakeupDeviceType::WAKEUP_DEVICE_SWITCH; in SwitchSubscriberInit() local
283 wakeupController->ExecWakeupMonitorByReason(reason); in SwitchSubscriberInit()
306 std::string reason = "double click"; in HandleKeyEvent() local
307 reason.append(std::to_string(keyCode)); in HandleKeyEvent()
[all …]
/base/powermgr/power_manager/frameworks/native/
Dpower_mgr_client.cpp106 PowerErrors PowerMgrClient::RebootDevice(const std::string& reason) in RebootDevice() argument
109 return proxy_->RebootDevice(reason); in RebootDevice()
112 PowerErrors PowerMgrClient::RebootDeviceForDeprecated(const std::string& reason) in RebootDeviceForDeprecated() argument
115 return proxy_->RebootDeviceForDeprecated(reason); in RebootDeviceForDeprecated()
118 PowerErrors PowerMgrClient::ShutDownDevice(const std::string& reason) in ShutDownDevice() argument
121 return proxy_->ShutDownDevice(reason); in ShutDownDevice()
124 PowerErrors PowerMgrClient::SuspendDevice(SuspendDeviceType reason, bool suspendImmed) in SuspendDevice() argument
128 return proxy_->SuspendDevice(GetTickCount(), reason, suspendImmed); in SuspendDevice()
131 PowerErrors PowerMgrClient::WakeupDevice(WakeupDeviceType reason, const std::string& detail) in WakeupDevice() argument
135 return proxy_->WakeupDevice(GetTickCount(), reason, detail); in WakeupDevice()
/base/startup/init/services/modules/sysevent/
Dstartup_time_event.c92 char *reason = buffer + MAX_BUFFER_FOR_EVENT; in ReportBootEventComplete() local
94 ret = SystemReadParam("ohos.boot.bootreason", reason, &size); in ReportBootEventComplete()
96 startupTime.reason = reason; in ReportBootEventComplete()
99 startupTime.reason = ""; in ReportBootEventComplete()
/base/powermgr/display_manager/service/zidl/src/
Ddisplay_power_callback_stub.cpp62 uint32_t reason = 0; in OnDisplayStateChangedStub() local
66 READ_PARCEL_WITH_RET(data, Uint32, reason, E_READ_PARCEL_ERROR); in OnDisplayStateChangedStub()
68 OnDisplayStateChanged(id, static_cast<DisplayState>(state), reason); in OnDisplayStateChangedStub()

12345678910>>...15