/base/powermgr/power_manager/test/systemtest/src/ |
D | power_mgr_powersavemode_test.cpp | 50 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 …]
|
D | power_mgr_system_test.cpp | 85 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/ |
D | power_device_mode_test.cpp | 37 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;
|
D | power_set_mode_test.cpp | 57 PowerMode mode1 = PowerMode::POWER_SAVE_MODE; 63 PowerMode mode2 = PowerMode::PERFORMANCE_MODE; 69 PowerMode mode3 = PowerMode::EXTREME_POWER_SAVE_MODE;
|
D | power_mode_module_native_test.cpp | 39 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);
|
D | power_get_mode_test.cpp | 44 PowerMode mode; 45 PowerMode mode1 = 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;
|
/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 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/ |
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/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/test/unittest/src/mock/ |
D | power_mock_object_test.cpp | 36 void PowerMockObjectTest::PowerModeTestCallback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged() 55 PowerMode mode = PowerMode::NORMAL_MODE; 86 PowerMode mode = PowerMode::NORMAL_MODE;
|
D | power_mock_parcel_test.cpp | 38 void MockParcelTest::PowerModeTestCallback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged() 85 PowerMode mode1 = PowerMode::POWER_SAVE_MODE; 185 PowerMode mode1 = PowerMode::NORMAL_MODE;
|
D | power_mock_proxy_test.cpp | 37 void PowerMockProxyTest::PowerModeTestCallback::OnPowerModeChanged(PowerMode mode) in OnPowerModeChanged() 94 PowerMode mode1 = PowerMode::NORMAL_MODE;
|
/base/powermgr/power_manager/test/unittest/src/servicetest/mock/ |
D | powermgr_service_mock_parcel_test.cpp | 54 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/ |
D | ipower_mode_callback.h | 29 virtual void OnPowerModeChanged(PowerMode mode) = 0;
|
D | power_mode_info.h | 24 enum class PowerMode : uint32_t { enum
|
D | power_mgr_client.h | 114 PowerErrors SetDeviceMode(const PowerMode mode); 121 PowerMode GetDeviceMode();
|
/base/powermgr/power_manager/test/unittest/include/servicetest/ |
D | powermgr_service_test_proxy.h | 71 PowerErrors SetDeviceMode(const PowerMode& mode); 72 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/test/unittest/include/mock/ |
D | power_mock_parcel_test.h | 32 virtual void OnPowerModeChanged(PowerMode mode) override;
|