summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2010-02-16 12:38:38 -0800
committerJean-Baptiste Queru <jbq@google.com>2010-02-16 13:55:19 -0800
commit3af80dc6d937fb95cab544417e75f5aadc595690 (patch)
treeeffe84631174daaeee4793442c7a2d9e3bc24308 /core/java
parentbe16be13c6f03e5e94fc442ba6a95e420e1a0fef (diff)
downloadframeworks_base-3af80dc6d937fb95cab544417e75f5aadc595690.zip
frameworks_base-3af80dc6d937fb95cab544417e75f5aadc595690.tar.gz
frameworks_base-3af80dc6d937fb95cab544417e75f5aadc595690.tar.bz2
Expose more Download Manager APIs.
This will allow apps to track download progress. Change-Id: Id6b77c0fc01b4838fca45e2fe241b1ea08e65038
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/net/Downloads.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/core/java/android/net/Downloads.java b/core/java/android/net/Downloads.java
index a794af2..07ee9e1 100644
--- a/core/java/android/net/Downloads.java
+++ b/core/java/android/net/Downloads.java
@@ -296,21 +296,24 @@ public final class Downloads {
}
/**
- * @pending
+ * The column for the id in the Cursor returned by
+ * {@link #getProgressCursor()}
*/
public static final int getProgressColumnId() {
return 0;
}
/**
- * @pending
+ * The column for the current byte count in the Cursor returned by
+ * {@link #getProgressCursor()}
*/
public static final int getProgressColumnCurrentBytes() {
return 1;
}
/**
- * @pending
+ * The column for the total byte count in the Cursor returned by
+ * {@link #getProgressCursor()}
*/
public static final int getProgressColumnTotalBytes() {
return 2;
@@ -324,7 +327,7 @@ public final class Downloads {
};
/**
- * @pending
+ * Returns a Cursor representing the progress of the download identified by the ID.
*/
public static final Cursor getProgressCursor(Context context, long id) {
Uri downloadUri = Uri.withAppendedPath(android.provider.Downloads.Impl.CONTENT_URI,