From 251097b3789632000ccdaf7fb7d66a82ff37d882 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Mon, 2 Sep 2013 15:07:28 -0700 Subject: 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 --- core/java/android/provider/DocumentsContract.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'core/java') 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; } /** -- cgit v1.1