summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorSteve McKay <smckay@google.com>2016-03-16 01:37:06 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2016-03-16 01:37:08 +0000
commit709be25f04fd390b220eec1c0f5578df3be2b17e (patch)
treeb323dacae72a8269fc27e5a744bde89b7271c63d /core/java
parent3c8702dd8113a780e6fd7240d8dfe8e82aaa283e (diff)
parent168e464812341fdc64c3b85659b60114bee3b86e (diff)
Merge "Add FLAG_PARTIAL. Partial files can't be copied." into nyc-dev
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/provider/DocumentsContract.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/core/java/android/provider/DocumentsContract.java b/core/java/android/provider/DocumentsContract.java
index e7a9b7d87fdd..4ad7969d1911 100644
--- a/core/java/android/provider/DocumentsContract.java
+++ b/core/java/android/provider/DocumentsContract.java
@@ -379,8 +379,18 @@ public final class DocumentsContract {
* @see DocumentsProvider#queryChildDocuments(String, String[], String)
* @hide
*/
-
public static final int FLAG_ARCHIVE = 1 << 15;
+
+ /**
+ * Flag indicating that a document is not complete, likely its
+ * contents are being downloaded. Partial files cannot be opened,
+ * copied, moved in the UI. But they can be deleted and retried
+ * if they represent a failed download.
+ *
+ * @see #COLUMN_FLAGS
+ * @hide
+ */
+ public static final int FLAG_PARTIAL = 1 << 16;
}
/**