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

Unified Diff: tools/telemetry/telemetry/core/platform/platform_backend.py

Issue 222413002: Adding dumpsys based power monitor for android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: W0212 warnings Created 6 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
Index: tools/telemetry/telemetry/core/platform/platform_backend.py
diff --git a/tools/telemetry/telemetry/core/platform/platform_backend.py b/tools/telemetry/telemetry/core/platform/platform_backend.py
index 27746b361a7997c80b61ac2d13f5323c8173d2c7..695539d3087817de2ca93811e1e114b33210f2f0 100644
--- a/tools/telemetry/telemetry/core/platform/platform_backend.py
+++ b/tools/telemetry/telemetry/core/platform/platform_backend.py
@@ -2,8 +2,6 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import time
-
# pylint: disable=W0613
@@ -123,19 +121,11 @@ class PlatformBackend(object):
def StopVideoCapture(self):
raise NotImplementedError()
- def CanMonitorPowerSync(self):
- return self.CanMonitorPowerAsync()
-
- def MonitorPowerSync(self, duration_ms):
- self.StartMonitoringPowerAsync()
- time.sleep(duration_ms / 1000.)
- return self.StopMonitoringPowerAsync()
-
- def CanMonitorPowerAsync(self):
+ def CanMonitorPower(self):
return False
- def StartMonitoringPowerAsync(self):
+ def StartMonitoringPower(self, browser):
raise NotImplementedError()
- def StopMonitoringPowerAsync(self):
+ def StopMonitoringPower(self):
raise NotImplementedError()

Powered by Google App Engine
This is Rietveld 408576698