/ohos5.0/base/powermgr/power_manager/test/unittest/src/interface_test/ |
H A D | power_mgr_client_test.cpp | 53 powerMgrClient.SuspendDevice(); 55 powerMgrClient.WakeupDevice(); 60 powerMgrClient.RefreshActivity(); 80 powerMgrClient.SuspendDevice(); 82 powerMgrClient.WakeupDevice(); 107 powerMgrClient.SuspendDevice(); 109 powerMgrClient.WakeupDevice(); 134 powerMgrClient.SuspendDevice(); 136 powerMgrClient.WakeupDevice(); 163 powerMgrClient.WakeupDevice(); [all …]
|
H A D | power_mgr_service_test.cpp | 99 powerMgrClient.WakeupDevice(); 115 powerMgrClient.WakeupDevice(); 130 powerMgrClient.WakeupDevice(); 145 powerMgrClient.SuspendDevice(); 147 powerMgrClient.WakeupDevice(); 163 powerMgrClient.WakeupDevice(); 179 powerMgrClient.WakeupDevice(); 193 powerMgrClient.WakeupDevice(); 210 powerMgrClient.WakeupDevice(); 226 powerMgrClient.WakeupDevice(); [all …]
|
H A D | power_state_machine_test.cpp | 53 powerMgrClient.RestoreScreenOffTime(); in TearDown() 71 powerMgrClient.WakeupDevice(); 76 powerMgrClient.SuspendDevice(); 99 powerMgrClient.SuspendDevice(); 104 powerMgrClient.WakeupDevice(); 125 if (powerMgrClient.IsScreenOn()) { 131 powerMgrClient.WakeupDevice(); 154 powerMgrClient.SuspendDevice(); 167 powerMgrClient.SuspendDevice(); 273 powerMgrClient.WakeupDevice(); in WakeUpthread() [all …]
|
H A D | running_lock_test.cpp | 43 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 63 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 134 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 142 runningLock = powerMgrClient.CreateRunningLock( 152 runningLock = powerMgrClient.CreateRunningLock( 171 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 193 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 220 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 248 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 270 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable [all …]
|
H A D | shutdown_client_test.cpp | 100 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 101 powerMgrClient.RebootDevice("RegisterShutdownCallback001"); 106 powerMgrClient.ShutDownDevice("RegisterShutdownCallback001"); 132 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 133 powerMgrClient.RebootDevice("UnRegisterShutdownCallback002"); 138 powerMgrClient.ShutDownDevice("UnRegisterShutdownCallback002");
|
/ohos5.0/base/powermgr/power_manager/test/unittest/src/ |
H A D | power_coordination_lock_test.cpp | 212 powerMgrClient.WakeupDevice(); 244 powerMgrClient.WakeupDevice(); 281 powerMgrClient.WakeupDevice(); 313 powerMgrClient.WakeupDevice(); 345 powerMgrClient.SuspendDevice(); 372 powerMgrClient.WakeupDevice(); 434 powerMgrClient.WakeupDevice(); 487 powerMgrClient.WakeupDevice(); 508 powerMgrClient.WakeupDevice(); 548 powerMgrClient.WakeupDevice(); [all …]
|
H A D | power_mgr_client_native_test.cpp | 54 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 57 powerMgrClient.ResetProxy(remoteObject_); 58 EXPECT_TRUE(powerMgrClient.Connect() == ERR_OK); 59 powerMgrClient.ResetProxy(remoteObject_); 60 powerMgrClient.ResetProxy(nullptr); 61 if (powerMgrClient.deathRecipient_ != nullptr) { 62 powerMgrClient.deathRecipient_->OnRemoteDied(remoteObject_); 63 powerMgrClient.deathRecipient_->OnRemoteDied(nullptr); 67 EXPECT_FALSE(powerMgrClient.RegisterPowerStateCallback(nullptr)); 69 EXPECT_FALSE(powerMgrClient.RegisterPowerModeCallback(nullptr)); [all …]
|
H A D | power_device_mode_test.cpp | 56 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 58 ret = powerMgrClient.RegisterPowerModeCallback(cb1); 92 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 94 PowerMode mode1 = powerMgrClient.GetDeviceMode(); 96 powerMgrClient.SetDeviceMode(mode); 97 EXPECT_EQ(powerMgrClient.GetDeviceMode(), mode); 98 powerMgrClient.SetDeviceMode(mode1); 116 mode = powerMgrClient.GetDeviceMode(); 118 powerMgrClient.SetDeviceMode(mode1); 119 mode2 = powerMgrClient.GetDeviceMode(); [all …]
|
H A D | power_mgr_service_death_test.cpp | 35 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 36 EXPECT_EQ(powerMgrClient.Connect(), ERR_OK); 39 std::make_shared<PowerMgrClient::PowerMgrDeathRecipient>(powerMgrClient); 43 EXPECT_NE(powerMgrClient.proxy_, nullptr); 54 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 55 EXPECT_EQ(powerMgrClient.Connect(), ERR_OK); 58 std::make_shared<PowerMgrClient::PowerMgrDeathRecipient>(powerMgrClient); 63 EXPECT_NE(powerMgrClient.proxy_, nullptr);
|
H A D | power_set_mode_test.cpp | 55 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 59 powerMgrClient.SetDeviceMode(mode1); 60 EXPECT_EQ(mode1, powerMgrClient.GetDeviceMode()); 65 powerMgrClient.SetDeviceMode(mode2); 66 EXPECT_EQ(mode2, powerMgrClient.GetDeviceMode()); 71 powerMgrClient.SetDeviceMode(mode3); 72 EXPECT_EQ(mode3, powerMgrClient.GetDeviceMode());
|
H A D | power_get_mode_test.cpp | 48 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 50 mode = powerMgrClient.GetDeviceMode(); 51 powerMgrClient.SetDeviceMode(mode1); 52 EXPECT_EQ(mode1, powerMgrClient.GetDeviceMode()); 53 powerMgrClient.SetDeviceMode(mode);
|
H A D | power_mgr_notify_test.cpp | 144 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 148 powerMgrClient.WakeupDevice(); 150 …EXPECT_EQ(powerMgrClient.IsScreenOn(), true) << "PowerMgrNotifyTest001: Prepare Fail, Screen is OF… 156 powerMgrClient.SuspendDevice(); 175 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 179 powerMgrClient.SuspendDevice(); 181 …EXPECT_EQ(powerMgrClient.IsScreenOn(), false) << "PowerMgrNotifyTest002: Prepare Fail, Screen is O… 187 powerMgrClient.WakeupDevice();
|
H A D | power_register_callback_mode_test.cpp | 49 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 51 powerMgrClient.RegisterPowerModeCallback(cb1); 54 powerMgrClient.SetDeviceMode(mode); 55 EXPECT_EQ(mode, powerMgrClient.GetDeviceMode());
|
/ohos5.0/base/powermgr/battery_manager/test/unittest/src/ |
H A D | battery_plugged_wakeup_test.cpp | 69 powerMgrClient.SuspendDevice(); 75 isScreenOnNow = powerMgrClient.IsScreenOn(); 94 powerMgrClient.SuspendDevice(); 99 isScreenOnNow = powerMgrClient.IsScreenOn(); 117 powerMgrClient.SuspendDevice(); 142 powerMgrClient.SuspendDevice(); 165 powerMgrClient.SuspendDevice(); 190 powerMgrClient.SuspendDevice(); 213 powerMgrClient.SuspendDevice(); 238 powerMgrClient.SuspendDevice(); [all …]
|
/ohos5.0/base/powermgr/power_manager/test/systemtest/src/ |
H A D | power_mgr_powersavemode_test.cpp | 76 powerMgrClient.SetDeviceMode(mode); 77 mode = powerMgrClient.GetDeviceMode(); 95 powerMgrClient.SetDeviceMode(mode); 113 powerMgrClient.SetDeviceMode(mode); 132 powerMgrClient.SetDeviceMode(mode); 189 powerMgrClient.SetDeviceMode(mode); 211 powerMgrClient.SetDeviceMode(mode); 235 powerMgrClient.SetDeviceMode(mode); 259 powerMgrClient.SetDeviceMode(mode); 281 powerMgrClient.SetDeviceMode(mode); [all …]
|
H A D | power_mgr_shutdown_fast_test.cpp | 61 auto& powerMgrClient = PowerMgrClient::GetInstance(); in SetUp() local 62 …powerMgrClient.WakeupDevice(WakeupDeviceType::WAKEUP_DEVICE_APPLICATION, std::string("test call Se… in SetUp() 67 auto& powerMgrClient = PowerMgrClient::GetInstance(); in TearDown() local 113 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 114 powerMgrClient.ShutDownDevice(SHUTDOWN_FAST_REASON); 121 EXPECT_TRUE(powerMgrClient.GetState() == PowerState::INACTIVE || 122 powerMgrClient.GetState() == PowerState::SLEEP); 136 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 137 powerMgrClient.ShutDownDevice(SHUTDOWN_FAST_REASON); 140 EXPECT_TRUE(powerMgrClient.GetState() == PowerState::INACTIVE || [all …]
|
H A D | power_level_event_system_test_off.cpp | 104 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 105 powerMgrClient.WakeupDevice(WakeupDeviceType::WAKEUP_DEVICE_APPLICATION); 106 powerMgrClient.SuspendDevice(SuspendDeviceType::SUSPEND_DEVICE_REASON_APPLICATION);
|
H A D | power_level_event_system_test_on.cpp | 105 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 106 powerMgrClient.SuspendDevice(SuspendDeviceType::SUSPEND_DEVICE_REASON_APPLICATION); 107 powerMgrClient.WakeupDevice(WakeupDeviceType::WAKEUP_DEVICE_APPLICATION);
|
/ohos5.0/base/powermgr/power_manager/test/unittest/src/mock/ |
H A D | power_mock_parcel_test.cpp | 66 EXPECT_FALSE(powerMgrClient.IsScreenOn()); 67 powerMgrClient.SetDisplaySuspend(true); 68 powerMgrClient.WakeupDevice(); 69 powerMgrClient.RefreshActivity(); 71 powerMgrClient.GetState(); 72 powerMgrClient.RebootDevice(" "); 73 powerMgrClient.RebootDeviceForDeprecated(" "); 74 powerMgrClient.ShutDownDevice(" "); 75 powerMgrClient.ForceSuspendDevice(); 93 powerMgrClient.SetDeviceMode(mode1); [all …]
|
H A D | power_mock_peer_test.cpp | 60 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 65 EXPECT_FALSE(powerMgrClient.RegisterPowerStateCallback(stateCallback)); 66 EXPECT_FALSE(powerMgrClient.UnRegisterPowerStateCallback(stateCallback)); 67 EXPECT_FALSE(powerMgrClient.RegisterPowerModeCallback(modeCallback)); 68 EXPECT_FALSE(powerMgrClient.UnRegisterPowerModeCallback(modeCallback)); 69 EXPECT_FALSE(powerMgrClient.RegisterRunningLockCallback(runninglockCallback)); 81 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 86 EXPECT_FALSE(powerMgrClient.RegisterPowerStateCallback(stateCallback)); 87 EXPECT_FALSE(powerMgrClient.UnRegisterPowerStateCallback(stateCallback)); 88 EXPECT_FALSE(powerMgrClient.RegisterPowerModeCallback(modeCallback)); [all …]
|
/ohos5.0/base/powermgr/power_manager/test/unittest/src/scenario_test/running_lock/ |
H A D | running_lock_scenario_test.cpp | 44 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 70 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 85 EXPECT_TRUE(powerMgrClient.ProxyRunningLock(true, curPid, app0Uid)); 88 EXPECT_TRUE(powerMgrClient.ProxyRunningLock(false, curPid, app0Uid)); 108 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 129 EXPECT_TRUE(powerMgrClient.ProxyRunningLock(true, curPid, app0Uid)); 132 EXPECT_TRUE(powerMgrClient.ProxyRunningLock(true, curPid, app1Uid)); 135 EXPECT_TRUE(powerMgrClient.ProxyRunningLock(false, curPid, app0Uid)); 138 EXPECT_TRUE(powerMgrClient.ProxyRunningLock(false, curPid, app1Uid)); 159 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable [all …]
|
/ohos5.0/base/powermgr/power_manager/test/apitest/inner_api/shutdown/ |
H A D | takeover_shutdown_callback_test.cpp | 108 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 111 powerMgrClient.RebootDevice("test_reboot"); // reboot will be taken over 115 powerMgrClient.ShutDownDevice("test_shutdown"); // shutdown will be taken over 134 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 135 powerMgrClient.ShutDownDevice("test_shutdown"); // shutdown will be taken over 156 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 157 powerMgrClient.ShutDownDevice("test_shutdown"); // shutdown will be taken over 178 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable 179 powerMgrClient.ShutDownDevice("test_shutdown"); // shutdown will be taken over 198 auto& powerMgrClient = PowerMgrClient::GetInstance(); variable [all …]
|
/ohos5.0/base/telephony/core_service/services/tel_ril/src/ |
H A D | tel_ril_handler.cpp | 57 auto &powerMgrClient = PowerMgr::PowerMgrClient::GetInstance(); in OnInit() local 58 ackRunningLock_ = powerMgrClient.CreateRunningLock( in OnInit() 60 reqRunningLock_ = powerMgrClient.CreateRunningLock( in OnInit() 72 auto &powerMgrClient = PowerMgr::PowerMgrClient::GetInstance(); in ApplyRunningLock() local 73 ackRunningLock_ = powerMgrClient.CreateRunningLock( in ApplyRunningLock() 78 auto &powerMgrClient = PowerMgr::PowerMgrClient::GetInstance(); in ApplyRunningLock() local 79 reqRunningLock_ = powerMgrClient.CreateRunningLock( in ApplyRunningLock()
|
/ohos5.0/base/powermgr/thermal_manager/services/native/src/thermal_observer/state_machine/ |
H A D | screen_state_collection.cpp | 95 auto& powerMgrClient = PowerMgrClient::GetInstance(); in DecideState() local 96 if ((value == ToString(SCREEN_ON) && powerMgrClient.IsScreenOn(false)) || in DecideState() 97 (value == ToString(SCREEN_OFF) && !powerMgrClient.IsScreenOn(false))) { in DecideState()
|
/ohos5.0/base/customization/enterprise_device_management/services/edm_plugin/src/ |
H A D | operate_device_plugin.cpp | 56 auto& powerMgrClient = PowerMgr::PowerMgrClient::GetInstance(); in OnSetPolicy() local 59 ret = powerMgrClient.ShutDownDevice("edm_Shutdown"); in OnSetPolicy() 61 ret = powerMgrClient.RebootDevice("edm_Reboot"); in OnSetPolicy()
|