Home
last modified time | relevance | path

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

123

/base/powermgr/power_manager/test/systemtest/src/
Dpower_mgr_powersavemode_test.cpp50 void PowerMgrPowerSavemodeTest::PowerModeTest1Callback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged()
74 PowerMode mode = PowerMode::POWER_SAVE_MODE;
75 PowerMode mode1 = PowerMode::POWER_SAVE_MODE;
93 PowerMode mode = PowerMode::PERFORMANCE_MODE;
94 PowerMode mode1 = PowerMode::PERFORMANCE_MODE;
111 PowerMode mode = PowerMode::EXTREME_POWER_SAVE_MODE;
112 PowerMode mode1 = PowerMode::EXTREME_POWER_SAVE_MODE;
130 PowerMode mode = static_cast<PowerMode>(1);
131 PowerMode mode1 = static_cast<PowerMode>(1);
149 PowerMode mode = PowerMode::EXTREME_POWER_SAVE_MODE;
[all …]
Dpower_mgr_system_test.cpp85 PowerMode mode = PowerMode::POWER_SAVE_MODE;
97 PowerMode mode = PowerMode::POWER_MODE_MIN;
109 PowerMode mode = PowerMode::PERFORMANCE_MODE;
121 PowerMode mode = PowerMode::EXTREME_POWER_SAVE_MODE;
/base/powermgr/power_manager/test/unittest/src/
Dpower_device_mode_test.cpp37 void PowerDeviceModeTest::PowerModeTest1Callback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged()
42 void PowerDeviceModeTest::PowerModeTest2Callback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged()
94 PowerMode mode1 = powerMgrClient.GetDeviceMode();
95 PowerMode mode = PowerMode::POWER_SAVE_MODE;
110 PowerMode mode = PowerMode::NORMAL_MODE;
111 PowerMode mode1 = PowerMode::NORMAL_MODE;
112 PowerMode mode2 = PowerMode::NORMAL_MODE;
Dpower_set_mode_test.cpp57 PowerMode mode1 = PowerMode::POWER_SAVE_MODE;
63 PowerMode mode2 = PowerMode::PERFORMANCE_MODE;
69 PowerMode mode3 = PowerMode::EXTREME_POWER_SAVE_MODE;
Dpower_mode_module_native_test.cpp39 void PowerModeTestCallback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged()
54 powerModeModuleTest->mode_ = PowerMode::PERFORMANCE_MODE;
56 powerModeModuleTest->mode_ = PowerMode::EXTREME_POWER_SAVE_MODE;
58 powerModeModuleTest->mode_ = static_cast<PowerMode>(POWERMODE);
73 PowerMode mode = PowerMode::PERFORMANCE_MODE;
76 powerModeModuleTest->mode_ = PowerMode::PERFORMANCE_MODE;
79 mode = static_cast<PowerMode>(POWERMODE);
Dpower_get_mode_test.cpp44 PowerMode mode;
45 PowerMode mode1 = PowerMode::NORMAL_MODE;
Dpower_register_callback_mode_test.cpp36 void PowerRegisterCallbackModeTest::PowerModeTest1Callback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged()
53 PowerMode mode = PowerMode::POWER_SAVE_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
141 PowerMode powerModeCode = static_cast<PowerMode>(data.GetCode()); in ProcessPowerSaveMode()
143 case PowerMode::POWER_SAVE_MODE: in ProcessPowerSaveMode()
144 case PowerMode::EXTREME_POWER_SAVE_MODE: in ProcessPowerSaveMode()
147 case PowerMode::PERFORMANCE_MODE: in ProcessPowerSaveMode()
148 case PowerMode::NORMAL_MODE: in ProcessPowerSaveMode()
212 …powerSaveMode == PowerMode::POWER_SAVE_MODE || powerSaveMode == 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/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/test/unittest/src/mock/
Dpower_mock_object_test.cpp36 void PowerMockObjectTest::PowerModeTestCallback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged()
55 PowerMode mode = PowerMode::NORMAL_MODE;
86 PowerMode mode = PowerMode::NORMAL_MODE;
Dpower_mock_parcel_test.cpp38 void MockParcelTest::PowerModeTestCallback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged()
85 PowerMode mode1 = PowerMode::POWER_SAVE_MODE;
185 PowerMode mode1 = PowerMode::NORMAL_MODE;
Dpower_mock_proxy_test.cpp37 void PowerMockProxyTest::PowerModeTestCallback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged()
94 PowerMode mode1 = PowerMode::NORMAL_MODE;
/base/powermgr/power_manager/test/unittest/src/servicetest/mock/
Dpowermgr_service_mock_parcel_test.cpp54 void PowerMgrServiceMockParcelTest::PowerModeTestCallback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged()
114 PowerMode setMode = PowerMode::NORMAL_MODE;
116 PowerMode getMode = g_powerMgrServiceProxy->GetDeviceMode();
/base/powermgr/power_manager/interfaces/inner_api/native/include/
Dipower_mode_callback.h29 virtual void OnPowerModeChanged(PowerMode mode) = 0;
Dpower_mode_info.h24 enum class PowerMode : uint32_t { enum
Dpower_mgr_client.h114 PowerErrors SetDeviceMode(const PowerMode mode);
121 PowerMode GetDeviceMode();
/base/powermgr/power_manager/test/unittest/include/servicetest/
Dpowermgr_service_test_proxy.h71 PowerErrors SetDeviceMode(const PowerMode& mode);
72 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/test/unittest/include/mock/
Dpower_mock_parcel_test.h32 virtual void OnPowerModeChanged(PowerMode mode) override;

123