Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d7df41b authored by Eric Laurent's avatar Eric Laurent
Browse files

MediaPLayer: remove unused code

remove mBypassInterruptionPolicy unused since
app ops are managed by PlayerBase.

Bug: 131873101
Test: make
Change-Id: Ifb07fd0f4e5a14384b71ac010a35614969b9761e
parent 1806895b
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -629,7 +629,6 @@ public class MediaPlayer extends PlayerBase
    private boolean mStayAwake;
    private boolean mStayAwake;
    private int mStreamType = AudioManager.USE_DEFAULT_STREAM_TYPE;
    private int mStreamType = AudioManager.USE_DEFAULT_STREAM_TYPE;
    private int mUsage = -1;
    private int mUsage = -1;
    private boolean mBypassInterruptionPolicy;


    // Modular DRM
    // Modular DRM
    private UUID mDrmUUID;
    private UUID mDrmUUID;
@@ -2218,8 +2217,6 @@ public class MediaPlayer extends PlayerBase
        }
        }
        baseUpdateAudioAttributes(attributes);
        baseUpdateAudioAttributes(attributes);
        mUsage = attributes.getUsage();
        mUsage = attributes.getUsage();
        mBypassInterruptionPolicy = (attributes.getAllFlags()
                & AudioAttributes.FLAG_BYPASS_INTERRUPTION_POLICY) != 0;
        Parcel pattributes = Parcel.obtain();
        Parcel pattributes = Parcel.obtain();
        attributes.writeToParcel(pattributes, AudioAttributes.FLATTEN_TAGS);
        attributes.writeToParcel(pattributes, AudioAttributes.FLATTEN_TAGS);
        setParameter(KEY_PARAMETER_AUDIO_ATTRIBUTES, pattributes);
        setParameter(KEY_PARAMETER_AUDIO_ATTRIBUTES, pattributes);