/packages/apps/Contacts/src/com/android/contacts/model/ |
D | SimCard.java | 35 public class SimCard { class 58 public SimCard(SimCard other) { in SimCard() method in SimCard 72 public SimCard(String simId, int subscriptionId, CharSequence carrierName, in SimCard() method in SimCard 171 public SimCard withImportAndDismissStates(boolean imported, boolean dismissed) { in withImportAndDismissStates() 172 SimCard copy = new SimCard(this); in withImportAndDismissStates() 178 public SimCard withImportedState(boolean imported) { in withImportedState() 182 public SimCard withDismissedState(boolean dismissed) { in withDismissedState() 186 public SimCard withContacts(List<SimContact> contacts) { in withContacts() 187 final SimCard copy = new SimCard(this); in withContacts() 192 public SimCard withContacts(SimContact... contacts) { in withContacts() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
D | FakeSimContactDao.java | 23 import com.android.contacts.model.SimCard; 40 public List<SimCard> simCards; 41 public Map<SimCard, ArrayList<SimContact>> simContacts; 58 public List<SimCard> getSimCards() { in getSimCards() 63 public ArrayList<SimContact> loadContactsForSim(SimCard sim) { in loadContactsForSim() 75 public void persistSimStates(List<SimCard> simCards) { in persistSimStates() 80 public SimCard getSimBySubscriptionId(int subscriptionId) { in getSimBySubscriptionId() 81 if (subscriptionId == SimCard.NO_SUBSCRIPTION_ID) { in getSimBySubscriptionId() 84 for (SimCard sim : simCards) { in getSimBySubscriptionId() 98 public FakeSimContactDao addSim(SimCard sim, SimContact... contacts) { in addSim() [all …]
|
D | SimContactsTestHelper.java | 40 import com.android.contacts.model.SimCard; 92 final List<SimCard> sims = mSimDao.getSimCards(); in deleteAllSimContacts() 118 final List<SimCard> sims = mSimDao.getSimCards(); in captureRestoreSnapshot()
|
/packages/apps/Contacts/src/com/android/contacts/database/ |
D | SimContactDaoImpl.java | 45 import com.android.contacts.model.SimCard; 108 public List<SimCard> getSimCards() { in getSimCards() 112 final List<SimCard> sims = CompatUtils.isMSIMCompatible() ? in getSimCards() 114 Collections.singletonList(SimCard.create(mTelephonyManager, in getSimCards() 120 public ArrayList<SimContact> loadContactsForSim(SimCard sim) { in loadContactsForSim() 150 public void persistSimState(SimCard sim) { in persistSimState() 155 public void persistSimStates(List<SimCard> simCards) { in persistSimStates() 160 public SimCard getSimBySubscriptionId(int subscriptionId) { in getSimBySubscriptionId() 161 final List<SimCard> sims = SharedPreferenceUtil.restoreSimStates(mContext, getSimCards()); in getSimBySubscriptionId() 162 if (subscriptionId == SimCard.NO_SUBSCRIPTION_ID && !sims.isEmpty()) { in getSimBySubscriptionId() [all …]
|
D | SimContactDao.java | 24 import com.android.contacts.model.SimCard; 59 .addSimCard(new SimCard("fake-sim-id1", 1, "Fake Carrier", in createDebugInstance() 67 .addSimCard(new SimCard("fake-sim-id2", 2, "Carrier Two", in createDebugInstance() 92 public abstract List<SimCard> getSimCards(); in getSimCards() 94 public abstract ArrayList<SimContact> loadContactsForSim(SimCard sim); in loadContactsForSim() 100 public abstract void persistSimStates(List<SimCard> simCards); in persistSimStates() 102 public abstract SimCard getSimBySubscriptionId(int subscriptionId); in getSimBySubscriptionId() 107 public void persistSimState(SimCard sim) { in persistSimState()
|
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
D | ImportDialogFragment.java | 46 import com.android.contacts.model.SimCard; 82 public static void show(FragmentManager fragmentManager, List<SimCard> sims, in show() 87 for (SimCard sim : sims) { in show() 159 CharSequence getSimSecondaryText(SimCard sim) { in onCreateDialog() 201 handleImportRequest(resId, SimCard.NO_SUBSCRIPTION_ID); in onCreateDialog() 223 private int getSimContactCount(SimCard sim) { in getSimContactCount() 240 final List<SimCard> sims = mSimDao.getSimCards(); in addItems() 248 final SimCard sim = sims.get(i); in addItems() 253 private void handleSimImportRequest(SimCard sim) { in handleSimImportRequest() 288 private CharSequence getSimDescription(SimCard sim, int index) { in getSimDescription() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | SimImportService.java | 35 import com.android.contacts.model.SimCard; 70 boolean isImporting(SimCard sim); in isImporting() 105 public boolean isImporting(SimCard sim) { 115 private static boolean isImporting(SimCard sim) { in isImporting() 180 SimCard.NO_SUBSCRIPTION_ID); in createTaskForIntent() 182 final SimCard sim = dao.getSimBySubscriptionId(subscriptionId); in createTaskForIntent() 259 private final SimCard mSim; 267 public ImportTask(SimCard sim, List<SimContact> contacts, AccountWithDataSet targetAccount, in ImportTask() 305 public SimCard getSim() { in getSim()
|
D | SimImportFragment.java | 47 import com.android.contacts.model.SimCard; 105 mSubscriptionId = args == null ? SimCard.NO_SUBSCRIPTION_ID : in onCreate() 106 args.getInt(ARG_SUBSCRIPTION_ID, SimCard.NO_SUBSCRIPTION_ID); in onCreate() 484 final SimCard sim = mDao.getSimBySubscriptionId(mSubscriptionId); in loadFromSim()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | SharedPreferenceUtil.java | 23 import com.android.contacts.model.SimCard; 168 public static void persistSimStates(Context context, Collection<SimCard> sims) { in persistSimStates() 171 for (SimCard sim : sims) { in persistSimStates() 193 public static List<SimCard> restoreSimStates(Context context, List<SimCard> sims) { in restoreSimStates() 196 List<SimCard> result = new ArrayList<>(); in restoreSimStates() 197 for (SimCard sim : sims) { in restoreSimStates()
|
/packages/apps/Contacts/tests/src/com/android/contacts/database/ |
D | SimContactDaoTests.java | 61 import com.android.contacts.model.SimCard; 611 .loadContactsForSim(new SimCard("123", 1, "carrier", "sim", null, "us")); in createsContactsFromCursor() 639 .loadContactsForSim(new SimCard("123", 1, "carrier", "sim", null, "us")); in excludesEmptyContactsFromResult() 661 sut.loadContactsForSim(new SimCard("123", 2, "carrier", "sim", null, "us")); in usesSimCardSubscriptionIdIfAvailable() 677 .loadContactsForSim(new SimCard("123", 1, "carrier", "sim", null, "us")); in returnsEmptyListForEmptyCursor() 698 .loadContactsForSim(new SimCard("123", 1, "carrier", "sim", null, "us")); in returnsEmptyListForNullCursor() 734 final SimCard sim = sut.getSimCards().get(0); in readFromSim()
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | SimImportActivity.java | 25 import com.android.contacts.model.SimCard; 45 SimCard.NO_SUBSCRIPTION_ID)); in onCreate()
|
/packages/apps/Contacts/tests/src/com/android/contacts/activities/ |
D | SimImportActivityTest.java | 60 import com.android.contacts.model.SimCard; 253 final SimCard sim = someSimCard(); in selectionsAreImportedAndDisabledOnSubsequentImports() 361 private SimCard someSimCard() { in someSimCard() 362 return new SimCard("id", 1, "Carrier", "SIM", "18005550101", "us"); in someSimCard()
|
/packages/apps/Contacts/ |
D | proguard.flags | 80 -keep class com.android.contacts.model.SimCard { *; }
|