Loading services/core/java/com/android/server/audio/AudioService.java +19 −16 Original line number Original line Diff line number Diff line Loading @@ -4526,6 +4526,7 @@ public class AudioService extends IAudioService.Stub if (mStreamType == srcStream.mStreamType) { if (mStreamType == srcStream.mStreamType) { return; return; } } synchronized (mSettingsLock) { synchronized (VolumeStreamState.class) { synchronized (VolumeStreamState.class) { int srcStreamType = srcStream.getStreamType(); int srcStreamType = srcStream.getStreamType(); // apply default device volume from source stream to all devices first in case // apply default device volume from source stream to all devices first in case Loading @@ -4546,7 +4547,9 @@ public class AudioService extends IAudioService.Stub } } } } } } } @GuardedBy("mSettingsLock") public void setAllIndexesToMax() { public void setAllIndexesToMax() { synchronized (VolumeStreamState.class) { synchronized (VolumeStreamState.class) { for (int i = 0; i < mIndexMap.size(); i++) { for (int i = 0; i < mIndexMap.size(); i++) { Loading Loading
services/core/java/com/android/server/audio/AudioService.java +19 −16 Original line number Original line Diff line number Diff line Loading @@ -4526,6 +4526,7 @@ public class AudioService extends IAudioService.Stub if (mStreamType == srcStream.mStreamType) { if (mStreamType == srcStream.mStreamType) { return; return; } } synchronized (mSettingsLock) { synchronized (VolumeStreamState.class) { synchronized (VolumeStreamState.class) { int srcStreamType = srcStream.getStreamType(); int srcStreamType = srcStream.getStreamType(); // apply default device volume from source stream to all devices first in case // apply default device volume from source stream to all devices first in case Loading @@ -4546,7 +4547,9 @@ public class AudioService extends IAudioService.Stub } } } } } } } @GuardedBy("mSettingsLock") public void setAllIndexesToMax() { public void setAllIndexesToMax() { synchronized (VolumeStreamState.class) { synchronized (VolumeStreamState.class) { for (int i = 0; i < mIndexMap.size(); i++) { for (int i = 0; i < mIndexMap.size(); i++) { Loading