Home
last modified time | relevance | path

Searched refs:_power_status (Results 1 – 9 of 9) sorted by relevance

/external/autotest/client/site_tests/power_LoadTest/
Dpower_LoadTest.py104 self._power_status = None
119 self._power_status = power_status.get_status()
122 if not self._power_status.battery:
129 if not self._power_status.battery:
138 self._power_status.on_ac())
148 self._power_status.assert_battery_state(percent_initial_charge_min)
230 self._power_status.refresh()
247 if self._power_status.battery:
248 self._ah_charge_start = self._power_status.battery.charge_now
249 self._wh_energy_start = self._power_status.battery.energy
[all …]
/external/autotest/client/site_tests/policy_ChromeOsLockOnIdleSuspend/
Dpolicy_ChromeOsLockOnIdleSuspend.py70 self._power_status = power_status.get_status()
71 if not self._power_status.on_ac():
73 self._power_status.assert_battery_state(self.PERCENT_CHARGE_MIN)
82 return 'AC' if self._power_status.on_ac() else 'Battery'
/external/autotest/client/site_tests/enterprise_PowerManagement/
Denterprise_PowerManagement.py35 self._power_status = power_status.get_status()
36 if not self._power_status.on_ac():
38 self._power_status.assert_battery_state(percent_initial_charge_min)
58 if self._power_status.on_ac():
/external/autotest/client/site_tests/graphics_VideoRenderingPower/
Dgraphics_VideoRenderingPower.py47 _power_status = None variable in graphics_VideoRenderingPower
59 self._power_status = power_status.get_status()
90 if self._power_status.battery_path is None:
94 power_status.SystemPower(self._power_status.battery_path))
/external/autotest/client/site_tests/power_Consumption/
Dpower_Consumption.py52 self._power_status = power_status.get_status()
53 self._tmp_keyvals['b_on_ac'] = self._power_status.on_ac()
58 self._power_status.assert_battery_state(30)
469 if not self._power_status.on_ac():
471 [power_status.SystemPower(self._power_status.battery_path)]
507 self._power_status.refresh()
508 on_ac = self._power_status.on_ac()
513 whrs = self._power_status.battery.energy_full_design
/external/autotest/client/site_tests/audio_PlaybackPower/
Daudio_PlaybackPower.py53 self._power_status = power_status.get_status()
56 self._power_status.assert_battery_state(BATTERY_INITIAL_CHARGED_MIN)
59 self._power_status.battery_path)]
/external/autotest/client/site_tests/video_PlaybackPerf/
Dvideo_PlaybackPerf.py224 self._power_status = power_status.get_status()
229 if self._power_status.on_ac():
233 self._power_status.assert_battery_state(BATTERY_INITIAL_CHARGED_MIN)
236 self._power_status.battery_path)]
/external/autotest/client/site_tests/graphics_WebGLAquarium/
Dgraphics_WebGLAquarium.py51 _power_status = None variable in graphics_WebGLAquarium
221 self._power_status = power_status.get_status()
224 self._power_status.assert_battery_state(BATTERY_INITIAL_CHARGED_MIN)
227 power_status.SystemPower(self._power_status.battery_path)
/external/autotest/client/site_tests/policy_PowerManagementIdleSettings/
Dpolicy_PowerManagementIdleSettings.py60 self._power_status = power_status.get_status()
61 if not self._power_status.on_ac():