Home
last modified time | relevance | path

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

/external/chromium_org/tools/telemetry/telemetry/core/platform/power_monitor/
Dcros_power_monitor.py12 class CrosPowerMonitor(sysfs_power_monitor.SysfsPowerMonitor): class
26 super(CrosPowerMonitor, self).__init__(platform_backend)
32 return super(CrosPowerMonitor, self).CanMonitorPower()
35 super(CrosPowerMonitor, self).StartMonitoringPower(browser)
38 self._initial_power, self._start_time = CrosPowerMonitor.SplitSample(
42 cpu_stats = super(CrosPowerMonitor, self).StopMonitoringPower()
46 final_power, end_time = CrosPowerMonitor.SplitSample(sample)
49 power_stats = CrosPowerMonitor.ParsePower(self._initial_power,
51 return CrosPowerMonitor.CombineResults(cpu_stats, power_stats)
94 status = CrosPowerMonitor.ParsePowerSupplyInfo(
[all …]
Dcros_power_monitor_unittest.py182 result = cros_power_monitor.CrosPowerMonitor.ParsePowerSupplyInfo(
187 results = cros_power_monitor.CrosPowerMonitor.ParsePower(
202 power, time = cros_power_monitor.CrosPowerMonitor.SplitSample(sample)
207 result = cros_power_monitor.CrosPowerMonitor.CombineResults(
240 initial_status = cros_power_monitor.CrosPowerMonitor.ParsePowerSupplyInfo(
242 final_status = cros_power_monitor.CrosPowerMonitor.ParsePowerSupplyInfo(
244 self.assertTrue(cros_power_monitor.CrosPowerMonitor.IsOnBatteryPower(
246 self.assertTrue(cros_power_monitor.CrosPowerMonitor.IsOnBatteryPower(
/external/chromium_org/tools/telemetry/telemetry/core/platform/
Dcros_platform_backend.py23 self._powermonitor = cros_power_monitor.CrosPowerMonitor(self)