Add Provisioning bundle for indicating if MMTEL/RCS provisioning is required am: 0860f1b1b9 am: f7285040d2

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1960145

Change-Id: I08e5ee6cbc8c26b341b1f05462156376f9193ec0
This commit is contained in:
Hakjun Choi
2022-02-09 03:09:35 +00:00
committed by Automerger Merge Worker
3 changed files with 119 additions and 27 deletions

View File

@@ -39771,11 +39771,11 @@ package android.telephony {
field public static final String KEY_CARRIER_SUPPORTS_TETHERING_BOOL = "carrier_supports_tethering_bool"; field public static final String KEY_CARRIER_SUPPORTS_TETHERING_BOOL = "carrier_supports_tethering_bool";
field public static final String KEY_CARRIER_USE_IMS_FIRST_FOR_EMERGENCY_BOOL = "carrier_use_ims_first_for_emergency_bool"; field public static final String KEY_CARRIER_USE_IMS_FIRST_FOR_EMERGENCY_BOOL = "carrier_use_ims_first_for_emergency_bool";
field public static final String KEY_CARRIER_USSD_METHOD_INT = "carrier_ussd_method_int"; field public static final String KEY_CARRIER_USSD_METHOD_INT = "carrier_ussd_method_int";
field public static final String KEY_CARRIER_UT_PROVISIONING_REQUIRED_BOOL = "carrier_ut_provisioning_required_bool"; field @Deprecated public static final String KEY_CARRIER_UT_PROVISIONING_REQUIRED_BOOL = "carrier_ut_provisioning_required_bool";
field public static final String KEY_CARRIER_VOLTE_AVAILABLE_BOOL = "carrier_volte_available_bool"; field public static final String KEY_CARRIER_VOLTE_AVAILABLE_BOOL = "carrier_volte_available_bool";
field public static final String KEY_CARRIER_VOLTE_OVERRIDE_WFC_PROVISIONING_BOOL = "carrier_volte_override_wfc_provisioning_bool"; field public static final String KEY_CARRIER_VOLTE_OVERRIDE_WFC_PROVISIONING_BOOL = "carrier_volte_override_wfc_provisioning_bool";
field public static final String KEY_CARRIER_VOLTE_PROVISIONED_BOOL = "carrier_volte_provisioned_bool"; field @Deprecated public static final String KEY_CARRIER_VOLTE_PROVISIONED_BOOL = "carrier_volte_provisioned_bool";
field public static final String KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL = "carrier_volte_provisioning_required_bool"; field @Deprecated public static final String KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL = "carrier_volte_provisioning_required_bool";
field public static final String KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL = "carrier_volte_tty_supported_bool"; field public static final String KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL = "carrier_volte_tty_supported_bool";
field public static final String KEY_CARRIER_VT_AVAILABLE_BOOL = "carrier_vt_available_bool"; field public static final String KEY_CARRIER_VT_AVAILABLE_BOOL = "carrier_vt_available_bool";
field @Deprecated public static final String KEY_CARRIER_VVM_PACKAGE_NAME_STRING = "carrier_vvm_package_name_string"; field @Deprecated public static final String KEY_CARRIER_VVM_PACKAGE_NAME_STRING = "carrier_vvm_package_name_string";
@@ -40004,14 +40004,23 @@ package android.telephony {
} }
public static final class CarrierConfigManager.Ims { public static final class CarrierConfigManager.Ims {
field public static final String KEY_CAPABILITY_CALL_COMPOSER_INT_ARRAY = "ims.key_capability_type_call_composer_int_array";
field public static final String KEY_CAPABILITY_TYPE_OPTIONS_UCE_INT_ARRAY = "ims.key_capability_type_options_uce_int_array";
field public static final String KEY_CAPABILITY_TYPE_PRESENCE_UCE_INT_ARRAY = "ims.key_capability_type_presence_uce_int_array";
field public static final String KEY_CAPABILITY_TYPE_SMS_INT_ARRAY = "ims.key_capability_type_sms_int_array";
field public static final String KEY_CAPABILITY_TYPE_UT_INT_ARRAY = "ims.key_capability_type_ut_int_array";
field public static final String KEY_CAPABILITY_TYPE_VIDEO_INT_ARRAY = "ims.key_capability_type_video_int_array";
field public static final String KEY_CAPABILITY_TYPE_VOICE_INT_ARRAY = "ims.key_capability_type_voice_int_array";
field public static final String KEY_ENABLE_PRESENCE_CAPABILITY_EXCHANGE_BOOL = "ims.enable_presence_capability_exchange_bool"; field public static final String KEY_ENABLE_PRESENCE_CAPABILITY_EXCHANGE_BOOL = "ims.enable_presence_capability_exchange_bool";
field public static final String KEY_ENABLE_PRESENCE_GROUP_SUBSCRIBE_BOOL = "ims.enable_presence_group_subscribe_bool"; field public static final String KEY_ENABLE_PRESENCE_GROUP_SUBSCRIBE_BOOL = "ims.enable_presence_group_subscribe_bool";
field public static final String KEY_ENABLE_PRESENCE_PUBLISH_BOOL = "ims.enable_presence_publish_bool"; field public static final String KEY_ENABLE_PRESENCE_PUBLISH_BOOL = "ims.enable_presence_publish_bool";
field public static final String KEY_IMS_SINGLE_REGISTRATION_REQUIRED_BOOL = "ims.ims_single_registration_required_bool"; field public static final String KEY_IMS_SINGLE_REGISTRATION_REQUIRED_BOOL = "ims.ims_single_registration_required_bool";
field public static final String KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE = "ims.mmtel_requires_provisioning_bundle";
field public static final String KEY_NON_RCS_CAPABILITIES_CACHE_EXPIRATION_SEC_INT = "ims.non_rcs_capabilities_cache_expiration_sec_int"; field public static final String KEY_NON_RCS_CAPABILITIES_CACHE_EXPIRATION_SEC_INT = "ims.non_rcs_capabilities_cache_expiration_sec_int";
field public static final String KEY_PREFIX = "ims."; field public static final String KEY_PREFIX = "ims.";
field public static final String KEY_RCS_BULK_CAPABILITY_EXCHANGE_BOOL = "ims.rcs_bulk_capability_exchange_bool"; field public static final String KEY_RCS_BULK_CAPABILITY_EXCHANGE_BOOL = "ims.rcs_bulk_capability_exchange_bool";
field public static final String KEY_RCS_FEATURE_TAG_ALLOWED_STRING_ARRAY = "ims.rcs_feature_tag_allowed_string_array"; field public static final String KEY_RCS_FEATURE_TAG_ALLOWED_STRING_ARRAY = "ims.rcs_feature_tag_allowed_string_array";
field public static final String KEY_RCS_REQUIRES_PROVISIONING_BUNDLE = "ims.rcs_requires_provisioning_bundle";
field public static final String KEY_WIFI_OFF_DEFERRING_TIME_MILLIS_INT = "ims.wifi_off_deferring_time_millis_int"; field public static final String KEY_WIFI_OFF_DEFERRING_TIME_MILLIS_INT = "ims.wifi_off_deferring_time_millis_int";
} }

