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

Unified Diff: build/android/pylib/device/device_utils.py

Issue 1291793007: GN(android): Add scripts & runtime logic for installing _managed apks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-managed-install
Patch Set: javadoc & faster managed_install.py when --device specified 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
Index: build/android/pylib/device/device_utils.py
diff --git a/build/android/pylib/device/device_utils.py b/build/android/pylib/device/device_utils.py
index bc1f2ab27339c25b18d03ccac517649c15017c55..9f4e7ea3fd8e577ccc0fbf80d01f1d8664bb5559 100644
--- a/build/android/pylib/device/device_utils.py
+++ b/build/android/pylib/device/device_utils.py
@@ -216,6 +216,22 @@ class DeviceUtils(object):
"""Returns the device serial."""
return self.adb.GetDeviceSerial()
+ @property
+ def default_timeout(self):
jbudorick 2015/08/23 02:01:28 I don't mind the getter, though I don't really see
agrieve 2015/08/26 00:22:40 Done.
+ return self._default_timeout
+
+ @default_timeout.setter
+ def default_timeout(self, value):
jbudorick 2015/08/23 02:01:28 I don't like the setter. I don't think we should a
agrieve 2015/08/26 00:22:40 Done.
+ self._default_timeout = value
+
+ @property
+ def default_retries(self):
+ return self._default_retries
+
+ @default_retries.setter
+ def default_retries(self, value):
+ self._default_retries = value
+
@decorators.WithTimeoutAndRetriesFromInstance()
def IsOnline(self, timeout=None, retries=None):
"""Checks whether the device is online.

Powered by Google App Engine
This is Rietveld 408576698