Skip to content

Commit

Permalink
Merge "Add CarrierConfigManager APIs to support 5G Signal Strength Th…
Browse files Browse the repository at this point in the history
…reshold"
  • Loading branch information
Shuo Qian authored and Gerrit Code Review committed Nov 14, 2019
2 parents 451c6a8 + 1f2fcf1 commit af35741
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/current.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44038,6 +44038,9 @@ package android.telephony {
field public static final int DATA_CYCLE_THRESHOLD_DISABLED = -2; // 0xfffffffe
field public static final String EXTRA_SLOT_INDEX = "android.telephony.extra.SLOT_INDEX";
field public static final String EXTRA_SUBSCRIPTION_INDEX = "android.telephony.extra.SUBSCRIPTION_INDEX";
field public static final String KEY_5G_NR_SSRSRP_THRESHOLDS_INT_ARRAY = "5g_nr_ssrsrp_thresholds_int_array";
field public static final String KEY_5G_NR_SSRSRQ_THRESHOLDS_INT_ARRAY = "5g_nr_ssrsrq_thresholds_int_array";
field public static final String KEY_5G_NR_SSSINR_THRESHOLDS_INT_ARRAY = "5g_nr_sssinr_thresholds_int_array";
field public static final String KEY_ADDITIONAL_CALL_SETTING_BOOL = "additional_call_setting_bool";
field public static final String KEY_ALLOW_ADDING_APNS_BOOL = "allow_adding_apns_bool";
field public static final String KEY_ALLOW_ADD_CALL_DURING_VIDEO_CALL_BOOL = "allow_add_call_during_video_call";
Expand Down Expand Up @@ -44169,6 +44172,7 @@ package android.telephony {
field public static final String KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSSNR_INT = "opportunistic_network_entry_threshold_rssnr_int";
field public static final String KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSRP_INT = "opportunistic_network_exit_threshold_rsrp_int";
field public static final String KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSSNR_INT = "opportunistic_network_exit_threshold_rssnr_int";
field public static final String KEY_PARAMETERS_USE_FOR_5G_NR_SIGNAL_BAR_INT = "parameters_use_for_5g_nr_signal_bar_int";
field public static final String KEY_PREFER_2G_BOOL = "prefer_2g_bool";
field public static final String KEY_PREVENT_CLIR_ACTIVATION_AND_DEACTIVATION_CODE_BOOL = "prevent_clir_activation_and_deactivation_code_bool";
field public static final String KEY_RADIO_RESTART_FAILURE_CAUSES_INT_ARRAY = "radio_restart_failure_causes_int_array";
Expand Down
71 changes: 71 additions & 0 deletions telephony/java/android/telephony/CarrierConfigManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -2286,6 +2286,77 @@ public CarrierConfigManager(Context context) {
public static final String KEY_USE_ONLY_RSRP_FOR_LTE_SIGNAL_BAR_BOOL =
"use_only_rsrp_for_lte_signal_bar_bool";

/**
* List of 4 customized 5G SS reference signal received power (SSRSRP) thresholds.
*
* Reference: 3GPP TS 38.215
*
* 4 threshold integers must be within the boundaries [-140 dB, -44 dB], and the levels are:
* "NONE: [-140, threshold1]"
* "POOR: (threshold1, threshold2]"
* "MODERATE: (threshold2, threshold3]"
* "GOOD: (threshold3, threshold4]"
* "EXCELLENT: (threshold4, -44]"
*
* This key is considered invalid if the format is violated. If the key is invalid or
* not configured, a default value set will apply.
*/
public static final String KEY_5G_NR_SSRSRP_THRESHOLDS_INT_ARRAY =
"5g_nr_ssrsrp_thresholds_int_array";

/**
* List of 4 customized 5G SS reference signal received quality (SSRSRQ) thresholds.
*
* Reference: 3GPP TS 38.215
*
* 4 threshold integers must be within the boundaries [-20 dB, -3 dB], and the levels are:
* "NONE: [-23, threshold1]"
* "POOR: (threshold1, threshold2]"
* "MODERATE: (threshold2, threshold3]"
* "GOOD: (threshold3, threshold4]"
* "EXCELLENT: (threshold4, -3]"
*
* This key is considered invalid if the format is violated. If the key is invalid or
* not configured, a default value set will apply.
*/
public static final String KEY_5G_NR_SSRSRQ_THRESHOLDS_INT_ARRAY =
"5g_nr_ssrsrq_thresholds_int_array";

/**
* List of 4 customized 5G SS signal-to-noise and interference ratio (SSSINR) thresholds.
*
* Reference: 3GPP TS 38.215,
* 3GPP TS 38.133 10.1.16.1
*
* 4 threshold integers must be within the boundaries [-23 dB, 40 dB], and the levels are:
* "NONE: [-23, threshold1]"
* "POOR: (threshold1, threshold2]"
* "MODERATE: (threshold2, threshold3]"
* "GOOD: (threshold3, threshold4]"
* "EXCELLENT: (threshold4, 40]"
*
* This key is considered invalid if the format is violated. If the key is invalid or
* not configured, a default value set will apply.
*/
public static final String KEY_5G_NR_SSSINR_THRESHOLDS_INT_ARRAY =
"5g_nr_sssinr_thresholds_int_array";

/**
* Bit-field integer to determine whether to use SS reference signal received power (SSRSRP),
* SS reference signal received quality (SSRSRQ), or/and SS signal-to-noise and interference
* ratio (SSSINR) for the number of 5G NR signal bars. If multiple measures are set bit, the
* parameter whose value is smallest is used to indicate the signal bar.
*
* SSRSRP = 1 << 0,
* SSRSRQ = 1 << 1,
* SSSINR = 1 << 2,
*
* Reference: 3GPP TS 38.215,
* 3GPP TS 38.133 10.1.16.1
*/
public static final String KEY_PARAMETERS_USE_FOR_5G_NR_SIGNAL_BAR_INT =
"parameters_use_for_5g_nr_signal_bar_int";

/**
* Key identifying if voice call barring notification is required to be shown to the user.
* @hide
Expand Down

0 comments on commit af35741

Please sign in to comment.