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

  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
RawContactDeltaTests.java 36 import com.android.contacts.common.model.RawContactDelta;
43 * Tests for {@link RawContactDelta} and {@link ValuesDelta}. These tests
86 * Test that {@link RawContactDelta#mergeAfter(RawContactDelta)} correctly passes
88 * {@link RawContactDelta} should be identical when serialized against the same
93 final RawContactDelta source = RawContactDelta.fromBefore(before);
94 final RawContactDelta dest = RawContactDelta.fromBefore(before);
97 final RawContactDelta merged = RawContactDelta.mergeAfter(dest, source)
    [all...]
RawContactModifierTests.java 43 import com.android.contacts.common.model.RawContactDelta;
172 protected RawContactDelta getRawContact(Long existingId, ContentValues... entries) {
184 return RawContactDelta.fromBefore(before);
203 * {@link RawContactModifier#getValidTypes(RawContactDelta, DataKind, EditType)}
216 final RawContactDelta state = getRawContact(TEST_ID);
247 * Test {@link RawContactModifier#canInsert(RawContactDelta, DataKind)} by
259 final RawContactDelta state = getRawContact(TEST_ID);
276 * {@link RawContactModifier#getBestValidType(RawContactDelta, DataKind, boolean, int)}
291 final RawContactDelta state = getRawContact(TEST_ID);
333 final RawContactDelta state = getRawContact(TEST_ID)
    [all...]
RawContactDeltaListTests.java 39 import com.android.contacts.common.model.RawContactDelta;
101 static RawContactDelta getUpdate(Context context, long rawContactId) {
104 return RawContactDelta.fromBefore(before);
107 static RawContactDelta getInsert() {
113 return new RawContactDelta(values);
116 static RawContactDeltaList buildSet(RawContactDelta... deltas) {
122 static RawContactDelta buildBeforeEntity(Context context, long rawContactId, long version,
132 return RawContactDelta.fromBefore(before);
135 static RawContactDelta buildAfterEntity(ContentValues... entries) {
139 final RawContactDelta after = new RawContactDelta(ValuesDelta.fromAfter(contact))
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/editor/
Editor.java 21 import com.android.contacts.common.model.RawContactDelta;
63 public void setValues(DataKind kind, ValuesDelta values, RawContactDelta state, boolean readOnly,
ViewIdGenerator.java 23 import com.android.contacts.common.model.RawContactDelta;
65 * @param entity {@link RawContactDelta} associated with the view
71 public int getId(RawContactDelta entity, DataKind kind, ValuesDelta values,
84 private static String getMapKey(RawContactDelta entity, DataKind kind, ValuesDelta values,
BaseRawContactEditorView.java 31 import com.android.contacts.common.model.RawContactDelta;
39 * RawContact represented through an {@link RawContactDelta}.
80 * for the {@link RawContactDelta} currently being edited.
117 * {@link RawContactDelta} state and the {@link AccountType} that
120 public abstract void setState(RawContactDelta state, AccountType source, ViewIdGenerator vig,
PhoneticNameEditorView.java 23 import com.android.contacts.common.model.RawContactDelta;
105 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly,
PhotoEditorView.java 29 import com.android.contacts.common.model.RawContactDelta;
95 public void setValues(DataKind kind, ValuesDelta values, RawContactDelta state, boolean readOnly,
ContactEditorFragment.java 84 import com.android.contacts.common.model.RawContactDelta;
576 for (RawContactDelta state : mState) {
589 RawContactDelta insert = new RawContactDelta(ValuesDelta.fromAfter(
609 for (RawContactDelta state : mState) {
692 RawContactDelta oldState, AccountWithDataSet oldAccount,
722 final AccountType newAccountType, RawContactDelta oldState,
734 final RawContactDelta insert = new RawContactDelta(valuesDelta);
792 final RawContactDelta rawContactDelta = mState.get(i)
    [all...]
KindSectionView.java 32 import com.android.contacts.common.model.RawContactDelta;
53 private RawContactDelta mState;
133 public void setState(DataKind kind, RawContactDelta state, boolean readOnly, ViewIdGenerator vig) {
StructuredNameEditorView.java 28 import com.android.contacts.common.model.RawContactDelta;
66 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly,
GroupMembershipView.java 43 import com.android.contacts.common.model.RawContactDelta;
130 private RawContactDelta mState;
200 public void setState(RawContactDelta state) {
EventFieldEditorView.java 32 import com.android.contacts.common.model.RawContactDelta;
108 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly,
LabeledEditorView.java 48 import com.android.contacts.common.model.RawContactDelta;
78 private RawContactDelta mState;
344 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly,
RawContactEditorView.java 46 import com.android.contacts.common.model.RawContactDelta;
55 * {@link Contacts} represented through an {@link RawContactDelta}. Callers can
57 * {@link #setState(RawContactDelta, AccountType, ViewIdGenerator)}.
91 private RawContactDelta mState;
199 * {@link RawContactDelta} state and the {@link AccountType} that
203 public void setState(RawContactDelta state, AccountType type, ViewIdGenerator vig,
RawContactReadOnlyEditorView.java 43 import com.android.contacts.common.model.RawContactDelta;
111 * {@link RawContactDelta} state and the {@link AccountType} that
115 public void setState(RawContactDelta state, AccountType type, ViewIdGenerator vig,
TextFieldsEditorView.java 39 import com.android.contacts.common.model.RawContactDelta;
182 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly,
  /packages/apps/ContactsCommon/src/com/android/contacts/common/model/
RawContactDelta.java 55 public class RawContactDelta implements Parcelable {
78 public RawContactDelta() {
81 public RawContactDelta(ValuesDelta values) {
86 * Build an {@link RawContactDelta} using the given {@link RawContact} as a
89 public static RawContactDelta fromBefore(RawContact before) {
90 final RawContactDelta rawContactDelta = new RawContactDelta();
91 rawContactDelta.mValues = ValuesDelta.fromBefore(before.getValues());
92 rawContactDelta.mValues.setIdColumn(RawContacts._ID)
    [all...]
RawContactDeltaList.java 41 * Container for multiple {@link RawContactDelta} objects, usually when editing
45 public class RawContactDeltaList extends ArrayList<RawContactDelta> implements Parcelable {
90 final RawContactDelta rawContactDelta = RawContactDelta.fromBefore(before);
91 add(rawContactDelta);
105 for (RawContactDelta remoteEntity : remote) {
109 final RawContactDelta localEntity = local.getByRawContactId(rawContactId);
110 final RawContactDelta merged = RawContactDelta.mergeAfter(localEntity, remoteEntity)
    [all...]
RawContactModifier.java 76 * Helper methods for modifying an {@link RawContactDelta}, such as inserting
86 * For the given {@link RawContactDelta}, determine if the given
90 public static boolean canInsert(RawContactDelta state, DataKind kind) {
99 public static boolean hasValidTypes(RawContactDelta state, DataKind kind) {
109 * given {@link RawContactDelta} state, and try creating one if none exist.
114 RawContactDelta state, AccountType accountType, String mimeType) {
135 * For the given {@link RawContactDelta} and {@link DataKind}, return the
139 public static ArrayList<EditType> getValidTypes(RawContactDelta state, DataKind kind) {
144 * For the given {@link RawContactDelta} and {@link DataKind}, return the
152 public static ArrayList<EditType> getValidTypes(RawContactDelta state, DataKind kind
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/activities/
AttachPhotoActivity.java 38 import com.android.contacts.common.model.RawContactDelta;
211 RawContactDelta raw = deltaList.getFirstWritableRawContact(this);
ConfirmAddDetailActivity.java 67 import com.android.contacts.common.model.RawContactDelta;
132 private RawContactDelta mRawContactDelta;
606 // RawContactDelta.
616 * Create an {@link RawContactDelta} for a raw_contact on the first editable account found, and add
620 private static RawContactDelta addEditableRawContact(Context context,
633 // Create a new RawContactDelta for the new raw_contact.
637 final RawContactDelta entityDelta = new RawContactDelta(ValuesDelta.fromAfter(
641 for (RawContactDelta entity : entityDeltaList) {
655 // Add the new RawContactDelta to the list
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/detail/
PhotoSelectionHandler.java 41 import com.android.contacts.common.model.RawContactDelta;
207 final RawContactDelta delta = mState.get(writableEntityIndex);
ContactDetailFragment.java 98 import com.android.contacts.common.model.RawContactDelta;
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/
ContactSaveService.java 52 import com.android.contacts.common.model.RawContactDelta;
444 for (RawContactDelta delta : state) {
    [all...]

Completed in 587 milliseconds