xref: /aosp_15_r20/external/autotest/server/cros/multimedia/bluetooth_facade_adapter.py (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Lint as: python2, python3
2# Copyright 2016 The Chromium OS Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5"""An adapter to remotely access the bluetooth facade on DUT."""
6
7from autotest_lib.server.cros.bluetooth.bluetooth_device import BluetoothDevice
8
9
10class BluetoothFacadeRemoteAdapter(BluetoothDevice):
11    """This is an adapter to remotely control DUT bluetooth.
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
18    def __init__(self, host, remote_facade_proxy, floss):
19        """Construct an BluetoothFacadeRemoteAdapter.
20
21        @param host: Host object representing a remote host.
22        @param remote_facade_proxy: RemoteFacadeProxy object.
23        @param floss: Target the Floss daemon?
24
25        """
26        self._client = host
27        super(BluetoothFacadeRemoteAdapter,
28              self).__init__(host, remote_facade_proxy, floss)
29