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

Commit ba268e7d authored by Amit Mahajan's avatar Amit Mahajan
Browse files

Revert "Fixed flaky unit tests"

This reverts commit 400c63ad.

Reason for revert: This was a temporary hack; real fix is in now.

Bug: 78357839
Change-Id: Ief100e41bba6b12f2961d05144eafefd34b684dd
parent 400c63ad
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -3805,14 +3805,11 @@ 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;

+3 −1
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ 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;
@@ -197,7 +198,8 @@ public class UiccController extends Handler {
    public static UiccController getInstance() {
        synchronized (mLock) {
            if (mInstance == null) {
                Rlog.e(LOG_TAG, "UiccController.getInstance can't be called before make()");
                throw new RuntimeException(
                        "UiccController.getInstance can't be called before make()");
            }
            return mInstance;
        }