Home | History | Annotate | Download | only in phone

Lines Matching refs:headset

51  * Provides Bluetooth Headset and Handsfree profile, as a service in
169 HeadsetBase headset;
174 headset = new HeadsetBase(mPowerManager, mAdapter, info.mRemoteDevice,
176 headset.disconnect();
190 // headset connecting us, lets join
203 // different headset, ignoring
207 headset = new HeadsetBase(mPowerManager, mAdapter, info.mRemoteDevice,
209 headset.disconnect();
213 // Incoming and Outgoing connections to the same headset.
230 headset = new HeadsetBase(mPowerManager, mAdapter, info.mRemoteDevice,
232 headset.disconnect();
326 // Bluetooth Headset Connect
353 private int waitForConnect(HeadsetBase headset) {
358 result = headset.waitForAsyncConnect(500, mConnectedStatusHandler);
360 headset.disconnect();
372 HeadsetBase headset = new HeadsetBase(mPowerManager, mAdapter, device, channel);
374 int result = waitForConnect(headset);
390 result = waitForConnect(headset);
398 headset.disconnect();
402 Log.w(TAG, "headset.waitForAsyncConnect() error: " + result);
410 mConnectingStatusHandler.obtainMessage(RFCOMM_CONNECTED, headset).sendToTarget();
438 HeadsetBase headset = (HeadsetBase)msg.obj;
442 mRemoteHeadsets.get(device).mHeadset = headset;
443 mBtHandsfree.connectHeadset(headset, mRemoteHeadsets.get(device).mHeadsetType);
482 " Headset state" + prevState + " -> " + state + ", result = " + result);
493 log("Headset Disconnected Intent without Disconnect Initiator extra");
606 BluetoothRemoteHeadset headset = mRemoteHeadsets.get(device);
607 if (headset == null) {
610 return headset.mState;
642 BluetoothRemoteHeadset headset = mRemoteHeadsets.get(device);
643 return headset != null && headset.mState == BluetoothHeadset.STATE_CONNECTED;
705 HeadsetBase headset;
709 headset = new HeadsetBase(mPowerManager, mAdapter, device,
713 mRemoteHeadsets.get(device).mHeadset = headset;
715 mConnectingStatusHandler.obtainMessage(RFCOMM_CONNECTED, headset).sendToTarget();
721 HeadsetBase headset;
724 Log.e(TAG, "Cached Headset is Null in acceptIncomingConnect");
728 headset = new HeadsetBase(mPowerManager, mAdapter, device,
733 cachedHeadset.mHeadset = headset;
734 mBtHandsfree.connectHeadset(headset, cachedHeadset.mHeadsetType);
761 BluetoothRemoteHeadset headset = new BluetoothRemoteHeadset();
762 mRemoteHeadsets.put(device, headset);
779 " with headset " + currDevice);
791 // Send a dummy battery level message to force headset
798 HeadsetBase headset = remoteHeadset.mHeadset;
800 headset.sendURC("+CIEV: 7,3");
803 if (headset != null) {
804 headset.disconnect();
805 headset = null;