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

Unified Diff: tools/android/appstats.py

Issue 1290773009: [Android] Remove android_commands and android_testrunner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: msg3: sullivan comment Created 5 years, 4 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 | « third_party/android_testrunner/run_command.py ('k') | tools/checkperms/checkperms.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/appstats.py
diff --git a/tools/android/appstats.py b/tools/android/appstats.py
index a785417391cd3a57c9d03443a060459c6bc9a8f4..ba53eacb6c593021b1ff9e0c635207ec11260899 100755
--- a/tools/android/appstats.py
+++ b/tools/android/appstats.py
@@ -19,7 +19,6 @@ sys.path.append(os.path.join(os.path.dirname(__file__),
os.pardir,
'build',
'android'))
-from pylib import android_commands
from pylib.device import device_errors
from pylib.device import device_utils
@@ -106,7 +105,8 @@ class DeviceHelper(object):
"""Returns a device serial to connect to. If |preset| is specified it will
return |preset| if it is connected and |None| otherwise. If |preset| is not
specified it will return the first connected device."""
- devices = android_commands.GetAttachedDevices()
+ devices = [d.adb.GetDeviceSerial()
+ for d in device_utils.DeviceUtils.HealthyDevices()]
if not devices:
return None
« no previous file with comments | « third_party/android_testrunner/run_command.py ('k') | tools/checkperms/checkperms.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698