Home
last modified time | relevance | path

Searched refs:PowerMode (Results 1 – 25 of 41) sorted by relevance

12

/base/powermgr/power_manager/test/systemtest/src/
Dpower_mgr_powersavemode_test.cpp41 void PowerMgrPowerSavemodeTest::PowerModeTest1Callback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged()
77 PowerMode mode = PowerMode::POWER_SAVE_MODE;
78 PowerMode mode1 = PowerMode::POWER_SAVE_MODE;
96 PowerMode mode = PowerMode::PERFORMANCE_MODE;
97 PowerMode mode1 = PowerMode::PERFORMANCE_MODE;
114 PowerMode mode = PowerMode::EXTREME_POWER_SAVE_MODE;
115 PowerMode mode1 = PowerMode::EXTREME_POWER_SAVE_MODE;
133 PowerMode mode = static_cast<PowerMode>(1);
134 PowerMode mode1 = static_cast<PowerMode>(1);
152 PowerMode mode = PowerMode::EXTREME_POWER_SAVE_MODE;
[all …]
/base/powermgr/power_manager/services/native/test/unittest/src/
Dpower_set_mode_test.cpp48 PowerMode mode1 = PowerMode::POWER_SAVE_MODE;
53 PowerMode mode2 = PowerMode::PERFORMANCE_MODE;
58 PowerMode mode3 = PowerMode::EXTREME_POWER_SAVE_MODE;
Dpower_device_mode_test.cpp37 void PowerDeviceModeTest::PowerModeTest1Callback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged()
42 void PowerDeviceModeTest::PowerModeTest2Callback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged()
83 PowerMode mode = PowerMode::POWER_SAVE_MODE;
98 PowerMode mode = PowerMode::NORMAL_MODE;
Dpower_register_callback_mode_test.cpp36 void PowerRegisterCallbackModeTest::PowerModeTest1Callback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged()
53 PowerMode mode = PowerMode::POWER_SAVE_MODE;
Dpower_get_mode_test.cpp44 PowerMode mode;
/base/powermgr/power_manager/services/native/src/
Dpower_mode_module.cpp33 : mode_(PowerMode::NORMAL_MODE), lastMode_(LAST_MODE_FLAG), started_(false) in PowerModeModule()
52 void PowerModeModule::SetModeItem(PowerMode mode) in SetModeItem()
62 if (mode < PowerMode::POWER_MODE_MIN || mode > PowerMode::POWER_MODE_MAX) { in SetModeItem()
71 PowerMode PowerModeModule::GetModeItem() in GetModeItem()
78 void PowerModeModule::EnableMode(PowerMode mode, bool isBoot) in EnableMode()
171 PowerMode mode = PowerMode::NORMAL_MODE; in WaitingCallback()
187 case PowerMode::PERFORMANCE_MODE: in PublishPowerModeEvent()
189 code = static_cast<uint32_t>(PowerMode::PERFORMANCE_MODE); in PublishPowerModeEvent()
190 data = ToString(static_cast<uint32_t>(PowerMode::PERFORMANCE_MODE)); in PublishPowerModeEvent()
192 case PowerMode::NORMAL_MODE: in PublishPowerModeEvent()
[all …]
/base/powermgr/power_manager/services/native/include/
Dpower_mode_module.h38 void SetModeItem(PowerMode mode);
39 PowerMode GetModeItem();
40 void EnableMode(PowerMode mode, bool isBoot = false);
59 PowerMode mode_;
/base/telephony/core_service/services/network_search/src/
Ddevice_state_observer.cpp29 using PowerMode = OHOS::PowerMgr::PowerMode; typedef
140 PowerMode powerModeCode = static_cast<PowerMode>(data.GetCode()); in ProcessPowerSaveMode()
142 case PowerMode::POWER_SAVE_MODE: in ProcessPowerSaveMode()
143 case PowerMode::EXTREME_POWER_SAVE_MODE: in ProcessPowerSaveMode()
146 case PowerMode::PERFORMANCE_MODE: in ProcessPowerSaveMode()
147 case PowerMode::NORMAL_MODE: in ProcessPowerSaveMode()
211 powerSaveMode == PowerMgr::PowerMode::POWER_SAVE_MODE || in OnAddSystemAbility()
212 powerSaveMode == PowerMgr::PowerMode::EXTREME_POWER_SAVE_MODE); in OnAddSystemAbility()
/base/powermgr/power_manager/frameworks/napi/power/
Dpower_module.cpp47 napi_create_int32(env, (int32_t)PowerMode::NORMAL_MODE, &normal); in CreateDevicePowerMode()
48 napi_create_int32(env, (int32_t)PowerMode::POWER_SAVE_MODE, &powerSave); in CreateDevicePowerMode()
49 napi_create_int32(env, (int32_t)PowerMode::PERFORMANCE_MODE, &performance); in CreateDevicePowerMode()
50 napi_create_int32(env, (int32_t)PowerMode::EXTREME_POWER_SAVE_MODE, &extremePowerSave); in CreateDevicePowerMode()
/base/powermgr/power_manager/frameworks/napi/utils/
Dasync_callback_info.h51 inline PowerMode GetMode() const in GetMode()
67 PowerMode powerMode_ = PowerMode::NORMAL_MODE;
/base/powermgr/power_manager/services/native/test/unittest/include/
Dpower_device_mode_test.h34 virtual void OnPowerModeChanged(PowerMode mode) override;
40 virtual void OnPowerModeChanged(PowerMode mode) override;
Dpower_register_callback_mode_test.h34 virtual void OnPowerModeChanged(PowerMode mode) override;
/base/powermgr/power_manager/services/native/test/unittest/src/mock/
Dpower_mock_object_test.cpp36 void PowerMockObjectTest::PowerModeTestCallback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged()
64 PowerMode mode = PowerMode::NORMAL_MODE;
96 PowerMode mode = PowerMode::NORMAL_MODE;
Dpower_mock_parcel_test.cpp39 void MockParcelTest::PowerModeTestCallback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged()
92 PowerMode mode1 = PowerMode::POWER_SAVE_MODE;
211 PowerMode mode1 = PowerMode::NORMAL_MODE;
Dpower_mock_proxy_test.cpp38 void PowerMockProxyTest::PowerModeTestCallback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged()
104 PowerMode mode1 = PowerMode::NORMAL_MODE;
/base/powermgr/power_manager/interfaces/innerkits/native/include/
Dpower_mode_info.h24 enum class PowerMode : uint32_t { enum
Dipower_mode_callback.h33 virtual void OnPowerModeChanged(PowerMode mode) = 0;
Dpower_mgr_client.h114 PowerErrors SetDeviceMode(const PowerMode mode);
121 PowerMode GetDeviceMode();
/base/powermgr/power_manager/services/zidl/include/
Dpower_mode_callback_proxy.h34 virtual void OnPowerModeChanged(PowerMode mode) override;
Dpower_mode_callback_stub.h32 void OnPowerModeChanged(PowerMode mode) override {}; in OnPowerModeChanged()
/base/powermgr/power_manager/services/zidl/src/
Dpower_mode_callback_proxy.cpp26 void PowerModeCallbackProxy::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged()
/base/powermgr/power_manager/services/native/test/unittest/include/mock/
Dpower_mock_object_test.h33 virtual void OnPowerModeChanged(PowerMode mode) override;
Dpower_mock_proxy_test.h33 virtual void OnPowerModeChanged(PowerMode mode) override;
Dpower_mock_peer_test.h33 virtual void OnPowerModeChanged(PowerMode mode) override;
Dpower_mock_parcel_test.h33 virtual void OnPowerModeChanged(PowerMode mode) override;

12