Merge "Fix a typo on MediaTimestamp.getAnchorSytemNanoTime()"

This commit is contained in:
TreeHugger Robot
2018-06-09 02:01:40 +00:00
committed by Android (Google) Code Review
2 changed files with 12 additions and 1 deletions

View File

@@ -24500,7 +24500,8 @@ package android.media {
public final class MediaTimestamp {
method public long getAnchorMediaTimeUs();
method public long getAnchorSytemNanoTime();
method public long getAnchorSystemNanoTime();
method public deprecated long getAnchorSytemNanoTime();
method public float getMediaClockRate();
field public static final android.media.MediaTimestamp TIMESTAMP_UNKNOWN;
}

View File

@@ -51,8 +51,18 @@ public final class MediaTimestamp
/**
* Get the {@link java.lang.System#nanoTime system time} corresponding to the media time
* in nanoseconds.
* @deprecated use {@link #getAnchorSystemNanoTime} instead.
*/
@Deprecated
public long getAnchorSytemNanoTime() {
return getAnchorSystemNanoTime();
}
/**
* Get the {@link java.lang.System#nanoTime system time} corresponding to the media time
* in nanoseconds.
*/
public long getAnchorSystemNanoTime() {
return nanoTime;
}