HomeSort by relevance Sort by last modified time
    Searched refs:RawContact (Results 1 - 20 of 20) sorted by null

  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/
RawContactTest.java 24 import com.android.contacts.common.model.RawContact;
29 * Unit test for {@link RawContact}.
33 private RawContact buildRawContact() {
42 final RawContact contact = new RawContact(values);
48 private RawContact buildRawContact2() {
57 final RawContact contact = new RawContact(values);
64 final RawContact one = buildRawContact();
65 final RawContact two = buildRawContact2()
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/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 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;
361 public ImmutableList<RawContact> getRawContacts() {
395 for (RawContact rawContact : getRawContacts()) {
396 AccountType accountType = rawContact.getAccountType(context);
398 return rawContact.getId();
439 RawContact rawContact = mRawContacts.get(0)
    [all...]
ContactLoader.java 435 final RawContact rawContact = new RawContact(values);
448 processOneRecord(rawContact, item, mimetype);
451 processOneRecord(rawContact, obj, mimetype);
455 contact.setRawContacts(new ImmutableList.Builder<RawContact>()
456 .add(rawContact)
461 private static void processOneRecord(RawContact rawContact, JSONObject item, String mimetype)
477 rawContact.addDataItemValues(itemValues)
    [all...]
RawContactDeltaList.java 77 * RawContact objects.
90 final RawContact before = nextObject instanceof Entity
91 ? RawContact.createFrom((Entity) nextObject)
92 : (RawContact) nextObject;
RawContactDelta.java 46 * Contains a {@link RawContact} and records any modifications separately so the
47 * original {@link RawContact} can be swapped out with a newer version and the
51 * empty {@link RawContact}, which then becomes an insert {@link RawContacts} case.
53 * When applying modifications over an {@link RawContact}, we try finding the
55 * rows are missing from the new {@link RawContact}, we know the original data must
89 * Build an {@link RawContactDelta} using the given {@link RawContact} as a
92 public static RawContactDelta fromBefore(RawContact before) {
  /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...]
  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/
RawContact.java 27 * Represents a low-level contacts RawContact - or at least
28 * the fields of the RawContact that we care about.
30 final public class RawContact {
33 private static final String TAG = "RawContact";
136 * Convert the RawContact object into a JSON string. From the
172 Log.i(TAG, "Error converting RawContact to JSONObject" + ex.toString());
178 public RawContact(String name, String fullName, String firstName, String lastName,
200 * Creates and returns an instance of the RawContact from the provided JSON data.
203 * @return user The new instance of Sample RawContact created from the JSON data.
205 public static RawContact valueOf(JSONObject contact)
    [all...]
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/ContactsCommon/tests/src/com/android/contacts/common/
RawContactDeltaTests.java 33 import com.android.contacts.common.model.RawContact;
66 public static RawContact getRawContact(Context context, long contactId, long phoneId) {
78 final RawContact before = new RawContact(contact);
87 * "before" {@link RawContact}.
90 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID);
100 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID);
118 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID);
132 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID);
166 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID)
    [all...]
RawContactDeltaListTests.java 35 import com.android.contacts.common.model.RawContact;
105 final RawContact before = RawContactDeltaTests.getRawContact(context, rawContactId,
131 final RawContact before = new RawContact(contact);
RawContactModifierTests.java 40 import com.android.contacts.common.model.RawContact;
171 * Build an {@link RawContact} with the requested set of phone numbers.
181 final RawContact before = new RawContact(contact);
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/editor/
AggregationSuggestionView.java 31 import com.android.contacts.editor.AggregationSuggestionEngine.RawContact;
65 private List<RawContact> mRawContacts = Lists.newArrayList();
123 for (RawContact rawContact : mRawContacts) {
124 String accountType = rawContact.accountType;
125 String dataSet = rawContact.dataSet;
151 for (RawContact rawContact : mRawContacts) {
152 rawContactIds.add(rawContact.rawContactId);
ContactEditorBaseFragment.java 32 import com.android.contacts.common.model.RawContact;
358 protected ImmutableList<RawContact> mRawContacts;
500 mRawContacts = ImmutableList.copyOf(savedState.<RawContact>getParcelableArrayList(
621 Lists.<RawContact>newArrayList() : Lists.newArrayList(mRawContacts));
    [all...]
AggregationSuggestionEngine.java 59 public static final class RawContact {
82 public List<RawContact> rawContacts;
444 RawContact rawContact = new RawContact();
445 rawContact.rawContactId = rawContactId;
446 rawContact.accountName = mDataCursor.getString(DataQuery.ACCOUNT_NAME);
447 rawContact.accountType = mDataCursor.getString(DataQuery.ACCOUNT_TYPE);
448 rawContact.dataSet = mDataCursor.getString(DataQuery.DATA_SET);
449 suggestion.rawContacts.add(rawContact);
    [all...]
  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/syncadapter/
SyncAdapter.java 20 import com.example.android.samplesync.client.RawContact;
83 List<RawContact> dirtyContacts;
84 List<RawContact> updatedContacts;
  /packages/apps/Contacts/src/com/android/contacts/quickcontact/
InvisibleContactUtil.java 10 import com.android.contacts.common.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 129 import com.android.contacts.common.model.RawContact;
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/detail/
ContactDisplayUtils.java 23 import com.android.contacts.common.model.RawContact;
122 for (RawContact rawContact : contactData.getRawContacts()) {
124 rawContact.getDataItems(), OrganizationDataItem.class)) {
  /packages/apps/Contacts/src/com/android/contacts/activities/
ConfirmAddDetailActivity.java 68 import com.android.contacts.common.model.RawContact;
644 final RawContact rawContact = new RawContact();
645 rawContact.setAccount(editableAccount);
648 rawContact.getValues()));
    [all...]

Completed in 315 milliseconds