View File

@@ -168,7 +168,10 @@ public class CarrierConfigManager {
/** /**
* This flag specifies whether VoLTE availability is based on provisioning. By default this is * This flag specifies whether VoLTE availability is based on provisioning. By default this is
* false. * false.
* Used for UCE to determine if EAB provisioning checks should be based on provisioning.
* @deprecated Use {@link Ims#KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE} instead.
*/ */
@Deprecated
public static final String public static final String
KEY_CARRIER_VOLTE_PROVISIONED_BOOL = "carrier_volte_provisioned_bool"; KEY_CARRIER_VOLTE_PROVISIONED_BOOL = "carrier_volte_provisioned_bool";
@@ -864,7 +867,12 @@ public class CarrierConfigManager {
/** /**
* Flag specifying whether provisioning is required for VoLTE, Video Telephony, and WiFi * Flag specifying whether provisioning is required for VoLTE, Video Telephony, and WiFi
* Calling. * Calling.
* Combines VoLTE, VT, VoWiFI calling provisioning into one parameter.
* @deprecated Use {@link Ims#KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE} instead for
* finer-grained control.
*/ */
@Deprecated
public static final String KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL public static final String KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL
= "carrier_volte_provisioning_required_bool"; = "carrier_volte_provisioning_required_bool";
@@ -878,7 +886,11 @@ public class CarrierConfigManager {
* and enable the UT over IMS capability for the subscription when the subscription is loaded. * and enable the UT over IMS capability for the subscription when the subscription is loaded.
* *
* The default value for this key is {@code false}. * The default value for this key is {@code false}.
*
* @deprecated Use {@link Ims#KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE} instead for
* determining if UT requires provisioning.
*/ */
@Deprecated
public static final String KEY_CARRIER_UT_PROVISIONING_REQUIRED_BOOL = public static final String KEY_CARRIER_UT_PROVISIONING_REQUIRED_BOOL =
"carrier_ut_provisioning_required_bool"; "carrier_ut_provisioning_required_bool";
@@ -4638,34 +4650,93 @@ public class CarrierConfigManager {
KEY_PREFIX + "rcs_request_retry_interval_millis_long"; KEY_PREFIX + "rcs_request_retry_interval_millis_long";
/** /**
* An array of strings, each entry contains a MMTEL capability and registration * A bundle which specifies the MMTEL capability and registration technology
* technology tuple that requires provisioning. If a tuple is not present, the * that requires provisioning. If a tuple is not present, the
* framework will not require that the tuple requires provisioning before * framework will not require that the tuple requires provisioning before
* enabling the capability. * enabling the capability.
* <p> * <p> Possible keys in this bundle are
* Format for each tuple is two integers separated by a comma. The first * <ul>
* integer is an integer defined in * <li>{@link #KEY_CAPABILITY_TYPE_VOICE_INT_ARRAY}</li>
* {@link MmTelFeature.MmTelCapabilities.MmTelCapability} and the second integer is * <li>{@link #KEY_CAPABILITY_TYPE_VIDEO_INT_ARRAY}</li>
* <li>{@link #KEY_CAPABILITY_TYPE_UT_INT_ARRAY}</li>
* <li>{@link #KEY_CAPABILITY_TYPE_SMS_INT_ARRAY}</li>
* <li>{@link #KEY_CAPABILITY_CALL_COMPOSER_INT_ARRAY}</li>
* </ul>
* <p> The values are defined in
* {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech} * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech}
* @hide
*/ */
public static final String KEY_MMTEL_REQUIRES_PROVISIONING_STRING_ARRAY = public static final String KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE =
KEY_PREFIX + "mmtel_requires_provisioning_string_array"; KEY_PREFIX + "mmtel_requires_provisioning_bundle";
/** /**
* An array of strings, each entry contains a RCS capability and registration * This MmTelFeature supports Voice calling (IR.92)
* technology tuple that requires provisioning. If a tuple is not present, the * @see MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_VOICE
*/
public static final String KEY_CAPABILITY_TYPE_VOICE_INT_ARRAY =
KEY_PREFIX + "key_capability_type_voice_int_array";
/**
* This MmTelFeature supports Video (IR.94)
* @see MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_VIDEO
*/
public static final String KEY_CAPABILITY_TYPE_VIDEO_INT_ARRAY =
KEY_PREFIX + "key_capability_type_video_int_array";
/**
* This MmTelFeature supports XCAP over Ut for supplementary services. (IR.92)
* @see MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_UT
*/
public static final String KEY_CAPABILITY_TYPE_UT_INT_ARRAY =
KEY_PREFIX + "key_capability_type_ut_int_array";
/**
* This MmTelFeature supports SMS (IR.92)
* @see MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_SMS
*/
public static final String KEY_CAPABILITY_TYPE_SMS_INT_ARRAY =
KEY_PREFIX + "key_capability_type_sms_int_array";
/**
* This MmTelFeature supports Call Composer (section 2.4 of RCC.20)
* @see MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_CALL_COMPOSER
*/
public static final String KEY_CAPABILITY_CALL_COMPOSER_INT_ARRAY =
KEY_PREFIX + "key_capability_type_call_composer_int_array";
/**
* A bundle which specifies the RCS capability and registration technology
* that requires provisioning. If a tuple is not present, the
* framework will not require that the tuple requires provisioning before * framework will not require that the tuple requires provisioning before
* enabling the capability. * enabling the capability.
* <p> * <p> Possible keys in this bundle are
* Format for each tuple is two integers separated by a comma. The first * <ul>
* integer is an integer defined in * <li>{@link #KEY_CAPABILITY_TYPE_OPTIONS_UCE_INT_ARRAY}</li>
* {@link RcsFeature.RcsImsCapabilities.RcsImsCapabilityFlag} and the second integer is * <li>{@link #KEY_CAPABILITY_TYPE_PRESENCE_UCE_INT_ARRAY}</li>
* </ul>
* <p> The values are defined in
* {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech} * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech}
* @hide
*/ */
public static final String KEY_RCS_REQUIRES_PROVISIONING_STRING_ARRAY = public static final String KEY_RCS_REQUIRES_PROVISIONING_BUNDLE =
KEY_PREFIX + "rcs_requires_provisioning_string_array"; KEY_PREFIX + "rcs_requires_provisioning_bundle";
/**
* This carrier supports User Capability Exchange using SIP OPTIONS as defined by the
* framework. If set, the RcsFeature should support capability exchange using SIP OPTIONS.
* If not set, this RcsFeature should not service capability requests.
* @see RcsFeature.RcsImsCapabilities#CAPABILITY_TYPE_OPTIONS_UCE
*/
public static final String KEY_CAPABILITY_TYPE_OPTIONS_UCE_INT_ARRAY =
KEY_PREFIX + "key_capability_type_options_uce_int_array";
/**
* This carrier supports User Capability Exchange using a presence server as defined by the
* framework. If set, the RcsFeature should support capability exchange using a presence
* server. If not set, this RcsFeature should not publish capabilities or service capability
* requests using presence.
* @see RcsFeature.RcsImsCapabilities#CAPABILITY_TYPE_PRESENCE_UCE
*/
public static final String KEY_CAPABILITY_TYPE_PRESENCE_UCE_INT_ARRAY =
KEY_PREFIX + "key_capability_type_presence_uce_int_array";
private Ims() {} private Ims() {}
@@ -4702,8 +4773,20 @@ public class CarrierConfigManager {
"+g.3gpp.iari-ref=\"urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.chatbot.sa\"", "+g.3gpp.iari-ref=\"urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.chatbot.sa\"",
"+g.gsma.rcs.botversion=\"#=1,#=2\"", "+g.gsma.rcs.botversion=\"#=1,#=2\"",
"+g.gsma.rcs.cpimext"}); "+g.gsma.rcs.cpimext"});
defaults.putStringArray(KEY_MMTEL_REQUIRES_PROVISIONING_STRING_ARRAY, new String[] {});
defaults.putStringArray(KEY_RCS_REQUIRES_PROVISIONING_STRING_ARRAY, new String[] {}); /**
* @see #KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE
*/
PersistableBundle mmtel_requires_provisioning_int_array = new PersistableBundle();
defaults.putPersistableBundle(
KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE, mmtel_requires_provisioning_int_array);
/**
* @see #KEY_RCS_REQUIRES_PROVISIONING_BUNDLE
*/
PersistableBundle rcs_requires_provisioning_int_array = new PersistableBundle();
defaults.putPersistableBundle(
KEY_RCS_REQUIRES_PROVISIONING_BUNDLE, rcs_requires_provisioning_int_array);
return defaults; return defaults;
} }

