diff options
author | 2023-06-29 04:29:35 +0000 | |
---|---|---|
committer | 2023-07-04 05:30:48 +0000 | |
commit | 90ceee308abd5ffd1dcca8e685fc469e05151694 (patch) | |
tree | 2eebdf669bc4dc914428f9c0020f646439a3ef66 /telephony | |
parent | f2c66dee859cf50eed77d1f2c6b4ade9ca10f719 (diff) |
add KEY_IGNORE_GLOBAL_PHONE_NUMBER_FORMAT_BOOL
add KEY_IGNORE_GLOBAL_PHONE_NUMBER_FORMAT_BOOL to extract phone number
from IMS associated uri when the carrier does not support global phone
number format
Bug: 283093635
Test: atest ImsPhoneTest, ImsServiceTest
Test: KR U+ live network test
Test: AT&T live network test
Change-Id: I320511e9ff23a72f9647f87748954e1171d45d6a
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/android/telephony/CarrierConfigManager.java | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java index dc5b75ad6f14..3e7919305cbf 100644 --- a/telephony/java/android/telephony/CarrierConfigManager.java +++ b/telephony/java/android/telephony/CarrierConfigManager.java @@ -50,7 +50,6 @@ import android.telephony.ims.MediaQualityStatus; import android.telephony.ims.RcsUceAdapter; import android.telephony.ims.feature.MmTelFeature; import android.telephony.ims.feature.RcsFeature; -import android.telephony.ims.stub.ImsRegistrationImplBase; import com.android.internal.telephony.ICarrierConfigLoader; import com.android.telephony.Rlog; @@ -5813,6 +5812,21 @@ public class CarrierConfigManager { */ public static final int NR_SA_DISABLE_POLICY_VOWIFI_REGISTERED = 3; + /** + * This specifies whether the carrier support the global number format or not. + * {@link SubscriptionManager#getPhoneNumber(int)}, + * {@link SubscriptionManager#getPhoneNumber(int, int)} with + * {@link SubscriptionManager#PHONE_NUMBER_SOURCE_IMS} + * In order to provide the phone number to the APIs, the framework extracts the phone + * number from the message received from the carrier server. If the carrier does not use + * global number format, the framework could not provide phone number. + * <p> + * If not set or set to false value, the framework handle only global number format URI. + * @hide + */ + public static final String KEY_ALLOW_NON_GLOBAL_PHONE_NUMBER_FORMAT_BOOL = + KEY_PREFIX + "allow_non_global_phone_number_format_bool"; + private Ims() {} private static PersistableBundle getDefaults() { @@ -5925,6 +5939,8 @@ public class CarrierConfigManager { defaults.putString(KEY_IMS_USER_AGENT_STRING, "#MANUFACTURER#_#MODEL#_Android#AV#_#BUILD#"); + defaults.putBoolean(KEY_ALLOW_NON_GLOBAL_PHONE_NUMBER_FORMAT_BOOL, false); + return defaults; } } |