Lines Matching full:bluetoothheadset
25 import android.bluetooth.BluetoothHeadset;
145 int mBluetoothHeadsetState = BluetoothHeadset.STATE_ERROR;
146 int mBluetoothHeadsetAudioState = BluetoothHeadset.STATE_ERROR;
474 intentFilter.addAction(BluetoothHeadset.ACTION_STATE_CHANGED);
475 intentFilter.addAction(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED);
1312 * This depends on the BluetoothHeadset state *and* the current
1375 return ((bluetoothState == BluetoothHeadset.STATE_CONNECTED)
1376 && (bluetoothAudioState == BluetoothHeadset.AUDIO_STATE_CONNECTED));
1384 return (bluetoothState == BluetoothHeadset.STATE_CONNECTED);
1403 } else if (action.equals(BluetoothHeadset.ACTION_STATE_CHANGED)) {
1404 mBluetoothHeadsetState = intent.getIntExtra(BluetoothHeadset.EXTRA_STATE,
1405 BluetoothHeadset.STATE_ERROR);
1409 } else if (action.equals(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED)) {
1411 intent.getIntExtra(BluetoothHeadset.EXTRA_AUDIO_STATE,
1412 BluetoothHeadset.STATE_ERROR);