Loading media/java/android/media/AudioManager.java +13 −0 Original line number Diff line number Diff line Loading @@ -3330,6 +3330,19 @@ public class AudioManager { } } /** * Only useful for volume controllers. * @hide */ public boolean isStreamAffectedByMute(int streamType) { try { return getService().isStreamAffectedByMute(streamType); } catch (RemoteException e) { Log.w(TAG, "Error calling isStreamAffectedByMute", e); return false; } } /** * Only useful for volume controllers. * @hide Loading media/java/android/media/IAudioService.aidl +2 −0 Original line number Diff line number Diff line Loading @@ -202,6 +202,8 @@ interface IAudioService { boolean isStreamAffectedByRingerMode(int streamType); boolean isStreamAffectedByMute(int streamType); void disableSafeMediaVolume(); int setHdmiSystemAudioSupported(boolean on); Loading services/core/java/com/android/server/audio/AudioService.java +1 −0 Original line number Diff line number Diff line Loading @@ -3217,6 +3217,7 @@ public class AudioService extends IAudioService.Stub { return false; } @Override public boolean isStreamAffectedByMute(int streamType) { return (mMuteAffectedStreams & (1 << streamType)) != 0; } Loading Loading
media/java/android/media/AudioManager.java +13 −0 Original line number Diff line number Diff line Loading @@ -3330,6 +3330,19 @@ public class AudioManager { } } /** * Only useful for volume controllers. * @hide */ public boolean isStreamAffectedByMute(int streamType) { try { return getService().isStreamAffectedByMute(streamType); } catch (RemoteException e) { Log.w(TAG, "Error calling isStreamAffectedByMute", e); return false; } } /** * Only useful for volume controllers. * @hide Loading
media/java/android/media/IAudioService.aidl +2 −0 Original line number Diff line number Diff line Loading @@ -202,6 +202,8 @@ interface IAudioService { boolean isStreamAffectedByRingerMode(int streamType); boolean isStreamAffectedByMute(int streamType); void disableSafeMediaVolume(); int setHdmiSystemAudioSupported(boolean on); Loading
services/core/java/com/android/server/audio/AudioService.java +1 −0 Original line number Diff line number Diff line Loading @@ -3217,6 +3217,7 @@ public class AudioService extends IAudioService.Stub { return false; } @Override public boolean isStreamAffectedByMute(int streamType) { return (mMuteAffectedStreams & (1 << streamType)) != 0; } Loading