OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """Provides an interface to communicate with the device via the adb command. | 5 """Provides an interface to communicate with the device via the adb command. |
6 | 6 |
7 Assumes adb binary is currently on system path. | 7 Assumes adb binary is currently on system path. |
8 """ | 8 """ |
9 # pylint: disable-all | 9 # pylint: skip-file |
10 | 10 |
11 import collections | 11 import collections |
12 import datetime | 12 import datetime |
13 import inspect | 13 import inspect |
14 import logging | 14 import logging |
15 import os | 15 import os |
16 import random | 16 import random |
17 import re | 17 import re |
18 import shlex | 18 import shlex |
19 import signal | 19 import signal |
(...skipping 1946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1966 """ | 1966 """ |
1967 def __init__(self, output): | 1967 def __init__(self, output): |
1968 self._output = output | 1968 self._output = output |
1969 | 1969 |
1970 def write(self, data): | 1970 def write(self, data): |
1971 data = data.replace('\r\r\n', '\n') | 1971 data = data.replace('\r\r\n', '\n') |
1972 self._output.write(data) | 1972 self._output.write(data) |
1973 | 1973 |
1974 def flush(self): | 1974 def flush(self): |
1975 self._output.flush() | 1975 self._output.flush() |
OLD | NEW |