diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java index 066401f456d08..f950c4bc1c36f 100644 --- a/core/java/android/provider/ContactsContract.java +++ b/core/java/android/provider/ContactsContract.java @@ -176,36 +176,6 @@ public final class ContactsContract { */ public static final String DISPLAY_NAME = "display_name"; - /** - * Reference to the row in the data table holding the primary phone number. - *
Type: INTEGER REFERENCES data(_id)
- */ - @Deprecated - public static final String PRIMARY_PHONE_ID = "primary_phone_id"; - - /** - * Reference to the row in the data table holding the default phone number. - * If the contact has only one phone number, that number is the default one. - * Otherwise it is the one explicitly selected by the user as primary. - *Type: INTEGER REFERENCES data(_id)
- */ - public static final String DEFAULT_PHONE_ID = "default_phone_id"; - - /** - * Reference to the row in the data table holding the primary email address. - *Type: INTEGER REFERENCES data(_id)
- */ - @Deprecated - public static final String PRIMARY_EMAIL_ID = "primary_email_id"; - - /** - * Reference to the row in the data table holding the default email address. - * If the contact has only one email address, that address is the default one. - * Otherwise it is the one explicitly selected by the user as primary. - *Type: INTEGER REFERENCES data(_id)
- */ - public static final String DEFAULT_EMAIL_ID = "default_email_id"; - /** * Reference to the row in the data table holding the photo. *Type: INTEGER REFERENCES data(_id)
@@ -225,43 +195,11 @@ public final class ContactsContract { public static final String PRESENCE_STATUS = Presence.PRESENCE_STATUS; /** - * The type of data, for example Home or Work. + * An indicator of whether this contact has at least one phone number. "1" if there is + * at least one phone number, "0" otherwise. *Type: INTEGER
*/ - @Deprecated - public static final String PRIMARY_PHONE_TYPE = CommonDataKinds.Phone.TYPE; - - /** - * The type of data, for example Home or Work. - *Type: INTEGER
- */ - public static final String DEFAULT_PHONE_TYPE = "default_phone_type"; - - /** - * The user defined label for the primary phone. - *Type: TEXT
- */ - @Deprecated - public static final String PRIMARY_PHONE_LABEL = CommonDataKinds.Phone.LABEL; - - /** - * The user defined label for the default phone. - *Type: TEXT
- */ - public static final String DEFAULT_PHONE_LABEL = "default_phone_label"; - - /** - * The primary phone number. - *Type: TEXT
- */ - @Deprecated - public static final String PRIMARY_PHONE_NUMBER = CommonDataKinds.Phone.NUMBER; - - /** - * The default phone number. - *Type: TEXT
- */ - public static final String DEFAULT_PHONE_NUMBER = "default_phone_number"; + public static final String HAS_PHONE_NUMBER = "has_phone_number"; } /**