Added nr advanced calling settings support

- Added a telephony provider entry for storing the user's settings.
- Added new vonr_enabled_bool config to determine whether VoNR
  should be enalbed for carrier

Bug: 202150953
Bug: 205625979
Test: manual
Change-Id: Ie56a7de3fdb978353af77bafb55b0e37c22b58a4
Merged-In: Ie56a7de3fdb978353af77bafb55b0e37c22b58a4
This commit is contained in:
Gary Jian
2021-11-10 10:39:00 +08:00
parent 2500e149bc
commit 34d2cde122
3 changed files with 29 additions and 0 deletions

View File

@@ -5365,5 +5365,14 @@ public final class Telephony {
*/
public static final String COLUMN_D2D_STATUS_SHARING_SELECTED_CONTACTS =
"d2d_sharing_contacts";
/**
* TelephonyProvider column name for NR Advanced calling
* Determines if the user has enabled VoNR settings for this subscription.
*
* @hide
*/
public static final String COLUMN_NR_ADVANCED_CALLING_ENABLED =
"nr_advanced_calling_enabled";
}
}

View File

@@ -5201,6 +5201,16 @@ public class CarrierConfigManager {
*/
public static final String KEY_VONR_SETTING_VISIBILITY_BOOL = "vonr_setting_visibility_bool";
/**
* Flag specifying whether VoNR should be enabled for carrier.
* If true, VoNr will be enabled. If false, hard disabled.
*
* Disabled by default.
*
* @hide
*/
public static final String KEY_VONR_ENABLED_BOOL = "vonr_enabled_bool";
/**
* Determine whether unthrottle data retry when tracking area code (TAC/LAC) from cell changes
*
@@ -5818,6 +5828,7 @@ public class CarrierConfigManager {
sDefaults.putBoolean(KEY_DISPLAY_NO_DATA_NOTIFICATION_ON_PERMANENT_FAILURE_BOOL, false);
sDefaults.putBoolean(KEY_UNTHROTTLE_DATA_RETRY_WHEN_TAC_CHANGES_BOOL, false);
sDefaults.putBoolean(KEY_VONR_SETTING_VISIBILITY_BOOL, false);
sDefaults.putBoolean(KEY_VONR_ENABLED_BOOL, false);
}
/**

View File

@@ -948,6 +948,15 @@ public class SubscriptionManager {
*/
public static final String VOIMS_OPT_IN_STATUS = SimInfo.COLUMN_VOIMS_OPT_IN_STATUS;
/**
* TelephonyProvider column name for NR Advanced calling
* Determines if the user has enabled VoNR settings for this subscription.
*
* @hide
*/
public static final String NR_ADVANCED_CALLING_ENABLED =
SimInfo.COLUMN_NR_ADVANCED_CALLING_ENABLED;
/**
* Profile class of the subscription
* @hide