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

Commit dc116106 authored by Aishwarya Mallampati's avatar Aishwarya Mallampati
Browse files

Add SubscriptionManager APIs for satellite communication.

The following changes are made:
- Added new SATELLITE_ENABLED column in SimInfo db.

Bug: 263502414
Test: atest android.telephony.cts.SubscriptionManagerTest
Change-Id: I492daea290ef26bde538d1e9482936adba8fe949
parent 5dfe36b8
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -4847,6 +4847,14 @@ public final class Telephony {
         */
        public static final String COLUMN_USER_HANDLE = "user_handle";

        /**
         * TelephonyProvider column name for satellite enabled.
         * By default, it's disabled.
         *
         * @hide
         */
        public static final String COLUMN_SATELLITE_ENABLED = "satellite_enabled";

        /** All columns in {@link SimInfo} table. */
        private static final List<String> ALL_COLUMNS = List.of(
                COLUMN_UNIQUE_KEY_SUBSCRIPTION_ID,
@@ -4915,7 +4923,8 @@ public final class Telephony {
                COLUMN_PORT_INDEX,
                COLUMN_USAGE_SETTING,
                COLUMN_TP_MESSAGE_REF,
                COLUMN_USER_HANDLE
                COLUMN_USER_HANDLE,
                COLUMN_SATELLITE_ENABLED
        );

        /**
+8 −0
Original line number Diff line number Diff line
@@ -1139,6 +1139,14 @@ public class SubscriptionManager {
     */
    public static final String USER_HANDLE = SimInfo.COLUMN_USER_HANDLE;

    /**
     * TelephonyProvider column name for satellite enabled.
     * By default, it's disabled.
     * <P>Type: INTEGER (int)</P>
     * @hide
     */
    public static final String SATELLITE_ENABLED = SimInfo.COLUMN_SATELLITE_ENABLED;

    /** @hide */
    @Retention(RetentionPolicy.SOURCE)
    @IntDef(prefix = {"USAGE_SETTING_"},