Loading media/java/android/media/AudioService.java +4 −0 Original line number Diff line number Diff line Loading @@ -550,6 +550,7 @@ public class AudioService extends IAudioService.Stub { intentFilter.addAction(Intent.ACTION_USER_SWITCHED); intentFilter.addAction(Intent.ACTION_CONFIGURATION_CHANGED); intentFilter.addAction(Intent.ACTION_SHUTDOWN); // TODO merge orientation and rotation mMonitorOrientation = SystemProperties.getBoolean("ro.audio.monitorOrientation", false); if (mMonitorOrientation) { Loading Loading @@ -4231,7 +4232,10 @@ public class AudioService extends IAudioService.Stub { 0, 0, mStreamStates[AudioSystem.STREAM_MUSIC], 0); } else if (action.equals(Intent.ACTION_SHUTDOWN)) { AudioSystem.setParameters("dev_shutdown=true"); } } } Loading Loading
media/java/android/media/AudioService.java +4 −0 Original line number Diff line number Diff line Loading @@ -550,6 +550,7 @@ public class AudioService extends IAudioService.Stub { intentFilter.addAction(Intent.ACTION_USER_SWITCHED); intentFilter.addAction(Intent.ACTION_CONFIGURATION_CHANGED); intentFilter.addAction(Intent.ACTION_SHUTDOWN); // TODO merge orientation and rotation mMonitorOrientation = SystemProperties.getBoolean("ro.audio.monitorOrientation", false); if (mMonitorOrientation) { Loading Loading @@ -4231,7 +4232,10 @@ public class AudioService extends IAudioService.Stub { 0, 0, mStreamStates[AudioSystem.STREAM_MUSIC], 0); } else if (action.equals(Intent.ACTION_SHUTDOWN)) { AudioSystem.setParameters("dev_shutdown=true"); } } } Loading