Chromium Code Reviews| 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 805df6517eb6580ebd43d9d2091a8401935709fa..a374c87e6d2d45a50be508f75f7f87626429ff49 100644 |
| --- a/build/android/pylib/device/device_utils.py |
| +++ b/build/android/pylib/device/device_utils.py |
| @@ -6,7 +6,7 @@ |
| Eventually, this will be based on adb_wrapper. |
| """ |
| -# pylint: disable=W0613 |
| +# pylint: disable=unused-argument |
| import logging |
| import multiprocessing |
| @@ -24,6 +24,7 @@ from pylib.device import adb_wrapper |
| from pylib.device import decorators |
| from pylib.device import device_errors |
| from pylib.device import intent |
| +from pylib.device import logcat_monitor |
| from pylib.device.commands import install_commands |
| from pylib.utils import apk_helper |
| from pylib.utils import device_temp_file |
| @@ -1288,6 +1289,11 @@ class DeviceUtils(object): |
| """ |
| return self.old_interface.GetMemoryUsageForPid(pid) |
| + @decorators.WithTimeoutAndRetriesFromInstance() |
| + def GetLogcatMonitor(self, timeout=None, retries=None, *args, **kwargs): |
| + """Returns a new LogcatMonitor associated with this device.""" |
|
Sami
2015/02/03 14:24:22
Maybe add a note about the parameters being docume
jbudorick
2015/02/03 15:38:01
Done.
|
| + return logcat_monitor.LogcatMonitor(self.adb, *args, **kwargs) |
| + |
| def __str__(self): |
| """Returns the device serial.""" |
| return self.adb.GetDeviceSerial() |