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

Commit a4a0ef63 authored by Inseob Kim's avatar Inseob Kim Committed by android-build-merger
Browse files

Schematize Telephony System Properties

am: c811357b

Change-Id: I536753ae48c219cbc45591d801555719ef01e7c0
parents 4f6d512c c811357b
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -53,7 +53,6 @@ import android.os.Looper;
import android.os.PersistableBundle;
import android.os.Process;
import android.os.SystemClock;
import android.os.SystemProperties;
import android.os.SystemVibrator;
import android.os.Trace;
import android.os.UserHandle;
@@ -62,6 +61,7 @@ import android.provider.BlockedNumberContract;
import android.provider.BlockedNumberContract.SystemContract;
import android.provider.CallLog.Calls;
import android.provider.Settings;
import android.sysprop.TelephonyProperties;
import android.telecom.CallAudioState;
import android.telecom.Conference;
import android.telecom.Connection;
@@ -86,7 +86,6 @@ import android.util.Pair;
import com.android.internal.annotations.VisibleForTesting;
import android.telecom.CallerInfo;
import com.android.internal.telephony.PhoneConstants;
import com.android.internal.telephony.TelephonyProperties;
import com.android.internal.util.IndentingPrintWriter;
import com.android.server.telecom.bluetooth.BluetoothRouteManager;
import com.android.server.telecom.bluetooth.BluetoothStateReceiver;
@@ -2261,9 +2260,8 @@ public class CallsManager extends Call.ListenerBase
     * @return {@code true} if the speakerphone should automatically be enabled.
     */
    private static boolean isSpeakerEnabledForVideoCalls() {
        return (SystemProperties.getInt(TelephonyProperties.PROPERTY_VIDEOCALL_AUDIO_OUTPUT,
                PhoneConstants.AUDIO_OUTPUT_DEFAULT) ==
                PhoneConstants.AUDIO_OUTPUT_ENABLE_SPEAKER);
        return TelephonyProperties.videocall_audio_output().orElse(
            PhoneConstants.AUDIO_OUTPUT_DEFAULT) == PhoneConstants.AUDIO_OUTPUT_ENABLE_SPEAKER;
    }

    /**