Searched refs:on_ac (Results 1 – 17 of 17) sorted by relevance
53 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:
39 if not status.on_ac():65 if status.on_ac():
71 if not self._power_status.on_ac():82 return 'AC' if self._power_status.on_ac() else 'Battery'
36 if not self._power_status.on_ac():58 if self._power_status.on_ac():
21 if not self.status.on_ac():96 if not self.status.on_ac():
49 if not ac_ok and power_stats.on_ac():53 if not power_stats.on_ac():
20 lambda: power_status.get_status().on_ac() == power_on,
50 if not self.status.on_ac():121 if self.status.on_ac():
474 def on_ac(self): member in SysStat478 on_ac = False480 on_ac |= linepower.online485 on_ac &= (not self.battery_discharging())486 return on_ac537 if self.on_ac():
26 logging.info("linepower_online: %s" % status.on_ac())
17 if status.on_ac():
21 if self.status.on_ac():
126 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():
61 if not self._power_status.on_ac():
304 if current_power_status.on_ac():
113 if status.on_ac():
230 if self._power_status.on_ac():