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

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

Issue 1057213004: CL for perf tryjob on android (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 5e7f3079b7263d2ee0e4215cf5216356a969dcc5..4b90768796da68419e218c07a1be59499f5a4ba1 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
@@ -27,7 +27,10 @@ class DumpsysPowerMonitor(sysfs_power_monitor.SysfsPowerMonitor):
self._device = device
def CanMonitorPower(self):
- return self._device.old_interface.CanControlUsbCharging()
+ # With new method of disabling battery updates, device.DisableBatteryUpdate
+ # power collection can be done on all known device types. If that changes
+ # this will have to be updated.
+ return True
def StartMonitoringPower(self, browser):
super(DumpsysPowerMonitor, self).StartMonitoringPower(browser)
« 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