summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorDmitri Plotnikov <dplotnikov@google.com>2010-02-24 18:26:40 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-02-24 18:26:40 -0800
commitfa0e57fbe77d46039f9e9a54512dce13f71773b5 (patch)
tree0f65531849478290fab0cc9f28a13046ba851770 /core
parent240becc68d2ffa967d79af9c0ef50e6113420e47 (diff)
parent3ba8a3b39bb5eb91a1b5c85c073c03e264b1736b (diff)
downloadframeworks_base-fa0e57fbe77d46039f9e9a54512dce13f71773b5.zip
frameworks_base-fa0e57fbe77d46039f9e9a54512dce13f71773b5.tar.gz
frameworks_base-fa0e57fbe77d46039f9e9a54512dce13f71773b5.tar.bz2
Merge "Introducing tentative (and hidden) API for contact search snippets"
Diffstat (limited to 'core')
-rw-r--r--core/java/android/provider/ContactsContract.java50
1 files changed, 50 insertions, 0 deletions
diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java
index acb8473..1163106 100644
--- a/core/java/android/provider/ContactsContract.java
+++ b/core/java/android/provider/ContactsContract.java
@@ -3176,6 +3176,56 @@ public final class ContactsContract {
}
/**
+ * Additional columns returned by the {@link Contacts#CONTENT_FILTER_URI} providing the
+ * explanation of why the filter matched the contact. Specifically, they contain the
+ * data type and element that was used for matching.
+ * <p>
+ * This is temporary API, it will need to change when we move to FTS.
+ *
+ * @hide
+ */
+ public static class SearchSnippetColumns {
+
+ /**
+ * The ID of the data row that was matched by the filter.
+ *
+ * @hide
+ */
+ public static final String SNIPPET_DATA_ID = "snippet_data_id";
+
+ /**
+ * The type of data that was matched by the filter.
+ *
+ * @hide
+ */
+ public static final String SNIPPET_MIMETYPE = "snippet_mimetype";
+
+ /**
+ * The {@link CommonDataKinds.CommonColumns#DATA} field of the data row
+ * that was matched by the filter.
+ *
+ * @hide
+ */
+ public static final String SNIPPET_DATA = "snippet_data";
+
+ /**
+ * The {@link CommonDataKinds.CommonColumns#TYPE} field of the data row
+ * that was matched by the filter.
+ *
+ * @hide
+ */
+ public static final String SNIPPET_TYPE = "snippet_type";
+
+ /**
+ * The {@link CommonDataKinds.CommonColumns#LABEL} field of the data row
+ * that was matched by the filter.
+ *
+ * @hide
+ */
+ public static final String SNIPPET_LABEL = "snippet_label";
+ }
+
+ /**
* Container for definitions of common data types stored in the {@link ContactsContract.Data}
* table.
*/