/ohos5.0/base/powermgr/power_manager/services/native/src/actions/default/display/ |
H A D | default_device_state_action.cpp | 23 void DefaultDeviceStateAction::Suspend(int64_t callTimeMs, SuspendDeviceType type, uint32_t flags) in Suspend() argument 25 (void)callTimeMs; in Suspend() 33 int64_t callTimeMs, WakeupDeviceType type, const string& details, const string& pkgName) in Wakeup() argument 35 (void)callTimeMs; in Wakeup()
|
H A D | default_device_state_action.h | 27 void Suspend(int64_t callTimeMs, SuspendDeviceType type, uint32_t flags) override; 29 void Wakeup(int64_t callTimeMs, WakeupDeviceType type, const std::string& details, 31 void RefreshActivity(const int64_t callTimeMs, UserActivityType type, in RefreshActivity() argument
|
H A D | device_state_action.h | 31 void Suspend(int64_t callTimeMs, SuspendDeviceType type, uint32_t flags) override; 33 void Wakeup(int64_t callTimeMs, WakeupDeviceType type, const std::string& details, 35 void RefreshActivity(const int64_t callTimeMs, UserActivityType type, in RefreshActivity() argument
|
H A D | device_state_action.cpp | 43 void DeviceStateAction::Suspend(int64_t callTimeMs, SuspendDeviceType type, uint32_t flags) in Suspend() argument 54 void DeviceStateAction::Wakeup(int64_t callTimeMs, WakeupDeviceType type, const string& details, in Wakeup() argument
|
/ohos5.0/base/powermgr/power_manager/test/unittest/include/servicetest/ |
H A D | powermgr_service_test_proxy.h | 53 PowerErrors SuspendDevice(int64_t callTimeMs, 56 …PowerErrors WakeupDevice(int64_t callTimeMs, WakeupDeviceType reason = WakeupDeviceType::WAKEUP_DE… 58 …bool RefreshActivity(int64_t callTimeMs, UserActivityType type = UserActivityType::USER_ACTIVITY_T… 64 PowerErrors ForceSuspendDevice(int64_t callTimeMs);
|
/ohos5.0/base/powermgr/power_manager/test/mock/action/ |
H A D | mock_state_action.h | 28 MOCK_METHOD3(Suspend, void(int64_t callTimeMs, SuspendDeviceType type, uint32_t flags)); 33 MOCK_METHOD4(Wakeup, void(int64_t callTimeMs, WakeupDeviceType type, 35 MOCK_METHOD3(RefreshActivity, void(int64_t callTimeMs, UserActivityType type, uint32_t flags));
|
/ohos5.0/base/powermgr/power_manager/test/systemtest/mock/ |
H A D | mock_state_action.h | 28 MOCK_METHOD3(Suspend, void(int64_t callTimeMs, SuspendDeviceType type, uint32_t flags)); 33 MOCK_METHOD4(Wakeup, void(int64_t callTimeMs, WakeupDeviceType type, 35 MOCK_METHOD3(RefreshActivity, void(int64_t callTimeMs, UserActivityType type, uint32_t flags));
|
/ohos5.0/base/powermgr/power_manager/interfaces/inner_api/native/include/ |
H A D | ipower_mgr.h | 60 …virtual PowerErrors SuspendDevice(int64_t callTimeMs, SuspendDeviceType reason, bool suspendImmed)… 61 …virtual PowerErrors WakeupDevice(int64_t callTimeMs, WakeupDeviceType reason, const std::string& d… 62 …virtual void WakeupDeviceAsync(int64_t callTimeMs, WakeupDeviceType reason, const std::string& det… 63 …virtual bool RefreshActivity(int64_t callTimeMs, UserActivityType type, bool needChangeBacklight) … 70 virtual PowerErrors ForceSuspendDevice(int64_t callTimeMs) = 0;
|
/ohos5.0/base/powermgr/power_manager/services/native/include/actions/ |
H A D | idevice_state_action.h | 40 virtual void Suspend(int64_t callTimeMs, SuspendDeviceType type, uint32_t flags) = 0; 42 virtual void Wakeup(int64_t callTimeMs, WakeupDeviceType type, const std::string& details, 44 virtual void RefreshActivity(int64_t callTimeMs, UserActivityType type, uint32_t flags) = 0;
|
/ohos5.0/base/powermgr/power_manager/services/zidl/include/ |
H A D | power_mgr_proxy.h | 62 …virtual PowerErrors SuspendDevice(int64_t callTimeMs, SuspendDeviceType reason, bool suspendImmed)… 63 …virtual PowerErrors WakeupDevice(int64_t callTimeMs, WakeupDeviceType reason, const std::string& d… 64 …virtual void WakeupDeviceAsync(int64_t callTimeMs, WakeupDeviceType reason, const std::string& det… 65 …virtual bool RefreshActivity(int64_t callTimeMs, UserActivityType type, bool needChangeBacklight) … 72 virtual PowerErrors ForceSuspendDevice(int64_t callTimeMs) override;
|
/ohos5.0/base/powermgr/power_manager/test/fuzztest/power_utils/ |
H A D | power_fuzzer.cpp | 56 … virtual void Suspend([[maybe_unused]] int64_t callTimeMs, [[maybe_unused]] SuspendDeviceType type, 59 virtual void Wakeup([[maybe_unused]] int64_t callTimeMs, [[maybe_unused]] WakeupDeviceType type, 61 …virtual void RefreshActivity([[maybe_unused]] int64_t callTimeMs, [[maybe_unused]] UserActivityTyp…
|
/ohos5.0/base/powermgr/power_manager/services/native/include/ |
H A D | power_state_machine.h | 89 …pid_t pid, int64_t callTimeMs, SuspendDeviceType type, bool suspendImmed, bool ignoreScreenState =… 91 …pid_t pid, int64_t callTimeMs, WakeupDeviceType type, const std::string& details, const std::strin… 92 … void HandlePreBrightWakeUp(int64_t callTimeMs, WakeupDeviceType type, const std::string& details, 94 …void RefreshActivityInner(pid_t pid, int64_t callTimeMs, UserActivityType type, bool needChangeBac… 116 bool ForceSuspendDeviceInner(pid_t pid, int64_t callTimeMs);
|
H A D | power_mgr_service.h | 67 …virtual PowerErrors SuspendDevice(int64_t callTimeMs, SuspendDeviceType reason, bool suspendImmed)… 68 …virtual PowerErrors WakeupDevice(int64_t callTimeMs, WakeupDeviceType reason, const std::string& d… 69 …virtual void WakeupDeviceAsync(int64_t callTimeMs, WakeupDeviceType reason, const std::string& det… in WakeupDeviceAsync() argument 70 …virtual bool RefreshActivity(int64_t callTimeMs, UserActivityType type, bool needChangeBacklight) … 71 bool RefreshActivityInner(int64_t callTimeMs, UserActivityType type, bool needChangeBacklight); 78 virtual PowerErrors ForceSuspendDevice(int64_t callTimeMs) override;
|
/ohos5.0/base/powermgr/power_manager/test/unittest/src/servicetest/ |
H A D | powermgr_service_test_proxy.cpp | 340 PowerErrors PowerMgrServiceTestProxy::SuspendDevice(int64_t callTimeMs, SuspendDeviceType reason, b… in SuspendDevice() argument 353 data.WriteInt64(callTimeMs); in SuspendDevice() 368 PowerErrors PowerMgrServiceTestProxy::WakeupDevice(int64_t callTimeMs, WakeupDeviceType reason, in WakeupDevice() argument 382 data.WriteInt64(callTimeMs); in WakeupDevice() 397 bool PowerMgrServiceTestProxy::RefreshActivity(int64_t callTimeMs, UserActivityType type, bool need… in RefreshActivity() argument 410 data.WriteInt64(callTimeMs); in RefreshActivity() 475 PowerErrors PowerMgrServiceTestProxy::ForceSuspendDevice(int64_t callTimeMs) in ForceSuspendDevice() argument 488 data.WriteInt64(callTimeMs); in ForceSuspendDevice()
|
/ohos5.0/base/powermgr/power_manager/services/zidl/src/ |
H A D | power_mgr_proxy.cpp | 466 PowerErrors PowerMgrProxy::SuspendDevice(int64_t callTimeMs, SuspendDeviceType reason, bool suspend… in SuspendDevice() argument 480 … RETURN_IF_WRITE_PARCEL_FAILED_WITH_RET(data, Int64, callTimeMs, PowerErrors::ERR_CONNECTION_FAIL); in SuspendDevice() 496 PowerErrors PowerMgrProxy::WakeupDevice(int64_t callTimeMs, WakeupDeviceType reason, const std::str… in WakeupDevice() argument 510 … RETURN_IF_WRITE_PARCEL_FAILED_WITH_RET(data, Int64, callTimeMs, PowerErrors::ERR_CONNECTION_FAIL); in WakeupDevice() 526 void PowerMgrProxy::WakeupDeviceAsync(int64_t callTimeMs, WakeupDeviceType reason, const std::strin… in WakeupDeviceAsync() argument 540 RETURN_IF_WRITE_PARCEL_FAILED_NO_RET(data, Int64, callTimeMs); in WakeupDeviceAsync() 552 bool PowerMgrProxy::RefreshActivity(int64_t callTimeMs, UserActivityType type, bool needChangeBackl… in RefreshActivity() argument 566 RETURN_IF_WRITE_PARCEL_FAILED_WITH_RET(data, Int64, callTimeMs, false); in RefreshActivity() 635 PowerErrors PowerMgrProxy::ForceSuspendDevice(int64_t callTimeMs) in ForceSuspendDevice() argument 649 … RETURN_IF_WRITE_PARCEL_FAILED_WITH_RET(data, Int64, callTimeMs, PowerErrors::ERR_CONNECTION_FAIL); in ForceSuspendDevice()
|
/ohos5.0/base/powermgr/power_manager/services/native/src/ |
H A D | power_state_machine.cpp | 411 … pid_t pid, int64_t callTimeMs, SuspendDeviceType type, bool suspendImmed, bool ignoreScreenState) in SuspendDeviceInner() argument 422 … callTimeMs, type, suspendImmed ? SUSPEND_DEVICE_IMMEDIATELY : SUSPEND_DEVICE_NEED_DOZE); in SuspendDeviceInner() 424 mDeviceState_.lastSuspendDeviceTime = callTimeMs; in SuspendDeviceInner() 515 stateAction_->Wakeup(callTimeMs, type, details, pkgName); in HandlePreBrightWakeUp() 517 mDeviceState_.lastWakeupDeviceTime = callTimeMs; in HandlePreBrightWakeUp() 579 HandlePreBrightWakeUp(callTimeMs, type, details, pkgName); in WakeupDeviceInner() 592 stateAction_->Wakeup(callTimeMs, type, details, pkgName); in WakeupDeviceInner() 594 mDeviceState_.lastWakeupDeviceTime = callTimeMs; in WakeupDeviceInner() 609 pid_t pid, int64_t callTimeMs, UserActivityType type, bool needChangeBacklight) in WakeupDeviceInner() argument 618 stateAction_->RefreshActivity(callTimeMs, type, in WakeupDeviceInner() [all …]
|
H A D | power_mgr_service.cpp | 864 PowerErrors PowerMgrService::SuspendDevice(int64_t callTimeMs, SuspendDeviceType reason, bool suspe… in SuspendDevice() argument 877 powerStateMachine_->SuspendDeviceInner(pid, callTimeMs, reason, suspendImmed); in SuspendDevice() 881 PowerErrors PowerMgrService::WakeupDevice(int64_t callTimeMs, WakeupDeviceType reason, const std::s… in WakeupDevice() argument 891 powerStateMachine_->WakeupDeviceInner(pid, callTimeMs, reason, details, "OHOS"); in WakeupDevice() 895 bool PowerMgrService::RefreshActivity(int64_t callTimeMs, UserActivityType type, bool needChangeBac… in RefreshActivity() argument 903 return RefreshActivityInner(callTimeMs, type, needChangeBacklight); in RefreshActivity() 906 bool PowerMgrService::RefreshActivityInner(int64_t callTimeMs, UserActivityType type, bool needChan… in RefreshActivityInner() argument 913 powerStateMachine_->RefreshActivityInner(pid, callTimeMs, type, needChangeBacklight); in RefreshActivityInner() 979 PowerErrors PowerMgrService::ForceSuspendDevice(int64_t callTimeMs) in ForceSuspendDevice() argument 993 powerStateMachine_->ForceSuspendDeviceInner(pid, callTimeMs); in ForceSuspendDevice()
|