Loading src/com/android/server/telecom/bluetooth/BluetoothDeviceManager.java +2 −10 Original line number Diff line number Diff line Loading @@ -382,17 +382,9 @@ public class BluetoothDeviceManager { } public void disconnectAudio() { if (mBluetoothAdapter != null) { for (BluetoothDevice device: mBluetoothAdapter.getActiveDevices( BluetoothProfile.HEARING_AID)) { if (device != null) { mBluetoothAdapter.removeActiveDevice(BluetoothAdapter.ACTIVE_DEVICE_ALL); } } disconnectSco(); clearLeAudioCommunicationDevice(); } } public void disconnectSco() { if (mBluetoothHeadset == null) { Loading tests/src/com/android/server/telecom/tests/BluetoothDeviceManagerTest.java +0 −1 Original line number Diff line number Diff line Loading @@ -367,7 +367,6 @@ public class BluetoothDeviceManagerTest extends TelecomTestCase { .thenReturn(Arrays.asList(device2, null)); mBluetoothDeviceManager.disconnectAudio(); verify(mAdapter).removeActiveDevice(BluetoothAdapter.ACTIVE_DEVICE_ALL); verify(mBluetoothHeadset).disconnectAudio(); } Loading Loading
src/com/android/server/telecom/bluetooth/BluetoothDeviceManager.java +2 −10 Original line number Diff line number Diff line Loading @@ -382,17 +382,9 @@ public class BluetoothDeviceManager { } public void disconnectAudio() { if (mBluetoothAdapter != null) { for (BluetoothDevice device: mBluetoothAdapter.getActiveDevices( BluetoothProfile.HEARING_AID)) { if (device != null) { mBluetoothAdapter.removeActiveDevice(BluetoothAdapter.ACTIVE_DEVICE_ALL); } } disconnectSco(); clearLeAudioCommunicationDevice(); } } public void disconnectSco() { if (mBluetoothHeadset == null) { Loading
tests/src/com/android/server/telecom/tests/BluetoothDeviceManagerTest.java +0 −1 Original line number Diff line number Diff line Loading @@ -367,7 +367,6 @@ public class BluetoothDeviceManagerTest extends TelecomTestCase { .thenReturn(Arrays.asList(device2, null)); mBluetoothDeviceManager.disconnectAudio(); verify(mAdapter).removeActiveDevice(BluetoothAdapter.ACTIVE_DEVICE_ALL); verify(mBluetoothHeadset).disconnectAudio(); } Loading