Home
last modified time | relevance | path

Searched refs:ValuesDelta (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/model/
DEntityDelta.java67 private ValuesDelta mValues;
73 private HashMap<String, ArrayList<ValuesDelta>> mEntries = Maps.newHashMap();
78 public EntityDelta(ValuesDelta values) { in EntityDelta()
88 entity.mValues = ValuesDelta.fromBefore(before.getEntityValues()); in fromBefore()
91 entity.addEntry(ValuesDelta.fromBefore(namedValues.values)); in fromBefore()
104 final ValuesDelta remoteValues = remote.mValues; in mergeAfter()
119 local.mValues = ValuesDelta.mergeAfter(local.mValues, remote.mValues); in mergeAfter()
122 for (ArrayList<ValuesDelta> mimeEntries : remote.mEntries.values()) { in mergeAfter()
123 for (ValuesDelta remoteEntry : mimeEntries) { in mergeAfter()
127 final ValuesDelta localEntry = local.getEntry(childId); in mergeAfter()
[all …]
DEntityModifier.java23 import com.android.contacts.model.EntityDelta.ValuesDelta;
89 final ValuesDelta child = insertChild(state, kind); in ensureKindExists()
175 final List<ValuesDelta> mimeEntries = state.getMimeEntries(kind.mimeType); in getTypeFrequencies()
179 for (ValuesDelta entry : mimeEntries) { in getTypeFrequencies()
207 public static EditType getCurrentType(ValuesDelta entry, DataKind kind) { in getCurrentType()
311 public static ValuesDelta insertChild(EntityDelta state, DataKind kind) { in insertChild()
325 public static ValuesDelta insertChild(EntityDelta state, DataKind kind, EditType type) { in insertChild()
343 final ValuesDelta child = ValuesDelta.fromAfter(after); in insertChild()
375 final ArrayList<ValuesDelta> entries = state.getMimeEntries(mimeType); in trimEmpty()
378 for (ValuesDelta entry : entries) { in trimEmpty()
[all …]
DEntitySet.java36 import com.android.contacts.model.EntityDelta.ValuesDelta;
254 final ValuesDelta values = delta.getValues(); in getRawContactId()
282 public ValuesDelta getSuperPrimaryEntry(final String mimeType) { in getSuperPrimaryEntry()
283 ValuesDelta primary = null; in getSuperPrimaryEntry()
284 ValuesDelta randomEntry = null; in getSuperPrimaryEntry()
286 final ArrayList<ValuesDelta> mimeEntries = delta.getMimeEntries(mimeType); in getSuperPrimaryEntry()
289 for (ValuesDelta entry : mimeEntries) { in getSuperPrimaryEntry()
DEditor.java20 import com.android.contacts.model.EntityDelta.ValuesDelta;
53 public void setValues(DataKind kind, ValuesDelta values, EntityDelta state, boolean readOnly); in setValues()
DGoogleSource.java20 import com.android.contacts.model.EntityDelta.ValuesDelta;
162 final ValuesDelta stateValues = state.getValues(); in attemptMyContactsMembership()
257 state.addEntry(ValuesDelta.fromAfter(values)); in attemptMyContactsMembership()
/packages/apps/Contacts/tests/src/com/android/contacts/
DEntityDeltaTests.java20 import com.android.contacts.model.EntityDelta.ValuesDelta;
110 source.addEntry(ValuesDelta.fromAfter(phone)); in testParcelChangesInsert()
123 final ValuesDelta child = source.getEntry(TEST_PHONE_ID); in testParcelChangesUpdate()
137 final ValuesDelta child = source.getEntry(TEST_PHONE_ID); in testParcelChangesDelete()
155 final ValuesDelta values = ValuesDelta.fromBefore(before); in testValuesDiffNone()
166 final ValuesDelta values = ValuesDelta.fromAfter(after); in testValuesDiffInsert()
179 final ValuesDelta values = ValuesDelta.fromBefore(before); in testValuesDiffUpdate()
193 final ValuesDelta values = ValuesDelta.fromBefore(before); in testValuesDiffDelete()
227 source.addEntry(ValuesDelta.fromAfter(phone)); in testEntityDiffNoneInsert()
267 source.addEntry(ValuesDelta.fromAfter(phone)); in testEntityDiffUpdateInsert()
[all …]
DEntitySetTests.java29 import com.android.contacts.model.EntityDelta.ValuesDelta;
111 final ValuesDelta values = ValuesDelta.fromAfter(after); in getInsert()
140 final EntityDelta after = new EntityDelta(ValuesDelta.fromAfter(contact)); in buildAfterEntity()
142 after.addEntry(ValuesDelta.fromAfter(entry)); in buildAfterEntity()
171 match.addEntry(ValuesDelta.fromAfter(values)); in insertPhone()
174 static ValuesDelta getPhone(EntitySet set, long rawContactId, long dataId) { in getPhone()
258 static ContentValues buildDataInsert(ValuesDelta values, long rawContactId) { in buildDataInsert()
268 static ContentProviderOperation buildOper(Uri uri, int type, ValuesDelta values) { in buildOper()
379 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED); in testMergeDataLocalUpdateRemoteInsert()
404 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED); in testMergeDataLocalUpdateRemoteDelete()
[all …]
DEntityModifierTests.java30 import com.android.contacts.model.EntityDelta.ValuesDelta;
288 final ValuesDelta values = ValuesDelta.fromAfter(after); in testIsEmptyEmpty()
300 final ValuesDelta values = EntityModifier.insertChild(state, kindPhone, typeHome); in testIsEmptyDirectFields()
317 final ValuesDelta values = EntityModifier.insertChild(state, kindPhone, typeHome); in testTrimEmptySingle()
358 final ValuesDelta values = EntityModifier.insertChild(state, kindPhone, typeHome); in testTrimEmptySpaces()
383 final ValuesDelta values = EntityModifier.insertChild(state, kindPhone, typeHome); in testTrimLeaveValid()
414 state.addEntry(ValuesDelta.fromBefore(before)); in testTrimEmptyUntouched()
447 final ValuesDelta child = state.getEntry(TEST_ID); in testTrimEmptyAfterUpdate()
515 final ValuesDelta values = EntityModifier.insertChild(state, kindPhone, typeHome); in testTrimInsertInsert()
568 final ValuesDelta child = state.getEntry(TEST_ID); in testTrimUpdateRemain()
[all …]
/packages/apps/Contacts/src/com/android/contacts/ui/widget/
DReadOnlyContactEditorView.java26 import com.android.contacts.model.EntityDelta.ValuesDelta;
115 ValuesDelta values = state.getValues(); in setState()
130 ValuesDelta primary; in setState()
156 ArrayList<ValuesDelta> phones = state.getMimeEntries(Phone.CONTENT_ITEM_TYPE); in setState()
158 for (ValuesDelta phone : phones) { in setState()
171 ArrayList<ValuesDelta> emails = state.getMimeEntries(Email.CONTENT_ITEM_TYPE); in setState()
173 for (ValuesDelta email : emails) { in setState()
DPhotoEditorView.java22 import com.android.contacts.model.EntityDelta.ValuesDelta;
44 private ValuesDelta mEntry;
78 public void setValues(DataKind kind, ValuesDelta values, EntityDelta state, boolean readOnly) { in setValues()
DContactEditorView.java26 import com.android.contacts.model.EntityDelta.ValuesDelta;
164 ValuesDelta values = state.getValues(); in setState()
209 final ValuesDelta primary = state.getPrimaryEntry(mimeType); in setState()
218 final ValuesDelta primary = state.getPrimaryEntry(mimeType); in setState()
DKindSectionView.java25 import com.android.contacts.model.EntityDelta.ValuesDelta;
113 for (ValuesDelta entry : mState.getMimeEntries(mKind.mimeType)) { in rebuildFromState()
DGenericEditorView.java27 import com.android.contacts.model.EntityDelta.ValuesDelta;
72 protected ValuesDelta mEntry;
170 public void setValues(DataKind kind, ValuesDelta entry, EntityDelta state, boolean readOnly) { in setValues()
DBaseContactEditorView.java24 import com.android.contacts.model.EntityDelta.ValuesDelta;
/packages/apps/Contacts/src/com/android/contacts/ui/
DEditContactActivity.java31 import com.android.contacts.model.EntityDelta.ValuesDelta;
339 final ValuesDelta values = entity.getValues(); in bindEditors()
1072 final EntityDelta insert = new EntityDelta(ValuesDelta.fromAfter(values)); in selectAccount()
1145 final ArrayList<ValuesDelta> allNames = Lists.newArrayList(); in createNameDialog()
1147 final ArrayList<ValuesDelta> displayNames = entity in createNameDialog()
1157 final ListAdapter nameAdapter = new ArrayAdapter<ValuesDelta>(this, in createNameDialog()
1166 final ValuesDelta structuredName = this.getItem(position); in createNameDialog()
1180 final ValuesDelta structuredName = allNames.get(which); in createNameDialog()
1237 ValuesDelta oneValues = one.getValues(); in compare()
1240 ValuesDelta twoValues = two.getValues(); in compare()
DDisplayGroupsActivity.java23 import com.android.contacts.model.EntityDelta.ValuesDelta;
188 protected static class GroupDelta extends ValuesDelta {