Lines Matching refs:mDevice
77 final BluetoothDevice mDevice;
102 mDevice = device;
169 if (mA2dp.getConnectedDevices().contains(mDevice) ||
170 mHeadset.getConnectedDevices().contains(mDevice)) {
171 Log.i(TAG, "ACTION_DISCONNECT addr=" + mDevice + " name=" + mName);
174 Log.i(TAG, "ACTION_CONNECT addr=" + mDevice + " name=" + mName);
188 if (mHeadset.getConnectionState(mDevice) != BluetoothProfile.STATE_DISCONNECTED) {
190 mHeadset.disconnect(mDevice);
194 if (mA2dp.getConnectionState(mDevice) != BluetoothProfile.STATE_DISCONNECTED) {
196 mA2dp.disconnect(mDevice);
234 if (mDevice.getBondState() != BluetoothDevice.BOND_BONDED) {
242 if (mDevice.getBondState() != BluetoothDevice.BOND_BONDED) {
252 if (mHeadset.getConnectionState(mDevice) != BluetoothProfile.STATE_CONNECTED) {
254 mHeadset.connect(mDevice);
258 if (mA2dp.getConnectionState(mDevice) != BluetoothProfile.STATE_CONNECTED) {
260 mA2dp.connect(mDevice);
291 if (!mDevice.createBond()) {
301 if (!mDevice.equals(device)) return;
374 dialogIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice);