diff options
| -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; } } |