Home | History | Annotate | Download | only in multimedia
      1 # Copyright 2016 The Chromium OS 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.
      4 
      5 """An adapter to remotely access the bluetooth hid facade on DUT."""
      6 
      7 from autotest_lib.server.cros.bluetooth.bluetooth_device import BluetoothDevice
      8 
      9 
     10 class BluetoothHIDFacadeRemoteAdapter(BluetoothDevice):
     11     """This is an adapter to remotely control DUT bluetooth hid.
     12 
     13     The Autotest host object representing the remote DUT, passed to this
     14     class on initialization, can be accessed from its _client property.
     15 
     16     """
     17     def __init__(self, host, remote_facade_proxy):
     18         """Construct an BluetoothHIDFacadeRemoteAdapter.
     19 
     20         @param host: Host object representing a remote host.
     21         @param remote_facade_proxy: RemoteFacadeProxy object.
     22 
     23         """
     24         self._client = host
     25         self._proxy = remote_facade_proxy
     26         super(BluetoothHIDFacadeRemoteAdapter, self).__init__(host)
     27