Lines Matching full:bluetoothheadset
21 import android.bluetooth.BluetoothHeadset;
51 * This transitions out on events from TTS and the BluetoothHeadset
157 private BluetoothHeadset mBluetoothHeadset;
206 // Get handle to BluetoothHeadset object
209 audioStateFilter.addAction(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED);
219 mBluetoothAudioState = BluetoothHeadset.STATE_ERROR;
221 if (BluetoothHeadset.isBluetoothVoiceDialingEnabled(this)) {
222 // we can't start recognizing until we get connected to the BluetoothHeadset
226 mBluetoothHeadset = new BluetoothHeadset(this,
364 private BluetoothHeadset.ServiceListener mBluetoothHeadsetServiceListener =
365 new BluetoothHeadset.ServiceListener() {
368 mBluetoothHeadset.getState() == BluetoothHeadset.STATE_CONNECTED) {
381 if (action.equals(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED)) {
383 BluetoothHeadset.EXTRA_AUDIO_STATE,
384 BluetoothHeadset.STATE_ERROR);
388 if (mBluetoothAudioState == BluetoothHeadset.AUDIO_STATE_CONNECTED &&