/base/powermgr/power_manager/test/systemtest/src/ |
D | power_mgr_powersavemode_test.cpp | 41 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/ |
D | power_set_mode_test.cpp | 48 PowerMode mode1 = PowerMode::POWER_SAVE_MODE; 53 PowerMode mode2 = PowerMode::PERFORMANCE_MODE; 58 PowerMode mode3 = PowerMode::EXTREME_POWER_SAVE_MODE;
|
D | power_device_mode_test.cpp | 37 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;
|
D | power_register_callback_mode_test.cpp | 36 void PowerRegisterCallbackModeTest::PowerModeTest1Callback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged() 53 PowerMode mode = PowerMode::POWER_SAVE_MODE;
|
D | power_get_mode_test.cpp | 44 PowerMode mode;
|
/base/powermgr/power_manager/services/native/src/ |
D | power_mode_module.cpp | 33 : 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/ |
D | power_mode_module.h | 38 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/ |
D | device_state_observer.cpp | 29 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/ |
D | power_module.cpp | 47 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/ |
D | async_callback_info.h | 51 inline PowerMode GetMode() const in GetMode() 67 PowerMode powerMode_ = PowerMode::NORMAL_MODE;
|
/base/powermgr/power_manager/services/native/test/unittest/include/ |
D | power_device_mode_test.h | 34 virtual void OnPowerModeChanged(PowerMode mode) override; 40 virtual void OnPowerModeChanged(PowerMode mode) override;
|
D | power_register_callback_mode_test.h | 34 virtual void OnPowerModeChanged(PowerMode mode) override;
|
/base/powermgr/power_manager/services/native/test/unittest/src/mock/ |
D | power_mock_object_test.cpp | 36 void PowerMockObjectTest::PowerModeTestCallback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged() 64 PowerMode mode = PowerMode::NORMAL_MODE; 96 PowerMode mode = PowerMode::NORMAL_MODE;
|
D | power_mock_parcel_test.cpp | 39 void MockParcelTest::PowerModeTestCallback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged() 92 PowerMode mode1 = PowerMode::POWER_SAVE_MODE; 211 PowerMode mode1 = PowerMode::NORMAL_MODE;
|
D | power_mock_proxy_test.cpp | 38 void PowerMockProxyTest::PowerModeTestCallback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged() 104 PowerMode mode1 = PowerMode::NORMAL_MODE;
|
/base/powermgr/power_manager/interfaces/innerkits/native/include/ |
D | power_mode_info.h | 24 enum class PowerMode : uint32_t { enum
|
D | ipower_mode_callback.h | 33 virtual void OnPowerModeChanged(PowerMode mode) = 0;
|
D | power_mgr_client.h | 114 PowerErrors SetDeviceMode(const PowerMode mode); 121 PowerMode GetDeviceMode();
|
/base/powermgr/power_manager/services/zidl/include/ |
D | power_mode_callback_proxy.h | 34 virtual void OnPowerModeChanged(PowerMode mode) override;
|
D | power_mode_callback_stub.h | 32 void OnPowerModeChanged(PowerMode mode) override {}; in OnPowerModeChanged()
|
/base/powermgr/power_manager/services/zidl/src/ |
D | power_mode_callback_proxy.cpp | 26 void PowerModeCallbackProxy::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged()
|
/base/powermgr/power_manager/services/native/test/unittest/include/mock/ |
D | power_mock_object_test.h | 33 virtual void OnPowerModeChanged(PowerMode mode) override;
|
D | power_mock_proxy_test.h | 33 virtual void OnPowerModeChanged(PowerMode mode) override;
|
D | power_mock_peer_test.h | 33 virtual void OnPowerModeChanged(PowerMode mode) override;
|
D | power_mock_parcel_test.h | 33 virtual void OnPowerModeChanged(PowerMode mode) override;
|