/packages/apps/Contacts/tests/src/com/android/contacts/ |
D | EntityDeltaTests.java | 19 import com.android.contacts.model.EntityDelta; 20 import com.android.contacts.model.EntityDelta.ValuesDelta; 92 final EntityDelta source = EntityDelta.fromBefore(before); in testParcelChangesNone() 93 final EntityDelta dest = EntityDelta.fromBefore(before); in testParcelChangesNone() 96 final EntityDelta merged = EntityDelta.mergeAfter(dest, source); in testParcelChangesNone() 102 final EntityDelta source = EntityDelta.fromBefore(before); in testParcelChangesInsert() 103 final EntityDelta dest = EntityDelta.fromBefore(before); in testParcelChangesInsert() 113 final EntityDelta merged = EntityDelta.mergeAfter(dest, source); in testParcelChangesInsert() 120 final EntityDelta source = EntityDelta.fromBefore(before); in testParcelChangesUpdate() 121 final EntityDelta dest = EntityDelta.fromBefore(before); in testParcelChangesUpdate() [all …]
|
D | EntitySetTests.java | 26 import com.android.contacts.model.EntityDelta; 29 import com.android.contacts.model.EntityDelta.ValuesDelta; 100 static EntityDelta getUpdate(long rawContactId) { in getUpdate() 103 return EntityDelta.fromBefore(before); in getUpdate() 106 static EntityDelta getInsert() { in getInsert() 112 return new EntityDelta(values); in getInsert() 115 static EntitySet buildSet(EntityDelta... deltas) { in buildSet() 123 static EntityDelta buildBeforeEntity(long rawContactId, long version, in buildBeforeEntity() 133 return EntityDelta.fromBefore(before); in buildBeforeEntity() 136 static EntityDelta buildAfterEntity(ContentValues... entries) { in buildAfterEntity() [all …]
|
D | EntityModifierTests.java | 24 import com.android.contacts.model.EntityDelta; 30 import com.android.contacts.model.EntityDelta.ValuesDelta; 138 protected EntityDelta getEntity(Long existingId, ContentValues... entries) { in getEntity() 150 return EntityDelta.fromBefore(before); in getEntity() 182 final EntityDelta state = getEntity(TEST_ID); in testValidTypes() 225 final EntityDelta state = getEntity(TEST_ID); in testCanInsert() 257 final EntityDelta state = getEntity(TEST_ID); in testBestValidType() 299 final EntityDelta state = getEntity(TEST_ID); in testIsEmptyDirectFields() 316 final EntityDelta state = getEntity(TEST_ID); in testTrimEmptySingle() 357 final EntityDelta state = EntitySetTests.buildBeforeEntity(TEST_ID, VER_FIRST); in testTrimEmptySpaces() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | EntitySet.java | 36 import com.android.contacts.model.EntityDelta.ValuesDelta; 45 public class EntitySet extends ArrayList<EntityDelta> implements Parcelable { 55 public static EntitySet fromSingle(EntityDelta delta) { in fromSingle() 77 final EntityDelta entity = EntityDelta.fromBefore(before); in fromQuery() 99 for (EntityDelta remoteEntity : remote) { in mergeAfter() 103 final EntityDelta localEntity = local.getByRawContactId(rawContactId); in mergeAfter() 104 final EntityDelta merged = EntityDelta.mergeAfter(localEntity, remoteEntity); in mergeAfter() 128 for (EntityDelta delta : this) { in buildDiff() 138 for (EntityDelta delta : this) { in buildDiff() 239 for (EntityDelta delta : this) { in findRawContactId() [all …]
|
D | EntityDelta.java | 58 public class EntityDelta implements Parcelable { class 75 public EntityDelta() { in EntityDelta() method in EntityDelta 78 public EntityDelta(ValuesDelta values) { in EntityDelta() method in EntityDelta 86 public static EntityDelta fromBefore(Entity before) { in fromBefore() 87 final EntityDelta entity = new EntityDelta(); in fromBefore() 102 public static EntityDelta mergeAfter(EntityDelta local, EntityDelta remote) { in mergeAfter() 108 if (local == null) local = new EntityDelta(); in mergeAfter() 277 if (object instanceof EntityDelta) { in equals() 278 final EntityDelta other = (EntityDelta)object; in equals() 459 …public static final Parcelable.Creator<EntityDelta> CREATOR = new Parcelable.Creator<EntityDelta>(… [all …]
|
D | EntityModifier.java | 23 import com.android.contacts.model.EntityDelta.ValuesDelta; 62 public static boolean canInsert(EntityDelta state, DataKind kind) { in canInsert() 71 public static boolean hasValidTypes(EntityDelta state, DataKind kind) { in hasValidTypes() 83 public static void ensureKindExists(EntityDelta state, ContactsSource source, String mimeType) { in ensureKindExists() 101 public static ArrayList<EditType> getValidTypes(EntityDelta state, DataKind kind) { in getValidTypes() 114 public static ArrayList<EditType> getValidTypes(EntityDelta state, DataKind kind, in getValidTypes() 133 private static ArrayList<EditType> getValidTypes(EntityDelta state, DataKind kind, in getValidTypes() 171 private static SparseIntArray getTypeFrequencies(EntityDelta state, DataKind kind) { in getTypeFrequencies() 267 public static EditType getBestValidType(EntityDelta state, DataKind kind, in getBestValidType() 311 public static ValuesDelta insertChild(EntityDelta state, DataKind kind) { in insertChild() [all …]
|
D | Editor.java | 20 import com.android.contacts.model.EntityDelta.ValuesDelta; 53 public void setValues(DataKind kind, ValuesDelta values, EntityDelta state, boolean readOnly); in setValues()
|
D | GoogleSource.java | 20 import com.android.contacts.model.EntityDelta.ValuesDelta; 161 public static final void attemptMyContactsMembership(EntityDelta state, Context context) { in attemptMyContactsMembership() 179 private static final void attemptMyContactsMembership(EntityDelta state, in attemptMyContactsMembership()
|
/packages/apps/Contacts/src/com/android/contacts/ui/widget/ |
D | BaseContactEditorView.java | 20 import com.android.contacts.model.EntityDelta; 24 import com.android.contacts.model.EntityDelta.ValuesDelta; 98 public abstract void setState(EntityDelta state, ContactsSource source); in setState()
|
D | KindSectionView.java | 21 import com.android.contacts.model.EntityDelta; 25 import com.android.contacts.model.EntityDelta.ValuesDelta; 52 private EntityDelta mState; 91 public void setState(DataKind kind, EntityDelta state, boolean readOnly) { in setState()
|
D | PhotoEditorView.java | 20 import com.android.contacts.model.EntityDelta; 22 import com.android.contacts.model.EntityDelta.ValuesDelta; 78 public void setValues(DataKind kind, ValuesDelta values, EntityDelta state, boolean readOnly) { in setValues()
|
D | GenericEditorView.java | 22 import com.android.contacts.model.EntityDelta; 27 import com.android.contacts.model.EntityDelta.ValuesDelta; 73 protected EntityDelta mState; 170 public void setValues(DataKind kind, ValuesDelta entry, EntityDelta state, boolean readOnly) { in setValues()
|
D | ReadOnlyContactEditorView.java | 21 import com.android.contacts.model.EntityDelta; 26 import com.android.contacts.model.EntityDelta.ValuesDelta; 104 public void setState(EntityDelta state, ContactsSource source) { in setState()
|
D | ContactEditorView.java | 21 import com.android.contacts.model.EntityDelta; 26 import com.android.contacts.model.EntityDelta.ValuesDelta; 152 public void setState(EntityDelta state, ContactsSource source) { in setState()
|
/packages/apps/Contacts/src/com/android/contacts/ui/ |
D | EditContactActivity.java | 24 import com.android.contacts.model.EntityDelta; 31 import com.android.contacts.model.EntityDelta.ValuesDelta; 91 implements View.OnClickListener, Comparator<EntityDelta> { 199 final EntityDelta state = target.mState.get(0); in doInBackground() 338 EntityDelta entity = mState.get(i); in bindEditors() 711 for (EntityDelta delta : mState) { in onClick() 877 for (EntityDelta delta : mState) { in doDeleteAction() 1072 final EntityDelta insert = new EntityDelta(ValuesDelta.fromAfter(values)); in selectAccount() 1126 for (EntityDelta delta : mState) { in createDeleteDialog() 1146 for (EntityDelta entity : mState) { in createNameDialog() [all …]
|
D | DisplayGroupsActivity.java | 23 import com.android.contacts.model.EntityDelta.ValuesDelta;
|