From 3d0ad1f8c07489538fa3a90dd7534e0a7a6fa178 Mon Sep 17 00:00:00 2001 From: fionaxu Date: Wed, 25 Oct 2017 23:09:36 -0700 Subject: new columns of carrierId DB Bug: 64131637 Test: Unit test CarrierIdProviderTest.java Change-Id: I5e1d061d39248be12dd1e6ff1488dd3268f5f3ae (cherry picked from commit a9214ba0b8fc691021a27dd523e4b0b0ed1fdff7) --- telephony/java/android/telephony/Telephony.java | 65 +++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/telephony/java/android/telephony/Telephony.java b/telephony/java/android/telephony/Telephony.java index e64e815248e4..1b50861707ed 100644 --- a/telephony/java/android/telephony/Telephony.java +++ b/telephony/java/android/telephony/Telephony.java @@ -3250,4 +3250,69 @@ public final class Telephony { */ public static final String IS_USING_CARRIER_AGGREGATION = "is_using_carrier_aggregation"; } + + /** + * Contains carrier identification information. + * @hide + */ + public static final class CarrierIdentification implements BaseColumns { + /** + * Numeric operator ID (as String). {@code MCC + MNC} + *

Type: TEXT

+ */ + public static final String MCCMNC = "mccmnc"; + + /** + * Group id level 1 (as String). + *

Type: TEXT

+ */ + public static final String GID1 = "gid1"; + + /** + * Group id level 2 (as String). + *

Type: TEXT

+ */ + public static final String GID2 = "gid2"; + + /** + * Public Land Mobile Network name. + *

Type: TEXT

+ */ + public static final String PLMN = "plmn"; + + /** + * Prefix xpattern of IMSI (International Mobile Subscriber Identity). + *

Type: TEXT

+ */ + public static final String IMSI_PREFIX_XPATTERN = "imsi_prefix_xpattern"; + + /** + * Service Provider Name. + *

Type: TEXT

+ */ + public static final String SPN = "spn"; + + /** + * Prefer APN name. + *

Type: TEXT

+ */ + public static final String APN = "apn"; + + /** + * User facing carrier name. + *

Type: TEXT

+ */ + public static final String NAME = "carrier_name"; + + /** + * A unique carrier id + *

Type: INTEGER

+ */ + public static final String CID = "carrier_id"; + + /** + * The {@code content://} URI for this table. + */ + public static final Uri CONTENT_URI = Uri.parse("content://carrier_identification"); + } } -- cgit v1.2.3-59-g8ed1b