Update sdk/platform-tools to version 26.0.0.
[android_tools.git] / sdk / platform-tools / systrace / catapult / telemetry / telemetry / internal / platform / desktop_device.py
blob0a9f0fa84e025d47be3aba936563a24d2234bcfc
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 from telemetry.core import platform
6 from telemetry.internal.platform import device
9 class DesktopDevice(device.Device):
10 def __init__(self):
11 super(DesktopDevice, self).__init__(name='desktop', guid='desktop')
13 @classmethod
14 def GetAllConnectedDevices(cls, blacklist):
15 return []
18 def FindAllAvailableDevices(_):
19 """Returns a list of available devices.
20 """
21 # If the host platform is Chrome OS, the device is also considered as cros.
22 if platform.GetHostPlatform().GetOSName() == 'chromeos':
23 return []
24 return [DesktopDevice()]