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.
Cherry-pick of approved CL https://android-git.corp.google.com/g/#change,119596
into BooksPhone release branch
Change-Id: I5c32e3d0ae2149c6ac355463231e19fdf37cc2f9
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 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
}