Home
last modified time | relevance | path

Searched refs:on_ac (Results 1 – 17 of 17) sorted by relevance

/external/autotest/client/site_tests/power_Consumption/
Dpower_Consumption.py53 self._tmp_keyvals['b_on_ac'] = self._power_status.on_ac()
469 if not self._power_status.on_ac():
508 on_ac = self._power_status.on_ac()
509 if keyvals['b_on_ac'] != on_ac:
512 if not on_ac:
/external/autotest/client/site_tests/power_ProbeDriver/
Dpower_ProbeDriver.py39 if not status.on_ac():
65 if status.on_ac():
/external/autotest/client/site_tests/policy_ChromeOsLockOnIdleSuspend/
Dpolicy_ChromeOsLockOnIdleSuspend.py71 if not self._power_status.on_ac():
82 return 'AC' if self._power_status.on_ac() else 'Battery'
/external/autotest/client/site_tests/enterprise_PowerManagement/
Denterprise_PowerManagement.py36 if not self._power_status.on_ac():
58 if self._power_status.on_ac():
/external/autotest/client/site_tests/power_BatteryCharge/
Dpower_BatteryCharge.py21 if not self.status.on_ac():
96 if not self.status.on_ac():
/external/autotest/client/site_tests/power_Standby/
Dpower_Standby.py49 if not ac_ok and power_stats.on_ac():
53 if not power_stats.on_ac():
/external/autotest/client/site_tests/power_CheckAC/
Dpower_CheckAC.py20 lambda: power_status.get_status().on_ac() == power_on,
/external/autotest/client/cros/power/
Dpower_test.py50 if not self.status.on_ac():
121 if self.status.on_ac():
Dpower_status.py474 def on_ac(self): member in SysStat
478 on_ac = False
480 on_ac |= linepower.online
485 on_ac &= (not self.battery_discharging())
486 return on_ac
537 if self.on_ac():
/external/autotest/client/site_tests/power_Status/
Dpower_Status.py26 logging.info("linepower_online: %s" % status.on_ac())
/external/autotest/client/site_tests/power_Draw/
Dpower_Draw.py17 if status.on_ac():
/external/autotest/client/site_tests/hardware_MultiReaderPowerConsumption/
Dhardware_MultiReaderPowerConsumption.py21 if self.status.on_ac():
/external/autotest/client/site_tests/power_LoadTest/
Dpower_LoadTest.py126 self._tmp_keyvals['b_on_ac'] = self._power_status.on_ac()
468 if not self._power_status.on_ac() and keyvals['ah_charge_used'] > 0:
576 if not self._ac_ok and self._power_status.on_ac():
/external/autotest/client/site_tests/policy_PowerManagementIdleSettings/
Dpolicy_PowerManagementIdleSettings.py61 if not self._power_status.on_ac():
/external/autotest/client/site_tests/video_WebRtcPerf/
Dvideo_WebRtcPerf.py304 if current_power_status.on_ac():
/external/autotest/client/site_tests/video_HangoutHardwarePerf/
Dvideo_HangoutHardwarePerf.py113 if status.on_ac():
/external/autotest/client/site_tests/video_PlaybackPerf/
Dvideo_PlaybackPerf.py230 if self._power_status.on_ac():