diff --git a/core/api/system-current.txt b/core/api/system-current.txt index e1442a8cc9455..67567a657e2e9 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -6713,8 +6713,8 @@ package android.media.tv.tuner.filter { method @Nullable public String acquireSharedFilterToken(); method public void close(); method public int configure(@NonNull android.media.tv.tuner.filter.FilterConfiguration); - method public int delayCallbackUntilBufferFilled(int); - method public int delayCallbackUntilTimeMillis(long); + method public int delayCallbackUntilBytesAccumulated(int); + method public int delayCallbackUntilMillisElapsed(long); method public int flush(); method public void freeSharedFilterToken(@NonNull String); method @Deprecated public int getId(); diff --git a/media/java/android/media/tv/tuner/filter/Filter.java b/media/java/android/media/tv/tuner/filter/Filter.java index 45c2a5a90c70a..9f44236448779 100644 --- a/media/java/android/media/tv/tuner/filter/Filter.java +++ b/media/java/android/media/tv/tuner/filter/Filter.java @@ -626,8 +626,12 @@ public class Filter implements AutoCloseable { * be a no-op. Use {@link TunerVersionChecker#getTunerVersion()} to get the version information. * * @param delayInMs specifies the duration of the delay in milliseconds. + * @return one of the following results: {@link Tuner#RESULT_SUCCESS}, + * {@link Tuner#RESULT_UNAVAILABLE}, {@link Tuner#RESULT_NOT_INITIALIZED}, + * {@link Tuner#RESULT_INVALID_STATE}, {@link Tuner#RESULT_INVALID_ARGUMENT}, + * {@link Tuner#RESULT_OUT_OF_MEMORY}, or {@link Tuner#RESULT_UNKNOWN_ERROR}. */ - public int delayCallbackUntilTimeMillis(long delayInMs) { + public int delayCallbackUntilMillisElapsed(long delayInMs) { if (!TunerVersionChecker.checkHigherOrEqualVersionTo( TunerVersionChecker.TUNER_VERSION_2_0, "setTimeDelayHint")) { return Tuner.RESULT_UNAVAILABLE; @@ -652,8 +656,12 @@ public class Filter implements AutoCloseable { * be a no-op. Use {@link TunerVersionChecker#getTunerVersion()} to get the version information. * * @param delayInBytes specifies the duration of the delay in bytes. + * @return one of the following results: {@link Tuner#RESULT_SUCCESS}, + * {@link Tuner#RESULT_UNAVAILABLE}, {@link Tuner#RESULT_NOT_INITIALIZED}, + * {@link Tuner#RESULT_INVALID_STATE}, {@link Tuner#RESULT_INVALID_ARGUMENT}, + * {@link Tuner#RESULT_OUT_OF_MEMORY}, or {@link Tuner#RESULT_UNKNOWN_ERROR}. */ - public int delayCallbackUntilBufferFilled(int delayInBytes) { + public int delayCallbackUntilBytesAccumulated(int delayInBytes) { if (!TunerVersionChecker.checkHigherOrEqualVersionTo( TunerVersionChecker.TUNER_VERSION_2_0, "setTimeDelayHint")) { return Tuner.RESULT_UNAVAILABLE;