Lines Matching full:bluetooth
6 """This module provides the utilities for bluetooth audio using chameleon."""
34 """Controls Cros device to connect to bluetooth module on audio board.
36 @param bt_adapter: A BluetoothDevice object to control bluetooth adapter
38 @param target_mac_address: The MAC address of bluetooth module to be
40 @param timeout: Timeout in seconds to search for bluetooth module.
43 bluetooth module on audio board.
46 # Resets bluetooth adapter on Cros device.
49 'Failed to reset bluetooth adapter on Cros host.'
53 # Starts discovery mode of bluetooth adapter.
57 'Failed to start discovery on bluetooth adapter on Cros host')
60 """Controls bluetooth adapter to search for bluetooth module.
62 @returns: True if there is a bluetooth device with MAC address
68 # Searches for bluetooth module with given MAC address.
73 'Failed to stop discovery on bluetooth adapter on Cros host')
77 'Can not find bluetooth module with MAC address %s' %
82 # Disconnects from bluetooth module to clean up the state.
85 'Failed to let Cros device disconnect from bluetooth module %s' %
89 # Connects to bluetooth module.
92 logging.info('Bluetooth module at %s is connected', target_mac_address)
97 """Controls Cros device to connect to bluetooth module on audio board.
99 @param bt_adapter: A BluetoothDevice object to control bluetooth adapter
101 @param target_mac_address: The MAC address of bluetooth module to be
103 @param timeout: Timeout in seconds to connect bluetooth module.
106 bluetooth module on audio board.
119 # Connects bluetooth module with given MAC address.
123 'Failed to let Cros device connect to bluetooth module %s' %
129 """Pairs Cros device bluetooth adapter with legacy bluetooth module.
131 @param bt_adapter: A BluetoothDevice object to control bluetooth adapter
133 @param target_mac_address: The MAC address of bluetooth module to be
136 @param timeout: Timeout in seconds to pair bluetooth module in a trial.
140 bluetooth module on audio board after all the retries.
143 # Pairs the bluetooth adapter with bluetooth module.
151 'Failed to pair Cros device and bluetooth module %s' %
159 An abstraction of bluetooth module on Fizz.
174 """Resets the bluetooth Ref."""
176 logging.info('Resets bluetooth Ref.')
180 """Disables the bluetooth Ref."""
182 logging.info('Disables bluetooth Ref.')
185 """Disables the bluetooth Ref."""
187 logging.info('Disables bluetooth Ref.')
191 """Checks if the bluetooth Ref is enabled.
193 @returns: True if bluetooth module is enabled. False otherwise.