Loading core/java/android/provider/ContactsContract.java +45 −0 Original line number Diff line number Diff line Loading @@ -171,6 +171,14 @@ public final class ContactsContract { */ public static final Uri CONTENT_SUMMARY_URI = Uri.withAppendedPath(AUTHORITY_URI, "aggregates_summary"); /** * The content:// style URI used for "type-to-filter" functionality on the * {@link CONTENT_SUMMARY_URI} URI. The filter string will be used to match * various parts of the aggregate name. The filter argument should be passed * as an additional path segment after this URI. */ public static final Uri CONTENT_SUMMARY_FILTER_URI = Uri.withAppendedPath( CONTENT_SUMMARY_URI, "filter"); /** * The MIME type of {@link #CONTENT_URI} providing a directory of Loading Loading @@ -676,6 +684,29 @@ public final class ContactsContract { /** Mime-type used when storing this in data table. */ public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/phone"; /** * The MIME type of {@link #CONTENT_URI} providing a directory of * phones. */ public static final String CONTENT_TYPE = "vnd.android.cursor.dir/phone"; /** * The content:// style URI for all data records of the * {@link Phone.CONTENT_ITEM_TYPE} mimetype, combined with the associated contact * and aggregate data. */ public static final Uri CONTENT_URI = Uri.withAppendedPath(Data.CONTENT_URI, "phones"); /** * The content:// style URI for filtering data records of the * {@link Phone.CONTENT_ITEM_TYPE} mimetype, combined with the associated contact * and aggregate data. The filter argument should be passed * as an additional path segment after this URI. */ public static final Uri CONTENT_FILTER_URI = Uri.withAppendedPath(CONTENT_URI, "filter"); public static final int TYPE_HOME = 1; public static final int TYPE_MOBILE = 2; public static final int TYPE_WORK = 3; Loading Loading @@ -714,6 +745,20 @@ public final class ContactsContract { /** Mime-type used when storing this in data table. */ public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/postal-address"; /** * The MIME type of {@link #CONTENT_URI} providing a directory of * postal addresses. */ public static final String CONTENT_TYPE = "vnd.android.cursor.dir/postal-address"; /** * The content:// style URI for all data records of the * {@link Postal.CONTENT_ITEM_TYPE} mimetype, combined with the associated contact * and aggregate data. */ public static final Uri CONTENT_URI = Uri.withAppendedPath(Data.CONTENT_URI, "postals"); public static final int TYPE_HOME = 1; public static final int TYPE_WORK = 2; public static final int TYPE_OTHER = 3; Loading Loading
core/java/android/provider/ContactsContract.java +45 −0 Original line number Diff line number Diff line Loading @@ -171,6 +171,14 @@ public final class ContactsContract { */ public static final Uri CONTENT_SUMMARY_URI = Uri.withAppendedPath(AUTHORITY_URI, "aggregates_summary"); /** * The content:// style URI used for "type-to-filter" functionality on the * {@link CONTENT_SUMMARY_URI} URI. The filter string will be used to match * various parts of the aggregate name. The filter argument should be passed * as an additional path segment after this URI. */ public static final Uri CONTENT_SUMMARY_FILTER_URI = Uri.withAppendedPath( CONTENT_SUMMARY_URI, "filter"); /** * The MIME type of {@link #CONTENT_URI} providing a directory of Loading Loading @@ -676,6 +684,29 @@ public final class ContactsContract { /** Mime-type used when storing this in data table. */ public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/phone"; /** * The MIME type of {@link #CONTENT_URI} providing a directory of * phones. */ public static final String CONTENT_TYPE = "vnd.android.cursor.dir/phone"; /** * The content:// style URI for all data records of the * {@link Phone.CONTENT_ITEM_TYPE} mimetype, combined with the associated contact * and aggregate data. */ public static final Uri CONTENT_URI = Uri.withAppendedPath(Data.CONTENT_URI, "phones"); /** * The content:// style URI for filtering data records of the * {@link Phone.CONTENT_ITEM_TYPE} mimetype, combined with the associated contact * and aggregate data. The filter argument should be passed * as an additional path segment after this URI. */ public static final Uri CONTENT_FILTER_URI = Uri.withAppendedPath(CONTENT_URI, "filter"); public static final int TYPE_HOME = 1; public static final int TYPE_MOBILE = 2; public static final int TYPE_WORK = 3; Loading Loading @@ -714,6 +745,20 @@ public final class ContactsContract { /** Mime-type used when storing this in data table. */ public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/postal-address"; /** * The MIME type of {@link #CONTENT_URI} providing a directory of * postal addresses. */ public static final String CONTENT_TYPE = "vnd.android.cursor.dir/postal-address"; /** * The content:// style URI for all data records of the * {@link Postal.CONTENT_ITEM_TYPE} mimetype, combined with the associated contact * and aggregate data. */ public static final Uri CONTENT_URI = Uri.withAppendedPath(Data.CONTENT_URI, "postals"); public static final int TYPE_HOME = 1; public static final int TYPE_WORK = 2; public static final int TYPE_OTHER = 3; Loading