Loading src/java/com/android/internal/telephony/SubscriptionInfoUpdater.java +3 −3 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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(); Loading tests/telephonytests/src/com/android/internal/telephony/SubscriptionInfoUpdaterTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -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); Loading Loading @@ -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); Loading Loading
src/java/com/android/internal/telephony/SubscriptionInfoUpdater.java +3 −3 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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(); Loading
tests/telephonytests/src/com/android/internal/telephony/SubscriptionInfoUpdaterTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -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); Loading Loading @@ -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); Loading