Merge "Add SubscriptionManager APIs for satellite communication."

This commit is contained in:
Jack Yu 2023-03-31 21:00:06 +00:00 committed by Gerrit Code Review
commit b8a1b57bb9
2 changed files with 18 additions and 1 deletions

View File

@ -4842,6 +4842,14 @@ public final class Telephony {
*/ */
public static final String COLUMN_USER_HANDLE = "user_handle"; 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. */ /** All columns in {@link SimInfo} table. */
private static final List<String> ALL_COLUMNS = List.of( private static final List<String> ALL_COLUMNS = List.of(
COLUMN_UNIQUE_KEY_SUBSCRIPTION_ID, COLUMN_UNIQUE_KEY_SUBSCRIPTION_ID,
@ -4910,7 +4918,8 @@ public final class Telephony {
COLUMN_PORT_INDEX, COLUMN_PORT_INDEX,
COLUMN_USAGE_SETTING, COLUMN_USAGE_SETTING,
COLUMN_TP_MESSAGE_REF, COLUMN_TP_MESSAGE_REF,
COLUMN_USER_HANDLE COLUMN_USER_HANDLE,
COLUMN_SATELLITE_ENABLED
); );
/** /**

View File

@ -1116,6 +1116,14 @@ public class SubscriptionManager {
*/ */
public static final String USER_HANDLE = SimInfo.COLUMN_USER_HANDLE; 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 */ /** @hide */
@Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.SOURCE)
@IntDef(prefix = {"USAGE_SETTING_"}, @IntDef(prefix = {"USAGE_SETTING_"},