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

  /packages/apps/Contacts/tests/src/com/android/contacts/model/
RawContactTest.java 27 * Unit test for {@link RawContact}.
31 private RawContact buildRawContact() {
40 final RawContact contact = new RawContact(values);
46 private RawContact buildRawContact2() {
55 final RawContact contact = new RawContact(values);
62 final RawContact one = buildRawContact();
63 final RawContact two = buildRawContact2();
75 private RawContact.NamedDataItem buildNamedDataItem()
    [all...]
  /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 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;
344 public ImmutableList<RawContact> getRawContacts() {
387 for (RawContact rawContact : getRawContacts()) {
388 AccountType accountType = rawContact.getAccountType(context);
390 return rawContact.getId();
427 RawContact rawContact = mRawContacts.get(0)
    [all...]
ContactLoader.java 403 final RawContact rawContact = new RawContact(values);
416 processOneRecord(rawContact, item, mimetype);
419 processOneRecord(rawContact, obj, mimetype);
423 contact.setRawContacts(new ImmutableList.Builder<RawContact>()
424 .add(rawContact)
429 private void processOneRecord(RawContact rawContact, JSONObject item, String mimetype)
445 rawContact.addDataItemValues(itemValues)
    [all...]
RawContactDeltaList.java 74 * RawContact objects.
87 final RawContact before = nextObject instanceof Entity
88 ? RawContact.createFrom((Entity) nextObject)
89 : (RawContact) nextObject;
RawContactDelta.java 43 * Contains a {@link RawContact} and records any modifications separately so the
44 * original {@link RawContact} can be swapped out with a newer version and the
48 * empty {@link RawContact}, which then becomes an insert {@link RawContacts} case.
50 * When applying modifications over an {@link RawContact}, we try finding the
52 * rows are missing from the new {@link RawContact}, we know the original data must
86 * Build an {@link RawContactDelta} using the given {@link RawContact} as a
89 public static RawContactDelta fromBefore(RawContact before) {
  /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/Contacts/tests/src/com/android/contacts/
RawContactDeltaTests.java 35 import com.android.contacts.model.RawContact;
68 public static RawContact getRawContact(Context context, long contactId, long phoneId) {
80 final RawContact before = new RawContact(contact);
89 * "before" {@link RawContact}.
92 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID);
102 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID);
120 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID);
134 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 38 import com.android.contacts.model.RawContact;
101 final RawContact before = RawContactDeltaTests.getRawContact(context, rawContactId,
127 final RawContact before = new RawContact(contact);
RawContactModifierTests.java 42 import com.android.contacts.model.RawContact;
170 * Build an {@link RawContact} with the requested set of phone numbers.
180 final RawContact before = new RawContact(contact);
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/editor/
AggregationSuggestionView.java 29 import com.android.contacts.editor.AggregationSuggestionEngine.RawContact;
61 private List<RawContact> mRawContacts = Lists.newArrayList();
116 for (RawContact rawContact : mRawContacts) {
117 String accountType = rawContact.accountType;
118 String dataSet = rawContact.dataSet;
141 for (RawContact rawContact : mRawContacts) {
142 rawContactIds.add(rawContact.rawContactId);
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;
260 private ImmutableList<RawContact> mRawContacts;
499 mRawContacts = ImmutableList.copyOf(savedState.<RawContact>getParcelableArrayList(
522 RawContact rawContact = mRawContacts.get(0);
523 String type = rawContact.getAccountTypeString();
524 String dataSet = rawContact.getDataSet();
525 AccountType accountType = rawContact.getAccountType(mContext);
529 String name = rawContact.getAccountName();
530 long rawContactId = rawContact.getId()
    [all...]
  /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...]
  /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/detail/
ContactDetailDisplayUtils.java 46 import com.android.contacts.model.RawContact;
152 for (RawContact rawContact : contactData.getRawContacts()) {
154 rawContact.getDataItems(), OrganizationDataItem.class)) {
ContactDetailFragment.java 95 import com.android.contacts.model.RawContact;
538 for (RawContact rawContact: mContactData.getRawContacts()) {
539 final long rawContactId = rawContact.getId();
540 final AccountType accountType = rawContact.getAccountType(mContext);
541 for (DataItem dataItem : rawContact.getDataItems()) {
    [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...]
  /packages/apps/Contacts/src/com/android/contacts/quickcontact/
QuickContactActivity.java 68 import com.android.contacts.model.RawContact;
432 for (RawContact rawContact : data.getRawContacts()) {
433 for (DataItem dataItem : rawContact.getDataItems()) {
435 final AccountType accountType = rawContact.getAccountType(this);

Completed in 370 milliseconds