Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e813106 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 4181

* changes:
  Add new URIs to the Phone and Postal classes.
parents 2cc50b12 161dd863
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
@@ -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
@@ -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;
@@ -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;