Home
last modified time | relevance | path

Searched refs:sim (Results 1 – 25 of 57) sorted by relevance

123

/packages/apps/Contacts/src/com/android/contacts/interactions/
DImportDialogFragment.java87 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/
DFakeSimContactDao.java63 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/
DSimContactDaoImpl.java120 public ArrayList<SimContact> loadContactsForSim(SimCard sim) { in loadContactsForSim() argument
121 if (sim.hasValidSubscriptionId()) { in loadContactsForSim()
122 return loadSimContacts(sim.getSubscriptionId()); in loadContactsForSim()
150 public void persistSimState(SimCard sim) { in persistSimState() argument
151 SharedPreferenceUtil.persistSimStates(mContext, Collections.singletonList(sim)); in persistSimState()
165 for (SimCard sim : getSimCards()) { in getSimBySubscriptionId()
166 if (sim.getSubscriptionId() == subscriptionId) { in getSimBySubscriptionId()
167 return sim; in getSimBySubscriptionId()
254 private List<SimContact> getContactsForSim(SimCard sim) { in getContactsForSim() argument
255 final List<SimContact> contacts = sim.getContacts(); in getContactsForSim()
[all …]
DSimContactDao.java94 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/
DSimImportService.java70 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()
DSimImportFragment.java484 final SimCard sim = mDao.getSimBySubscriptionId(mSubscriptionId); in loadFromSim() local
486 if (sim == null) { in loadFromSim()
491 result.contacts = mDao.loadContactsForSim(sim); in loadFromSim()
/packages/apps/Contacts/src/com/android/contacts/util/
DSharedPreferenceUtil.java171 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/apps/Settings/src/com/android/settings/sim/smartForwarding/
DSmartForwardingActivity.java17 package com.android.settings.sim.smartForwarding;
19 import static com.android.settings.sim.smartForwarding.EnableSmartForwardingTask.FeatureResult;
20 import static com.android.settings.sim.smartForwarding.SmartForwardingUtils.TAG;
21 import static com.android.settings.sim.smartForwarding.SmartForwardingUtils.backupPrevStatus;
22 import static com.android.settings.sim.smartForwarding.SmartForwardingUtils.clearAllBackupData;
23 import static com.android.settings.sim.smartForwarding.SmartForwardingUtils.getAllSlotCallForwardin…
24 import static com.android.settings.sim.smartForwarding.SmartForwardingUtils.getAllSlotCallWaitingSt…
DSmartForwardingFragment.java17 package com.android.settings.sim.smartForwarding;
19 import static com.android.settings.sim.smartForwarding.SmartForwardingUtils.TAG;
20 import static com.android.settings.sim.smartForwarding.SmartForwardingUtils.getPhoneNumber;
DMDNHandlerFragment.java17 package com.android.settings.sim.smartForwarding;
19 import static com.android.settings.sim.smartForwarding.MDNHandlerHeaderFragment.KEY_SLOT0_PHONE_NUM…
20 import static com.android.settings.sim.smartForwarding.MDNHandlerHeaderFragment.KEY_SLOT1_PHONE_NUM…
DDisableSmartForwardingTask.java17 package com.android.settings.sim.smartForwarding;
19 import static com.android.settings.sim.smartForwarding.SmartForwardingUtils.TAG;
DMDNHandlerHeaderFragment.java17 package com.android.settings.sim.smartForwarding;
19 import static com.android.settings.sim.smartForwarding.SmartForwardingUtils.getPhoneNumber;
DEnableSmartForwardingTask.java17 package com.android.settings.sim.smartForwarding;
21 import static com.android.settings.sim.smartForwarding.SmartForwardingUtils.TAG;
/packages/apps/Settings/tests/robotests/src/com/android/settings/sim/
DSimSelectNotificationTest.java16 package com.android.settings.sim;
31 import static com.android.settings.sim.SimDialogActivity.DATA_PICK;
32 import static com.android.settings.sim.SimDialogActivity.INVALID_PICK;
33 import static com.android.settings.sim.SimDialogActivity.PICK_DISMISS;
34 import static com.android.settings.sim.SimSelectNotification.ENABLE_MMS_NOTIFICATION_CHANNEL;
35 import static com.android.settings.sim.SimSelectNotification.ENABLE_MMS_NOTIFICATION_ID;
36 import static com.android.settings.sim.SimSelectNotification.SIM_WARNING_NOTIFICATION_CHANNEL;
37 import static com.android.settings.sim.SimSelectNotification.SIM_WARNING_NOTIFICATION_ID;
DSimListDialogFragmentTest.java17 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;
DPreferredSimDialogFragmentTest.java17 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;
DSimDialogFragmentTestBase.java17 package com.android.settings.sim;
19 import static com.android.settings.sim.SimDialogActivity.DIALOG_TYPE_KEY;
/packages/apps/Settings/src/com/android/settings/sim/receivers/
DSimSlotChangeHandler.java17 package com.android.settings.sim.receivers;
35 import com.android.settings.sim.ChooseSimActivity;
36 import com.android.settings.sim.DsdsDialogActivity;
37 import com.android.settings.sim.SimActivationNotifier;
38 import com.android.settings.sim.SimNotificationService;
39 import com.android.settings.sim.SwitchToEsimConfirmDialogActivity;
DSimCompleteBootReceiver.java17 package com.android.settings.sim.receivers;
24 import com.android.settings.sim.SimActivationNotifier;
25 import com.android.settings.sim.SimNotificationService;
DSuwFinishReceiver.java17 package com.android.settings.sim.receivers;
/packages/services/Telephony/src/com/android/phone/
DPhoneUtils.java785 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/Contacts/tests/src/com/android/contacts/activities/
DSimImportActivityTest.java253 final SimCard sim = someSimCard(); in selectionsAreImportedAndDisabledOnSubsequentImports()
255 doReturn(Collections.singletonList(sim)).when(spy).getSimCards(); in selectionsAreImportedAndDisabledOnSubsequentImports()
256 doReturn(sim).when(spy).getSimBySubscriptionId(anyInt()); in selectionsAreImportedAndDisabledOnSubsequentImports()
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/sim/
DOWNERS1 include /src/com/android/settings/sim/OWNERS
/packages/apps/Settings/src/com/android/settings/sim/
DCallsSimListDialogFragment.java17 package com.android.settings.sim;
DSimSelectNotification.java17 package com.android.settings.sim;
36 import static com.android.settings.sim.SimDialogActivity.PICK_DISMISS;

123