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

Commit 43e44896 authored by Amit Mahajan's avatar Amit Mahajan Committed by android-build-merger
Browse files

Merge "Changes to not use getFullIccId in SubscriptionInfo." into nyc-dev

am: 716f4e1a

* commit '716f4e1a':
  Changes to not use getFullIccId in SubscriptionInfo.

Change-Id: I34ceb6b9249903b18bbb5ff6cbe3911f195b4c0b
parents 1ed36e12 716f4e1a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -285,7 +285,7 @@ public class SubscriptionInfoUpdater extends Handler {
                if (ar.exception == null) {
                    if (ar.result != null) {
                        byte[] data = (byte[])ar.result;
                        mIccId[slotId] = IccUtils.bchToString(data, 0, data.length);
                        mIccId[slotId] = IccUtils.bcdToString(data, 0, data.length);
                    } else {
                        logd("Null ar");
                        mIccId[slotId] = ICCID_STRING_FOR_NO_SIM;
@@ -393,11 +393,11 @@ public class SubscriptionInfoUpdater extends Handler {
            logd("onRecieve: IccRecords null");
            return;
        }
        if (records.getFullIccId() == null) {
        if (records.getIccId() == null) {
            logd("onRecieve: IccID null");
            return;
        }
        mIccId[slotId] = records.getFullIccId();
        mIccId[slotId] = records.getIccId();

        if (isAllIccIdQueryDone()) {
            updateSubscriptionInfoByIccId();
+2 −2
Original line number Diff line number Diff line
@@ -223,7 +223,7 @@ public class SubscriptionInfoUpdaterTest extends TelephonyTest {
        /* mock new sim got loaded and there is no sim loaded before */
        doReturn(null).when(mSubscriptionController)
                .getSubInfoUsingSlotIdWithCheck(eq(0), anyBoolean(), anyString());
        doReturn("89012604200000000000").when(mIccRecord).getFullIccId();
        doReturn("89012604200000000000").when(mIccRecord).getIccId();
        doReturn(FAKE_PLMN).when(mTelephonyManager).getSimOperatorNumericForPhone(0);
        Intent intentInternalSimStateChanged =
                new Intent(IccCardProxy.ACTION_INTERNAL_SIM_STATE_CHANGED);
@@ -284,7 +284,7 @@ public class SubscriptionInfoUpdaterTest extends TelephonyTest {
        /* mock new sim got loaded and there is no sim loaded before */
        doReturn(null).when(mSubscriptionController)
                .getSubInfoUsingSlotIdWithCheck(eq(0), anyBoolean(), anyString());
        doReturn("89012604200000000000").when(mIccRecord).getFullIccId();
        doReturn("89012604200000000000").when(mIccRecord).getIccId();
        // operator numeric is empty
        doReturn("").when(mTelephonyManager).getSimOperatorNumericForPhone(0);
        Intent mIntent = new Intent(IccCardProxy.ACTION_INTERNAL_SIM_STATE_CHANGED);