Home
last modified time | relevance | path

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

/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/power_monitor/
Dcros_power_monitor.py13 class CrosPowerMonitor(sysfs_power_monitor.SysfsPowerMonitor): class
27 super(CrosPowerMonitor, self).__init__(platform_backend)
33 return super(CrosPowerMonitor, self).CanMonitorPower()
36 super(CrosPowerMonitor, self).StartMonitoringPower(browser)
39 self._initial_power, self._start_time = CrosPowerMonitor.SplitSample(
47 cpu_stats = super(CrosPowerMonitor, self).StopMonitoringPower()
51 final_power, end_time = CrosPowerMonitor.SplitSample(sample)
54 power_stats = CrosPowerMonitor.ParsePower(self._initial_power,
59 return CrosPowerMonitor.CombineResults(cpu_stats, power_stats)
102 status = CrosPowerMonitor.ParsePowerStatus(
[all …]
Dcros_power_monitor_unittest.py164 results = cros_power_monitor.CrosPowerMonitor.ParsePower(
175 results = cros_power_monitor.CrosPowerMonitor.ParsePower(
182 power, time = cros_power_monitor.CrosPowerMonitor.SplitSample(sample)
187 result = cros_power_monitor.CrosPowerMonitor.CombineResults(
220 initial_status = cros_power_monitor.CrosPowerMonitor.ParsePowerStatus(
222 final_status = cros_power_monitor.CrosPowerMonitor.ParsePowerStatus(
224 self.assertTrue(cros_power_monitor.CrosPowerMonitor.IsOnBatteryPower(
226 self.assertTrue(cros_power_monitor.CrosPowerMonitor.IsOnBatteryPower(
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/
Dcros_platform_backend.py28 self._powermonitor = cros_power_monitor.CrosPowerMonitor(self)