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

Commit bd5f0d92 authored by Nathan Harold's avatar Nathan Harold
Browse files

Add Usage Setting to SIMINFO

Support usage settings in the SIMINFO Database.

Bug: 210023167
Test: atest TelephonyDatabaseHelperTest#databaseHelperOnUpgrade_hasUsageSettingField

Change-Id: I9578874a4f4a56404d9303939c65ee36897d0908
parent 7e2d58ab
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -5453,5 +5453,12 @@ public final class Telephony {
         */
        public static final String COLUMN_PHONE_NUMBER_SOURCE_IMS =
                "phone_number_source_ims";

        /**
         * TelephonyProvider column name for the device's preferred usage setting.
         *
         * @hide
         */
        public static final String COLUMN_USAGE_SETTING = "usage_setting";
    }
}
+12 −1
Original line number Diff line number Diff line
@@ -1037,7 +1037,7 @@ public class SubscriptionManager {
    public static final String UICC_APPLICATIONS_ENABLED = SimInfo.COLUMN_UICC_APPLICATIONS_ENABLED;

    /**
     * Indicate which network type is allowed. By default it's enabled.
     * Indicate which network type is allowed.
     * @hide
     */
    public static final String ALLOWED_NETWORK_TYPES =
@@ -1095,6 +1095,17 @@ public class SubscriptionManager {
     */
    public static final int USAGE_SETTING_DATA_CENTRIC = 2;

    /**
     * Indicate the preferred usage setting for the subscription.
     *
     * 0 - Default - If the value has not been explicitly set, it will be "default"
     * 1 - Voice-centric
     * 2 - Data-centric
     *
     * @hide
     */
    public static final String USAGE_SETTING = SimInfo.COLUMN_USAGE_SETTING;

    /**
     * Broadcast Action: The user has changed one of the default subs related to
     * data, phone calls, or sms</p>