Searched refs:power_stats (Results 1 – 3 of 3) sorted by relevance
30 power_stats = power_status.get_status()31 power_stats.assert_battery_state(percent_initial_charge_min)32 charge_start = power_stats.battery[0].charge_now33 voltage_start = power_stats.battery[0].voltage_now43 charge_before = power_stats.battery[0].charge_now48 power_stats.refresh()49 if power_stats.percent_current_charge() < self._percent_min_charge:65 charge_used = charge_before - power_stats.battery[0].charge_now71 charge_end = power_stats.battery[0].charge_now72 voltage_end = power_stats.battery[0].voltage_now[all …]
209 def CombineResults(cpu_stats, power_stats): argument220 return power_stats221 if 'component_utilization' not in power_stats:222 power_stats['component_utilization'] = {}224 if 'platform_info' not in power_stats:225 power_stats['platform_info'] = {}226 power_stats['platform_info'].update(cpu_stats['platform_info'])229 power_stats['component_utilization'][cpu] = cpu_stats[cpu]230 return power_stats
48 power_stats = {}54 power_stats = CrosPowerMonitor.ParsePower(self._initial_power,59 return CrosPowerMonitor.CombineResults(cpu_stats, power_stats)