OSDN Git Service

Add URL_DPC, URL_FILTERED and URL_ENFORCE_MANAGED as constants.
authoryuemingw <yuemingw@google.com>
Tue, 16 Jan 2018 19:48:10 +0000 (19:48 +0000)
committeryuemingw <yuemingw@google.com>
Wed, 17 Jan 2018 10:56:59 +0000 (10:56 +0000)
Test: manual
Bug: 68208245
Change-Id: I9416526f4a6e014dae66a936d6d1eb60309ef8ab

telephony/java/android/telephony/Telephony.java

index e0b6f61..e633053 100644 (file)
@@ -2564,6 +2564,35 @@ public final class Telephony {
         public static final Uri CONTENT_URI = Uri.parse("content://telephony/carriers");
 
         /**
+         * The {@code content://} style URL to be called from DevicePolicyManagerService,
+         * can manage DPC-owned APNs.
+         * @hide
+         */
+        public static final Uri DPC_URI = Uri.parse("content://telephony/carriers/dpc");
+
+        /**
+         * The {@code content://} style URL to be called from Telephony to query APNs.
+         * When DPC-owned APNs are enforced, only DPC-owned APNs are returned, otherwise only
+         * non-DPC-owned APNs are returned.
+         * @hide
+         */
+        public static final Uri FILTERED_URI = Uri.parse("content://telephony/carriers/filtered");
+
+        /**
+         * The {@code content://} style URL to be called from DevicePolicyManagerService
+         * or Telephony to manage whether DPC-owned APNs are enforced.
+         * @hide
+         */
+        public static final Uri ENFORCE_MANAGED_URI = Uri.parse(
+                "content://telephony/carriers/enforce_managed");
+
+        /**
+         * The column name for ENFORCE_MANAGED_URI, indicates whether DPC-owned APNs are enforced.
+         * @hide
+         */
+        public static final String ENFORCE_KEY = "enforced";
+
+        /**
          * The default sort order for this table.
          */
         public static final String DEFAULT_SORT_ORDER = "name ASC";