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

Commit bfa6635c authored by Jack Yu's avatar Jack Yu
Browse files

Used APN type instead of APN id

APN id is similar to ApnSetting.ApnType. We can just use the apn
type. No need to use APN id anymore.

Test: Telephony sanity tests + unit tests
Bug: 77511388
Merged-In: If41845604ea14f36272262da110d682eea0d5451
Change-Id: If41845604ea14f36272262da110d682eea0d5451
(cherry picked from commit f42d0601)
parent 9ca4d439
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -70,7 +70,12 @@ public class ApnSetting implements Parcelable {
    private static final String UNSPECIFIED_STRING = "";

    /**
     * All APN types.
     * APN type for none. Should only be used for initialization.
     * @hide
     */
    public static final int TYPE_NONE = ApnTypes.NONE;
    /**
     * APN type for all APNs.
     * @hide
     */
    public static final int TYPE_ALL = ApnTypes.ALL;
+0 −13
Original line number Diff line number Diff line
@@ -103,19 +103,6 @@ public class DctConstants {

    /***** Constants *****/

    public static final int APN_INVALID_ID = -1;
    public static final int APN_DEFAULT_ID = 0;
    public static final int APN_MMS_ID = 1;
    public static final int APN_SUPL_ID = 2;
    public static final int APN_DUN_ID = 3;
    public static final int APN_HIPRI_ID = 4;
    public static final int APN_IMS_ID = 5;
    public static final int APN_FOTA_ID = 6;
    public static final int APN_CBS_ID = 7;
    public static final int APN_IA_ID = 8;
    public static final int APN_EMERGENCY_ID = 9;
    public static final int APN_NUM_TYPES = 10;

    public static final int INVALID = -1;
    public static final int DISABLED = 0;
    public static final int ENABLED = 1;