Loading api/test-current.txt +5 −0 Original line number Diff line number Diff line Loading @@ -492,6 +492,11 @@ package android.media { method public int getProgramId(); } public final class PlaybackParams implements android.os.Parcelable { method public int getAudioStretchMode(); method public android.media.PlaybackParams setAudioStretchMode(int); } public static final class VolumeShaper.Configuration.Builder { method public android.media.VolumeShaper.Configuration.Builder setOptionFlags(int); } Loading media/java/android/media/PlaybackParams.java +3 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package android.media; import android.annotation.IntDef; import android.annotation.TestApi; import android.os.Parcel; import android.os.Parcelable; Loading Loading @@ -151,6 +152,7 @@ public final class PlaybackParams implements Parcelable { * @param audioStretchMode * @return this <code>PlaybackParams</code> instance. */ @TestApi public PlaybackParams setAudioStretchMode(@AudioStretchMode int audioStretchMode) { mAudioStretchMode = audioStretchMode; mSet |= SET_AUDIO_STRETCH_MODE; Loading @@ -163,6 +165,7 @@ public final class PlaybackParams implements Parcelable { * @return audio stretch mode * @throws IllegalStateException if the audio stretch mode is not set. */ @TestApi public @AudioStretchMode int getAudioStretchMode() { if ((mSet & SET_AUDIO_STRETCH_MODE) == 0) { throw new IllegalStateException("audio stretch mode not set"); Loading Loading
api/test-current.txt +5 −0 Original line number Diff line number Diff line Loading @@ -492,6 +492,11 @@ package android.media { method public int getProgramId(); } public final class PlaybackParams implements android.os.Parcelable { method public int getAudioStretchMode(); method public android.media.PlaybackParams setAudioStretchMode(int); } public static final class VolumeShaper.Configuration.Builder { method public android.media.VolumeShaper.Configuration.Builder setOptionFlags(int); } Loading
media/java/android/media/PlaybackParams.java +3 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package android.media; import android.annotation.IntDef; import android.annotation.TestApi; import android.os.Parcel; import android.os.Parcelable; Loading Loading @@ -151,6 +152,7 @@ public final class PlaybackParams implements Parcelable { * @param audioStretchMode * @return this <code>PlaybackParams</code> instance. */ @TestApi public PlaybackParams setAudioStretchMode(@AudioStretchMode int audioStretchMode) { mAudioStretchMode = audioStretchMode; mSet |= SET_AUDIO_STRETCH_MODE; Loading @@ -163,6 +165,7 @@ public final class PlaybackParams implements Parcelable { * @return audio stretch mode * @throws IllegalStateException if the audio stretch mode is not set. */ @TestApi public @AudioStretchMode int getAudioStretchMode() { if ((mSet & SET_AUDIO_STRETCH_MODE) == 0) { throw new IllegalStateException("audio stretch mode not set"); Loading