Home
last modified time | relevance | path

Searched refs:bat_state (Results 1 – 3 of 3) sorted by relevance

/external/autotest/server/site_tests/power_ChargeStatus/
Dpower_ChargeStatus.py40 bat_state = self.get_bat_status(host)
41 self.test_charge_state(ac_state, bat_state)
44 bat_state = self.get_bat_status(host)
45 self.test_discharge_state(ac_state, bat_state)
49 def test_charge_state(self, ac_state, bat_state): argument
57 if not (ac_state == "yes" and (bat_state == "Charging"
58 or bat_state == "Fully charged")):
60 % bat_state)
63 def test_discharge_state(self, ac_state, bat_state): argument
71 if not (ac_state == "no" and bat_state == "Discharging"):
[all …]
/external/autotest/server/site_tests/power_BatteryStateOnResume/
Dpower_BatteryStateOnResume.py97 bat_state = self.get_bat_status(host)
98 if not (bat_state == 'Charging' or bat_state == 'Fully charged'):
99 raise error.TestFail('Not Charging. BAT state is %s.' % bat_state)
104 bat_state = self.get_bat_status(host)
105 if not bat_state == 'Discharging':
107 'Not Discharging. BAT state is %s.' % bat_state)
/external/autotest/server/site_tests/platform_PowerStatusStress/
Dplatform_PowerStatusStress.py93 bat_state = _CHARGING if powered_on else _DISCHARGING,
94 logging.info('Switching status to %s ', bat_state)
115 raise error.TestFail('Bad %s state!' % bat_state)