diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java index 5819b59e4bb09..16746d47ee9e7 100644 --- a/core/java/android/provider/ContactsContract.java +++ b/core/java/android/provider/ContactsContract.java @@ -1102,6 +1102,33 @@ public final class ContactsContract { *
Type: INTEGER
*/ public static final String DELETED = "deleted"; + + /** + * The "name_verified" flag: "1" means that the name fields on this raw + * contact can be trusted and therefore should be used for the entire + * aggregated contact. + *+ * If an aggregated contact contains more than one raw contact with a + * verified name, one of those verified names is chosen at random. + * If an aggregated contact contains no verified names, the + * name is chosen randomly from the constituent raw contacts. + *
+ *+ * Updating this flag from "0" to "1" automatically resets it to "0" on + * all other raw contacts in the same aggregated contact. + *
+ *+ * Sync adapters should only specify a value for this column when + * inserting a raw contact and leave it out when doing an update. + *
+ *+ * The default value is "0" + *
+ *Type: INTEGER
+ * + * @hide + */ + public static final String NAME_VERIFIED = "name_verified"; } /** @@ -1673,6 +1700,7 @@ public final class ContactsContract { DatabaseUtils.cursorLongToContentValuesIfPresent(cursor, cv, CONTACT_ID); DatabaseUtils.cursorLongToContentValuesIfPresent(cursor, cv, STARRED); DatabaseUtils.cursorIntToContentValuesIfPresent(cursor, cv, IS_RESTRICTED); + DatabaseUtils.cursorIntToContentValuesIfPresent(cursor, cv, NAME_VERIFIED); android.content.Entity contact = new android.content.Entity(cv); // read data rows until the contact id changes