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

Commit 47b7fc78 authored by Aishwarya Mallampati's avatar Aishwarya Mallampati Committed by Jack Yu
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
Merged-In: I492daea290ef26bde538d1e9482936adba8fe949
Change-Id: I492daea290ef26bde538d1e9482936adba8fe949
parent e6f44ac0
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -4842,6 +4842,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,
@@ -4910,7 +4918,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
@@ -1116,6 +1116,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_"},