Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Unified Diff: tools/telemetry/telemetry/core/platform/power_monitor/android_dumpsys_power_monitor.py

Issue 1030683002: CL for perf tryjob (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/run-perf-test.cfg ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/platform/power_monitor/android_dumpsys_power_monitor.py
diff --git a/tools/telemetry/telemetry/core/platform/power_monitor/android_dumpsys_power_monitor.py b/tools/telemetry/telemetry/core/platform/power_monitor/android_dumpsys_power_monitor.py
index 125e4c6081d5ac2e2b00ac6056181dd987163403..6d74b6a1bbc1dae673aba4101fcb222157a3bc5d 100644
--- a/tools/telemetry/telemetry/core/platform/power_monitor/android_dumpsys_power_monitor.py
+++ b/tools/telemetry/telemetry/core/platform/power_monitor/android_dumpsys_power_monitor.py
@@ -35,14 +35,14 @@ class DumpsysPowerMonitor(sysfs_power_monitor.SysfsPowerMonitor):
# Disable the charging of the device over USB. This is necessary because the
# device only collects information about power usage when the device is not
# charging.
- self._device.old_interface.DisableUsbCharging()
+ self._device.DisableBatteryUpdates()
def StopMonitoringPower(self):
if self._browser:
package = self._browser._browser_backend.package
self._browser = None
cpu_stats = super(DumpsysPowerMonitor, self).StopMonitoringPower()
- self._device.old_interface.EnableUsbCharging()
+ self._device.EnableBatteryUpdates()
# By default, 'dumpsys batterystats' measures power consumption during the
# last unplugged period.
result = self._platform.RunCommand('dumpsys batterystats -c %s' % package)
« no previous file with comments | « tools/run-perf-test.cfg ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698