Loading src/java/com/android/internal/telephony/SubscriptionController.java +3 −3 Original line number Diff line number Diff line Loading @@ -1267,7 +1267,7 @@ public class SubscriptionController extends ISub.Stub { if (i > 0) { whereClause.append(","); } whereClause.append("\"").append(embeddedIccids[i]).append("\""); whereClause.append("'").append(embeddedIccids[i]).append("'"); } whereClause.append(")"); Loading Loading @@ -3928,9 +3928,9 @@ public class SubscriptionController extends ISub.Stub { selection.append(SubscriptionManager.ICC_ID); selection.append(" IN ("); for (int i = 0; i < iccIds.length - 1; i++) { selection.append("\"" + iccIds[i] + "\", "); selection.append("'" + iccIds[i] + "', "); } selection.append("\"" + iccIds[iccIds.length - 1] + "\""); selection.append("'" + iccIds[iccIds.length - 1] + "'"); selection.append(")"); return selection.toString(); Loading src/java/com/android/internal/telephony/SubscriptionInfoUpdater.java +2 −2 Original line number Diff line number Diff line Loading @@ -1075,7 +1075,7 @@ public class SubscriptionInfoUpdater extends Handler { } hasChanges = true; contentResolver.update(SubscriptionManager.CONTENT_URI, values, SubscriptionManager.ICC_ID + "=\"" + embeddedProfile.getIccid() + "\"", null); SubscriptionManager.ICC_ID + "='" + embeddedProfile.getIccid() + "'", null); // refresh Cached Active Subscription Info List mSubscriptionController.refreshCachedActiveSubscriptionInfoList(); Loading @@ -1095,7 +1095,7 @@ public class SubscriptionInfoUpdater extends Handler { SubscriptionInfo info = existingSubscriptions.get(i); if (info.isEmbedded()) { if (DBG) logd("Removing embedded subscription of IccId " + info.getIccId()); iccidsToRemove.add("\"" + info.getIccId() + "\""); iccidsToRemove.add("'" + info.getIccId() + "'"); } } String whereClause = SubscriptionManager.ICC_ID + " IN (" Loading tests/telephonytests/src/com/android/internal/telephony/SubscriptionInfoUpdaterTest.java +3 −3 Original line number Diff line number Diff line Loading @@ -625,12 +625,12 @@ public class SubscriptionInfoUpdaterTest extends TelephonyTest { // Info for 1 and 3 should be updated as active embedded subscriptions. ArgumentCaptor<ContentValues> iccid1Values = ArgumentCaptor.forClass(ContentValues.class); verify(mContentProvider).update(eq(SubscriptionManager.CONTENT_URI), iccid1Values.capture(), eq(SubscriptionManager.ICC_ID + "=\"1\""), isNull()); eq(SubscriptionManager.ICC_ID + "='1'"), isNull()); assertEquals(1, iccid1Values.getValue().getAsInteger(SubscriptionManager.IS_EMBEDDED).intValue()); ArgumentCaptor<ContentValues> iccid3Values = ArgumentCaptor.forClass(ContentValues.class); verify(mContentProvider).update(eq(SubscriptionManager.CONTENT_URI), iccid3Values.capture(), eq(SubscriptionManager.ICC_ID + "=\"3\""), isNull()); eq(SubscriptionManager.ICC_ID + "='3'"), isNull()); assertEquals(1, iccid3Values.getValue().getAsInteger(SubscriptionManager.IS_EMBEDDED).intValue()); Loading @@ -638,7 +638,7 @@ public class SubscriptionInfoUpdaterTest extends TelephonyTest { // in the list provided by the LPA. ArgumentCaptor<ContentValues> iccid2Values = ArgumentCaptor.forClass(ContentValues.class); verify(mContentProvider).update(eq(SubscriptionManager.CONTENT_URI), iccid2Values.capture(), eq(SubscriptionManager.ICC_ID + " IN (\"2\")"), isNull()); eq(SubscriptionManager.ICC_ID + " IN ('2')"), isNull()); assertEquals(0, iccid2Values.getValue().getAsInteger(SubscriptionManager.IS_EMBEDDED).intValue()); } Loading Loading
src/java/com/android/internal/telephony/SubscriptionController.java +3 −3 Original line number Diff line number Diff line Loading @@ -1267,7 +1267,7 @@ public class SubscriptionController extends ISub.Stub { if (i > 0) { whereClause.append(","); } whereClause.append("\"").append(embeddedIccids[i]).append("\""); whereClause.append("'").append(embeddedIccids[i]).append("'"); } whereClause.append(")"); Loading Loading @@ -3928,9 +3928,9 @@ public class SubscriptionController extends ISub.Stub { selection.append(SubscriptionManager.ICC_ID); selection.append(" IN ("); for (int i = 0; i < iccIds.length - 1; i++) { selection.append("\"" + iccIds[i] + "\", "); selection.append("'" + iccIds[i] + "', "); } selection.append("\"" + iccIds[iccIds.length - 1] + "\""); selection.append("'" + iccIds[iccIds.length - 1] + "'"); selection.append(")"); return selection.toString(); Loading
src/java/com/android/internal/telephony/SubscriptionInfoUpdater.java +2 −2 Original line number Diff line number Diff line Loading @@ -1075,7 +1075,7 @@ public class SubscriptionInfoUpdater extends Handler { } hasChanges = true; contentResolver.update(SubscriptionManager.CONTENT_URI, values, SubscriptionManager.ICC_ID + "=\"" + embeddedProfile.getIccid() + "\"", null); SubscriptionManager.ICC_ID + "='" + embeddedProfile.getIccid() + "'", null); // refresh Cached Active Subscription Info List mSubscriptionController.refreshCachedActiveSubscriptionInfoList(); Loading @@ -1095,7 +1095,7 @@ public class SubscriptionInfoUpdater extends Handler { SubscriptionInfo info = existingSubscriptions.get(i); if (info.isEmbedded()) { if (DBG) logd("Removing embedded subscription of IccId " + info.getIccId()); iccidsToRemove.add("\"" + info.getIccId() + "\""); iccidsToRemove.add("'" + info.getIccId() + "'"); } } String whereClause = SubscriptionManager.ICC_ID + " IN (" Loading
tests/telephonytests/src/com/android/internal/telephony/SubscriptionInfoUpdaterTest.java +3 −3 Original line number Diff line number Diff line Loading @@ -625,12 +625,12 @@ public class SubscriptionInfoUpdaterTest extends TelephonyTest { // Info for 1 and 3 should be updated as active embedded subscriptions. ArgumentCaptor<ContentValues> iccid1Values = ArgumentCaptor.forClass(ContentValues.class); verify(mContentProvider).update(eq(SubscriptionManager.CONTENT_URI), iccid1Values.capture(), eq(SubscriptionManager.ICC_ID + "=\"1\""), isNull()); eq(SubscriptionManager.ICC_ID + "='1'"), isNull()); assertEquals(1, iccid1Values.getValue().getAsInteger(SubscriptionManager.IS_EMBEDDED).intValue()); ArgumentCaptor<ContentValues> iccid3Values = ArgumentCaptor.forClass(ContentValues.class); verify(mContentProvider).update(eq(SubscriptionManager.CONTENT_URI), iccid3Values.capture(), eq(SubscriptionManager.ICC_ID + "=\"3\""), isNull()); eq(SubscriptionManager.ICC_ID + "='3'"), isNull()); assertEquals(1, iccid3Values.getValue().getAsInteger(SubscriptionManager.IS_EMBEDDED).intValue()); Loading @@ -638,7 +638,7 @@ public class SubscriptionInfoUpdaterTest extends TelephonyTest { // in the list provided by the LPA. ArgumentCaptor<ContentValues> iccid2Values = ArgumentCaptor.forClass(ContentValues.class); verify(mContentProvider).update(eq(SubscriptionManager.CONTENT_URI), iccid2Values.capture(), eq(SubscriptionManager.ICC_ID + " IN (\"2\")"), isNull()); eq(SubscriptionManager.ICC_ID + " IN ('2')"), isNull()); assertEquals(0, iccid2Values.getValue().getAsInteger(SubscriptionManager.IS_EMBEDDED).intValue()); } Loading