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

Commit 5a4ee7b6 authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

Merge "Fix API level in documentation to refer to MNC"

parents 980d25ea 35e576e7
Loading
Loading
Loading
Loading
+6 −5
Original line number Original line Diff line number Diff line
@@ -1448,7 +1448,8 @@ public class AudioTrack
     * the position values have different meanings.
     * the position values have different meanings.
     * <br>
     * <br>
     * If looping is currently enabled and the new position is greater than or equal to the
     * If looping is currently enabled and the new position is greater than or equal to the
     * loop end marker, the behavior varies by API level: for API level 22 and above,
     * loop end marker, the behavior varies by API level:
     * as of {@link android.os.Build.VERSION_CODES#MNC},
     * the looping is first disabled and then the position is set.
     * the looping is first disabled and then the position is set.
     * For earlier API levels, the behavior is unspecified.
     * For earlier API levels, the behavior is unspecified.
     * @return error code or success, see {@link #SUCCESS}, {@link #ERROR_BAD_VALUE},
     * @return error code or success, see {@link #SUCCESS}, {@link #ERROR_BAD_VALUE},
@@ -1485,7 +1486,7 @@ public class AudioTrack
     * {@link #ERROR_BAD_VALUE} is returned.
     * {@link #ERROR_BAD_VALUE} is returned.
     * The loop range is the interval [startInFrames, endInFrames).
     * The loop range is the interval [startInFrames, endInFrames).
     * <br>
     * <br>
     * For API level 22 and above, the position is left unchanged,
     * As of {@link android.os.Build.VERSION_CODES#MNC}, the position is left unchanged,
     * unless it is greater than or equal to the loop end marker, in which case
     * unless it is greater than or equal to the loop end marker, in which case
     * it is forced to the loop start marker.
     * it is forced to the loop start marker.
     * For earlier API levels, the effect on position is unspecified.
     * For earlier API levels, the effect on position is unspecified.
@@ -2032,12 +2033,12 @@ public class AudioTrack
     * The track must be stopped or paused, and
     * The track must be stopped or paused, and
     * the track's creation mode must be {@link #MODE_STATIC}.
     * the track's creation mode must be {@link #MODE_STATIC}.
     * <p>
     * <p>
     * For API level 22 and above, also resets the value returned by
     * As of {@link android.os.Build.VERSION_CODES#MNC}, also resets the value returned by
     * {@link #getPlaybackHeadPosition()} to zero.
     * {@link #getPlaybackHeadPosition()} to zero.
     * For earlier API levels, the reset behavior is unspecified.
     * For earlier API levels, the reset behavior is unspecified.
     * <p>
     * <p>
     * {@link #setPlaybackHeadPosition(int)} to zero
     * Use {@link #setPlaybackHeadPosition(int)} with a zero position
     * is recommended instead when the reset of {@link #getPlaybackHeadPosition} is not needed.
     * if the reset of <code>getPlaybackHeadPosition()</code> is not needed.
     * @return error code or success, see {@link #SUCCESS}, {@link #ERROR_BAD_VALUE},
     * @return error code or success, see {@link #SUCCESS}, {@link #ERROR_BAD_VALUE},
     *  {@link #ERROR_INVALID_OPERATION}
     *  {@link #ERROR_INVALID_OPERATION}
     */
     */