Home
last modified time | relevance | path

Searched refs:SimContact (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Contacts/tests/src/com/android/contacts/database/
DSimContactDaoTests.java60 import com.android.contacts.model.SimContact;
132 new SimContact(1, "Test One", "15095550101"), in importFromSim()
133 new SimContact(2, "Test Two", "15095550102"), in importFromSim()
134 new SimContact(3, "Test Three", "15095550103", new String[] { in importFromSim()
164 new SimContact(1, "Test importJustName", null, null) in importContactWhichOnlyHasName()
179 new SimContact(1, null, "15095550111", null) in importContactWhichOnlyHasPhone()
196 new SimContact(1, null, null, null), in ignoresEmptyContacts()
197 new SimContact(2, null, null, null), in ignoresEmptyContacts()
198 new SimContact(3, null, null, null), in ignoresEmptyContacts()
199 new SimContact(4, "Not null", null, null) in ignoresEmptyContacts()
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/
DSimContact.java45 public class SimContact implements Parcelable { class
51 public SimContact(long id, String name, String phone) { in SimContact() method in SimContact
55 public SimContact(long id, String name, String phone, String[] emails) { in SimContact() method in SimContact
62 public SimContact(SimContact other) { in SimContact() method in SimContact
167 final SimContact that = (SimContact) o; in equals()
195 public static final Creator<SimContact> CREATOR = new Creator<SimContact>() {
197 public SimContact createFromParcel(Parcel source) {
202 return new SimContact(id, name, phone, emails);
206 public SimContact[] newArray(int size) {
207 return new SimContact[size];
[all …]
DSimCard.java55 private List<SimContact> mContacts;
171 public List<SimContact> getContacts() { in getContacts()
190 public SimCard withContacts(List<SimContact> contacts) { in withContacts()
196 public SimCard withContacts(SimContact... contacts) { in withContacts()
/packages/apps/Contacts/src/com/android/contacts/database/
DSimContactDaoImpl.java46 import com.android.contacts.model.SimContact;
127 public ArrayList<SimContact> loadContactsForSim(SimCard sim) { in loadContactsForSim()
134 public ArrayList<SimContact> loadSimContacts(int subscriptionId) { in loadSimContacts()
141 public ArrayList<SimContact> loadSimContacts() { in loadSimContacts()
146 public ContentProviderResult[] importContacts(List<SimContact> contacts, in importContacts()
188 public Map<AccountWithDataSet, Set<SimContact>> findAccountsOfExistingSimContacts( in findAccountsOfExistingSimContacts()
189 List<SimContact> contacts) { in findAccountsOfExistingSimContacts()
190 final Map<AccountWithDataSet, Set<SimContact>> result = new ArrayMap<>(); in findAccountsOfExistingSimContacts()
199 private void findAccountsOfExistingSimContacts(List<SimContact> contacts, in findAccountsOfExistingSimContacts()
200 Map<AccountWithDataSet, Set<SimContact>> result) { in findAccountsOfExistingSimContacts()
[all …]
DSimContactDao.java25 import com.android.contacts.model.SimContact;
61 new SimContact(1, "Sim One", "15095550111", null), in createDebugInstance()
62 new SimContact(2, "Sim Two", "15095550112", null), in createDebugInstance()
63 new SimContact(3, "Sim Three", "15095550113", null), in createDebugInstance()
64 new SimContact(4, "Sim Four", "15095550114", null), in createDebugInstance()
65 new SimContact(5, "411 & more", "411", null) in createDebugInstance()
69 new SimContact(1, "John Sim", "15095550121", null), in createDebugInstance()
70 new SimContact(2, "Bob Sim", "15095550122", null), in createDebugInstance()
71 new SimContact(3, "Mary Sim", "15095550123", null), in createDebugInstance()
72 new SimContact(4, "Alice Sim", "15095550124", null), in createDebugInstance()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DSimContactTests.java34 assertParcelsCorrectly(new SimContact(1, "name1", "phone1", in parcelRoundtrip()
36 assertParcelsCorrectly(new SimContact(2, "name2", "phone2", null)); in parcelRoundtrip()
37 assertParcelsCorrectly(new SimContact(3, "name3", null, in parcelRoundtrip()
39 assertParcelsCorrectly(new SimContact(4, null, "phone4", in parcelRoundtrip()
41 assertParcelsCorrectly(new SimContact(5, null, null, null)); in parcelRoundtrip()
42 assertParcelsCorrectly(new SimContact(6, "name6", "phone6", in parcelRoundtrip()
46 private void assertParcelsCorrectly(SimContact contact) { in assertParcelsCorrectly()
50 final SimContact unparceled = parcel.readParcelable( in assertParcelsCorrectly()
51 SimContact.class.getClassLoader()); in assertParcelsCorrectly()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
DFakeSimContactDao.java24 import com.android.contacts.model.SimContact;
41 public Map<SimCard, ArrayList<SimContact>> simContacts;
43 public Map<AccountWithDataSet, Set<SimContact>> existingSimContacts;
63 public ArrayList<SimContact> loadContactsForSim(SimCard sim) { in loadContactsForSim()
68 public ContentProviderResult[] importContacts(List<SimContact> contacts, in importContacts()
93 public Map<AccountWithDataSet, Set<SimContact>> findAccountsOfExistingSimContacts( in findAccountsOfExistingSimContacts()
94 List<SimContact> contacts) { in findAccountsOfExistingSimContacts()
98 public FakeSimContactDao addSim(SimCard sim, SimContact... contacts) { in addSim()
104 public static FakeSimContactDao singleSimWithContacts(SimCard sim, SimContact... contacts) { in singleSimWithContacts()
DContactsMatchers.java23 import com.android.contacts.model.SimContact;
127 public static Matcher<SimContact> isSimContactWithNameAndPhone(final String name,
129 return new BaseMatcher<SimContact>() {
132 if (!(o instanceof SimContact)) return false;
134 SimContact other = (SimContact) o;
DSimContactsTestHelper.java39 import com.android.contacts.model.SimContact;
91 final List<SimContact> contacts = mSimDao.loadContactsForSim(sims.get(0)); in deleteAllSimContacts()
93 for (SimContact contact : contacts) { in deleteAllSimContacts()
117 final ArrayList<SimContact> contacts = mSimDao.loadContactsForSim(sims.get(0)); in captureRestoreSnapshot()
120 for (SimContact contact : contacts) { in captureRestoreSnapshot()
135 public String getWriteSelection(SimContact simContact) { in getWriteSelection()
/packages/apps/Contacts/tests/src/com/android/contacts/activities/
DSimImportActivityTest.java59 import com.android.contacts.model.SimContact;
137 new SimContact(1, "Sim One", "5550101"), in shouldDisplaySimContacts()
138 new SimContact(2, "Sim Two", null), in shouldDisplaySimContacts()
139 new SimContact(3, null, "5550103") in shouldDisplaySimContacts()
184 mDao.addSim(someSimCard(), new SimContact(1, "Name One", "5550101"), in smokeRotateInNonEmptyState()
185 new SimContact(2, "Name Two", "5550102")); in smokeRotateInNonEmptyState()
232 .returnRow(toCursorRow(new SimContact(1, "Import One", "5550101"))) in selectionsAreImportedAndDisabledOnSubsequentImports()
233 .returnRow(toCursorRow(new SimContact(2, "Skip Two", "5550102"))) in selectionsAreImportedAndDisabledOnSubsequentImports()
234 .returnRow(toCursorRow(new SimContact(3, "Import Three", "5550103"))) in selectionsAreImportedAndDisabledOnSubsequentImports()
235 .returnRow(toCursorRow(new SimContact(4, "Skip Four", "5550104"))) in selectionsAreImportedAndDisabledOnSubsequentImports()
[all …]
/packages/apps/Contacts/src/com/android/contacts/
DSimImportFragment.java49 import com.android.contacts.model.SimContact;
292 final ArrayList<SimContact> importableContacts = new ArrayList<>(checked.size()); in importCurrentSelections()
357 private static class SimContactAdapter extends ArrayAdapter<SimContact> {
358 private Map<AccountWithDataSet, Set<SimContact>> mExistingMap;
426 public boolean existsInCurrentAccount(SimContact contact) { in existsInCurrentAccount()
433 private String getItemLabel(SimContact contact) { in getItemLabel()
499 public ArrayList<SimContact> contacts;
500 public Map<AccountWithDataSet, Set<SimContact>> accountsMap;
DSimImportService.java36 import com.android.contacts.model.SimContact;
140 ArrayList<SimContact> contacts, AccountWithDataSet targetAccount) { in startImport()
176 final ArrayList<SimContact> contacts = in createTaskForIntent()
260 private final List<SimContact> mContacts;
267 public ImportTask(SimCard sim, List<SimContact> contacts, AccountWithDataSet targetAccount, in ImportTask()
/packages/apps/Contacts/src/com/android/contacts/interactions/
DImportDialogFragment.java47 import com.android.contacts.model.SimContact;
88 final List<SimContact> contacts = sim.getContacts(); in show()
/packages/apps/Contacts/
Dproguard.flags82 -keep class com.android.contacts.model.SimContact { *; }