| Index: tools/telemetry/telemetry/adb_commands.py
|
| diff --git a/tools/telemetry/telemetry/adb_commands.py b/tools/telemetry/telemetry/adb_commands.py
|
| index d122aa5dc7bfafb0fe096f4415fd849d9f0d06ae..f30bd7e36205f2433641227a0d3bff1114a6b11e 100644
|
| --- a/tools/telemetry/telemetry/adb_commands.py
|
| +++ b/tools/telemetry/telemetry/adb_commands.py
|
| @@ -19,13 +19,16 @@ try:
|
| from pylib import android_commands # pylint: disable=F0401
|
| from pylib import cmd_helper # pylint: disable=F0401
|
| from pylib import forwarder # pylint: disable=F0401
|
| + from pylib import ports # pylint: disable=F0401
|
| from pylib import valgrind_tools # pylint: disable=F0401
|
| except Exception:
|
| android_commands = None
|
|
|
| +
|
| def IsAndroidSupported():
|
| return android_commands != None
|
|
|
| +
|
| def GetAttachedDevices():
|
| """Returns a list of attached, online android devices.
|
|
|
| @@ -33,6 +36,15 @@ def GetAttachedDevices():
|
| the returned list."""
|
| return android_commands.GetAttachedDevices()
|
|
|
| +
|
| +def AllocateTestServerPort():
|
| + return ports.AllocateTestServerPort()
|
| +
|
| +
|
| +def ResetTestServerPortAllocation():
|
| + return ports.ResetTestServerPortAllocation()
|
| +
|
| +
|
| class AdbCommands(object):
|
| """A thin wrapper around ADB"""
|
|
|
|
|