/packages/apps/Contacts/src/com/android/contacts/interactions/ |
D | ImportDialogFragment.java | 87 for (SimCard sim : sims) { in show() 88 final List<SimContact> contacts = sim.getContacts(); in show() 92 args.putInt(EXTRA_SIM_CONTACT_COUNT_PREFIX + sim.getSimId(), contacts.size()); in show() 159 CharSequence getSimSecondaryText(SimCard sim) { in onCreateDialog() 160 int count = getSimContactCount(sim); in onCreateDialog() 162 CharSequence phone = sim.getFormattedPhone(); in onCreateDialog() 164 phone = sim.getPhone(); in onCreateDialog() 223 private int getSimContactCount(SimCard sim) { in getSimContactCount() argument 224 if (sim.getContacts() != null) { in getSimContactCount() 225 return sim.getContacts().size(); in getSimContactCount() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
D | FakeSimContactDao.java | 63 public ArrayList<SimContact> loadContactsForSim(SimCard sim) { in loadContactsForSim() argument 64 return simContacts.get(sim); in loadContactsForSim() 84 for (SimCard sim : simCards) { in getSimBySubscriptionId() 85 if (sim.getSubscriptionId() == subscriptionId) { in getSimBySubscriptionId() 86 return sim; in getSimBySubscriptionId() 98 public FakeSimContactDao addSim(SimCard sim, SimContact... contacts) { in addSim() argument 99 simCards.add(sim); in addSim() 100 simContacts.put(sim, new ArrayList<>(Arrays.asList(contacts))); in addSim() 104 public static FakeSimContactDao singleSimWithContacts(SimCard sim, SimContact... contacts) { in singleSimWithContacts() argument 105 return new FakeSimContactDao().addSim(sim, contacts); in singleSimWithContacts()
|
/packages/apps/Contacts/src/com/android/contacts/database/ |
D | SimContactDaoImpl.java | 127 public ArrayList<SimContact> loadContactsForSim(SimCard sim) { in loadContactsForSim() argument 128 if (sim.hasValidSubscriptionId()) { in loadContactsForSim() 129 return loadSimContacts(sim.getSubscriptionId()); in loadContactsForSim() 161 public void persistSimState(SimCard sim) { in persistSimState() argument 162 SharedPreferenceUtil.persistSimStates(mContext, Collections.singletonList(sim)); in persistSimState() 176 for (SimCard sim : getSimCards()) { in getSimBySubscriptionId() 177 if (sim.getSubscriptionId() == subscriptionId) { in getSimBySubscriptionId() 178 return sim; in getSimBySubscriptionId() 265 private List<SimContact> getContactsForSim(SimCard sim) { in getContactsForSim() argument 266 final List<SimContact> contacts = sim.getContacts(); in getContactsForSim() [all …]
|
D | SimContactDao.java | 94 public abstract ArrayList<SimContact> loadContactsForSim(SimCard sim); in loadContactsForSim() argument 107 public void persistSimState(SimCard sim) { in persistSimState() argument 108 persistSimStates(Collections.singletonList(sim)); in persistSimState()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | SimImportService.java | 70 boolean isImporting(SimCard sim); in isImporting() argument 105 public boolean isImporting(SimCard sim) { 106 return SimImportService.isImporting(sim); 115 private static boolean isImporting(SimCard sim) { in isImporting() argument 117 if (task.getSim().equals(sim)) { in isImporting() 182 final SimCard sim = dao.getSimBySubscriptionId(subscriptionId); in createTaskForIntent() local 183 if (sim != null) { in createTaskForIntent() 184 return new ImportTask(sim, contacts, targetAccount, dao, startId); in createTaskForIntent() 267 public ImportTask(SimCard sim, List<SimContact> contacts, AccountWithDataSet targetAccount, in ImportTask() argument 269 mSim = sim; in ImportTask()
|
D | SimImportFragment.java | 485 final SimCard sim = mDao.getSimBySubscriptionId(mSubscriptionId); in loadFromSim() local 487 if (sim == null) { in loadFromSim() 492 result.contacts = mDao.loadContactsForSim(sim); in loadFromSim()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | SharedPreferenceUtil.java | 171 for (SimCard sim : sims) { in persistSimStates() 172 final String id = sim.getSimId(); in persistSimStates() 176 if (sim.isImported()) { in persistSimStates() 181 if (sim.isDismissed()) { in persistSimStates() 197 for (SimCard sim : sims) { in restoreSimStates() 198 result.add(sim.withImportAndDismissStates(imported.contains(sim.getSimId()), in restoreSimStates() 199 dismissed.contains(sim.getSimId()))); in restoreSimStates()
|
/packages/services/Telephony/src/com/android/phone/ |
D | PhoneUtils.java | 785 IccCard sim = phone.getIccCard(); in registerIccStatus() local 786 if (sim != null) { in registerIccStatus() 788 sim.registerForNetworkLocked(handler, event, phone); in registerIccStatus() 798 IccCard sim = phones[phoneId].getIccCard(); in registerIccStatus() local 799 if (sim != null) { in registerIccStatus() 803 sim.registerForNetworkLocked(handler, event, phones[phoneId]); in registerIccStatus() 812 IccCard sim = phones[phoneId].getIccCard(); in unregisterIccStatus() local 813 if (sim != null) { in unregisterIccStatus() 817 sim.unregisterForNetworkLocked(handler); in unregisterIccStatus()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/sim/ |
D | SimSelectNotificationTest.java | 16 package com.android.settings.sim; 29 import static com.android.settings.sim.SimSelectNotification.ENABLE_MMS_NOTIFICATION_CHANNEL; 30 import static com.android.settings.sim.SimSelectNotification.ENABLE_MMS_NOTIFICATION_ID; 31 import static com.android.settings.sim.SimSelectNotification.SIM_WARNING_NOTIFICATION_CHANNEL; 32 import static com.android.settings.sim.SimSelectNotification.SIM_WARNING_NOTIFICATION_ID;
|
D | PreferredSimDialogFragmentTest.java | 17 package com.android.settings.sim; 19 import static com.android.settings.sim.SimDialogActivity.PREFERRED_PICK; 20 import static com.android.settings.sim.SimDialogActivity.PREFERRED_SIM;
|
D | SimListDialogFragmentTest.java | 17 package com.android.settings.sim; 19 import static com.android.settings.sim.SimDialogActivity.DATA_PICK; 20 import static com.android.settings.sim.SimDialogActivity.SMS_PICK;
|
D | SimDialogFragmentTestBase.java | 17 package com.android.settings.sim; 19 import static com.android.settings.sim.SimDialogActivity.DIALOG_TYPE_KEY;
|
/packages/apps/Contacts/tests/src/com/android/contacts/activities/ |
D | SimImportActivityTest.java | 251 final SimCard sim = someSimCard(); in selectionsAreImportedAndDisabledOnSubsequentImports() 253 doReturn(Collections.singletonList(sim)).when(spy).getSimCards(); in selectionsAreImportedAndDisabledOnSubsequentImports() 254 doReturn(sim).when(spy).getSimBySubscriptionId(anyInt()); in selectionsAreImportedAndDisabledOnSubsequentImports()
|
/packages/apps/Settings/src/com/android/settings/sim/ |
D | CallsSimListDialogFragment.java | 17 package com.android.settings.sim;
|
D | SimDialogFragment.java | 17 package com.android.settings.sim;
|
D | PreferredSimDialogFragment.java | 17 package com.android.settings.sim;
|
D | SimDialogActivity.java | 17 package com.android.settings.sim;
|
D | SimListDialogFragment.java | 17 package com.android.settings.sim;
|
D | SimPreferenceDialog.java | 16 package com.android.settings.sim;
|
D | SimSelectNotification.java | 17 package com.android.settings.sim;
|
D | SimSettings.java | 17 package com.android.settings.sim;
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sim/ |
D | SimSelectNotification.java | 17 package com.android.car.developeroptions.sim;
|
D | SimPreferenceDialog.java | 16 package com.android.car.developeroptions.sim;
|
D | SimDialogActivity.java | 17 package com.android.car.developeroptions.sim;
|
/packages/apps/Contacts/tests/src/com/android/contacts/database/ |
D | SimContactDaoTests.java | 764 final SimCard sim = sut.getSimCards().get(0); in readFromSim() local 765 final ArrayList<SimContact> contacts = sut.loadContactsForSim(sim); in readFromSim()
|