/packages/apps/Contacts/src/com/android/contacts/model/ |
D | SimCard.java | 34 public class SimCard { class 57 public SimCard(SimCard other) { in SimCard() method in SimCard 71 public SimCard(String simId, int subscriptionId, CharSequence carrierName, in SimCard() method in SimCard 81 public SimCard(String simId, CharSequence carrierName, in SimCard() method in SimCard 175 public SimCard withImportAndDismissStates(boolean imported, boolean dismissed) { in withImportAndDismissStates() 176 SimCard copy = new SimCard(this); in withImportAndDismissStates() 182 public SimCard withImportedState(boolean imported) { in withImportedState() 186 public SimCard withDismissedState(boolean dismissed) { in withDismissedState() 190 public SimCard withContacts(List<SimContact> contacts) { in withContacts() 191 final SimCard copy = new SimCard(this); 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 | 38 import com.android.contacts.model.SimCard; 87 final List<SimCard> sims = mSimDao.getSimCards(); in deleteAllSimContacts() 113 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; 115 public List<SimCard> getSimCards() { in getSimCards() 119 final List<SimCard> sims = CompatUtils.isMSIMCompatible() ? in getSimCards() 121 Collections.singletonList(SimCard.create(mTelephonyManager, in getSimCards() 127 public ArrayList<SimContact> loadContactsForSim(SimCard sim) { in loadContactsForSim() 161 public void persistSimState(SimCard sim) { in persistSimState() 166 public void persistSimStates(List<SimCard> simCards) { in persistSimStates() 171 public SimCard getSimBySubscriptionId(int subscriptionId) { in getSimBySubscriptionId() 172 final List<SimCard> sims = SharedPreferenceUtil.restoreSimStates(mContext, getSimCards()); in getSimBySubscriptionId() 173 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 | 48 import com.android.contacts.model.SimCard; 106 mSubscriptionId = args == null ? SimCard.NO_SUBSCRIPTION_ID : in onCreate() 107 args.getInt(ARG_SUBSCRIPTION_ID, SimCard.NO_SUBSCRIPTION_ID); in onCreate() 485 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 | 59 import com.android.contacts.model.SimCard; 613 .loadContactsForSim(new SimCard("123", "carrier", "sim", null, "us")); in createsContactsFromCursor() 649 .loadContactsForSim(new SimCard("123", "carrier", "sim", null, "us")); in excludesEmptyContactsFromResult() 673 sut.loadContactsForSim(new SimCard("123", 2, "carrier", "sim", null, "us")); in usesSimCardSubscriptionIdIfAvailable() 689 sut.loadContactsForSim(new SimCard("123", SimCard.NO_SUBSCRIPTION_ID, in omitsSimCardSubscriptionIdIfUnavailable() 707 .loadContactsForSim(new SimCard("123", "carrier", "sim", null, "us")); in returnsEmptyListForEmptyCursor() 728 .loadContactsForSim(new SimCard("123", "carrier", "sim", null, "us")); in returnsEmptyListForNullCursor() 764 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 | 58 import com.android.contacts.model.SimCard; 251 final SimCard sim = someSimCard(); in selectionsAreImportedAndDisabledOnSubsequentImports() 357 private SimCard someSimCard() { in someSimCard() 358 return new SimCard("id", 1, "Carrier", "SIM", "18005550101", "us"); in someSimCard()
|
/packages/apps/Contacts/ |
D | proguard.flags | 81 -keep class com.android.contacts.model.SimCard { *; }
|