Loading media/java/android/media/AudioService.java +3 −3 Original line number Diff line number Diff line Loading @@ -382,7 +382,7 @@ public class AudioService extends IAudioService.Stub implements OnFinished { // message looper for SoundPool listener private Looper mSoundPoolLooper = null; // volume applied to sound played with playSoundEffect() private static int SOUND_EFFECT_VOLUME_DB; private static int sSoundEffectVolumeDb; // getActiveStreamType() will return STREAM_NOTIFICATION during this period after a notification // stopped private static final int NOTIFICATION_VOLUME_DELAY_MS = 5000; Loading Loading @@ -439,7 +439,7 @@ public class AudioService extends IAudioService.Stub implements OnFinished { "ro.config.vc_call_vol_steps", MAX_STREAM_VOLUME[AudioSystem.STREAM_VOICE_CALL]); SOUND_EFFECT_VOLUME_DB = context.getResources().getInteger( sSoundEffectVolumeDb = context.getResources().getInteger( com.android.internal.R.integer.config_soundEffectVolumeDb); mVolumePanel = new VolumePanel(context, this); Loading Loading @@ -2882,7 +2882,7 @@ public class AudioService extends IAudioService.Stub implements OnFinished { float volFloat; // use default if volume is not specified by caller if (volume < 0) { volFloat = (float)Math.pow(10, SOUND_EFFECT_VOLUME_DB/20); volFloat = (float)Math.pow(10, (float)sSoundEffectVolumeDb/20); } else { volFloat = (float) volume / 1000.0f; } Loading policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java +1 −1 Original line number Diff line number Diff line Loading @@ -335,7 +335,7 @@ public class KeyguardViewMediator implements KeyguardViewCallback, } int lockSoundDefaultAttenuation = context.getResources().getInteger( com.android.internal.R.integer.config_lockSoundVolumeDb); mLockSoundVolume = (float)Math.pow(10, lockSoundDefaultAttenuation/20); mLockSoundVolume = (float)Math.pow(10, (float)lockSoundDefaultAttenuation/20); IntentFilter userFilter = new IntentFilter(); userFilter.addAction(Intent.ACTION_USER_SWITCHED); userFilter.addAction(Intent.ACTION_USER_REMOVED); Loading Loading
media/java/android/media/AudioService.java +3 −3 Original line number Diff line number Diff line Loading @@ -382,7 +382,7 @@ public class AudioService extends IAudioService.Stub implements OnFinished { // message looper for SoundPool listener private Looper mSoundPoolLooper = null; // volume applied to sound played with playSoundEffect() private static int SOUND_EFFECT_VOLUME_DB; private static int sSoundEffectVolumeDb; // getActiveStreamType() will return STREAM_NOTIFICATION during this period after a notification // stopped private static final int NOTIFICATION_VOLUME_DELAY_MS = 5000; Loading Loading @@ -439,7 +439,7 @@ public class AudioService extends IAudioService.Stub implements OnFinished { "ro.config.vc_call_vol_steps", MAX_STREAM_VOLUME[AudioSystem.STREAM_VOICE_CALL]); SOUND_EFFECT_VOLUME_DB = context.getResources().getInteger( sSoundEffectVolumeDb = context.getResources().getInteger( com.android.internal.R.integer.config_soundEffectVolumeDb); mVolumePanel = new VolumePanel(context, this); Loading Loading @@ -2882,7 +2882,7 @@ public class AudioService extends IAudioService.Stub implements OnFinished { float volFloat; // use default if volume is not specified by caller if (volume < 0) { volFloat = (float)Math.pow(10, SOUND_EFFECT_VOLUME_DB/20); volFloat = (float)Math.pow(10, (float)sSoundEffectVolumeDb/20); } else { volFloat = (float) volume / 1000.0f; } Loading
policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java +1 −1 Original line number Diff line number Diff line Loading @@ -335,7 +335,7 @@ public class KeyguardViewMediator implements KeyguardViewCallback, } int lockSoundDefaultAttenuation = context.getResources().getInteger( com.android.internal.R.integer.config_lockSoundVolumeDb); mLockSoundVolume = (float)Math.pow(10, lockSoundDefaultAttenuation/20); mLockSoundVolume = (float)Math.pow(10, (float)lockSoundDefaultAttenuation/20); IntentFilter userFilter = new IntentFilter(); userFilter.addAction(Intent.ACTION_USER_SWITCHED); userFilter.addAction(Intent.ACTION_USER_REMOVED); Loading