Merge "[AudioServer] Fix CTS for volume groups based on non public streams" am: 99f24661cb
Change-Id: Ic02cb59211ecd78c73ba5d5f6105d697a22af2ec
This commit is contained in:
@@ -2156,6 +2156,13 @@ public class AudioService extends IAudioService.Stub
|
|||||||
|
|
||||||
// For legacy reason, propagate to all streams associated to this volume group
|
// For legacy reason, propagate to all streams associated to this volume group
|
||||||
for (final int groupedStream : vgs.getLegacyStreamTypes()) {
|
for (final int groupedStream : vgs.getLegacyStreamTypes()) {
|
||||||
|
try {
|
||||||
|
ensureValidStreamType(groupedStream);
|
||||||
|
} catch (IllegalArgumentException e) {
|
||||||
|
Log.d(TAG, "volume group " + volumeGroup + " has internal streams (" + groupedStream
|
||||||
|
+ "), do not change associated stream volume");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
setStreamVolume(groupedStream, index, flags, callingPackage, callingPackage,
|
setStreamVolume(groupedStream, index, flags, callingPackage, callingPackage,
|
||||||
Binder.getCallingUid());
|
Binder.getCallingUid());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user