/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
ContactsContract_RawContactsTest.java | 86 TestRawContact rawContact = mBuilder.newRawContact() 94 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) 98 Uri lookupUri = RawContacts.getContactLookupUri(mResolver, rawContact.getUri()); 103 lookupContact.getId(), rawContact.load().getContactId()); 107 TestRawContact rawContact = mBuilder.newRawContact() 111 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) 115 Uri lookupUri = RawContacts.getContactLookupUri(mResolver, rawContact.getUri()); 120 lookupContact.getId(), rawContact.load().getContactId()); 221 TestRawContact rawContact = mBuilder.newRawContact() 225 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE [all...] |
ContactsContract_ContactsTest.java | 65 TestRawContact rawContact = mBuilder.newRawContact().insert().load(); 66 TestContact contact = rawContact.getContact().load(); 71 assertEquals(0, rawContact.getLong(Contacts.LAST_TIME_CONTACTED)); 72 assertEquals(0, rawContact.getLong(Contacts.TIMES_CONTACTED)); 77 rawContact.load(); 84 rawContact.getLong(Contacts.LAST_TIME_CONTACTED)); 85 assertEquals("#" + i, i, rawContact.getLong(Contacts.TIMES_CONTACTED)); 91 rawContact.load(); 98 rawContact.getLong(Contacts.LAST_TIME_CONTACTED)); 99 assertEquals("#" + i, 10, rawContact.getLong(Contacts.TIMES_CONTACTED)) [all...] |
ContactsContract_GroupMembershipTest.java | 51 TestRawContact rawContact = mBuilder.newRawContact().insert(); 53 TestData groupMembership = rawContact.newDataRow(GroupMembership.CONTENT_ITEM_TYPE) 58 groupMembership.assertColumn(GroupMembership.RAW_CONTACT_ID, rawContact.getId()); 63 TestRawContact rawContact = mBuilder.newRawContact() 72 TestData groupMembership = rawContact.newDataRow(GroupMembership.CONTENT_ITEM_TYPE) 77 groupMembership.assertColumn(GroupMembership.RAW_CONTACT_ID, rawContact.getId()); 83 TestRawContact rawContact = mBuilder.newRawContact() 87 TestData groupMembership = rawContact.newDataRow(GroupMembership.CONTENT_ITEM_TYPE) 98 groupMembership.assertColumn(GroupMembership.RAW_CONTACT_ID, rawContact.getId());
|
ContactsContract_PhotoTest.java | 63 TestRawContact rawContact = mBuilder.newRawContact().insert().load(); 64 TestContact contact = rawContact.getContact().load(); 70 TestData photoData = rawContact.newDataRow(Photo.CONTENT_ITEM_TYPE) 75 photoData.assertColumn(Photo.RAW_CONTACT_ID, rawContact.getId()); 84 TestRawContact rawContact = mBuilder.newRawContact().insert().load(); 85 TestContact contact = rawContact.getContact().load(); 91 TestData photoData = rawContact.newDataRow(Photo.CONTENT_ITEM_TYPE)
|
ContactsContract_DataTest.java | 207 TestRawContact rawContact = mBuilder.newRawContact() 215 TestData data = rawContact.newDataRow(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE) 228 TestRawContact rawContact = mBuilder.newRawContact() 233 TestData data = rawContact.newDataRow(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE) 244 TestRawContact rawContact = mBuilder.newRawContact() 249 TestData data = rawContact.newDataRow(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE) 299 new long[]{rawContact.getId()} 304 TestRawContact rawContact = mBuilder.newRawContact() 309 TestData data = rawContact.newDataRow(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE) 312 long contactId = rawContact.load().getContactId() [all...] |
ContactsContract_ContactCountsTest.java | 117 TestRawContact rawContact = mBuilder.newRawContact() 121 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) 124 rawContact.load(); 125 TestContact contact = rawContact.getContact().load();
|
ContactsContract_PhoneLookup.java | 74 TestRawContact rawContact = mBuilder.newRawContact() 78 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) 81 long dataId = rawContact.newDataRow(Phone.CONTENT_ITEM_TYPE) 85 rawContact.load(); 86 TestContact contact = rawContact.getContact().load();
|
ContactsContract_TestDataBuilder.java | 302 public NestedTestContact(TestRawContact rawContact) { 303 mRawContact = rawContact; 328 public TestData(TestRawContact rawContact, String mimeType) { 329 this.mRawContact = rawContact;
|
ContactsContract_FrequentsStrequentsTest.java | 431 TestRawContact rawContact = mBuilder.newRawContact() 435 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) 438 mDataIds[0] = rawContact.newDataRow(Phone.CONTENT_ITEM_TYPE) 442 rawContact.load(); 443 TestContact contact = rawContact.getContact().load();
|
ContactsContract_SearchSnippetsTest.java | 329 TestRawContact rawContact = mBuilder.newRawContact() 333 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) 336 rawContact.newDataRow(Phone.CONTENT_ITEM_TYPE) 340 rawContact.load(); 341 TestContact contact = rawContact.getContact().load();
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/ |
ContactManager.java | 20 import com.example.android.samplesync.client.RawContact; 106 List<RawContact> rawContacts, long groupId, long lastSyncMarker) { 111 final List<RawContact> newUsers = new ArrayList<RawContact>(); 114 for (final RawContact rawContact : rawContacts) { 121 if (rawContact.getSyncState() > currentSyncMarker) { 122 currentSyncMarker = rawContact.getSyncState(); 132 if (rawContact.getRawContactId() > 0) { 133 rawContactId = rawContact.getRawContactId() [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
PickRawContactLoader.java | 86 // Load RawContact data 109 final Map<Long, RawContact> rawContactMap = new HashMap<>(); 112 RawContact rawContact = new RawContact(); 113 rawContact.id = rawContactCursor.getLong(RAW_CONTACT_ID); 114 photoSelection.append(rawContact.id).append(','); 115 rawContact.displayName = rawContactCursor.getString(DISPLAY_NAME_PRIMARY); 116 rawContact.displayNameAlt = rawContactCursor.getString(DISPLAY_NAME_ALTERNATIVE); 117 rawContact.accountName = rawContactCursor.getString(ACCOUNT_NAME) [all...] |
PickRawContactDialogFragment.java | 22 import com.android.contacts.editor.PickRawContactLoader.RawContact; 99 final RawContact rawContact = mRawContactsMetadata.rawContacts.get(position); 100 final AccountType account = mAccountTypeManager.getAccountType(rawContact.accountType, 101 rawContact.accountDataSet); 105 ? rawContact.displayName : rawContact.displayNameAlt; 118 new AccountWithDataSet(rawContact.accountName, 119 rawContact.accountType, rawContact.accountDataSet)) [all...] |
ContactEditorFragment.java | 74 import com.android.contacts.model.RawContact; 336 protected ImmutableList<RawContact> mRawContacts; 484 mRawContacts = ImmutableList.copyOf(savedState.<RawContact>getParcelableArrayList( 604 Lists.<RawContact>newArrayList() : Lists.newArrayList(mRawContacts)); [all...] |
/packages/apps/Dialer/java/com/android/contacts/common/model/ |
ContactLoader.java | 176 final RawContact rawContact = new RawContact(values); 189 processOneRecord(rawContact, item, mimetype); 192 processOneRecord(rawContact, obj, mimetype); 196 contact.setRawContacts(new ImmutableList.Builder<RawContact>().add(rawContact).build()); 200 private static void processOneRecord(RawContact rawContact, JSONObject item, String mimetype) 216 rawContact.addDataItemValues(itemValues) [all...] |
RawContact.java | 36 * RawContact represents a single raw contact in the raw contacts database. It has specialized 38 * RawContact contains the information from a single account. 40 * <p>This allows RawContact objects to be thought of as a class with raw contact fields (like 44 public final class RawContact implements Parcelable { 47 public static final Parcelable.Creator<RawContact> CREATOR = 48 new Parcelable.Creator<RawContact>() { 51 public RawContact createFromParcel(Parcel parcel) { 52 return new RawContact(parcel); 56 public RawContact[] newArray(int i) { 57 return new RawContact[i] [all...] |
Contact.java | 33 * about a contact can come from multiple data sources, which are each represented by a RawContact 34 * object. Thus, a Contact is associated with a collection of RawContact objects. 65 private ImmutableList<RawContact> mRawContacts; 297 public ImmutableList<RawContact> getRawContacts() { 301 /* package */ void setRawContacts(ImmutableList<RawContact> rawContacts) { 332 RawContact rawContact = mRawContacts.get(0); 333 ArrayList<ContentValues> result = rawContact.getContentValues();
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
Contact.java | 40 * about a contact can come from multiple data sources, which are each represented by a RawContact 41 * object. Thus, a Contact is associated with a collection of RawContact objects. 75 private ImmutableList<RawContact> mRawContacts; 348 public ImmutableList<RawContact> getRawContacts() { 382 for (RawContact rawContact : getRawContacts()) { 383 AccountType accountType = rawContact.getAccountType(context); 385 return rawContact.getId(); 426 RawContact rawContact = mRawContacts.get(0) [all...] |
ContactLoader.java | 415 final RawContact rawContact = new RawContact(values); 428 processOneRecord(rawContact, item, mimetype); 431 processOneRecord(rawContact, obj, mimetype); 435 contact.setRawContacts(new ImmutableList.Builder<RawContact>() 436 .add(rawContact) 441 private static void processOneRecord(RawContact rawContact, JSONObject item, String mimetype) 457 rawContact.addDataItemValues(itemValues) [all...] |
RawContact.java | 40 * RawContact represents a single raw contact in the raw contacts database. 42 * items, and also contains a collection of DataItem objects. A RawContact contains the information 45 * This allows RawContact objects to be thought of as a class with raw contact 50 final public class RawContact implements Parcelable { 123 public static RawContact createFrom(Entity entity) { 127 RawContact rawContact = new RawContact(values); 129 rawContact.addNamedDataItemValues(subValue.uri, subValue.values); 131 return rawContact; [all...] |
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/ |
NetworkUtilities.java | 160 public static List<RawContact> syncContacts( 161 Account account, String authtoken, long serverSyncState, List<RawContact> dirtyContacts) 165 for (RawContact rawContact : dirtyContacts) { 166 jsonContacts.add(rawContact.toJSONObject()); 174 final ArrayList<RawContact> serverDirtyList = new ArrayList<RawContact>(); 202 RawContact rawContact = RawContact.valueOf(serverContacts.getJSONObject(i)) [all...] |
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
InvisibleContactUtil.java | 12 import com.android.contacts.model.RawContact; 52 final RawContact rawContact = (RawContact) contactData.getRawContacts().get(0); 53 final AccountType type = rawContact.getAccountType(context); 60 rawContact.getDataItems(), GroupMembershipDataItem.class)) {
|
QuickContactActivity.java | 141 import com.android.contacts.model.RawContact; [all...] |
/packages/apps/Contacts/src/com/android/contacts/detail/ |
ContactDisplayUtils.java | 39 import com.android.contacts.model.RawContact; 120 for (RawContact rawContact : contactData.getRawContacts()) { 122 rawContact.getDataItems(), OrganizationDataItem.class)) {
|