Home
last modified time | relevance | path

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

/external/autotest/client/site_tests/power_LoadTest/
Dpower_LoadTest.py103 self._power_status = None
125 self._power_status = power_status.get_status()
126 self._tmp_keyvals['b_on_ac'] = self._power_status.on_ac()
136 self._power_status.assert_battery_state(percent_initial_charge_min)
222 self._power_status.refresh()
239 if self._power_status.battery:
240 self._ah_charge_start = self._power_status.battery[0].charge_now
241 self._wh_energy_start = self._power_status.battery[0].energy
259 if self._power_status.battery:
261 [power_status.SystemPower(self._power_status.battery_path)]
[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/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[0].energy_full_design
/external/autotest/client/site_tests/video_JDAPerf/
Dvideo_JDAPerf.py112 self._power_status = power_status.get_status()
119 if not self._power_status.battery:
123 percent_initial_charge = self._power_status.percent_current_charge()
131 self._power_status.battery_path)]
/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()
89 power_status.SystemPower(self._power_status.battery_path))
/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.py225 self._power_status = power_status.get_status()
230 if self._power_status.on_ac():
234 self._power_status.assert_battery_state(BATTERY_INITIAL_CHARGED_MIN)
237 self._power_status.battery_path)]
/external/autotest/client/site_tests/graphics_WebGLAquarium/
Dgraphics_WebGLAquarium.py50 _power_status = None variable in graphics_WebGLAquarium
220 self._power_status = power_status.get_status()
223 self._power_status.assert_battery_state(BATTERY_INITIAL_CHARGED_MIN)
226 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():