Searched refs:on_ac (Results 1 – 11 of 11) sorted by relevance
20 if power_on and not status.on_ac():22 elif not power_on and status.on_ac():
44 if not self.status.on_ac():72 if self.status.on_ac():
20 if not self.status.on_ac():95 if not self.status.on_ac():
439 def on_ac(self): member in SysStat443 on_ac = False445 on_ac |= linepower.online450 on_ac &= (not self.battery_discharging())451 return on_ac475 if self.on_ac():480 while self.on_ac():482 (self.on_ac(), self.percent_current_charge(), tries))
26 logging.info("linepower_online: %s" % status.on_ac())
17 if status.on_ac():
24 if status.on_ac():
21 if self.status.on_ac():
116 if status.on_ac():
55 self._tmp_keyvals['b_on_ac'] = self._power_status.on_ac()
90 self._tmp_keyvals['b_on_ac'] = self._power_status.on_ac()