summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorMark Brophy <mbrophy@google.com>2011-07-07 17:08:36 +0100
committerMark Brophy <mbrophy@google.com>2011-07-07 17:21:12 +0100
commit91b05eafd38f6fbbf87440c6b96c7d4b434ab3db (patch)
tree1b98101718cb1a9ff16307f0cb74618ef0df7c1c /common
parentb1dd0ac0f11ff3d6352f67311f14aa95185d224b (diff)
downloadandroid_frameworks_ex-91b05eafd38f6fbbf87440c6b96c7d4b434ab3db.tar.gz
android_frameworks_ex-91b05eafd38f6fbbf87440c6b96c7d4b434ab3db.tar.bz2
android_frameworks_ex-91b05eafd38f6fbbf87440c6b96c7d4b434ab3db.zip
Add the new global-search field to android-common.
For unbundled apps which don't build against ICS yet, but need to support this feature. Change-Id: I3aca93d007ae05e2c59dc8e0613e761ec52ecdea
Diffstat (limited to 'common')
-rw-r--r--common/java/com/android/common/Search.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/java/com/android/common/Search.java b/common/java/com/android/common/Search.java
index 55fa6f5..b2f3f56 100644
--- a/common/java/com/android/common/Search.java
+++ b/common/java/com/android/common/Search.java
@@ -34,5 +34,16 @@ public class Search {
*/
public final static String SOURCE = "source";
+ /**
+ * Column name for suggestions cursor. <i>Optional.</i> This column may be
+ * used to specify the time in {@link System#currentTimeMillis
+ * System.currentTimeMillis()} (wall time in UTC) when an item was last
+ * accessed within the results-providing application. If set, this may be
+ * used to show more-recently-used items first.
+ *
+ * See {@code SearchManager.SUGGEST_COLUMN_LAST_ACCESS_HINT} in ICS.
+ */
+ public final static String SUGGEST_COLUMN_LAST_ACCESS_HINT = "suggest_last_access_hint";
+
private Search() { } // don't instantiate
}