Loading services/core/java/com/android/server/audio/AudioService.java +3 −3 Original line number Original line Diff line number Diff line Loading @@ -3931,7 +3931,7 @@ public class AudioService extends IAudioService.Stub public int setBluetoothA2dpDeviceConnectionState(BluetoothDevice device, int state, int profile) public int setBluetoothA2dpDeviceConnectionState(BluetoothDevice device, int state, int profile) { { if (mAudioHandler.hasMessages(MSG_SET_A2DP_SINK_CONNECTION_STATE)) { if (mAudioHandler.hasMessages(MSG_SET_A2DP_SINK_CONNECTION_STATE, device)) { return 0; return 0; } } return setBluetoothA2dpDeviceConnectionStateInt( return setBluetoothA2dpDeviceConnectionStateInt( Loading Loading @@ -5070,7 +5070,7 @@ public class AudioService extends IAudioService.Stub private void onSetA2dpSinkConnectionState(BluetoothDevice btDevice, int state) private void onSetA2dpSinkConnectionState(BluetoothDevice btDevice, int state) { { if (DEBUG_VOL) { if (DEBUG_DEVICES) { Log.d(TAG, "onSetA2dpSinkConnectionState btDevice=" + btDevice+"state=" + state); Log.d(TAG, "onSetA2dpSinkConnectionState btDevice=" + btDevice+"state=" + state); } } if (btDevice == null) { if (btDevice == null) { Loading Loading @@ -5173,7 +5173,7 @@ public class AudioService extends IAudioService.Stub int device = AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP; int device = AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP; synchronized (mConnectedDevices) { synchronized (mConnectedDevices) { if (mAudioHandler.hasMessages(MSG_SET_A2DP_SINK_CONNECTION_STATE)) { if (mAudioHandler.hasMessages(MSG_SET_A2DP_SINK_CONNECTION_STATE, btDevice)) { return; return; } } final String key = makeDeviceListKey(device, address); final String key = makeDeviceListKey(device, address); Loading Loading
services/core/java/com/android/server/audio/AudioService.java +3 −3 Original line number Original line Diff line number Diff line Loading @@ -3931,7 +3931,7 @@ public class AudioService extends IAudioService.Stub public int setBluetoothA2dpDeviceConnectionState(BluetoothDevice device, int state, int profile) public int setBluetoothA2dpDeviceConnectionState(BluetoothDevice device, int state, int profile) { { if (mAudioHandler.hasMessages(MSG_SET_A2DP_SINK_CONNECTION_STATE)) { if (mAudioHandler.hasMessages(MSG_SET_A2DP_SINK_CONNECTION_STATE, device)) { return 0; return 0; } } return setBluetoothA2dpDeviceConnectionStateInt( return setBluetoothA2dpDeviceConnectionStateInt( Loading Loading @@ -5070,7 +5070,7 @@ public class AudioService extends IAudioService.Stub private void onSetA2dpSinkConnectionState(BluetoothDevice btDevice, int state) private void onSetA2dpSinkConnectionState(BluetoothDevice btDevice, int state) { { if (DEBUG_VOL) { if (DEBUG_DEVICES) { Log.d(TAG, "onSetA2dpSinkConnectionState btDevice=" + btDevice+"state=" + state); Log.d(TAG, "onSetA2dpSinkConnectionState btDevice=" + btDevice+"state=" + state); } } if (btDevice == null) { if (btDevice == null) { Loading Loading @@ -5173,7 +5173,7 @@ public class AudioService extends IAudioService.Stub int device = AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP; int device = AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP; synchronized (mConnectedDevices) { synchronized (mConnectedDevices) { if (mAudioHandler.hasMessages(MSG_SET_A2DP_SINK_CONNECTION_STATE)) { if (mAudioHandler.hasMessages(MSG_SET_A2DP_SINK_CONNECTION_STATE, btDevice)) { return; return; } } final String key = makeDeviceListKey(device, address); final String key = makeDeviceListKey(device, address); Loading