Loading services/core/java/com/android/server/audio/AudioService.java +17 −9 Original line number Diff line number Diff line Loading @@ -10020,8 +10020,10 @@ public class AudioService extends IAudioService.Stub } } } // Mirror changes in SPEAKER ringtone volume on SCO when if (changed && mStreamType == AudioSystem.STREAM_RING if (changed) { // Mirror changes in SPEAKER ringtone volume on SCO if (mStreamType == AudioSystem.STREAM_RING && device == AudioSystem.DEVICE_OUT_SPEAKER) { for (int i = 0; i < mIndexMap.size(); i++) { int otherDevice = mIndexMap.keyAt(i); Loading @@ -10030,7 +10032,13 @@ public class AudioService extends IAudioService.Stub } } } if (changed) { // Mirror BLE unicast headset and broadcast volume changes if (device == AudioSystem.DEVICE_OUT_BLE_HEADSET) { mIndexMap.put(AudioSystem.DEVICE_OUT_BLE_BROADCAST, index); } else if (device == AudioSystem.DEVICE_OUT_BLE_BROADCAST) { mIndexMap.put(AudioSystem.DEVICE_OUT_BLE_HEADSET, index); } // If associated to volume group, update group cache updateVolumeGroupIndex(device, /* forceMuteState= */ false); Loading Loading
services/core/java/com/android/server/audio/AudioService.java +17 −9 Original line number Diff line number Diff line Loading @@ -10020,8 +10020,10 @@ public class AudioService extends IAudioService.Stub } } } // Mirror changes in SPEAKER ringtone volume on SCO when if (changed && mStreamType == AudioSystem.STREAM_RING if (changed) { // Mirror changes in SPEAKER ringtone volume on SCO if (mStreamType == AudioSystem.STREAM_RING && device == AudioSystem.DEVICE_OUT_SPEAKER) { for (int i = 0; i < mIndexMap.size(); i++) { int otherDevice = mIndexMap.keyAt(i); Loading @@ -10030,7 +10032,13 @@ public class AudioService extends IAudioService.Stub } } } if (changed) { // Mirror BLE unicast headset and broadcast volume changes if (device == AudioSystem.DEVICE_OUT_BLE_HEADSET) { mIndexMap.put(AudioSystem.DEVICE_OUT_BLE_BROADCAST, index); } else if (device == AudioSystem.DEVICE_OUT_BLE_BROADCAST) { mIndexMap.put(AudioSystem.DEVICE_OUT_BLE_HEADSET, index); } // If associated to volume group, update group cache updateVolumeGroupIndex(device, /* forceMuteState= */ false); Loading