Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5844bd40 authored by John Spurlock's avatar John Spurlock Committed by Android (Google) Code Review
Browse files

Merge "AudioService: Fix device dump in dumpsys output."

parents 3c36b8e9 1ff1e6ed
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3620,7 +3620,9 @@ public class AudioService extends IAudioService.Stub {
            pw.print("   Devices: ");
            final int devices = AudioSystem.getDevicesForStream(mStreamType);
            int device, i = 0, n = 0;
            while ((device = 1 << i) <= AudioSystem.DEVICE_OUT_DEFAULT) {
            // iterate all devices from 1 to DEVICE_OUT_DEFAULT exclusive
            // (the default device is not returned by getDevicesForStream)
            while ((device = 1 << i) != AudioSystem.DEVICE_OUT_DEFAULT) {
                if ((devices & device) != 0) {
                    if (n++ > 0) {
                        pw.print(", ");