Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af357413 authored by Shuo Qian's avatar Shuo Qian Committed by Gerrit Code Review
Browse files

Merge "Add CarrierConfigManager APIs to support 5G Signal Strength Threshold"

parents 451c6a80 1f2fcf17
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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";
@@ -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";
+71 −0
Original line number Diff line number Diff line
@@ -2286,6 +2286,77 @@ public class CarrierConfigManager {
    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