summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2013-09-02 15:07:28 -0700
committerJeff Sharkey <jsharkey@android.com>2013-09-02 15:33:57 -0700
commit251097b3789632000ccdaf7fb7d66a82ff37d882 (patch)
tree9a9b17a73b1dbff9292683b1e316640dd8c8e2f3 /core/java
parentb51331116eb2ebbc41aaf69142916f9af6dffdd5 (diff)
downloadframeworks_base-251097b3789632000ccdaf7fb7d66a82ff37d882.zip
frameworks_base-251097b3789632000ccdaf7fb7d66a82ff37d882.tar.gz
frameworks_base-251097b3789632000ccdaf7fb7d66a82ff37d882.tar.bz2
New recents behavior to match spec.
Updated behavior queries each documents root for recently modified documents. It uses a new variant of DirectoryLoader which limits the maximum number of parallel queries to relieve memory pressure. When first started, it waits up to 500ms for everyone to finish, then publishes whatever results are ready, and then refreshes results as each straggler finishes. New RootCursorWrapper that always blends in authority and rootId columns, which are used for binding root details from blended cursors. Bug: 10593596, 10329994 Change-Id: Icc0d4a2f1b6166edc72f78a4c88f444eeba6f2f0
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/provider/DocumentsContract.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/provider/DocumentsContract.java b/core/java/android/provider/DocumentsContract.java
index b97b7c0..f445fd5 100644
--- a/core/java/android/provider/DocumentsContract.java
+++ b/core/java/android/provider/DocumentsContract.java
@@ -411,6 +411,15 @@ public final class DocumentsContract {
* @see Intent#EXTRA_MIME_TYPES
*/
public static final int FLAG_PROVIDES_IMAGES = 1 << 5;
+
+ /**
+ * Flag indicating that this root can report recently modified
+ * documents.
+ *
+ * @see #COLUMN_FLAGS
+ * @see DocumentsContract#buildRecentDocumentsUri(String, String)
+ */
+ public static final int FLAG_SUPPORTS_RECENTS = 1 << 6;
}
/**