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

Commit 08bc8694 authored by Matt Pietal's avatar Matt Pietal Committed by Android (Google) Code Review
Browse files

Merge "Don't run sim check in tests" into main

parents 6d9cf535 ce9dc350
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -111,6 +111,7 @@ class KeyguardSimPinViewControllerTest : SysuiTestCase() {
                mUserActivityNotifier,
                inputManager,
            )
        underTest.mIsInTestMode = true
        underTest.init()
        underTest.onViewAttached()
        underTest.onResume(0)
+3 −0
Original line number Diff line number Diff line
@@ -68,6 +68,8 @@ public class KeyguardSimPinViewController
    private AlertDialog mRemainingAttemptsDialog;
    private ImageView mSimImageView;

    protected boolean mIsInTestMode = false;

    KeyguardUpdateMonitorCallback mUpdateMonitorCallback = new KeyguardUpdateMonitorCallback() {
        @Override
        public void onSimStateChanged(int subId, int slotId, int simState) {
@@ -321,6 +323,7 @@ public class KeyguardSimPinViewController

        @Override
        public void run() {
            if (mIsInTestMode) return;
            Log.v(TAG, "call supplyIccLockPin(subid=" + mSubId + ")");
            TelephonyManager telephonyManager = mTelephonyManager.createForSubscriptionId(mSubId);
            final PinResult result = telephonyManager.supplyIccLockPin(mPin);