Loading services/core/java/com/android/server/audio/AudioService.java +9 −0 Original line number Diff line number Diff line Loading @@ -4954,6 +4954,15 @@ public class AudioService extends IAudioService.Stub } final Set<Integer> deviceTypes = getDeviceSetForStreamDirect(streamType); final Set<Integer> a2dpDevices = AudioSystem.intersectionAudioDeviceTypes( AudioSystem.DEVICE_OUT_ALL_A2DP_SET, deviceTypes); if (!a2dpDevices.isEmpty()) { int index = getStreamVolume(streamType, a2dpDevices.toArray(new Integer[0])[0].intValue()); mDeviceBroker.postSetAvrcpAbsoluteVolumeIndex(index); } final Set<Integer> absVolumeMultiModeCaseDevices = AudioSystem.intersectionAudioDeviceTypes( mAbsVolumeMultiModeCaseDevices, deviceTypes); Loading Loading
services/core/java/com/android/server/audio/AudioService.java +9 −0 Original line number Diff line number Diff line Loading @@ -4954,6 +4954,15 @@ public class AudioService extends IAudioService.Stub } final Set<Integer> deviceTypes = getDeviceSetForStreamDirect(streamType); final Set<Integer> a2dpDevices = AudioSystem.intersectionAudioDeviceTypes( AudioSystem.DEVICE_OUT_ALL_A2DP_SET, deviceTypes); if (!a2dpDevices.isEmpty()) { int index = getStreamVolume(streamType, a2dpDevices.toArray(new Integer[0])[0].intValue()); mDeviceBroker.postSetAvrcpAbsoluteVolumeIndex(index); } final Set<Integer> absVolumeMultiModeCaseDevices = AudioSystem.intersectionAudioDeviceTypes( mAbsVolumeMultiModeCaseDevices, deviceTypes); Loading