Home | History | Annotate | Download | only in interactions

Lines Matching refs:sim

83         for (SimCard sim : sims) {
84 final List<SimContact> contacts = sim.getContacts();
88 args.putInt(EXTRA_SIM_CONTACT_COUNT_PREFIX + sim.getSimId(), contacts.size());
155 CharSequence getSimSecondaryText(SimCard sim) {
156 int count = getSimContactCount(sim);
158 CharSequence phone = sim.getFormattedPhone();
160 phone = sim.getPhone();
208 // Handle edge case; e.g. SIM card was removed.
217 private int getSimContactCount(SimCard sim) {
218 if (sim.getContacts() != null) {
219 return sim.getContacts().size();
225 return args.getInt(EXTRA_SIM_CONTACT_COUNT_PREFIX + sim.getSimId(), -1);
242 final SimCard sim = sims.get(i);
243 adapter.add(new AdapterEntry(getSimDescription(sim, i), R.string.import_from_sim, sim));
247 private void handleSimImportRequest(SimCard sim) {
249 .putExtra(SimImportActivity.EXTRA_SUBSCRIPTION_ID, sim.getSubscriptionId()));
282 private CharSequence getSimDescription(SimCard sim, int index) {
283 final CharSequence name = sim.getDisplayName();
296 public AdapterEntry(CharSequence label, int resId, SimCard sim) {
299 mSim = sim;
305 this(label, resId, /* sim= */ null);