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

Unified Diff: build/android/pylib/android_commands.py

Issue 19284009: Add option to output device status data in format for dashboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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: build/android/pylib/android_commands.py
diff --git a/build/android/pylib/android_commands.py b/build/android/pylib/android_commands.py
index 48116b88ffd8e7e7a889ea679ff99e55569e702c..d54743824a26ab31635e0f5f81de19f6ae105fd5 100644
--- a/build/android/pylib/android_commands.py
+++ b/build/android/pylib/android_commands.py
@@ -114,6 +114,17 @@ def GetAttachedDevices():
return devices
+def GetAttachedOfflineDevices():
+ """Returns a list of attached, offline android devices.
+
+ Returns: List of devices with status 'offline'.
+ """
+ re_device = re.compile('^([a-zA-Z0-9_:.-]+)\toffline$', re.MULTILINE)
+ devices = re_device.findall(cmd_helper.GetCmdOutput([constants.ADB_PATH,
frankf 2013/07/16 17:51:19 just return, no intermediate var
navabi 2013/07/16 19:01:16 Done.
+ 'devices']))
+ return devices
+
+
def IsDeviceAttached(device):
frankf 2013/07/16 17:51:19 Add a doc that this only cares about online device
navabi 2013/07/16 19:01:16 Done.
return device in GetAttachedDevices()
« build/android/device_status_check.py ('K') | « build/android/device_status_check.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698