Home
last modified time | relevance | path

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

/external/autotest/client/site_tests/power_LoadTest/
Dpower_LoadTest.py89 self._power_status = None
106 self._power_status = power_status.get_status()
107 self._tmp_keyvals['b_on_ac'] = self._power_status.on_ac()
114 self._power_status.assert_battery_state(percent_initial_charge_min)
195 self._power_status.refresh()
220 self._ah_charge_start = self._power_status.battery[0].charge_now
221 self._wh_energy_start = self._power_status.battery[0].energy
238 [power_status.SystemPower(self._power_status.battery_path)]
373 keyvals['a_current_now'] = self._power_status.battery[0].current_now
374 keyvals['ah_charge_full'] = self._power_status.battery[0].charge_full
[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.py39 self._power_status = power_status.get_status()
40 if not self._power_status.on_ac():
42 self._power_status.assert_battery_state(percent_initial_charge_min)
60 if self._power_status.on_ac():
/external/autotest/client/site_tests/power_Consumption/
Dpower_Consumption.py54 self._power_status = power_status.get_status()
55 self._tmp_keyvals['b_on_ac'] = self._power_status.on_ac()
60 self._power_status.assert_battery_state(30)
473 if not self._power_status.on_ac():
475 [power_status.SystemPower(self._power_status.battery_path)]
509 self._power_status.refresh()
510 on_ac = self._power_status.on_ac()
515 whrs = self._power_status.battery[0].energy_full_design
/external/autotest/client/site_tests/audio_PlaybackPower/
Daudio_PlaybackPower.py52 self._power_status = power_status.get_status()
55 self._power_status.assert_battery_state(BATTERY_INITIAL_CHARGED_MIN)
58 self._power_status.battery_path)]
/external/autotest/client/site_tests/video_PlaybackPerf/
Dvideo_PlaybackPerf.py204 self._power_status = power_status.get_status()
209 if self._power_status.on_ac():
213 self._power_status.assert_battery_state(BATTERY_INITIAL_CHARGED_MIN)
216 self._power_status.battery_path)]
/external/autotest/client/site_tests/graphics_WebGLAquarium/
Dgraphics_WebGLAquarium.py46 _power_status = None variable in graphics_WebGLAquarium
186 self._power_status = power_status.get_status()
189 self._power_status.assert_battery_state(BATTERY_INITIAL_CHARGED_MIN)
192 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():