HomeSort by relevance Sort by last modified time
    Searched defs:rawContact (Results 1 - 13 of 13) sorted by null

  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/
ContactManager.java 20 import com.example.android.samplesync.client.RawContact;
115 List<RawContact> rawContacts, long groupId, long lastSyncMarker) {
120 final List<RawContact> newUsers = new ArrayList<RawContact>();
123 for (final RawContact rawContact : rawContacts) {
130 if (rawContact.getSyncState() > currentSyncMarker) {
131 currentSyncMarker = rawContact.getSyncState();
141 if (rawContact.getRawContactId() > 0) {
142 rawContactId = rawContact.getRawContactId()
    [all...]
  /cts/tests/tests/provider/src/android/provider/cts/
ContactsContract_ContactsTest.java 65 TestRawContact rawContact = mBuilder.newRawContact().insert().load();
66 TestContact contact = rawContact.getContact().load();
93 TestRawContact rawContact = mBuilder.newRawContact().insert().load();
94 TestContact contact = rawContact.getContact().load();
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 61 TestRawContact rawContact = mBuilder.newRawContact().insert().load();
62 TestContact contact = rawContact.getContact().load();
68 TestData photoData = rawContact.newDataRow(Photo.CONTENT_ITEM_TYPE)
73 photoData.assertColumn(Photo.RAW_CONTACT_ID, rawContact.getId());
82 TestRawContact rawContact = mBuilder.newRawContact().insert().load();
83 TestContact contact = rawContact.getContact().load();
89 TestData photoData = rawContact.newDataRow(Photo.CONTENT_ITEM_TYPE)
ContactsContract_DataTest.java 68 TestRawContact rawContact = mBuilder.newRawContact()
76 TestData data = rawContact.newDataRow(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE)
89 TestRawContact rawContact = mBuilder.newRawContact()
93 TestData data = rawContact.newDataRow(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE)
106 TestRawContact rawContact = mBuilder.newRawContact()
110 rawContact.newDataRow(CommonDataKinds.Email.CONTENT_ITEM_TYPE)
121 new long[] {rawContact.getId()}, cv);
122 rawContact.newDataRow(CommonDataKinds.StructuredPostal.CONTENT_ITEM_TYPE)
126 rawContact.newDataRow(Phone.CONTENT_ITEM_TYPE)
137 Data.RAW_CONTACT_ID + "=?", new String[] {String.valueOf(rawContact.getId())}
    [all...]
ContactsContract_RawContactsTest.java 57 TestRawContact rawContact = mBuilder.newRawContact()
65 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
69 Uri lookupUri = RawContacts.getContactLookupUri(mResolver, rawContact.getUri());
74 lookupContact.getId(), rawContact.load().getContactId());
78 TestRawContact rawContact = mBuilder.newRawContact()
82 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
86 Uri lookupUri = RawContacts.getContactLookupUri(mResolver, rawContact.getUri());
91 lookupContact.getId(), rawContact.load().getContactId());
  /packages/apps/Contacts/src/com/android/contacts/model/
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...]
Contact.java 39 * about a contact can come from multiple data sources, which are each represented by a RawContact
40 * object. Thus, a Contact is associated with a collection of RawContact objects.
74 private ImmutableList<RawContact> mRawContacts;
347 public ImmutableList<RawContact> getRawContacts() {
390 for (RawContact rawContact : getRawContacts()) {
391 AccountType accountType = rawContact.getAccountType(context);
393 return rawContact.getId();
430 RawContact rawContact = mRawContacts.get(0)
    [all...]
ContactLoader.java 375 RawContact rawContact = null;
376 ImmutableList.Builder<RawContact> rawContactsBuilder =
377 new ImmutableList.Builder<RawContact>();
386 rawContact = new RawContact(loadRawContactValues(cursor));
387 rawContactsBuilder.add(rawContact);
391 rawContact.addDataItemValues(data);
449 for (RawContact rawContact : contactData.getRawContacts())
    [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/editor/
AggregationSuggestionEngine.java 57 public static final class RawContact {
79 public List<RawContact> rawContacts;
393 RawContact rawContact = new RawContact();
394 rawContact.rawContactId = rawContactId;
395 rawContact.accountName = mDataCursor.getString(DataQuery.ACCOUNT_NAME);
396 rawContact.accountType = mDataCursor.getString(DataQuery.ACCOUNT_TYPE);
397 rawContact.dataSet = mDataCursor.getString(DataQuery.DATA_SET);
398 suggestion.rawContacts.add(rawContact);
    [all...]
ContactEditorFragment.java 83 import com.android.contacts.model.RawContact;
259 private ImmutableList<RawContact> mRawContacts;
498 mRawContacts = ImmutableList.copyOf(savedState.<RawContact>getParcelableArrayList(
521 RawContact rawContact = mRawContacts.get(0);
522 String type = rawContact.getAccountTypeString();
523 String dataSet = rawContact.getDataSet();
524 AccountType accountType = rawContact.getAccountType(mContext);
528 String name = rawContact.getAccountName();
529 long rawContactId = rawContact.getId()
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/activities/
ConfirmAddDetailActivity.java 66 import com.android.contacts.model.RawContact;
634 final RawContact rawContact = new RawContact();
635 rawContact.setAccount(editableAccount);
638 rawContact.getValues()));
    [all...]

Completed in 100 milliseconds