View File

@@ -1449,8 +1449,7 @@ public class ProvisioningManager {
* <li>{@link TelephonyManager#hasCarrierPrivileges}).</li> * <li>{@link TelephonyManager#hasCarrierPrivileges}).</li>
* </ul> * </ul>
* *
* @see CarrierConfigManager#KEY_CARRIER_UT_PROVISIONING_REQUIRED_BOOL * @see CarrierConfigManager.Ims#KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE
* @see CarrierConfigManager#KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL
* @param isProvisioned true if the device is provisioned for UT over IMS, false otherwise. * @param isProvisioned true if the device is provisioned for UT over IMS, false otherwise.
*/ */
@WorkerThread @WorkerThread
@@ -1483,8 +1482,7 @@ public class ProvisioningManager {
* {@link TelephonyManager#hasCarrierPrivileges()}).</li> * {@link TelephonyManager#hasCarrierPrivileges()}).</li>
* </ul> * </ul>
* *
* @see CarrierConfigManager#KEY_CARRIER_UT_PROVISIONING_REQUIRED_BOOL * @see CarrierConfigManager.Ims#KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE
* @see CarrierConfigManager#KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL
* @return true if the device is provisioned for the capability or does not require * @return true if the device is provisioned for the capability or does not require
* provisioning, false if the capability does require provisioning and has not been * provisioning, false if the capability does require provisioning and has not been
* provisioned yet. * provisioned yet.
@@ -1545,6 +1543,7 @@ public class ProvisioningManager {
* {@link TelephonyManager#hasCarrierPrivileges()}).</li> * {@link TelephonyManager#hasCarrierPrivileges()}).</li>
* </ul> * </ul>
* *
* @see CarrierConfigManager.Ims#KEY_RCS_REQUIRES_PROVISIONING_BUNDLE
* @return true if the device is provisioned for the capability or does not require * @return true if the device is provisioned for the capability or does not require
* provisioning, false if the capability does require provisioning and has not been * provisioning, false if the capability does require provisioning and has not been
* provisioned yet. * provisioned yet.
@@ -1614,6 +1613,7 @@ public class ProvisioningManager {
* {@link TelephonyManager#hasCarrierPrivileges()}).</li> * {@link TelephonyManager#hasCarrierPrivileges()}).</li>
* </ul> * </ul>
* *
* @see CarrierConfigManager.Ims#KEY_RCS_REQUIRES_PROVISIONING_BUNDLE
* @param isProvisioned true if the device is provisioned for the RCS capability specified, * @param isProvisioned true if the device is provisioned for the RCS capability specified,
* false otherwise. * false otherwise.
*/ */