diff options
| author | 2019-11-01 15:09:11 +0800 | |
|---|---|---|
| committer | 2019-11-07 16:06:00 +0800 | |
| commit | b27edd7ef29fb4841ed3544af6e76606badfa5d7 (patch) | |
| tree | 5f048966864f6371ecc74d4cf39e0dbc59a11600 | |
| parent | a46b9ca0831cf172444fd231ca04be6643bf9f4e (diff) | |
Add SystemApi and NonNull annotation
Bug: 143738957
Test: make
Change-Id: I0e5c0e57c14dd18ab51d33a9552dba86ef4e6000
| -rw-r--r-- | api/system-current.txt | 26 | ||||
| -rw-r--r-- | telephony/java/android/provider/Telephony.java | 66 |
2 files changed, 91 insertions, 1 deletions
diff --git a/api/system-current.txt b/api/system-current.txt index 9a24181d18f5..ba7a4f99231f 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -6280,6 +6280,32 @@ package android.provider { field public static final int VOLUME_HUSH_VIBRATE = 1; // 0x1 } + public static interface Telephony.CarrierColumns extends android.provider.BaseColumns { + field @NonNull public static final android.net.Uri CONTENT_URI; + field public static final String EXPIRATION_TIME = "expiration_time"; + field public static final String KEY_IDENTIFIER = "key_identifier"; + field public static final String KEY_TYPE = "key_type"; + field public static final String LAST_MODIFIED = "last_modified"; + field public static final String MCC = "mcc"; + field public static final String MNC = "mnc"; + field public static final String MVNO_MATCH_DATA = "mvno_match_data"; + field public static final String MVNO_TYPE = "mvno_type"; + field public static final String PUBLIC_KEY = "public_key"; + } + + public static final class Telephony.CarrierId.All implements android.provider.BaseColumns { + field public static final String APN = "apn"; + field @NonNull public static final android.net.Uri CONTENT_URI; + field public static final String GID1 = "gid1"; + field public static final String GID2 = "gid2"; + field public static final String ICCID_PREFIX = "iccid_prefix"; + field public static final String IMSI_PREFIX_XPATTERN = "imsi_prefix_xpattern"; + field public static final String MCCMNC = "mccmnc"; + field public static final String PLMN = "plmn"; + field public static final String PRIVILEGE_ACCESS_RULE = "privilege_access_rule"; + field public static final String SPN = "spn"; + } + public static final class Telephony.Carriers implements android.provider.BaseColumns { field public static final String APN_SET_ID = "apn_set_id"; field public static final int CARRIER_EDITED = 4; // 0x4 diff --git a/telephony/java/android/provider/Telephony.java b/telephony/java/android/provider/Telephony.java index dc95f1678b0b..8206bf05b2c4 100644 --- a/telephony/java/android/provider/Telephony.java +++ b/telephony/java/android/provider/Telephony.java @@ -1363,22 +1363,76 @@ public final class Telephony { * Base column for the table that contain Carrier Public key. * @hide */ + @SystemApi public interface CarrierColumns extends BaseColumns { + /** + * Mobile Country Code (MCC). + * <P> Type: TEXT </P> + */ public static final String MCC = "mcc"; + + /** + * Mobile Network Code (MNC). + * <P> Type: TEXT </P> + */ public static final String MNC = "mnc"; + + /** + * KeyType whether the key is being used for WLAN or ePDG. + * <P> Type: INTEGER </P> + */ public static final String KEY_TYPE = "key_type"; + + /** + * MVNO type: + * {@code SPN (Service Provider Name), IMSI, GID (Group Identifier Level 1)}. + * <P> Type: TEXT </P> + */ public static final String MVNO_TYPE = "mvno_type"; + + /** + * MVNO data. + * Use the following examples. + * <ul> + * <li>SPN: A MOBILE, BEN NL, ...</li> + * <li>IMSI: 302720x94, 2060188, ...</li> + * <li>GID: 4E, 33, ...</li> + * </ul> + * <P> Type: TEXT </P> + */ public static final String MVNO_MATCH_DATA = "mvno_match_data"; + + /** + * The carrier public key that is used for the IMSI encryption. + * <P> Type: TEXT </P> + */ public static final String PUBLIC_KEY = "public_key"; + + /** + * The key identifier Attribute value pair that helps a server locate + * the private key to decrypt the permanent identity. + * <P> Type: TEXT </P> + */ public static final String KEY_IDENTIFIER = "key_identifier"; + + /** + * Date-Time in UTC when the key will expire. + * <P> Type: INTEGER (long) </P> + */ public static final String EXPIRATION_TIME = "expiration_time"; + + /** + * Timestamp when this table was last modified, in milliseconds since + * January 1, 1970 00:00:00.0 UTC. + * <P> Type: INTEGER (long) </P> + */ public static final String LAST_MODIFIED = "last_modified"; /** * The {@code content://} style URL for this table. - * @hide */ + @NonNull public static final Uri CONTENT_URI = Uri.parse("content://carrier_information/carrier"); } @@ -4691,7 +4745,16 @@ public final class Telephony { * Contains mappings between matching rules with carrier id for all carriers. * @hide */ + @SystemApi public static final class All implements BaseColumns { + + /** + * Not instantiable. + * @hide + */ + private All() { + } + /** * Numeric operator ID (as String). {@code MCC + MNC} * <P>Type: TEXT </P> @@ -4749,6 +4812,7 @@ public final class Telephony { /** * The {@code content://} URI for this table. */ + @NonNull public static final Uri CONTENT_URI = Uri.parse("content://carrier_id/all"); } } |