Home | History | Annotate | Download | only in hfp

Lines Matching refs:BluetoothHeadset

38 import android.bluetooth.BluetoothHeadset;
180 mAudioState = BluetoothHeadset.STATE_AUDIO_DISCONNECTED;
781 mAudioState = BluetoothHeadset.STATE_AUDIO_CONNECTED;
783 broadcastAudioState(device, BluetoothHeadset.STATE_AUDIO_CONNECTED,
784 BluetoothHeadset.STATE_AUDIO_CONNECTING);
788 mAudioState = BluetoothHeadset.STATE_AUDIO_CONNECTING;
789 broadcastAudioState(device, BluetoothHeadset.STATE_AUDIO_CONNECTING,
790 BluetoothHeadset.STATE_AUDIO_DISCONNECTED);
848 mAudioState = BluetoothHeadset.STATE_AUDIO_DISCONNECTED;
850 broadcastAudioState(mCurrentDevice, BluetoothHeadset.STATE_AUDIO_DISCONNECTED,
851 BluetoothHeadset.STATE_AUDIO_CONNECTED);
995 if (mAudioState != BluetoothHeadset.STATE_AUDIO_DISCONNECTED) {
996 mAudioState = BluetoothHeadset.STATE_AUDIO_DISCONNECTED;
998 broadcastAudioState(device, BluetoothHeadset.STATE_AUDIO_DISCONNECTED,
999 BluetoothHeadset.STATE_AUDIO_CONNECTED);
1004 // TODO(BT) adding STATE_AUDIO_DISCONNECTING in BluetoothHeadset?
1005 //broadcastAudioState(device, BluetoothHeadset.STATE_AUDIO_DISCONNECTING,
1006 // BluetoothHeadset.STATE_AUDIO_CONNECTED);
1092 && mAudioState != BluetoothHeadset.STATE_AUDIO_DISCONNECTED)
1103 return BluetoothHeadset.STATE_AUDIO_DISCONNECTED;
1250 Intent intent = new Intent(BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED);
1258 if(prevState == BluetoothHeadset.STATE_AUDIO_CONNECTED) {
1263 Intent intent = new Intent(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED);
1281 new Intent(BluetoothHeadset.ACTION_VENDOR_SPECIFIC_HEADSET_EVENT);
1282 intent.putExtra(BluetoothHeadset.EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD, command);
1283 intent.putExtra(BluetoothHeadset.EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD_TYPE,
1286 intent.putExtra(BluetoothHeadset.EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_ARGS, arguments);
1289 intent.addCategory(BluetoothHeadset.VENDOR_SPECIFIC_HEADSET_EVENT_COMPANY_ID_CATEGORY
1722 BluetoothHeadset.AT_CMD_TYPE_SET,