Merge "[API Review] APIs in SubscriptionManager" into rvc-dev am: 77bdf2a0c0
Change-Id: Iacccec65cd7ec174745e383bf7e48974c8745a3f
This commit is contained in:
@@ -9405,76 +9405,6 @@ package android.provider {
|
|||||||
field @NonNull public static final String ENABLE_TEST_ALERT_PREF = "enable_test_alerts";
|
field @NonNull public static final String ENABLE_TEST_ALERT_PREF = "enable_test_alerts";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final class Telephony.SimInfo {
|
|
||||||
field public static final String ACCESS_RULES = "access_rules";
|
|
||||||
field public static final String ACCESS_RULES_FROM_CARRIER_CONFIGS = "access_rules_from_carrier_configs";
|
|
||||||
field public static final String ALLOWED_NETWORK_TYPES = "allowed_network_types";
|
|
||||||
field public static final String CARD_ID = "card_id";
|
|
||||||
field public static final String CARRIER_ID = "carrier_id";
|
|
||||||
field public static final String CARRIER_NAME = "carrier_name";
|
|
||||||
field public static final String CB_ALERT_REMINDER_INTERVAL = "alert_reminder_interval";
|
|
||||||
field public static final String CB_ALERT_SOUND_DURATION = "alert_sound_duration";
|
|
||||||
field public static final String CB_ALERT_SPEECH = "enable_alert_speech";
|
|
||||||
field public static final String CB_ALERT_VIBRATE = "enable_alert_vibrate";
|
|
||||||
field public static final String CB_AMBER_ALERT = "enable_cmas_amber_alerts";
|
|
||||||
field public static final String CB_CHANNEL_50_ALERT = "enable_channel_50_alerts";
|
|
||||||
field public static final String CB_CMAS_TEST_ALERT = "enable_cmas_test_alerts";
|
|
||||||
field public static final String CB_EMERGENCY_ALERT = "enable_emergency_alerts";
|
|
||||||
field public static final String CB_ETWS_TEST_ALERT = "enable_etws_test_alerts";
|
|
||||||
field public static final String CB_EXTREME_THREAT_ALERT = "enable_cmas_extreme_threat_alerts";
|
|
||||||
field public static final String CB_OPT_OUT_DIALOG = "show_cmas_opt_out_dialog";
|
|
||||||
field public static final String CB_SEVERE_THREAT_ALERT = "enable_cmas_severe_threat_alerts";
|
|
||||||
field public static final String COLOR = "color";
|
|
||||||
field @NonNull public static final android.net.Uri CONTENT_URI;
|
|
||||||
field public static final String DATA_ENABLED_OVERRIDE_RULES = "data_enabled_override_rules";
|
|
||||||
field public static final String DATA_ROAMING = "data_roaming";
|
|
||||||
field public static final int DATA_ROAMING_DEFAULT = 0; // 0x0
|
|
||||||
field public static final int DATA_ROAMING_DISABLE = 0; // 0x0
|
|
||||||
field public static final int DATA_ROAMING_ENABLE = 1; // 0x1
|
|
||||||
field public static final String DISPLAY_NAME = "display_name";
|
|
||||||
field public static final String EHPLMNS = "ehplmns";
|
|
||||||
field public static final String ENHANCED_4G_MODE_ENABLED = "volte_vt_enabled";
|
|
||||||
field public static final String GROUP_OWNER = "group_owner";
|
|
||||||
field public static final String GROUP_UUID = "group_uuid";
|
|
||||||
field public static final String HPLMNS = "hplmns";
|
|
||||||
field public static final String ICC_ID = "icc_id";
|
|
||||||
field public static final String IMSI = "imsi";
|
|
||||||
field public static final String IMS_RCS_UCE_ENABLED = "ims_rcs_uce_enabled";
|
|
||||||
field public static final String ISO_COUNTRY_CODE = "iso_country_code";
|
|
||||||
field public static final String IS_EMBEDDED = "is_embedded";
|
|
||||||
field public static final String IS_OPPORTUNISTIC = "is_opportunistic";
|
|
||||||
field public static final String IS_REMOVABLE = "is_removable";
|
|
||||||
field public static final String MCC = "mcc";
|
|
||||||
field public static final String MCC_STRING = "mcc_string";
|
|
||||||
field public static final String MNC = "mnc";
|
|
||||||
field public static final String MNC_STRING = "mnc_string";
|
|
||||||
field public static final String NAME_SOURCE = "name_source";
|
|
||||||
field public static final int NAME_SOURCE_CARRIER = 3; // 0x3
|
|
||||||
field public static final int NAME_SOURCE_DEFAULT = 0; // 0x0
|
|
||||||
field public static final int NAME_SOURCE_SIM_PNN = 4; // 0x4
|
|
||||||
field public static final int NAME_SOURCE_SIM_SPN = 1; // 0x1
|
|
||||||
field public static final int NAME_SOURCE_USER_INPUT = 2; // 0x2
|
|
||||||
field public static final String NUMBER = "number";
|
|
||||||
field public static final String PROFILE_CLASS = "profile_class";
|
|
||||||
field public static final int PROFILE_CLASS_DEFAULT = -1; // 0xffffffff
|
|
||||||
field public static final int PROFILE_CLASS_OPERATIONAL = 2; // 0x2
|
|
||||||
field public static final int PROFILE_CLASS_PROVISIONING = 1; // 0x1
|
|
||||||
field public static final int PROFILE_CLASS_TESTING = 0; // 0x0
|
|
||||||
field public static final int PROFILE_CLASS_UNSET = -1; // 0xffffffff
|
|
||||||
field public static final int SIM_NOT_INSERTED = -1; // 0xffffffff
|
|
||||||
field public static final String SIM_SLOT_INDEX = "sim_id";
|
|
||||||
field public static final String SUBSCRIPTION_TYPE = "subscription_type";
|
|
||||||
field public static final int SUBSCRIPTION_TYPE_LOCAL_SIM = 0; // 0x0
|
|
||||||
field public static final int SUBSCRIPTION_TYPE_REMOTE_SIM = 1; // 0x1
|
|
||||||
field public static final String UICC_APPLICATIONS_ENABLED = "uicc_applications_enabled";
|
|
||||||
field public static final String UNIQUE_KEY_SUBSCRIPTION_ID = "_id";
|
|
||||||
field public static final String VT_IMS_ENABLED = "vt_ims_enabled";
|
|
||||||
field public static final String WFC_IMS_ENABLED = "wfc_ims_enabled";
|
|
||||||
field public static final String WFC_IMS_MODE = "wfc_ims_mode";
|
|
||||||
field public static final String WFC_IMS_ROAMING_ENABLED = "wfc_ims_roaming_enabled";
|
|
||||||
field public static final String WFC_IMS_ROAMING_MODE = "wfc_ims_roaming_mode";
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final class Telephony.Sms.Intents {
|
public static final class Telephony.Sms.Intents {
|
||||||
field public static final String ACTION_SMS_EMERGENCY_CB_RECEIVED = "android.provider.action.SMS_EMERGENCY_CB_RECEIVED";
|
field public static final String ACTION_SMS_EMERGENCY_CB_RECEIVED = "android.provider.action.SMS_EMERGENCY_CB_RECEIVED";
|
||||||
}
|
}
|
||||||
@@ -11381,7 +11311,7 @@ package android.telephony {
|
|||||||
method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setUiccApplicationsEnabled(int, boolean);
|
method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setUiccApplicationsEnabled(int, boolean);
|
||||||
field @RequiresPermission(android.Manifest.permission.MANAGE_SUBSCRIPTION_PLANS) public static final String ACTION_SUBSCRIPTION_PLANS_CHANGED = "android.telephony.action.SUBSCRIPTION_PLANS_CHANGED";
|
field @RequiresPermission(android.Manifest.permission.MANAGE_SUBSCRIPTION_PLANS) public static final String ACTION_SUBSCRIPTION_PLANS_CHANGED = "android.telephony.action.SUBSCRIPTION_PLANS_CHANGED";
|
||||||
field @NonNull public static final android.net.Uri ADVANCED_CALLING_ENABLED_CONTENT_URI;
|
field @NonNull public static final android.net.Uri ADVANCED_CALLING_ENABLED_CONTENT_URI;
|
||||||
field public static final int PROFILE_CLASS_DEFAULT = -1; // 0xffffffff
|
field @Deprecated public static final int PROFILE_CLASS_DEFAULT = -1; // 0xffffffff
|
||||||
field public static final int PROFILE_CLASS_OPERATIONAL = 2; // 0x2
|
field public static final int PROFILE_CLASS_OPERATIONAL = 2; // 0x2
|
||||||
field public static final int PROFILE_CLASS_PROVISIONING = 1; // 0x1
|
field public static final int PROFILE_CLASS_PROVISIONING = 1; // 0x1
|
||||||
field public static final int PROFILE_CLASS_TESTING = 0; // 0x0
|
field public static final int PROFILE_CLASS_TESTING = 0; // 0x0
|
||||||
|
|||||||
@@ -12757,12 +12757,12 @@ public final class Settings {
|
|||||||
* <p>
|
* <p>
|
||||||
* Type: int (0 for false, 1 for true)
|
* Type: int (0 for false, 1 for true)
|
||||||
* @hide
|
* @hide
|
||||||
* @deprecated Use {@link android.provider.Telephony.SimInfo#ENHANCED_4G_MODE_ENABLED}
|
* @deprecated Use
|
||||||
* instead.
|
* {@link android.provider.Telephony.SimInfo#COLUMN_ENHANCED_4G_MODE_ENABLED} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static final String ENHANCED_4G_MODE_ENABLED =
|
public static final String ENHANCED_4G_MODE_ENABLED =
|
||||||
Telephony.SimInfo.ENHANCED_4G_MODE_ENABLED;
|
Telephony.SimInfo.COLUMN_ENHANCED_4G_MODE_ENABLED;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether VT (Video Telephony over IMS) is enabled
|
* Whether VT (Video Telephony over IMS) is enabled
|
||||||
@@ -12770,10 +12770,10 @@ public final class Settings {
|
|||||||
* Type: int (0 for false, 1 for true)
|
* Type: int (0 for false, 1 for true)
|
||||||
*
|
*
|
||||||
* @hide
|
* @hide
|
||||||
* @deprecated Use {@link android.provider.Telephony.SimInfo#VT_IMS_ENABLED} instead.
|
* @deprecated Use {@link android.provider.Telephony.SimInfo#COLUMN_VT_IMS_ENABLED} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static final String VT_IMS_ENABLED = Telephony.SimInfo.VT_IMS_ENABLED;
|
public static final String VT_IMS_ENABLED = Telephony.SimInfo.COLUMN_VT_IMS_ENABLED;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether WFC is enabled
|
* Whether WFC is enabled
|
||||||
@@ -12781,10 +12781,11 @@ public final class Settings {
|
|||||||
* Type: int (0 for false, 1 for true)
|
* Type: int (0 for false, 1 for true)
|
||||||
*
|
*
|
||||||
* @hide
|
* @hide
|
||||||
* @deprecated Use {@link android.provider.Telephony.SimInfo#WFC_IMS_ENABLED} instead.
|
* @deprecated Use
|
||||||
|
* {@link android.provider.Telephony.SimInfo#COLUMN_WFC_IMS_ENABLED} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static final String WFC_IMS_ENABLED = Telephony.SimInfo.WFC_IMS_ENABLED;
|
public static final String WFC_IMS_ENABLED = Telephony.SimInfo.COLUMN_WFC_IMS_ENABLED;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* WFC mode on home/non-roaming network.
|
* WFC mode on home/non-roaming network.
|
||||||
@@ -12792,10 +12793,10 @@ public final class Settings {
|
|||||||
* Type: int - 2=Wi-Fi preferred, 1=Cellular preferred, 0=Wi-Fi only
|
* Type: int - 2=Wi-Fi preferred, 1=Cellular preferred, 0=Wi-Fi only
|
||||||
*
|
*
|
||||||
* @hide
|
* @hide
|
||||||
* @deprecated Use {@link android.provider.Telephony.SimInfo#WFC_IMS_MODE} instead.
|
* @deprecated Use {@link android.provider.Telephony.SimInfo#COLUMN_WFC_IMS_MODE} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static final String WFC_IMS_MODE = Telephony.SimInfo.WFC_IMS_MODE;
|
public static final String WFC_IMS_MODE = Telephony.SimInfo.COLUMN_WFC_IMS_MODE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* WFC mode on roaming network.
|
* WFC mode on roaming network.
|
||||||
@@ -12803,11 +12804,12 @@ public final class Settings {
|
|||||||
* Type: int - see {@link #WFC_IMS_MODE} for values
|
* Type: int - see {@link #WFC_IMS_MODE} for values
|
||||||
*
|
*
|
||||||
* @hide
|
* @hide
|
||||||
* @deprecated Use {@link android.provider.Telephony.SimInfo#WFC_IMS_ROAMING_MODE}
|
* @deprecated Use {@link android.provider.Telephony.SimInfo#COLUMN_WFC_IMS_ROAMING_MODE}
|
||||||
* instead.
|
* instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static final String WFC_IMS_ROAMING_MODE = Telephony.SimInfo.WFC_IMS_ROAMING_MODE;
|
public static final String WFC_IMS_ROAMING_MODE =
|
||||||
|
Telephony.SimInfo.COLUMN_WFC_IMS_ROAMING_MODE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether WFC roaming is enabled
|
* Whether WFC roaming is enabled
|
||||||
@@ -12815,12 +12817,12 @@ public final class Settings {
|
|||||||
* Type: int (0 for false, 1 for true)
|
* Type: int (0 for false, 1 for true)
|
||||||
*
|
*
|
||||||
* @hide
|
* @hide
|
||||||
* @deprecated Use {@link android.provider.Telephony.SimInfo#WFC_IMS_ROAMING_ENABLED}
|
* @deprecated Use {@link android.provider.Telephony.SimInfo#COLUMN_WFC_IMS_ROAMING_ENABLED}
|
||||||
* instead
|
* instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static final String WFC_IMS_ROAMING_ENABLED =
|
public static final String WFC_IMS_ROAMING_ENABLED =
|
||||||
Telephony.SimInfo.WFC_IMS_ROAMING_ENABLED;
|
Telephony.SimInfo.COLUMN_WFC_IMS_ROAMING_ENABLED;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether user can enable/disable LTE as a preferred network. A carrier might control
|
* Whether user can enable/disable LTE as a preferred network. A carrier might control
|
||||||
|
|||||||
@@ -4778,7 +4778,6 @@ public final class Telephony {
|
|||||||
* Contains SIM Information
|
* Contains SIM Information
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
|
||||||
public static final class SimInfo {
|
public static final class SimInfo {
|
||||||
/**
|
/**
|
||||||
* Not instantiable.
|
* Not instantiable.
|
||||||
@@ -4788,6 +4787,7 @@ public final class Telephony {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The {@code content://} style URI for this provider.
|
* The {@code content://} style URI for this provider.
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
@NonNull
|
@NonNull
|
||||||
public static final Uri CONTENT_URI = Uri.parse("content://telephony/siminfo");
|
public static final Uri CONTENT_URI = Uri.parse("content://telephony/siminfo");
|
||||||
@@ -4795,25 +4795,32 @@ public final class Telephony {
|
|||||||
/**
|
/**
|
||||||
* TelephonyProvider unique key column name is the subscription id.
|
* TelephonyProvider unique key column name is the subscription id.
|
||||||
* <P>Type: TEXT (String)</P>
|
* <P>Type: TEXT (String)</P>
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String UNIQUE_KEY_SUBSCRIPTION_ID = "_id";
|
public static final String COLUMN_UNIQUE_KEY_SUBSCRIPTION_ID = "_id";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for a unique identifier for the subscription within the
|
* TelephonyProvider column name for a unique identifier for the subscription within the
|
||||||
* specific subscription type. For example, it contains SIM ICC Identifier subscriptions
|
* specific subscription type. For example, it contains SIM ICC Identifier subscriptions
|
||||||
* on Local SIMs. and Mac-address for Remote-SIM Subscriptions for Bluetooth devices.
|
* on Local SIMs. and Mac-address for Remote-SIM Subscriptions for Bluetooth devices.
|
||||||
* <P>Type: TEXT (String)</P>
|
* <P>Type: TEXT (String)</P>
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String ICC_ID = "icc_id";
|
public static final String COLUMN_ICC_ID = "icc_id";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for user SIM_SlOT_INDEX
|
* TelephonyProvider column name for user SIM_SlOT_INDEX
|
||||||
* <P>Type: INTEGER (int)</P>
|
* <P>Type: INTEGER (int)</P>
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String SIM_SLOT_INDEX = "sim_id";
|
public static final String COLUMN_SIM_SLOT_INDEX = "sim_id";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SIM is not inserted
|
* SIM is not inserted
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final int SIM_NOT_INSERTED = -1;
|
public static final int SIM_NOT_INSERTED = -1;
|
||||||
|
|
||||||
@@ -4822,14 +4829,18 @@ public final class Telephony {
|
|||||||
* <P>Type: INTEGER (int)</P> {@link #SUBSCRIPTION_TYPE_LOCAL_SIM} for Local-SIM
|
* <P>Type: INTEGER (int)</P> {@link #SUBSCRIPTION_TYPE_LOCAL_SIM} for Local-SIM
|
||||||
* Subscriptions, {@link #SUBSCRIPTION_TYPE_REMOTE_SIM} for Remote-SIM Subscriptions.
|
* Subscriptions, {@link #SUBSCRIPTION_TYPE_REMOTE_SIM} for Remote-SIM Subscriptions.
|
||||||
* Default value is 0.
|
* Default value is 0.
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String SUBSCRIPTION_TYPE = "subscription_type";
|
public static final String COLUMN_SUBSCRIPTION_TYPE = "subscription_type";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This constant is to designate a subscription as a Local-SIM Subscription.
|
* This constant is to designate a subscription as a Local-SIM Subscription.
|
||||||
* <p> A Local-SIM can be a physical SIM inserted into a sim-slot in the device, or eSIM on
|
* <p> A Local-SIM can be a physical SIM inserted into a sim-slot in the device, or eSIM on
|
||||||
* the device.
|
* the device.
|
||||||
* </p>
|
* </p>
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final int SUBSCRIPTION_TYPE_LOCAL_SIM = 0;
|
public static final int SUBSCRIPTION_TYPE_LOCAL_SIM = 0;
|
||||||
|
|
||||||
@@ -4856,6 +4867,8 @@ public final class Telephony {
|
|||||||
* phone; i.e., new Remote-SIM subscription treats the reconnected phone as a Remote-SIM
|
* phone; i.e., new Remote-SIM subscription treats the reconnected phone as a Remote-SIM
|
||||||
* that was never seen before.
|
* that was never seen before.
|
||||||
* </p>
|
* </p>
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final int SUBSCRIPTION_TYPE_REMOTE_SIM = 1;
|
public static final int SUBSCRIPTION_TYPE_REMOTE_SIM = 1;
|
||||||
|
|
||||||
@@ -4868,71 +4881,89 @@ public final class Telephony {
|
|||||||
* subscription and while is in voice call.
|
* subscription and while is in voice call.
|
||||||
*
|
*
|
||||||
* Default value is empty string.
|
* Default value is empty string.
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String DATA_ENABLED_OVERRIDE_RULES = "data_enabled_override_rules";
|
public static final String COLUMN_DATA_ENABLED_OVERRIDE_RULES =
|
||||||
|
"data_enabled_override_rules";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for user displayed name.
|
* TelephonyProvider column name for user displayed name.
|
||||||
* <P>Type: TEXT (String)</P>
|
* <P>Type: TEXT (String)</P>
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String DISPLAY_NAME = "display_name";
|
public static final String COLUMN_DISPLAY_NAME = "display_name";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for the service provider name for the SIM.
|
* TelephonyProvider column name for the service provider name for the SIM.
|
||||||
* <P>Type: TEXT (String)</P>
|
* <P>Type: TEXT (String)</P>
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String CARRIER_NAME = "carrier_name";
|
public static final String COLUMN_CARRIER_NAME = "carrier_name";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for source of the user displayed name.
|
* TelephonyProvider column name for source of the user displayed name.
|
||||||
* <P>Type: INT (int)</P> with one of the NAME_SOURCE_XXXX values below
|
* <P>Type: INT (int)</P> with one of the NAME_SOURCE_XXXX values below
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String NAME_SOURCE = "name_source";
|
public static final String COLUMN_NAME_SOURCE = "name_source";
|
||||||
|
|
||||||
/** The name_source is the default, which is from the carrier id. */
|
/** The name_source is from the carrier id. {@hide} */
|
||||||
public static final int NAME_SOURCE_DEFAULT = 0;
|
public static final int NAME_SOURCE_CARRIER_ID = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The name_source is from SIM EF_SPN.
|
* The name_source is from SIM EF_SPN.
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final int NAME_SOURCE_SIM_SPN = 1;
|
public static final int NAME_SOURCE_SIM_SPN = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The name_source is from user input
|
* The name_source is from user input
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final int NAME_SOURCE_USER_INPUT = 2;
|
public static final int NAME_SOURCE_USER_INPUT = 2;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The name_source is carrier (carrier app, carrier config, etc.)
|
* The name_source is carrier (carrier app, carrier config, etc.)
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final int NAME_SOURCE_CARRIER = 3;
|
public static final int NAME_SOURCE_CARRIER = 3;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The name_source is from SIM EF_PNN.
|
* The name_source is from SIM EF_PNN.
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final int NAME_SOURCE_SIM_PNN = 4;
|
public static final int NAME_SOURCE_SIM_PNN = 4;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for the color of a SIM.
|
* TelephonyProvider column name for the color of a SIM.
|
||||||
* <P>Type: INTEGER (int)</P>
|
* <P>Type: INTEGER (int)</P>
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String COLOR = "color";
|
public static final String COLUMN_COLOR = "color";
|
||||||
|
|
||||||
/** TelephonyProvider column name for the default color of a SIM {@hide} */
|
/** The default color of a SIM {@hide} */
|
||||||
public static final int COLOR_DEFAULT = 0;
|
public static final int COLOR_DEFAULT = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for the phone number of a SIM.
|
* TelephonyProvider column name for the phone number of a SIM.
|
||||||
* <P>Type: TEXT (String)</P>
|
* <P>Type: TEXT (String)</P>
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String NUMBER = "number";
|
public static final String COLUMN_NUMBER = "number";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for the number display format of a SIM.
|
* TelephonyProvider column name for the number display format of a SIM.
|
||||||
* <P>Type: INTEGER (int)</P>
|
* <P>Type: INTEGER (int)</P>
|
||||||
|
*
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String DISPLAY_NUMBER_FORMAT = "display_number_format";
|
public static final String COLUMN_DISPLAY_NUMBER_FORMAT = "display_number_format";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for the default display format of a SIM
|
* TelephonyProvider column name for the default display format of a SIM
|
||||||
@@ -4943,73 +4974,89 @@ public final class Telephony {
|
|||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for whether data roaming is enabled.
|
* TelephonyProvider column name for whether data roaming is enabled.
|
||||||
* <P>Type: INTEGER (int)</P>
|
* <P>Type: INTEGER (int)</P>
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String DATA_ROAMING = "data_roaming";
|
public static final String COLUMN_DATA_ROAMING = "data_roaming";
|
||||||
|
|
||||||
/** Indicates that data roaming is enabled for a subscription */
|
/** Indicates that data roaming is enabled for a subscription {@hide} */
|
||||||
public static final int DATA_ROAMING_ENABLE = 1;
|
public static final int DATA_ROAMING_ENABLE = 1;
|
||||||
|
|
||||||
/** Indicates that data roaming is disabled for a subscription */
|
/** Indicates that data roaming is disabled for a subscription {@hide} */
|
||||||
public static final int DATA_ROAMING_DISABLE = 0;
|
public static final int DATA_ROAMING_DISABLE = 0;
|
||||||
|
|
||||||
/** TelephonyProvider column name for default data roaming setting: disable */
|
|
||||||
public static final int DATA_ROAMING_DEFAULT = DATA_ROAMING_DISABLE;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for subscription carrier id.
|
* TelephonyProvider column name for subscription carrier id.
|
||||||
* @see TelephonyManager#getSimCarrierId()
|
* @see TelephonyManager#getSimCarrierId()
|
||||||
* <p>Type: INTEGER (int) </p>
|
* <p>Type: INTEGER (int) </p>
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String CARRIER_ID = "carrier_id";
|
public static final String COLUMN_CARRIER_ID = "carrier_id";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A comma-separated list of EHPLMNs associated with the subscription
|
* A comma-separated list of EHPLMNs associated with the subscription
|
||||||
* <P>Type: TEXT (String)</P>
|
* <P>Type: TEXT (String)</P>
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String EHPLMNS = "ehplmns";
|
public static final String COLUMN_EHPLMNS = "ehplmns";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A comma-separated list of HPLMNs associated with the subscription
|
* A comma-separated list of HPLMNs associated with the subscription
|
||||||
* <P>Type: TEXT (String)</P>
|
* <P>Type: TEXT (String)</P>
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String HPLMNS = "hplmns";
|
public static final String COLUMN_HPLMNS = "hplmns";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for the MCC associated with a SIM, stored as a string.
|
* TelephonyProvider column name for the MCC associated with a SIM, stored as a string.
|
||||||
* <P>Type: TEXT (String)</P>
|
* <P>Type: TEXT (String)</P>
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String MCC_STRING = "mcc_string";
|
public static final String COLUMN_MCC_STRING = "mcc_string";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for the MNC associated with a SIM, stored as a string.
|
* TelephonyProvider column name for the MNC associated with a SIM, stored as a string.
|
||||||
* <P>Type: TEXT (String)</P>
|
* <P>Type: TEXT (String)</P>
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String MNC_STRING = "mnc_string";
|
public static final String COLUMN_MNC_STRING = "mnc_string";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for the MCC associated with a SIM.
|
* TelephonyProvider column name for the MCC associated with a SIM.
|
||||||
* <P>Type: INTEGER (int)</P>
|
* <P>Type: INTEGER (int)</P>
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String MCC = "mcc";
|
public static final String COLUMN_MCC = "mcc";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for the MNC associated with a SIM.
|
* TelephonyProvider column name for the MNC associated with a SIM.
|
||||||
* <P>Type: INTEGER (int)</P>
|
* <P>Type: INTEGER (int)</P>
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String MNC = "mnc";
|
public static final String COLUMN_MNC = "mnc";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for the iso country code associated with a SIM.
|
* TelephonyProvider column name for the iso country code associated with a SIM.
|
||||||
* <P>Type: TEXT (String)</P>
|
* <P>Type: TEXT (String)</P>
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String ISO_COUNTRY_CODE = "iso_country_code";
|
public static final String COLUMN_ISO_COUNTRY_CODE = "iso_country_code";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for the sim provisioning status associated with a SIM.
|
* TelephonyProvider column name for the sim provisioning status associated with a SIM.
|
||||||
* <P>Type: INTEGER (int)</P>
|
* <P>Type: INTEGER (int)</P>
|
||||||
|
*
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String SIM_PROVISIONING_STATUS = "sim_provisioning_status";
|
public static final String COLUMN_SIM_PROVISIONING_STATUS = "sim_provisioning_status";
|
||||||
|
|
||||||
/** The sim is provisioned {@hide} */
|
/** The sim is provisioned {@hide} */
|
||||||
public static final int SIM_PROVISIONED = 0;
|
public static final int SIM_PROVISIONED = 0;
|
||||||
@@ -5018,147 +5065,174 @@ public final class Telephony {
|
|||||||
* TelephonyProvider column name for whether a subscription is embedded (that is, present on
|
* TelephonyProvider column name for whether a subscription is embedded (that is, present on
|
||||||
* an eSIM).
|
* an eSIM).
|
||||||
* <p>Type: INTEGER (int), 1 for embedded or 0 for non-embedded.
|
* <p>Type: INTEGER (int), 1 for embedded or 0 for non-embedded.
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String IS_EMBEDDED = "is_embedded";
|
public static final String COLUMN_IS_EMBEDDED = "is_embedded";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for SIM card identifier. For UICC card it is the ICCID of
|
* TelephonyProvider column name for SIM card identifier. For UICC card it is the ICCID of
|
||||||
* the current enabled profile on the card, while for eUICC card it is the EID of the card.
|
* the current enabled profile on the card, while for eUICC card it is the EID of the card.
|
||||||
* <P>Type: TEXT (String)</P>
|
* <P>Type: TEXT (String)</P>
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String CARD_ID = "card_id";
|
public static final String COLUMN_CARD_ID = "card_id";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for the encoded {@link UiccAccessRule}s from
|
* TelephonyProvider column name for the encoded {@link UiccAccessRule}s from
|
||||||
* {@link UiccAccessRule#encodeRules}. Only present if {@link #IS_EMBEDDED} is 1.
|
* {@link UiccAccessRule#encodeRules}. Only present if {@link #COLUMN_IS_EMBEDDED} is 1.
|
||||||
* <p>TYPE: BLOB
|
* <p>TYPE: BLOB
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String ACCESS_RULES = "access_rules";
|
public static final String COLUMN_ACCESS_RULES = "access_rules";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for the encoded {@link UiccAccessRule}s from
|
* TelephonyProvider column name for the encoded {@link UiccAccessRule}s from
|
||||||
* {@link UiccAccessRule#encodeRules} but for the rules that come from CarrierConfigs.
|
* {@link UiccAccessRule#encodeRules} but for the rules that come from CarrierConfigs.
|
||||||
* Only present if there are access rules in CarrierConfigs
|
* Only present if there are access rules in CarrierConfigs
|
||||||
* <p>TYPE: BLOB
|
* <p>TYPE: BLOB
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String ACCESS_RULES_FROM_CARRIER_CONFIGS =
|
public static final String COLUMN_ACCESS_RULES_FROM_CARRIER_CONFIGS =
|
||||||
"access_rules_from_carrier_configs";
|
"access_rules_from_carrier_configs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name identifying whether an embedded subscription is on a
|
* TelephonyProvider column name identifying whether an embedded subscription is on a
|
||||||
* removable card. Such subscriptions are marked inaccessible as soon as the current card
|
* removable card. Such subscriptions are marked inaccessible as soon as the current card
|
||||||
* is removed. Otherwise, they will remain accessible unless explicitly deleted. Only
|
* is removed. Otherwise, they will remain accessible unless explicitly deleted. Only
|
||||||
* present if {@link #IS_EMBEDDED} is 1.
|
* present if {@link #COLUMN_IS_EMBEDDED} is 1.
|
||||||
* <p>TYPE: INTEGER (int), 1 for removable or 0 for non-removable.
|
* <p>TYPE: INTEGER (int), 1 for removable or 0 for non-removable.
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String IS_REMOVABLE = "is_removable";
|
public static final String COLUMN_IS_REMOVABLE = "is_removable";
|
||||||
|
|
||||||
/** TelephonyProvider column name for extreme threat in CB settings */
|
/** TelephonyProvider column name for extreme threat in CB settings {@hide} */
|
||||||
public static final String CB_EXTREME_THREAT_ALERT = "enable_cmas_extreme_threat_alerts";
|
public static final String COLUMN_CB_EXTREME_THREAT_ALERT =
|
||||||
|
"enable_cmas_extreme_threat_alerts";
|
||||||
|
|
||||||
/** TelephonyProvider column name for severe threat in CB settings */
|
/** TelephonyProvider column name for severe threat in CB settings {@hide} */
|
||||||
public static final String CB_SEVERE_THREAT_ALERT = "enable_cmas_severe_threat_alerts";
|
public static final String COLUMN_CB_SEVERE_THREAT_ALERT =
|
||||||
|
"enable_cmas_severe_threat_alerts";
|
||||||
|
|
||||||
/** TelephonyProvider column name for amber alert in CB settings */
|
/** TelephonyProvider column name for amber alert in CB settings {@hide} */
|
||||||
public static final String CB_AMBER_ALERT = "enable_cmas_amber_alerts";
|
public static final String COLUMN_CB_AMBER_ALERT = "enable_cmas_amber_alerts";
|
||||||
|
|
||||||
/** TelephonyProvider column name for emergency alert in CB settings */
|
/** TelephonyProvider column name for emergency alert in CB settings {@hide} */
|
||||||
public static final String CB_EMERGENCY_ALERT = "enable_emergency_alerts";
|
public static final String COLUMN_CB_EMERGENCY_ALERT = "enable_emergency_alerts";
|
||||||
|
|
||||||
/** TelephonyProvider column name for alert sound duration in CB settings */
|
/** TelephonyProvider column name for alert sound duration in CB settings {@hide} */
|
||||||
public static final String CB_ALERT_SOUND_DURATION = "alert_sound_duration";
|
public static final String COLUMN_CB_ALERT_SOUND_DURATION = "alert_sound_duration";
|
||||||
|
|
||||||
/** TelephonyProvider column name for alert reminder interval in CB settings */
|
/** TelephonyProvider column name for alert reminder interval in CB settings {@hide} */
|
||||||
public static final String CB_ALERT_REMINDER_INTERVAL = "alert_reminder_interval";
|
public static final String COLUMN_CB_ALERT_REMINDER_INTERVAL = "alert_reminder_interval";
|
||||||
|
|
||||||
/** TelephonyProvider column name for enabling vibrate in CB settings */
|
/** TelephonyProvider column name for enabling vibrate in CB settings {@hide} */
|
||||||
public static final String CB_ALERT_VIBRATE = "enable_alert_vibrate";
|
public static final String COLUMN_CB_ALERT_VIBRATE = "enable_alert_vibrate";
|
||||||
|
|
||||||
/** TelephonyProvider column name for enabling alert speech in CB settings */
|
/** TelephonyProvider column name for enabling alert speech in CB settings {@hide} */
|
||||||
public static final String CB_ALERT_SPEECH = "enable_alert_speech";
|
public static final String COLUMN_CB_ALERT_SPEECH = "enable_alert_speech";
|
||||||
|
|
||||||
/** TelephonyProvider column name for ETWS test alert in CB settings */
|
/** TelephonyProvider column name for ETWS test alert in CB settings {@hide} */
|
||||||
public static final String CB_ETWS_TEST_ALERT = "enable_etws_test_alerts";
|
public static final String COLUMN_CB_ETWS_TEST_ALERT = "enable_etws_test_alerts";
|
||||||
|
|
||||||
/** TelephonyProvider column name for enable channel50 alert in CB settings */
|
/** TelephonyProvider column name for enable channel50 alert in CB settings {@hide} */
|
||||||
public static final String CB_CHANNEL_50_ALERT = "enable_channel_50_alerts";
|
public static final String COLUMN_CB_CHANNEL_50_ALERT = "enable_channel_50_alerts";
|
||||||
|
|
||||||
/** TelephonyProvider column name for CMAS test alert in CB settings */
|
/** TelephonyProvider column name for CMAS test alert in CB settings {@hide} */
|
||||||
public static final String CB_CMAS_TEST_ALERT = "enable_cmas_test_alerts";
|
public static final String COLUMN_CB_CMAS_TEST_ALERT = "enable_cmas_test_alerts";
|
||||||
|
|
||||||
/** TelephonyProvider column name for Opt out dialog in CB settings */
|
/** TelephonyProvider column name for Opt out dialog in CB settings {@hide} */
|
||||||
public static final String CB_OPT_OUT_DIALOG = "show_cmas_opt_out_dialog";
|
public static final String COLUMN_CB_OPT_OUT_DIALOG = "show_cmas_opt_out_dialog";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for enable Volte.
|
* TelephonyProvider column name for enable Volte.
|
||||||
*
|
*
|
||||||
* If this setting is not initialized (set to -1) then we use the Carrier Config value
|
* If this setting is not initialized (set to -1) then we use the Carrier Config value
|
||||||
* {@link CarrierConfigManager#KEY_ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL}.
|
* {@link CarrierConfigManager#KEY_ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL}.
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String ENHANCED_4G_MODE_ENABLED = "volte_vt_enabled";
|
public static final String COLUMN_ENHANCED_4G_MODE_ENABLED = "volte_vt_enabled";
|
||||||
|
|
||||||
/** TelephonyProvider column name for enable VT (Video Telephony over IMS) */
|
/** TelephonyProvider column name for enable VT (Video Telephony over IMS) {@hide} */
|
||||||
public static final String VT_IMS_ENABLED = "vt_ims_enabled";
|
public static final String COLUMN_VT_IMS_ENABLED = "vt_ims_enabled";
|
||||||
|
|
||||||
/** TelephonyProvider column name for enable Wifi calling */
|
/** TelephonyProvider column name for enable Wifi calling {@hide} */
|
||||||
public static final String WFC_IMS_ENABLED = "wfc_ims_enabled";
|
public static final String COLUMN_WFC_IMS_ENABLED = "wfc_ims_enabled";
|
||||||
|
|
||||||
/** TelephonyProvider column name for Wifi calling mode */
|
/** TelephonyProvider column name for Wifi calling mode {@hide} */
|
||||||
public static final String WFC_IMS_MODE = "wfc_ims_mode";
|
public static final String COLUMN_WFC_IMS_MODE = "wfc_ims_mode";
|
||||||
|
|
||||||
/** TelephonyProvider column name for Wifi calling mode in roaming */
|
/** TelephonyProvider column name for Wifi calling mode in roaming {@hide} */
|
||||||
public static final String WFC_IMS_ROAMING_MODE = "wfc_ims_roaming_mode";
|
public static final String COLUMN_WFC_IMS_ROAMING_MODE = "wfc_ims_roaming_mode";
|
||||||
|
|
||||||
/** TelephonyProvider column name for enable Wifi calling in roaming */
|
/** TelephonyProvider column name for enable Wifi calling in roaming {@hide} */
|
||||||
public static final String WFC_IMS_ROAMING_ENABLED = "wfc_ims_roaming_enabled";
|
public static final String COLUMN_WFC_IMS_ROAMING_ENABLED = "wfc_ims_roaming_enabled";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for determining if the user has enabled IMS RCS User
|
* TelephonyProvider column name for determining if the user has enabled IMS RCS User
|
||||||
* Capability Exchange (UCE) for this subscription.
|
* Capability Exchange (UCE) for this subscription.
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String IMS_RCS_UCE_ENABLED = "ims_rcs_uce_enabled";
|
public static final String COLUMN_IMS_RCS_UCE_ENABLED = "ims_rcs_uce_enabled";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for whether a subscription is opportunistic, that is,
|
* TelephonyProvider column name for whether a subscription is opportunistic, that is,
|
||||||
* whether the network it connects to is limited in functionality or coverage.
|
* whether the network it connects to is limited in functionality or coverage.
|
||||||
* For example, CBRS.
|
* For example, CBRS.
|
||||||
* <p>Type: INTEGER (int), 1 for opportunistic or 0 for non-opportunistic.
|
* <p>Type: INTEGER (int), 1 for opportunistic or 0 for non-opportunistic.
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String IS_OPPORTUNISTIC = "is_opportunistic";
|
public static final String COLUMN_IS_OPPORTUNISTIC = "is_opportunistic";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for group ID. Subscriptions with same group ID
|
* TelephonyProvider column name for group ID. Subscriptions with same group ID
|
||||||
* are considered bundled together, and should behave as a single subscription at
|
* are considered bundled together, and should behave as a single subscription at
|
||||||
* certain scenarios.
|
* certain scenarios.
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String GROUP_UUID = "group_uuid";
|
public static final String COLUMN_GROUP_UUID = "group_uuid";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for group owner. It's the package name who created
|
* TelephonyProvider column name for group owner. It's the package name who created
|
||||||
* the subscription group.
|
* the subscription group.
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String GROUP_OWNER = "group_owner";
|
public static final String COLUMN_GROUP_OWNER = "group_owner";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for whether a subscription is metered or not, that is,
|
* TelephonyProvider column name for whether a subscription is metered or not, that is,
|
||||||
* whether the network it connects to charges for subscription or not. For example, paid
|
* whether the network it connects to charges for subscription or not. For example, paid
|
||||||
* CBRS or unpaid.
|
* CBRS or unpaid.
|
||||||
|
*
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String IS_METERED = "is_metered";
|
public static final String COLUMN_IS_METERED = "is_metered";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for the profile class of a subscription
|
* TelephonyProvider column name for the profile class of a subscription
|
||||||
* Only present if {@link #IS_EMBEDDED} is 1.
|
* Only present if {@link #COLUMN_IS_EMBEDDED} is 1.
|
||||||
* <P>Type: INTEGER (int)</P>
|
* <P>Type: INTEGER (int)</P>
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String PROFILE_CLASS = "profile_class";
|
public static final String COLUMN_PROFILE_CLASS = "profile_class";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A testing profile can be pre-loaded or downloaded onto
|
* A testing profile can be pre-loaded or downloaded onto
|
||||||
* the eUICC and provides connectivity to test equipment
|
* the eUICC and provides connectivity to test equipment
|
||||||
* for the purpose of testing the device and the eUICC. It
|
* for the purpose of testing the device and the eUICC. It
|
||||||
* is not intended to store any operator credentials.
|
* is not intended to store any operator credentials.
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final int PROFILE_CLASS_TESTING = 0;
|
public static final int PROFILE_CLASS_TESTING = 0;
|
||||||
|
|
||||||
@@ -5166,6 +5240,8 @@ public final class Telephony {
|
|||||||
* A provisioning profile is pre-loaded onto the eUICC and
|
* A provisioning profile is pre-loaded onto the eUICC and
|
||||||
* provides connectivity to a mobile network solely for the
|
* provides connectivity to a mobile network solely for the
|
||||||
* purpose of provisioning profiles.
|
* purpose of provisioning profiles.
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final int PROFILE_CLASS_PROVISIONING = 1;
|
public static final int PROFILE_CLASS_PROVISIONING = 1;
|
||||||
|
|
||||||
@@ -5173,6 +5249,8 @@ public final class Telephony {
|
|||||||
* An operational profile can be pre-loaded or downloaded
|
* An operational profile can be pre-loaded or downloaded
|
||||||
* onto the eUICC and provides services provided by the
|
* onto the eUICC and provides services provided by the
|
||||||
* operator.
|
* operator.
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final int PROFILE_CLASS_OPERATIONAL = 2;
|
public static final int PROFILE_CLASS_OPERATIONAL = 2;
|
||||||
|
|
||||||
@@ -5180,26 +5258,32 @@ public final class Telephony {
|
|||||||
* The profile class is unset. This occurs when profile class
|
* The profile class is unset. This occurs when profile class
|
||||||
* info is not available. The subscription either has no profile
|
* info is not available. The subscription either has no profile
|
||||||
* metadata or the profile metadata did not encode profile class.
|
* metadata or the profile metadata did not encode profile class.
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final int PROFILE_CLASS_UNSET = -1;
|
public static final int PROFILE_CLASS_UNSET = -1;
|
||||||
|
|
||||||
/** Default profile class */
|
|
||||||
public static final int PROFILE_CLASS_DEFAULT = PROFILE_CLASS_UNSET;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* IMSI (International Mobile Subscriber Identity).
|
* IMSI (International Mobile Subscriber Identity).
|
||||||
* <P>Type: TEXT </P>
|
* <P>Type: TEXT </P>
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String IMSI = "imsi";
|
public static final String COLUMN_IMSI = "imsi";
|
||||||
|
|
||||||
/** Whether uicc applications is set to be enabled or disabled. By default it's enabled. */
|
/**
|
||||||
public static final String UICC_APPLICATIONS_ENABLED = "uicc_applications_enabled";
|
* Whether uicc applications is set to be enabled or disabled. By default it's enabled.
|
||||||
|
* @hide
|
||||||
|
*/
|
||||||
|
public static final String COLUMN_UICC_APPLICATIONS_ENABLED = "uicc_applications_enabled";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for allowed network types. Indicate which network types
|
* TelephonyProvider column name for allowed network types. Indicate which network types
|
||||||
* are allowed. Default is -1.
|
* are allowed. Default is -1.
|
||||||
* <P>Type: BIGINT (long) </P>
|
* <P>Type: BIGINT (long) </P>
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String ALLOWED_NETWORK_TYPES = "allowed_network_types";
|
public static final String COLUMN_ALLOWED_NETWORK_TYPES = "allowed_network_types";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ package com.android.keyguard;
|
|||||||
|
|
||||||
import static android.telephony.SubscriptionManager.DATA_ROAMING_DISABLE;
|
import static android.telephony.SubscriptionManager.DATA_ROAMING_DISABLE;
|
||||||
import static android.telephony.SubscriptionManager.DATA_ROAMING_ENABLE;
|
import static android.telephony.SubscriptionManager.DATA_ROAMING_ENABLE;
|
||||||
import static android.telephony.SubscriptionManager.NAME_SOURCE_DEFAULT;
|
import static android.telephony.SubscriptionManager.NAME_SOURCE_CARRIER_ID;
|
||||||
|
|
||||||
import static junit.framework.Assert.assertTrue;
|
import static junit.framework.Assert.assertTrue;
|
||||||
import static junit.framework.TestCase.assertFalse;
|
import static junit.framework.TestCase.assertFalse;
|
||||||
@@ -83,14 +83,14 @@ public class CarrierTextControllerTest extends SysuiTestCase {
|
|||||||
private static final String TEST_CARRIER_2 = "TEST_CARRIER_2";
|
private static final String TEST_CARRIER_2 = "TEST_CARRIER_2";
|
||||||
private static final int TEST_CARRIER_ID = 1;
|
private static final int TEST_CARRIER_ID = 1;
|
||||||
private static final SubscriptionInfo TEST_SUBSCRIPTION = new SubscriptionInfo(0, "", 0,
|
private static final SubscriptionInfo TEST_SUBSCRIPTION = new SubscriptionInfo(0, "", 0,
|
||||||
TEST_CARRIER, TEST_CARRIER, NAME_SOURCE_DEFAULT, 0xFFFFFF, "",
|
TEST_CARRIER, TEST_CARRIER, NAME_SOURCE_CARRIER_ID, 0xFFFFFF, "",
|
||||||
DATA_ROAMING_DISABLE, null, null, null, null, false, null, "", false, null,
|
DATA_ROAMING_DISABLE, null, null, null, null, false, null, "", false, null,
|
||||||
TEST_CARRIER_ID, 0);
|
TEST_CARRIER_ID, 0);
|
||||||
private static final SubscriptionInfo TEST_SUBSCRIPTION_NULL = new SubscriptionInfo(0, "", 0,
|
private static final SubscriptionInfo TEST_SUBSCRIPTION_NULL = new SubscriptionInfo(0, "", 0,
|
||||||
TEST_CARRIER, null, NAME_SOURCE_DEFAULT, 0xFFFFFF, "", DATA_ROAMING_DISABLE,
|
TEST_CARRIER, null, NAME_SOURCE_CARRIER_ID, 0xFFFFFF, "", DATA_ROAMING_DISABLE,
|
||||||
null, null, null, null, false, null, "");
|
null, null, null, null, false, null, "");
|
||||||
private static final SubscriptionInfo TEST_SUBSCRIPTION_ROAMING = new SubscriptionInfo(0, "", 0,
|
private static final SubscriptionInfo TEST_SUBSCRIPTION_ROAMING = new SubscriptionInfo(0, "", 0,
|
||||||
TEST_CARRIER, TEST_CARRIER, NAME_SOURCE_DEFAULT, 0xFFFFFF, "",
|
TEST_CARRIER, TEST_CARRIER, NAME_SOURCE_CARRIER_ID, 0xFFFFFF, "",
|
||||||
DATA_ROAMING_ENABLE, null, null, null, null, false, null, "");
|
DATA_ROAMING_ENABLE, null, null, null, null, false, null, "");
|
||||||
@Mock
|
@Mock
|
||||||
private WifiManager mWifiManager;
|
private WifiManager mWifiManager;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
package com.android.keyguard;
|
package com.android.keyguard;
|
||||||
|
|
||||||
import static android.telephony.SubscriptionManager.DATA_ROAMING_DISABLE;
|
import static android.telephony.SubscriptionManager.DATA_ROAMING_DISABLE;
|
||||||
import static android.telephony.SubscriptionManager.NAME_SOURCE_DEFAULT;
|
import static android.telephony.SubscriptionManager.NAME_SOURCE_CARRIER_ID;
|
||||||
|
|
||||||
import static com.google.common.truth.Truth.assertThat;
|
import static com.google.common.truth.Truth.assertThat;
|
||||||
|
|
||||||
@@ -89,11 +89,11 @@ public class KeyguardUpdateMonitorTest extends SysuiTestCase {
|
|||||||
private static final int TEST_CARRIER_ID = 1;
|
private static final int TEST_CARRIER_ID = 1;
|
||||||
private static final String TEST_GROUP_UUID = "59b5c870-fc4c-47a4-a99e-9db826b48b24";
|
private static final String TEST_GROUP_UUID = "59b5c870-fc4c-47a4-a99e-9db826b48b24";
|
||||||
private static final SubscriptionInfo TEST_SUBSCRIPTION = new SubscriptionInfo(1, "", 0,
|
private static final SubscriptionInfo TEST_SUBSCRIPTION = new SubscriptionInfo(1, "", 0,
|
||||||
TEST_CARRIER, TEST_CARRIER, NAME_SOURCE_DEFAULT, 0xFFFFFF, "",
|
TEST_CARRIER, TEST_CARRIER, NAME_SOURCE_CARRIER_ID, 0xFFFFFF, "",
|
||||||
DATA_ROAMING_DISABLE, null, null, null, null, false, null, "", false, TEST_GROUP_UUID,
|
DATA_ROAMING_DISABLE, null, null, null, null, false, null, "", false, TEST_GROUP_UUID,
|
||||||
TEST_CARRIER_ID, 0);
|
TEST_CARRIER_ID, 0);
|
||||||
private static final SubscriptionInfo TEST_SUBSCRIPTION_2 = new SubscriptionInfo(2, "", 0,
|
private static final SubscriptionInfo TEST_SUBSCRIPTION_2 = new SubscriptionInfo(2, "", 0,
|
||||||
TEST_CARRIER, TEST_CARRIER_2, NAME_SOURCE_DEFAULT, 0xFFFFFF, "",
|
TEST_CARRIER, TEST_CARRIER_2, NAME_SOURCE_CARRIER_ID, 0xFFFFFF, "",
|
||||||
DATA_ROAMING_DISABLE, null, null, null, null, false, null, "", true, TEST_GROUP_UUID,
|
DATA_ROAMING_DISABLE, null, null, null, null, false, null, "", true, TEST_GROUP_UUID,
|
||||||
TEST_CARRIER_ID, 0);
|
TEST_CARRIER_ID, 0);
|
||||||
@Mock
|
@Mock
|
||||||
|
|||||||
@@ -710,11 +710,11 @@ package android.telephony {
|
|||||||
method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setUiccApplicationsEnabled(int, boolean);
|
method @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setUiccApplicationsEnabled(int, boolean);
|
||||||
field @RequiresPermission(android.Manifest.permission.MANAGE_SUBSCRIPTION_PLANS) public static final String ACTION_SUBSCRIPTION_PLANS_CHANGED = "android.telephony.action.SUBSCRIPTION_PLANS_CHANGED";
|
field @RequiresPermission(android.Manifest.permission.MANAGE_SUBSCRIPTION_PLANS) public static final String ACTION_SUBSCRIPTION_PLANS_CHANGED = "android.telephony.action.SUBSCRIPTION_PLANS_CHANGED";
|
||||||
field @NonNull public static final android.net.Uri ADVANCED_CALLING_ENABLED_CONTENT_URI;
|
field @NonNull public static final android.net.Uri ADVANCED_CALLING_ENABLED_CONTENT_URI;
|
||||||
field public static final int PROFILE_CLASS_DEFAULT = -1; // 0xffffffff
|
field @Deprecated public static final int PROFILE_CLASS_DEFAULT;
|
||||||
field public static final int PROFILE_CLASS_OPERATIONAL = 2; // 0x2
|
field public static final int PROFILE_CLASS_OPERATIONAL;
|
||||||
field public static final int PROFILE_CLASS_PROVISIONING = 1; // 0x1
|
field public static final int PROFILE_CLASS_PROVISIONING;
|
||||||
field public static final int PROFILE_CLASS_TESTING = 0; // 0x0
|
field public static final int PROFILE_CLASS_TESTING;
|
||||||
field public static final int PROFILE_CLASS_UNSET = -1; // 0xffffffff
|
field public static final int PROFILE_CLASS_UNSET;
|
||||||
field @NonNull public static final android.net.Uri VT_ENABLED_CONTENT_URI;
|
field @NonNull public static final android.net.Uri VT_ENABLED_CONTENT_URI;
|
||||||
field @NonNull public static final android.net.Uri WFC_ENABLED_CONTENT_URI;
|
field @NonNull public static final android.net.Uri WFC_ENABLED_CONTENT_URI;
|
||||||
field @NonNull public static final android.net.Uri WFC_MODE_CONTENT_URI;
|
field @NonNull public static final android.net.Uri WFC_MODE_CONTENT_URI;
|
||||||
|
|||||||
@@ -240,7 +240,7 @@ public class SubscriptionInfo implements Parcelable {
|
|||||||
this(id, iccId, simSlotIndex, displayName, carrierName, nameSource, iconTint, number,
|
this(id, iccId, simSlotIndex, displayName, carrierName, nameSource, iconTint, number,
|
||||||
roaming, icon, mcc, mnc, countryIso, isEmbedded, nativeAccessRules, cardString, -1,
|
roaming, icon, mcc, mnc, countryIso, isEmbedded, nativeAccessRules, cardString, -1,
|
||||||
false, null, false, TelephonyManager.UNKNOWN_CARRIER_ID,
|
false, null, false, TelephonyManager.UNKNOWN_CARRIER_ID,
|
||||||
SubscriptionManager.PROFILE_CLASS_DEFAULT,
|
SubscriptionManager.PROFILE_CLASS_UNSET,
|
||||||
SubscriptionManager.SUBSCRIPTION_TYPE_LOCAL_SIM, null, null, true);
|
SubscriptionManager.SUBSCRIPTION_TYPE_LOCAL_SIM, null, null, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -262,7 +262,8 @@ public class SubscriptionManager {
|
|||||||
* <P>Type: TEXT (String)</P>
|
* <P>Type: TEXT (String)</P>
|
||||||
*/
|
*/
|
||||||
/** @hide */
|
/** @hide */
|
||||||
public static final String UNIQUE_KEY_SUBSCRIPTION_ID = SimInfo.UNIQUE_KEY_SUBSCRIPTION_ID;
|
public static final String UNIQUE_KEY_SUBSCRIPTION_ID =
|
||||||
|
SimInfo.COLUMN_UNIQUE_KEY_SUBSCRIPTION_ID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for a unique identifier for the subscription within the
|
* TelephonyProvider column name for a unique identifier for the subscription within the
|
||||||
@@ -271,14 +272,14 @@ public class SubscriptionManager {
|
|||||||
* <P>Type: TEXT (String)</P>
|
* <P>Type: TEXT (String)</P>
|
||||||
*/
|
*/
|
||||||
/** @hide */
|
/** @hide */
|
||||||
public static final String ICC_ID = SimInfo.ICC_ID;
|
public static final String ICC_ID = SimInfo.COLUMN_ICC_ID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for user SIM_SlOT_INDEX
|
* TelephonyProvider column name for user SIM_SlOT_INDEX
|
||||||
* <P>Type: INTEGER (int)</P>
|
* <P>Type: INTEGER (int)</P>
|
||||||
*/
|
*/
|
||||||
/** @hide */
|
/** @hide */
|
||||||
public static final String SIM_SLOT_INDEX = SimInfo.SIM_SLOT_INDEX;
|
public static final String SIM_SLOT_INDEX = SimInfo.COLUMN_SIM_SLOT_INDEX;
|
||||||
|
|
||||||
/** SIM is not inserted */
|
/** SIM is not inserted */
|
||||||
/** @hide */
|
/** @hide */
|
||||||
@@ -297,7 +298,7 @@ public class SubscriptionManager {
|
|||||||
* Default value is 0.
|
* Default value is 0.
|
||||||
*/
|
*/
|
||||||
/** @hide */
|
/** @hide */
|
||||||
public static final String SUBSCRIPTION_TYPE = SimInfo.SUBSCRIPTION_TYPE;
|
public static final String SUBSCRIPTION_TYPE = SimInfo.COLUMN_SUBSCRIPTION_TYPE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name data_enabled_override_rules.
|
* TelephonyProvider column name data_enabled_override_rules.
|
||||||
@@ -310,7 +311,8 @@ public class SubscriptionManager {
|
|||||||
*
|
*
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String DATA_ENABLED_OVERRIDE_RULES = SimInfo.DATA_ENABLED_OVERRIDE_RULES;
|
public static final String DATA_ENABLED_OVERRIDE_RULES =
|
||||||
|
SimInfo.COLUMN_DATA_ENABLED_OVERRIDE_RULES;
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.SOURCE)
|
||||||
@@ -359,14 +361,14 @@ public class SubscriptionManager {
|
|||||||
* <P>Type: TEXT (String)</P>
|
* <P>Type: TEXT (String)</P>
|
||||||
*/
|
*/
|
||||||
/** @hide */
|
/** @hide */
|
||||||
public static final String DISPLAY_NAME = SimInfo.DISPLAY_NAME;
|
public static final String DISPLAY_NAME = SimInfo.COLUMN_DISPLAY_NAME;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for the service provider name for the SIM.
|
* TelephonyProvider column name for the service provider name for the SIM.
|
||||||
* <P>Type: TEXT (String)</P>
|
* <P>Type: TEXT (String)</P>
|
||||||
*/
|
*/
|
||||||
/** @hide */
|
/** @hide */
|
||||||
public static final String CARRIER_NAME = SimInfo.CARRIER_NAME;
|
public static final String CARRIER_NAME = SimInfo.COLUMN_CARRIER_NAME;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default name resource
|
* Default name resource
|
||||||
@@ -380,13 +382,13 @@ public class SubscriptionManager {
|
|||||||
*
|
*
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String NAME_SOURCE = SimInfo.NAME_SOURCE;
|
public static final String NAME_SOURCE = SimInfo.COLUMN_NAME_SOURCE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The name_source is the default, which is from the carrier id.
|
* The name_source is from the carrier id.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final int NAME_SOURCE_DEFAULT = SimInfo.NAME_SOURCE_DEFAULT;
|
public static final int NAME_SOURCE_CARRIER_ID = SimInfo.NAME_SOURCE_CARRIER_ID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The name_source is from SIM EF_SPN.
|
* The name_source is from SIM EF_SPN.
|
||||||
@@ -417,7 +419,7 @@ public class SubscriptionManager {
|
|||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.SOURCE)
|
||||||
@IntDef(prefix = {"NAME_SOURCE_"},
|
@IntDef(prefix = {"NAME_SOURCE_"},
|
||||||
value = {
|
value = {
|
||||||
NAME_SOURCE_DEFAULT,
|
NAME_SOURCE_CARRIER_ID,
|
||||||
NAME_SOURCE_SIM_SPN,
|
NAME_SOURCE_SIM_SPN,
|
||||||
NAME_SOURCE_USER_INPUT,
|
NAME_SOURCE_USER_INPUT,
|
||||||
NAME_SOURCE_CARRIER,
|
NAME_SOURCE_CARRIER,
|
||||||
@@ -430,21 +432,21 @@ public class SubscriptionManager {
|
|||||||
* <P>Type: INTEGER (int)</P>
|
* <P>Type: INTEGER (int)</P>
|
||||||
*/
|
*/
|
||||||
/** @hide */
|
/** @hide */
|
||||||
public static final String COLOR = SimInfo.COLOR;
|
public static final String HUE = SimInfo.COLUMN_COLOR;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for the phone number of a SIM.
|
* TelephonyProvider column name for the phone number of a SIM.
|
||||||
* <P>Type: TEXT (String)</P>
|
* <P>Type: TEXT (String)</P>
|
||||||
*/
|
*/
|
||||||
/** @hide */
|
/** @hide */
|
||||||
public static final String NUMBER = SimInfo.NUMBER;
|
public static final String NUMBER = SimInfo.COLUMN_NUMBER;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for whether data roaming is enabled.
|
* TelephonyProvider column name for whether data roaming is enabled.
|
||||||
* <P>Type: INTEGER (int)</P>
|
* <P>Type: INTEGER (int)</P>
|
||||||
*/
|
*/
|
||||||
/** @hide */
|
/** @hide */
|
||||||
public static final String DATA_ROAMING = SimInfo.DATA_ROAMING;
|
public static final String DATA_ROAMING = SimInfo.COLUMN_DATA_ROAMING;
|
||||||
|
|
||||||
/** Indicates that data roaming is enabled for a subscription */
|
/** Indicates that data roaming is enabled for a subscription */
|
||||||
public static final int DATA_ROAMING_ENABLE = SimInfo.DATA_ROAMING_ENABLE;
|
public static final int DATA_ROAMING_ENABLE = SimInfo.DATA_ROAMING_ENABLE;
|
||||||
@@ -452,63 +454,60 @@ public class SubscriptionManager {
|
|||||||
/** Indicates that data roaming is disabled for a subscription */
|
/** Indicates that data roaming is disabled for a subscription */
|
||||||
public static final int DATA_ROAMING_DISABLE = SimInfo.DATA_ROAMING_DISABLE;
|
public static final int DATA_ROAMING_DISABLE = SimInfo.DATA_ROAMING_DISABLE;
|
||||||
|
|
||||||
/** @hide */
|
|
||||||
public static final int DATA_ROAMING_DEFAULT = SimInfo.DATA_ROAMING_DEFAULT;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for subscription carrier id.
|
* TelephonyProvider column name for subscription carrier id.
|
||||||
* @see TelephonyManager#getSimCarrierId()
|
* @see TelephonyManager#getSimCarrierId()
|
||||||
* <p>Type: INTEGER (int) </p>
|
* <p>Type: INTEGER (int) </p>
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String CARRIER_ID = SimInfo.CARRIER_ID;
|
public static final String CARRIER_ID = SimInfo.COLUMN_CARRIER_ID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @hide A comma-separated list of EHPLMNs associated with the subscription
|
* @hide A comma-separated list of EHPLMNs associated with the subscription
|
||||||
* <P>Type: TEXT (String)</P>
|
* <P>Type: TEXT (String)</P>
|
||||||
*/
|
*/
|
||||||
public static final String EHPLMNS = SimInfo.EHPLMNS;
|
public static final String EHPLMNS = SimInfo.COLUMN_EHPLMNS;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @hide A comma-separated list of HPLMNs associated with the subscription
|
* @hide A comma-separated list of HPLMNs associated with the subscription
|
||||||
* <P>Type: TEXT (String)</P>
|
* <P>Type: TEXT (String)</P>
|
||||||
*/
|
*/
|
||||||
public static final String HPLMNS = SimInfo.HPLMNS;
|
public static final String HPLMNS = SimInfo.COLUMN_HPLMNS;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for the MCC associated with a SIM, stored as a string.
|
* TelephonyProvider column name for the MCC associated with a SIM, stored as a string.
|
||||||
* <P>Type: TEXT (String)</P>
|
* <P>Type: TEXT (String)</P>
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String MCC_STRING = SimInfo.MCC_STRING;
|
public static final String MCC_STRING = SimInfo.COLUMN_MCC_STRING;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for the MNC associated with a SIM, stored as a string.
|
* TelephonyProvider column name for the MNC associated with a SIM, stored as a string.
|
||||||
* <P>Type: TEXT (String)</P>
|
* <P>Type: TEXT (String)</P>
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String MNC_STRING = SimInfo.MNC_STRING;
|
public static final String MNC_STRING = SimInfo.COLUMN_MNC_STRING;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for the MCC associated with a SIM.
|
* TelephonyProvider column name for the MCC associated with a SIM.
|
||||||
* <P>Type: INTEGER (int)</P>
|
* <P>Type: INTEGER (int)</P>
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String MCC = SimInfo.MCC;
|
public static final String MCC = SimInfo.COLUMN_MCC;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for the MNC associated with a SIM.
|
* TelephonyProvider column name for the MNC associated with a SIM.
|
||||||
* <P>Type: INTEGER (int)</P>
|
* <P>Type: INTEGER (int)</P>
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String MNC = SimInfo.MNC;
|
public static final String MNC = SimInfo.COLUMN_MNC;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for the iso country code associated with a SIM.
|
* TelephonyProvider column name for the iso country code associated with a SIM.
|
||||||
* <P>Type: TEXT (String)</P>
|
* <P>Type: TEXT (String)</P>
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String ISO_COUNTRY_CODE = SimInfo.ISO_COUNTRY_CODE;
|
public static final String ISO_COUNTRY_CODE = SimInfo.COLUMN_ISO_COUNTRY_CODE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for whether a subscription is embedded (that is, present on an
|
* TelephonyProvider column name for whether a subscription is embedded (that is, present on an
|
||||||
@@ -516,7 +515,7 @@ public class SubscriptionManager {
|
|||||||
* <p>Type: INTEGER (int), 1 for embedded or 0 for non-embedded.
|
* <p>Type: INTEGER (int), 1 for embedded or 0 for non-embedded.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String IS_EMBEDDED = SimInfo.IS_EMBEDDED;
|
public static final String IS_EMBEDDED = SimInfo.COLUMN_IS_EMBEDDED;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for SIM card identifier. For UICC card it is the ICCID of the
|
* TelephonyProvider column name for SIM card identifier. For UICC card it is the ICCID of the
|
||||||
@@ -524,7 +523,7 @@ public class SubscriptionManager {
|
|||||||
* <P>Type: TEXT (String)</P>
|
* <P>Type: TEXT (String)</P>
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String CARD_ID = SimInfo.CARD_ID;
|
public static final String CARD_ID = SimInfo.COLUMN_CARD_ID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for the encoded {@link UiccAccessRule}s from
|
* TelephonyProvider column name for the encoded {@link UiccAccessRule}s from
|
||||||
@@ -532,7 +531,7 @@ public class SubscriptionManager {
|
|||||||
* <p>TYPE: BLOB
|
* <p>TYPE: BLOB
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String ACCESS_RULES = SimInfo.ACCESS_RULES;
|
public static final String ACCESS_RULES = SimInfo.COLUMN_ACCESS_RULES;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for the encoded {@link UiccAccessRule}s from
|
* TelephonyProvider column name for the encoded {@link UiccAccessRule}s from
|
||||||
@@ -542,7 +541,7 @@ public class SubscriptionManager {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String ACCESS_RULES_FROM_CARRIER_CONFIGS =
|
public static final String ACCESS_RULES_FROM_CARRIER_CONFIGS =
|
||||||
SimInfo.ACCESS_RULES_FROM_CARRIER_CONFIGS;
|
SimInfo.COLUMN_ACCESS_RULES_FROM_CARRIER_CONFIGS;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name identifying whether an embedded subscription is on a removable
|
* TelephonyProvider column name identifying whether an embedded subscription is on a removable
|
||||||
@@ -552,79 +551,82 @@ public class SubscriptionManager {
|
|||||||
* <p>TYPE: INTEGER (int), 1 for removable or 0 for non-removable.
|
* <p>TYPE: INTEGER (int), 1 for removable or 0 for non-removable.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String IS_REMOVABLE = SimInfo.IS_REMOVABLE;
|
public static final String IS_REMOVABLE = SimInfo.COLUMN_IS_REMOVABLE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for extreme threat in CB settings
|
* TelephonyProvider column name for extreme threat in CB settings
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String CB_EXTREME_THREAT_ALERT = SimInfo.CB_EXTREME_THREAT_ALERT;
|
public static final String CB_EXTREME_THREAT_ALERT =
|
||||||
|
SimInfo.COLUMN_CB_EXTREME_THREAT_ALERT;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for severe threat in CB settings
|
* TelephonyProvider column name for severe threat in CB settings
|
||||||
*@hide
|
*@hide
|
||||||
*/
|
*/
|
||||||
public static final String CB_SEVERE_THREAT_ALERT = SimInfo.CB_SEVERE_THREAT_ALERT;
|
public static final String CB_SEVERE_THREAT_ALERT = SimInfo.COLUMN_CB_SEVERE_THREAT_ALERT;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for amber alert in CB settings
|
* TelephonyProvider column name for amber alert in CB settings
|
||||||
*@hide
|
*@hide
|
||||||
*/
|
*/
|
||||||
public static final String CB_AMBER_ALERT = SimInfo.CB_AMBER_ALERT;
|
public static final String CB_AMBER_ALERT = SimInfo.COLUMN_CB_AMBER_ALERT;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for emergency alert in CB settings
|
* TelephonyProvider column name for emergency alert in CB settings
|
||||||
*@hide
|
*@hide
|
||||||
*/
|
*/
|
||||||
public static final String CB_EMERGENCY_ALERT = SimInfo.CB_EMERGENCY_ALERT;
|
public static final String CB_EMERGENCY_ALERT = SimInfo.COLUMN_CB_EMERGENCY_ALERT;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for alert sound duration in CB settings
|
* TelephonyProvider column name for alert sound duration in CB settings
|
||||||
*@hide
|
*@hide
|
||||||
*/
|
*/
|
||||||
public static final String CB_ALERT_SOUND_DURATION = SimInfo.CB_ALERT_SOUND_DURATION;
|
public static final String CB_ALERT_SOUND_DURATION =
|
||||||
|
SimInfo.COLUMN_CB_ALERT_SOUND_DURATION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for alert reminder interval in CB settings
|
* TelephonyProvider column name for alert reminder interval in CB settings
|
||||||
*@hide
|
*@hide
|
||||||
*/
|
*/
|
||||||
public static final String CB_ALERT_REMINDER_INTERVAL = SimInfo.CB_ALERT_REMINDER_INTERVAL;
|
public static final String CB_ALERT_REMINDER_INTERVAL =
|
||||||
|
SimInfo.COLUMN_CB_ALERT_REMINDER_INTERVAL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for enabling vibrate in CB settings
|
* TelephonyProvider column name for enabling vibrate in CB settings
|
||||||
*@hide
|
*@hide
|
||||||
*/
|
*/
|
||||||
public static final String CB_ALERT_VIBRATE = SimInfo.CB_ALERT_VIBRATE;
|
public static final String CB_ALERT_VIBRATE = SimInfo.COLUMN_CB_ALERT_VIBRATE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for enabling alert speech in CB settings
|
* TelephonyProvider column name for enabling alert speech in CB settings
|
||||||
*@hide
|
*@hide
|
||||||
*/
|
*/
|
||||||
public static final String CB_ALERT_SPEECH = SimInfo.CB_ALERT_SPEECH;
|
public static final String CB_ALERT_SPEECH = SimInfo.COLUMN_CB_ALERT_SPEECH;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for ETWS test alert in CB settings
|
* TelephonyProvider column name for ETWS test alert in CB settings
|
||||||
*@hide
|
*@hide
|
||||||
*/
|
*/
|
||||||
public static final String CB_ETWS_TEST_ALERT = SimInfo.CB_ETWS_TEST_ALERT;
|
public static final String CB_ETWS_TEST_ALERT = SimInfo.COLUMN_CB_ETWS_TEST_ALERT;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for enable channel50 alert in CB settings
|
* TelephonyProvider column name for enable channel50 alert in CB settings
|
||||||
*@hide
|
*@hide
|
||||||
*/
|
*/
|
||||||
public static final String CB_CHANNEL_50_ALERT = SimInfo.CB_CHANNEL_50_ALERT;
|
public static final String CB_CHANNEL_50_ALERT = SimInfo.COLUMN_CB_CHANNEL_50_ALERT;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for CMAS test alert in CB settings
|
* TelephonyProvider column name for CMAS test alert in CB settings
|
||||||
*@hide
|
*@hide
|
||||||
*/
|
*/
|
||||||
public static final String CB_CMAS_TEST_ALERT = SimInfo.CB_CMAS_TEST_ALERT;
|
public static final String CB_CMAS_TEST_ALERT = SimInfo.COLUMN_CB_CMAS_TEST_ALERT;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for Opt out dialog in CB settings
|
* TelephonyProvider column name for Opt out dialog in CB settings
|
||||||
*@hide
|
*@hide
|
||||||
*/
|
*/
|
||||||
public static final String CB_OPT_OUT_DIALOG = SimInfo.CB_OPT_OUT_DIALOG;
|
public static final String CB_OPT_OUT_DIALOG = SimInfo.COLUMN_CB_OPT_OUT_DIALOG;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for enable Volte.
|
* TelephonyProvider column name for enable Volte.
|
||||||
@@ -633,44 +635,45 @@ public class SubscriptionManager {
|
|||||||
* {@link CarrierConfigManager#KEY_ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL}.
|
* {@link CarrierConfigManager#KEY_ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL}.
|
||||||
*@hide
|
*@hide
|
||||||
*/
|
*/
|
||||||
public static final String ENHANCED_4G_MODE_ENABLED = SimInfo.ENHANCED_4G_MODE_ENABLED;
|
public static final String ENHANCED_4G_MODE_ENABLED =
|
||||||
|
SimInfo.COLUMN_ENHANCED_4G_MODE_ENABLED;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for enable VT (Video Telephony over IMS)
|
* TelephonyProvider column name for enable VT (Video Telephony over IMS)
|
||||||
*@hide
|
*@hide
|
||||||
*/
|
*/
|
||||||
public static final String VT_IMS_ENABLED = SimInfo.VT_IMS_ENABLED;
|
public static final String VT_IMS_ENABLED = SimInfo.COLUMN_VT_IMS_ENABLED;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for enable Wifi calling
|
* TelephonyProvider column name for enable Wifi calling
|
||||||
*@hide
|
*@hide
|
||||||
*/
|
*/
|
||||||
public static final String WFC_IMS_ENABLED = SimInfo.WFC_IMS_ENABLED;
|
public static final String WFC_IMS_ENABLED = SimInfo.COLUMN_WFC_IMS_ENABLED;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for Wifi calling mode
|
* TelephonyProvider column name for Wifi calling mode
|
||||||
*@hide
|
*@hide
|
||||||
*/
|
*/
|
||||||
public static final String WFC_IMS_MODE = SimInfo.WFC_IMS_MODE;
|
public static final String WFC_IMS_MODE = SimInfo.COLUMN_WFC_IMS_MODE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for Wifi calling mode in roaming
|
* TelephonyProvider column name for Wifi calling mode in roaming
|
||||||
*@hide
|
*@hide
|
||||||
*/
|
*/
|
||||||
public static final String WFC_IMS_ROAMING_MODE = SimInfo.WFC_IMS_ROAMING_MODE;
|
public static final String WFC_IMS_ROAMING_MODE = SimInfo.COLUMN_WFC_IMS_ROAMING_MODE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for enable Wifi calling in roaming
|
* TelephonyProvider column name for enable Wifi calling in roaming
|
||||||
*@hide
|
*@hide
|
||||||
*/
|
*/
|
||||||
public static final String WFC_IMS_ROAMING_ENABLED = SimInfo.WFC_IMS_ROAMING_ENABLED;
|
public static final String WFC_IMS_ROAMING_ENABLED = SimInfo.COLUMN_WFC_IMS_ROAMING_ENABLED;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines if the user has enabled IMS RCS User Capability Exchange (UCE) for this
|
* Determines if the user has enabled IMS RCS User Capability Exchange (UCE) for this
|
||||||
* subscription.
|
* subscription.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String IMS_RCS_UCE_ENABLED = SimInfo.IMS_RCS_UCE_ENABLED;
|
public static final String IMS_RCS_UCE_ENABLED = SimInfo.COLUMN_IMS_RCS_UCE_ENABLED;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for whether a subscription is opportunistic, that is,
|
* TelephonyProvider column name for whether a subscription is opportunistic, that is,
|
||||||
@@ -679,7 +682,7 @@ public class SubscriptionManager {
|
|||||||
* <p>Type: INTEGER (int), 1 for opportunistic or 0 for non-opportunistic.
|
* <p>Type: INTEGER (int), 1 for opportunistic or 0 for non-opportunistic.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String IS_OPPORTUNISTIC = SimInfo.IS_OPPORTUNISTIC;
|
public static final String IS_OPPORTUNISTIC = SimInfo.COLUMN_IS_OPPORTUNISTIC;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for group ID. Subscriptions with same group ID
|
* TelephonyProvider column name for group ID. Subscriptions with same group ID
|
||||||
@@ -688,7 +691,7 @@ public class SubscriptionManager {
|
|||||||
*
|
*
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String GROUP_UUID = SimInfo.GROUP_UUID;
|
public static final String GROUP_UUID = SimInfo.COLUMN_GROUP_UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for group owner. It's the package name who created
|
* TelephonyProvider column name for group owner. It's the package name who created
|
||||||
@@ -696,7 +699,7 @@ public class SubscriptionManager {
|
|||||||
*
|
*
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String GROUP_OWNER = SimInfo.GROUP_OWNER;
|
public static final String GROUP_OWNER = SimInfo.COLUMN_GROUP_OWNER;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TelephonyProvider column name for the profile class of a subscription
|
* TelephonyProvider column name for the profile class of a subscription
|
||||||
@@ -704,7 +707,7 @@ public class SubscriptionManager {
|
|||||||
* <P>Type: INTEGER (int)</P>
|
* <P>Type: INTEGER (int)</P>
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String PROFILE_CLASS = SimInfo.PROFILE_CLASS;
|
public static final String PROFILE_CLASS = SimInfo.COLUMN_PROFILE_CLASS;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Profile class of the subscription
|
* Profile class of the subscription
|
||||||
@@ -716,7 +719,6 @@ public class SubscriptionManager {
|
|||||||
SimInfo.PROFILE_CLASS_PROVISIONING,
|
SimInfo.PROFILE_CLASS_PROVISIONING,
|
||||||
SimInfo.PROFILE_CLASS_OPERATIONAL,
|
SimInfo.PROFILE_CLASS_OPERATIONAL,
|
||||||
SimInfo.PROFILE_CLASS_UNSET,
|
SimInfo.PROFILE_CLASS_UNSET,
|
||||||
SimInfo.PROFILE_CLASS_DEFAULT
|
|
||||||
})
|
})
|
||||||
public @interface ProfileClass {}
|
public @interface ProfileClass {}
|
||||||
|
|
||||||
@@ -762,7 +764,8 @@ public class SubscriptionManager {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public static final int PROFILE_CLASS_DEFAULT = SimInfo.PROFILE_CLASS_DEFAULT;
|
@Deprecated
|
||||||
|
public static final int PROFILE_CLASS_DEFAULT = SimInfo.PROFILE_CLASS_UNSET;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* IMSI (International Mobile Subscriber Identity).
|
* IMSI (International Mobile Subscriber Identity).
|
||||||
@@ -770,19 +773,19 @@ public class SubscriptionManager {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
//TODO: add @SystemApi
|
//TODO: add @SystemApi
|
||||||
public static final String IMSI = SimInfo.IMSI;
|
public static final String IMSI = SimInfo.COLUMN_IMSI;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether uicc applications is set to be enabled or disabled. By default it's enabled.
|
* Whether uicc applications is set to be enabled or disabled. By default it's enabled.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String UICC_APPLICATIONS_ENABLED = SimInfo.UICC_APPLICATIONS_ENABLED;
|
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. By default it's enabled.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final String ALLOWED_NETWORK_TYPES = SimInfo.ALLOWED_NETWORK_TYPES;
|
public static final String ALLOWED_NETWORK_TYPES = SimInfo.COLUMN_ALLOWED_NETWORK_TYPES;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Broadcast Action: The user has changed one of the default subs related to
|
* Broadcast Action: The user has changed one of the default subs related to
|
||||||
|
|||||||
Reference in New Issue
Block a user