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

Unified Diff: build/android/pylib/remote/device/remote_device_environment.py

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/remote/device/remote_device_environment.py
diff --git a/build/android/pylib/remote/device/remote_device_environment.py b/build/android/pylib/remote/device/remote_device_environment.py
index 87ff73d5a9519eb09c02c4618d74044405d49b21..0e48ee6a3c35b41c3222b185da7da5c47683fe6f 100644
--- a/build/android/pylib/remote/device/remote_device_environment.py
+++ b/build/android/pylib/remote/device/remote_device_environment.py
@@ -62,6 +62,12 @@ class RemoteDeviceEnvironment(environment.Environment):
self._runner_type = args.runner_type
self._device = ''
self._verbose_count = args.verbose_count
+ self._timeouts = {
+ 'queueing': 60 * 10,
+ 'installing': 60 * 10,
+ 'in-progress': 60 * 30,
+ 'unknown': 60 * 5
+ }
if not args.trigger and not args.collect:
self._trigger = True
@@ -135,7 +141,8 @@ class RemoteDeviceEnvironment(environment.Environment):
if (self._remote_device_os
and device['os_version'] != self._remote_device_os):
continue
- if device['available_devices_count'] > 0:
+ if ((self._remote_device and self._remote_device_os)
+ or device['available_devices_count']):
logging.info('Found device: %s %s',
device['name'], device['os_version'])
return device['device_type_id']
@@ -189,3 +196,7 @@ class RemoteDeviceEnvironment(environment.Environment):
@property
def verbose_count(self):
return self._verbose_count
+
+ @property
+ def timeouts(self):
+ return self._timeouts
« no previous file with comments | « build/android/gyp/java_cpp_enum_tests.py ('k') | build/android/pylib/remote/device/remote_device_gtest_run.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698