From acf2796db9878a337442b463abb4e73cd3e43c37 Mon Sep 17 00:00:00 2001 From: Wei Jia Date: Fri, 14 Dec 2018 11:16:30 -0800 Subject: [PATCH] DataSourceCallback: fix java docs Test: make offline-sdk-docs Bug: 112549021 Change-Id: I4c082f3e9547a768f9327cfaf874f3bba0dab8bf --- media/java/android/media/DataSourceCallback.java | 2 +- media/java/android/media/MediaDataSource.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/media/java/android/media/DataSourceCallback.java b/media/java/android/media/DataSourceCallback.java index 0d4d53106c782..1afcd2075ba4d 100644 --- a/media/java/android/media/DataSourceCallback.java +++ b/media/java/android/media/DataSourceCallback.java @@ -47,7 +47,7 @@ public abstract class DataSourceCallback implements Closeable { * @param offset the offset within buffer to read the data into. * @param size the number of bytes to read. * @throws IOException on fatal errors. - * @return the number of bytes read, or -1 if there was an error. + * @return the number of bytes read, or -1 if end of stream is reached. */ public abstract int readAt(long position, byte[] buffer, int offset, int size) throws IOException; diff --git a/media/java/android/media/MediaDataSource.java b/media/java/android/media/MediaDataSource.java index 4ba2120f5b09b..4bdc1adcc3f08 100644 --- a/media/java/android/media/MediaDataSource.java +++ b/media/java/android/media/MediaDataSource.java @@ -46,7 +46,7 @@ public abstract class MediaDataSource implements Closeable { * @param offset the offset within buffer to read the data into. * @param size the number of bytes to read. * @throws IOException on fatal errors. - * @return the number of bytes read, or -1 if there was an error. + * @return the number of bytes read, or -1 if end of stream is reached. */ public abstract int readAt(long position, byte[] buffer, int offset, int size) throws IOException;