diff options
| author | 2018-05-31 17:33:55 -0700 | |
|---|---|---|
| committer | 2018-05-31 17:33:55 -0700 | |
| commit | 76f1bd4979c439a4eb8b209595b03bd434e0871d (patch) | |
| tree | ad1fa7b5e0d97f4710bd5a2cf43584a71c09dded | |
| parent | 53f46128a05844a9de508f260f4925a73d841144 (diff) | |
| parent | bb2ce1010eb4ea732cdfab396dec272ed2737ab8 (diff) | |
Merge "Fix MbmsDownloadSession documentation"
am: bb2ce1010e
Change-Id: Ibe39e6526e7cc89dc95eac90fcb0a431938ca307
| -rw-r--r-- | telephony/java/android/telephony/MbmsDownloadSession.java | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/telephony/java/android/telephony/MbmsDownloadSession.java b/telephony/java/android/telephony/MbmsDownloadSession.java index d9fdd97e0889..af4d8d763716 100644 --- a/telephony/java/android/telephony/MbmsDownloadSession.java +++ b/telephony/java/android/telephony/MbmsDownloadSession.java @@ -207,23 +207,25 @@ public class MbmsDownloadSession implements AutoCloseable { public static final int STATUS_UNKNOWN = 0; /** - * Indicates that the file is actively downloading. + * Indicates that the file is actively being downloaded. */ public static final int STATUS_ACTIVELY_DOWNLOADING = 1; /** - * TODO: I don't know... + * Indicates that the file is awaiting the next download or repair operations. When a more + * precise status is known, the status will change to either {@link #STATUS_PENDING_REPAIR} or + * {@link #STATUS_PENDING_DOWNLOAD_WINDOW}. */ public static final int STATUS_PENDING_DOWNLOAD = 2; /** - * Indicates that the file is being repaired after the download being interrupted. + * Indicates that the file is awaiting file repair after the download has ended. */ public static final int STATUS_PENDING_REPAIR = 3; /** * Indicates that the file is waiting to download because its download window has not yet - * started. + * started and is scheduled for a future time. */ public static final int STATUS_PENDING_DOWNLOAD_WINDOW = 4; @@ -609,6 +611,9 @@ public class MbmsDownloadSession implements AutoCloseable { * If the operation encountered an error, the error code will be delivered via * {@link MbmsDownloadSessionCallback#onError}. * + * Repeated calls to this method for the same {@link DownloadRequest} will replace the + * previously registered listener. + * * @param request The {@link DownloadRequest} that you want updates on. * @param executor The {@link Executor} on which calls to {@code listener } should be executed. * @param listener The listener that should be called when the middleware has information to @@ -659,6 +664,9 @@ public class MbmsDownloadSession implements AutoCloseable { * If the operation encountered an error, the error code will be delivered via * {@link MbmsDownloadSessionCallback#onError}. * + * Repeated calls to this method for the same {@link DownloadRequest} will replace the + * previously registered listener. + * * @param request The {@link DownloadRequest} provided during registration * @param listener The listener provided during registration. */ |