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

Unified Diff: build/android/host_heartbeat.py

Issue 1088793002: [Android] Remove android_commands uses from build/android/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/host_heartbeat.py
diff --git a/build/android/host_heartbeat.py b/build/android/host_heartbeat.py
index 429fca9ac1c96309e09e7dd04bbcc2401c4f74d0..796767c2ae704b7e0abd024bb10161316746b63f 100755
--- a/build/android/host_heartbeat.py
+++ b/build/android/host_heartbeat.py
@@ -12,7 +12,7 @@ This heart beat lets the devices know that they are connected to a host.
import sys
import time
-from pylib import android_commands
+from pylib.device import adb_wrapper
from pylib.device import device_utils
PULSE_PERIOD = 20
@@ -20,9 +20,9 @@ PULSE_PERIOD = 20
def main():
while True:
try:
- devices = android_commands.GetAttachedDevices()
- for device_serial in devices:
- device_utils.DeviceUtils(device_serial).RunShellCommand(
+ devices = adb_wrapper.AdbWrapper.GetDevices()
+ for d in devices:
+ device_utils.DeviceUtils(d).RunShellCommand(
'touch /sdcard/host_heartbeat')
perezju 2015/04/14 12:39:10 pass command as list, and check_return=True?
jbudorick 2015/04/14 15:29:58 same, done.
except:
# Keep the heatbeat running bypassing all errors.

Powered by Google App Engine
This is Rietveld 408576698