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

Unified Diff: telemetry/telemetry/core/android_action_runner.py

Issue 2453073002: [Telemetry] Move from telemetry WaitFor to py_utils WaitFor (Closed)
Patch Set: [Telemetry] Move from telemetry WaitFor to py_utils WaitFor Created 4 years, 2 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 | « common/py_utils/py_utils/__init__.py ('k') | telemetry/telemetry/core/util.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/core/android_action_runner.py
diff --git a/telemetry/telemetry/core/android_action_runner.py b/telemetry/telemetry/core/android_action_runner.py
index 6bd28550c4f868da61e332251935ee00133a1b88..38f3cf201fdd1aff6e8fd59699cf4070793e073f 100644
--- a/telemetry/telemetry/core/android_action_runner.py
+++ b/telemetry/telemetry/core/android_action_runner.py
@@ -5,7 +5,7 @@
import logging
import time
-from telemetry.core import util
+import py_utils
class ActionNotSupported(Exception):
@@ -125,7 +125,7 @@ class AndroidActionRunner(object):
Timeout: If the screen is off and device fails to turn screen on.
"""
self._platform_backend.device.SetScreen(True)
- util.WaitFor(self._platform_backend.device.IsScreenOn, 5)
+ py_utils.WaitFor(self._platform_backend.device.IsScreenOn, 5)
def TurnScreenOff(self):
"""If device screen is on, turn screen off.
@@ -139,7 +139,7 @@ class AndroidActionRunner(object):
return not self._platform_backend.device.IsScreenOn()
self._platform_backend.device.SetScreen(False)
- util.WaitFor(is_screen_off, 5)
+ py_utils.WaitFor(is_screen_off, 5)
def UnlockScreen(self):
"""If device screen is locked, unlocks it.
@@ -158,4 +158,4 @@ class AndroidActionRunner(object):
logging.warning('Screen not locked when expected.')
return
- util.WaitFor(is_screen_unlocked, 5)
+ py_utils.WaitFor(is_screen_unlocked, 5)
« no previous file with comments | « common/py_utils/py_utils/__init__.py ('k') | telemetry/telemetry/core/util.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698