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

Commit b27edd7e authored by zoey chen's avatar zoey chen
Browse files

Add SystemApi and NonNull annotation

Bug: 143738957
Test: make
Change-Id: I0e5c0e57c14dd18ab51d33a9552dba86ef4e6000
parent a46b9ca0
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
@@ -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
+65 −1
Original line number Diff line number Diff line
@@ -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");
        }
    }