summaryrefslogtreecommitdiffstats
path: root/build/android/host_heartbeat.py
diff options
context:
space:
mode:
authorjbudorick@chromium.org <jbudorick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-10 19:37:30 +0000
committerjbudorick@chromium.org <jbudorick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-10 19:37:30 +0000
commit044d79bb9f3e346e21f037c1335a3f4c5f5e3597 (patch)
tree7c7b8d4fb1da330460f7020234b5ae343ff65897 /build/android/host_heartbeat.py
parent7260ef2c18232b63ea43ac4f902940b3c0f176d4 (diff)
downloadchromium_src-044d79bb9f3e346e21f037c1335a3f4c5f5e3597.zip
chromium_src-044d79bb9f3e346e21f037c1335a3f4c5f5e3597.tar.gz
chromium_src-044d79bb9f3e346e21f037c1335a3f4c5f5e3597.tar.bz2
[Android] Change object types from AndroidCommands to DeviceUtils in build/android/.
BUG=267773 Review URL: https://codereview.chromium.org/221823011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263055 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/android/host_heartbeat.py')
-rwxr-xr-xbuild/android/host_heartbeat.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/build/android/host_heartbeat.py b/build/android/host_heartbeat.py
index 6e011e2..429fca9 100755
--- a/build/android/host_heartbeat.py
+++ b/build/android/host_heartbeat.py
@@ -13,6 +13,7 @@ import sys
import time
from pylib import android_commands
+from pylib.device import device_utils
PULSE_PERIOD = 20
@@ -20,9 +21,9 @@ def main():
while True:
try:
devices = android_commands.GetAttachedDevices()
- for device in devices:
- android_cmd = android_commands.AndroidCommands(device)
- android_cmd.RunShellCommand('touch /sdcard/host_heartbeat')
+ for device_serial in devices:
+ device_utils.DeviceUtils(device_serial).RunShellCommand(
+ 'touch /sdcard/host_heartbeat')
except:
# Keep the heatbeat running bypassing all errors.
pass