Home
last modified time | relevance | path

Searched refs:previousActiveDevice (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java451 BluetoothDevice previousActiveDevice = null; in removeActiveDevice() local
454 previousActiveDevice = mActiveDevice; in removeActiveDevice()
466 && (getConnectionState(previousActiveDevice) in removeActiveDevice()
470 previousActiveDevice, BluetoothProfile.STATE_DISCONNECTED, in removeActiveDevice()
524 BluetoothDevice previousActiveDevice = null; in setActiveDevice() local
546 previousActiveDevice = mActiveDevice; in setActiveDevice()
551 Log.d(TAG, "Switch A2DP devices to " + device + " from " + previousActiveDevice); in setActiveDevice()
560 if (previousActiveDevice != null) { in setActiveDevice()
567 previousActiveDevice, BluetoothProfile.STATE_DISCONNECTED, in setActiveDevice()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java1157 BluetoothDevice previousActiveDevice = mActiveDevice; in setActiveDevice() local
1159 if (getAudioState(previousActiveDevice) != BluetoothHeadset.STATE_AUDIO_DISCONNECTED) { in setActiveDevice()
1160 if (!disconnectAudio(previousActiveDevice)) { in setActiveDevice()
1162 + previousActiveDevice); in setActiveDevice()
1163 mActiveDevice = previousActiveDevice; in setActiveDevice()
1164 mNativeInterface.setActiveDevice(previousActiveDevice); in setActiveDevice()
1172 mActiveDevice = previousActiveDevice; in setActiveDevice()
1173 mNativeInterface.setActiveDevice(previousActiveDevice); in setActiveDevice()