summaryrefslogtreecommitdiffstats
path: root/core/java/android/provider/ContactsContract.java
diff options
context:
space:
mode:
authorZheng Fu <zhengfu@google.com>2015-01-30 21:16:48 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-01-30 21:16:52 +0000
commit6e7c2c7ca533195277cb9665d7d71f984129b0c4 (patch)
treef47874d20cfb50e7cbb06083f6a541b2d35d441e /core/java/android/provider/ContactsContract.java
parent39f273b92dbbacab7f9ffa1d1a32e89e54d81301 (diff)
parent9ea9a1375dc1a99e51c3b84c8585cf7b828820a2 (diff)
downloadframeworks_base-6e7c2c7ca533195277cb9665d7d71f984129b0c4.zip
frameworks_base-6e7c2c7ca533195277cb9665d7d71f984129b0c4.tar.gz
frameworks_base-6e7c2c7ca533195277cb9665d7d71f984129b0c4.tar.bz2
Merge "Add backup_id column to raw_contacts, and hash_id column to data"
Diffstat (limited to 'core/java/android/provider/ContactsContract.java')
-rw-r--r--core/java/android/provider/ContactsContract.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java
index 7dd559c..cd86a3c 100644
--- a/core/java/android/provider/ContactsContract.java
+++ b/core/java/android/provider/ContactsContract.java
@@ -2194,6 +2194,16 @@ public final class ContactsContract {
public static final String CONTACT_ID = "contact_id";
/**
+ * Persistent unique id for each raw_contact within its account.
+ * This id is provided by its own data source, and can be used to backup metadata
+ * to the server.
+ * This should be unique within each set of account_name/account_type/data_set
+ *
+ * @hide
+ */
+ public static final String BACKUP_ID = "backup_id";
+
+ /**
* The data set within the account that this row belongs to. This allows
* multiple sync adapters for the same account type to distinguish between
* each others' data.
@@ -3986,6 +3996,13 @@ public final class ContactsContract {
public static final String MIMETYPE = "mimetype";
/**
+ * Hash id on the data fields, used for backup and restore.
+ *
+ * @hide
+ */
+ public static final String HASH_ID = "hash_id";
+
+ /**
* A reference to the {@link RawContacts#_ID}
* that this data belongs to.
*/