Loading services/core/java/com/android/server/audio/AudioService.java +6 −3 Original line number Diff line number Diff line Loading @@ -2919,12 +2919,15 @@ public class AudioService extends IAudioService.Stub final boolean currentMute = AudioSystem.isMicrophoneMuted(); final long identity = Binder.clearCallingIdentity(); AudioSystem.muteMicrophone(muted); Binder.restoreCallingIdentity(identity); try { if (muted != currentMute) { mContext.sendBroadcastAsUser( new Intent(AudioManager.ACTION_MICROPHONE_MUTE_CHANGED) .setFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY), UserHandle.ALL); } } finally { Binder.restoreCallingIdentity(identity); } } } Loading Loading
services/core/java/com/android/server/audio/AudioService.java +6 −3 Original line number Diff line number Diff line Loading @@ -2919,12 +2919,15 @@ public class AudioService extends IAudioService.Stub final boolean currentMute = AudioSystem.isMicrophoneMuted(); final long identity = Binder.clearCallingIdentity(); AudioSystem.muteMicrophone(muted); Binder.restoreCallingIdentity(identity); try { if (muted != currentMute) { mContext.sendBroadcastAsUser( new Intent(AudioManager.ACTION_MICROPHONE_MUTE_CHANGED) .setFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY), UserHandle.ALL); } } finally { Binder.restoreCallingIdentity(identity); } } } Loading