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

Commit 2b007404 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fixed flaky unit tests"

parents f3a5580b 400c63ad
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -3721,11 +3721,14 @@ public class ServiceStateTracker extends Handler {
        }

        // if there is no SIM present, do not poll signal strength
        if (UiccController.getInstance() != null) {
            UiccCard uiccCard = UiccController.getInstance().getUiccCard(getPhoneId());
            if (uiccCard == null || uiccCard.getCardState() == CardState.CARDSTATE_ABSENT) {
                log("Not polling signal strength due to absence of SIM");
                return;
            }
        }


        Message msg;

+1 −3
Original line number Diff line number Diff line
@@ -30,7 +30,6 @@ import android.telephony.Rlog;
import android.telephony.TelephonyManager;
import android.util.LocalLog;

import com.android.internal.annotations.VisibleForTesting;
import com.android.internal.telephony.CommandException;
import com.android.internal.telephony.CommandsInterface;
import com.android.internal.telephony.IccCardConstants;
@@ -198,8 +197,7 @@ public class UiccController extends Handler {
    public static UiccController getInstance() {
        synchronized (mLock) {
            if (mInstance == null) {
                throw new RuntimeException(
                        "UiccController.getInstance can't be called before make()");
                Rlog.e(LOG_TAG, "UiccController.getInstance can't be called before make()");
            }
            return mInstance;
        }