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

Unified Diff: tools/telemetry/telemetry/internal/backends/mandoline/android_mandoline_backend.py

Issue 1526743004: [Android] Remove all references to pylib from telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@devil-video-recorder
Patch Set: remove SetupPrebuiltTools patchers Created 5 years 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/internal/backends/mandoline/android_mandoline_backend.py
diff --git a/tools/telemetry/telemetry/internal/backends/mandoline/android_mandoline_backend.py b/tools/telemetry/telemetry/internal/backends/mandoline/android_mandoline_backend.py
index 7425e76478ec7fc950709c71e254c30122f8f93c..4065546a62437faa195f82bdbe1bfe39f7f35b66 100644
--- a/tools/telemetry/telemetry/internal/backends/mandoline/android_mandoline_backend.py
+++ b/tools/telemetry/telemetry/internal/backends/mandoline/android_mandoline_backend.py
@@ -17,7 +17,7 @@ from telemetry.internal.platform import android_platform_backend as \
android_platform_backend_module
try:
- from pylib import constants
+ from devil.android.sdk import keyevent
except ImportError:
pass
@@ -91,7 +91,7 @@ class AndroidMandolineBackend(
logging_process = shell.ShowLogs(output)
# Unlock device screen.
- self.device.SendKeyEvent(constants.keyevent.KEYCODE_MENU)
+ self.device.SendKeyEvent(keyevent.KEYCODE_MENU)
shell.StartActivity(self.activity, args, output, logging_process.terminate)
try:

Powered by Google App Engine
This is Rietveld 408576698