Home | History | Annotate | Download | only in chameleon

Lines Matching full:bluetooth

5 """This module provides the utilities for bluetooth audio using chameleon."""
26 """Controls Cros device to connect to bluetooth module on audio board.
28 @param bt_adapter: A BluetoothDevice object to control bluetooth adapter
30 @param target_mac_address: The MAC address of bluetooth module to be
32 @param timeout: Timeout in seconds to search for bluetooth module.
35 bluetooth module on audio board.
38 # Resets bluetooth adapter on Cros device.
41 'Failed to reset bluetooth adapter on Cros host.'
45 # Starts discovery mode of bluetooth adapter.
48 'Failed to start discovery on bluetooth adapter on Cros host')
51 """Controls bluetooth adapter to search for bluetooth module.
53 @returns: True if there is a bluetooth device with MAC address
59 # Searches for bluetooth module with given MAC address.
64 'Can not find bluetooth module with MAC address %s' %
69 # Disconnects from bluetooth module to clean up the state.
72 'Failed to let Cros device disconnect from bluetooth module %s' %
75 # Connects to bluetooth module.
78 logging.info('Bluetooth module at %s is connected', target_mac_address)
83 """Controls Cros device to connect to bluetooth module on audio board.
85 @param bt_adapter: A BluetoothDevice object to control bluetooth adapter
87 @param target_mac_address: The MAC address of bluetooth module to be
89 @param timeout: Timeout in seconds to connect bluetooth module.
92 bluetooth module on audio board.
104 # Connects bluetooth module with given MAC address.
108 'Failed to let Cros device connect to bluetooth module %s' %
114 """Pairs Cros device bluetooth adapter with legacy bluetooth module.
116 @param bt_adapter: A BluetoothDevice object to control bluetooth adapter
118 @param target_mac_address: The MAC address of bluetooth module to be
121 @param timeout: Timeout in seconds to pair bluetooth module in a trial.
125 bluetooth module on audio board after all the retries.
128 # Pairs the bluetooth adapter with bluetooth module.
136 'Failed to pair Cros device and bluetooth module %s' %