Home | History | Annotate | Download | only in phone

Lines Matching full:bluetoothheadset

24 import android.bluetooth.BluetoothHeadset;
56 private BluetoothHeadset mBluetoothHeadset;
58 private int mBluetoothHeadsetAudioState = BluetoothHeadset.STATE_AUDIO_DISCONNECTED;
78 return (mBluetoothHeadsetAudioState != BluetoothHeadset.STATE_AUDIO_DISCONNECTED);
89 // - BluetoothHeadset is the API for the control connection to a
113 // ...since we already have a BluetoothHeadset instance. We can just
117 // Check if there's a connected headset, using the BluetoothHeadset API.
161 * <b>or</b> if we issued a BluetoothHeadset.connectAudio()
199 * This depends on the BluetoothHeadset state *and* the current
252 new IntentFilter(BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED);
253 intentFilter.addAction(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED);
270 mBluetoothHeadset = (BluetoothHeadset) proxy;
271 if (VDBG) log("- Got BluetoothHeadset: " + mBluetoothHeadset);
308 return ((bluetoothState == BluetoothHeadset.STATE_CONNECTED)
309 && (bluetoothAudioState == BluetoothHeadset.STATE_AUDIO_CONNECTED));
317 return (bluetoothState == BluetoothHeadset.STATE_CONNECTED);
338 log("= BluetoothHeadset.getCurrentDevice: " + device);
339 log("= BluetoothHeadset.State: "
341 log("= BluetoothHeadset audio connected: " +
384 if (action.equals(BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED)) {
385 mBluetoothHeadsetState = intent.getIntExtra(BluetoothHeadset.EXTRA_STATE,
386 BluetoothHeadset.STATE_DISCONNECTED);
391 BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED)) {
393 intent.getIntExtra(BluetoothHeadset.EXTRA_STATE,
394 BluetoothHeadset.STATE_AUDIO_DISCONNECTED);