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

Commit abdd37c8 authored by Alex Khlivnuik's avatar Alex Khlivnuik Committed by takeshi tanigawa
Browse files

Add CarrierConfig to displaying HD audio indicator for GSM/CDMA calls

This causes UI to display HD audio indicator even in GSM/CDMA calls.
This feature is necessary to fulfill some carriers requirement.

Test: manual - Checked that HD audio indicator for GSM/CDMA calls can be
controlled by carrier config.
Bug: 30207043

Change-Id: I57298d8813a5cc53110af02a369af144136f7fc9
parent 0d75603e
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1339,6 +1339,14 @@ public class CarrierConfigManager {
     */
    public static final String KEY_VIDEO_CALLS_CAN_BE_HD_AUDIO = "video_calls_can_be_hd_audio";

    /**
     * When true, indicates that the HD audio icon in the in-call screen should be shown for
     * GSM/CDMA calls.
     * @hide
     */
    public static final String KEY_GSM_CDMA_CALLS_CAN_BE_HD_AUDIO =
            "gsm_cdma_calls_can_be_hd_audio";

    /**
     * Whether system apps are allowed to use fallback if carrier video call is not available.
     * Defaults to {@code true}.
@@ -1959,6 +1967,7 @@ public class CarrierConfigManager {
        sDefaults.putBoolean(KEY_ALLOW_ADD_CALL_DURING_VIDEO_CALL_BOOL, true);
        sDefaults.putBoolean(KEY_WIFI_CALLS_CAN_BE_HD_AUDIO, true);
        sDefaults.putBoolean(KEY_VIDEO_CALLS_CAN_BE_HD_AUDIO, true);
        sDefaults.putBoolean(KEY_GSM_CDMA_CALLS_CAN_BE_HD_AUDIO, false);
        sDefaults.putBoolean(KEY_ALLOW_VIDEO_CALLING_FALLBACK_BOOL, true);

        sDefaults.putStringArray(KEY_IMS_REASONINFO_MAPPING_STRING_ARRAY, null);