Home
last modified time | relevance | path

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

12

/aosp12/packages/apps/Contacts/src/com/android/contacts/editor/
H A DKindSectionData.java22 import com.android.contacts.model.ValuesDelta;
51 public List<ValuesDelta> getValuesDeltas() { in getValuesDeltas()
57 public List<ValuesDelta> getVisibleValuesDeltas() { in getVisibleValuesDeltas()
59 for (ValuesDelta valuesDelta : getValuesDeltas()) { in getVisibleValuesDeltas()
69 public List<ValuesDelta> getNonEmptyValuesDeltas() { in getNonEmptyValuesDeltas()
71 for (ValuesDelta valuesDelta : getValuesDeltas()) { in getNonEmptyValuesDeltas()
80 public ValuesDelta getSuperPrimaryValuesDelta() { in getSuperPrimaryValuesDelta()
81 for (ValuesDelta valuesDelta : getValuesDeltas()) { in getSuperPrimaryValuesDelta()
88 public ValuesDelta getValuesDeltaById(Long id) { in getValuesDeltaById()
96 public ValuesDelta getFirstNonEmptyValuesDelta() { in getFirstNonEmptyValuesDelta()
[all …]
H A DViewIdGenerator.java24 import com.android.contacts.model.ValuesDelta;
71 public int getId(RawContactDelta entity, DataKind kind, ValuesDelta values, in getId()
84 private static String getMapKey(RawContactDelta entity, DataKind kind, ValuesDelta values, in getMapKey()
H A DEditor.java22 import com.android.contacts.model.ValuesDelta;
67 … public void setValues(DataKind kind, ValuesDelta values, RawContactDelta state, boolean readOnly, in setValues()
H A DKindSectionView.java36 import com.android.contacts.model.ValuesDelta;
59 private final ValuesDelta mValuesDelta;
63 public StructuredNameEditorListener(ValuesDelta valuesDelta, long rawContactId, in StructuredNameEditorListener()
321 final List<ValuesDelta> valuesDeltas = mKindSectionData.getVisibleValuesDeltas(); in rebuildFromState()
331 final ValuesDelta nameValuesDelta = rawContactDelta in addNameEditorViews()
410 ValuesDelta valuesDelta, Editor.EditorListener editorListener) { in addNonNameEditorView()
555 final ValuesDelta values = RawContactModifier.insertChild(rawContactDelta, dataKind); in updateEmptyNonNameEditors()
H A DGroupMembershipView.java45 import com.android.contacts.model.ValuesDelta;
419 ArrayList<ValuesDelta> entries = mState.getMimeEntries(GroupMembership.CONTENT_ITEM_TYPE); in onItemClick()
421 for (ValuesDelta entry : entries) { in onItemClick()
438 ValuesDelta entry = RawContactModifier.insertChild(mState, mKind); in onItemClick()
464 ArrayList<ValuesDelta> entries = mState.getMimeEntries(GroupMembership.CONTENT_ITEM_TYPE); in hasMembership()
466 for (ValuesDelta values : entries) { in hasMembership()
H A DRawContactEditorView.java60 import com.android.contacts.model.ValuesDelta;
98 public void onNameFieldChanged(long rawContactId, ValuesDelta valuesDelta); in onNameFieldChanged()
228 private ValuesDelta mPhotoValuesDelta;
358 final List<ValuesDelta> photosDeltas = in unsetSuperPrimaryFromAllPhotos()
407 final ValuesDelta valuesDelta = mCurrentRawContactDelta in setPrimaryPhoto()
656 ValuesDelta primary; in addReadOnlyRawContactEditorViews()
670 final ArrayList<ValuesDelta> phones = mCurrentRawContactDelta in addReadOnlyRawContactEditorViews()
676 for (ValuesDelta phone : phones) { in addReadOnlyRawContactEditorViews()
696 final ArrayList<ValuesDelta> emails = mCurrentRawContactDelta in addReadOnlyRawContactEditorViews()
702 for (ValuesDelta email : emails) { in addReadOnlyRawContactEditorViews()
[all …]
H A DLabeledEditorView.java51 import com.android.contacts.model.ValuesDelta;
77 private ValuesDelta mEntry;
283 protected ValuesDelta getEntry() { in getEntry()
403 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly, in setValues()
430 public ValuesDelta getValues() { in getValues()
H A DAggregationSuggestionEngine.java42 import com.android.contacts.model.ValuesDelta;
173 public void onNameChange(ValuesDelta values) { in onNameChange()
200 private Uri buildAggregationSuggestionUri(ValuesDelta values) { in buildAggregationSuggestionUri()
245 private void appendValue(StringBuilder sb, ValuesDelta values, String column) { in appendValue()
H A DPhotoEditorView.java31 import com.android.contacts.model.ValuesDelta;
124 public void setPhoto(ValuesDelta valuesDelta) { in setPhoto()
H A DContactEditorFragment.java81 import com.android.contacts.model.ValuesDelta;
989 final ValuesDelta beforeDelta = beforeRawContactDelta == null ? null : in hasPendingChanges()
991 final ValuesDelta pendingDelta = mState in hasPendingChanges()
1012 private boolean structuredNamesAreEqual(ValuesDelta before, ValuesDelta after) { in structuredNamesAreEqual()
1164 ValuesDelta.fromAfter(rawContact.getValues())); in createNewRawContactDelta()
1256 ValuesDelta.fromAfter(rawContact.getValues())); in createLocalRawContactDelta()
1271 final ValuesDelta writeNameDelta = writable in copyReadOnlyName()
1273 final ValuesDelta readNameDelta = readOnly in copyReadOnlyName()
1570 long rawContactId, ValuesDelta valuesDelta) { in acquireAggregationSuggestions()
1744 public void onNameFieldChanged(long rawContactId, ValuesDelta valuesDelta) { in onNameFieldChanged()
H A DEditorUiUtils.java52 import com.android.contacts.model.ValuesDelta;
230 public static Long getPhotoFileId(ValuesDelta valuesDelta) { in getPhotoFileId()
255 public static Bitmap getPhotoBitmap(ValuesDelta valuesDelta) { in getPhotoBitmap()
H A DStructuredNameEditorView.java33 import com.android.contacts.model.ValuesDelta;
72 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly, in setValues()
H A DEventFieldEditorView.java34 import com.android.contacts.model.ValuesDelta;
109 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly, in setValues()
H A DTextFieldsEditorView.java48 import com.android.contacts.model.ValuesDelta;
260 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly, in setValues()
/aosp12/packages/apps/Contacts/src/com/android/contacts/model/
H A DRawContactDelta.java64 private ValuesDelta mValues;
81 public RawContactDelta(ValuesDelta values) { in RawContactDelta()
131 final ValuesDelta merged = ValuesDelta.mergeAfter(localEntry, remoteEntry); in mergeAfter()
143 public ValuesDelta getValues() { in getValues()
159 for (ValuesDelta entry : mimeEntries) { in getPrimaryEntry()
187 ValuesDelta primary = null; in getSuperPrimaryEntry()
188 for (ValuesDelta entry : mimeEntries) { in getSuperPrimaryEntry()
267 for (ValuesDelta child : mimeEntries) { in getMimeEntriesCount()
279 public ValuesDelta addEntry(ValuesDelta entry) { in addEntry()
300 public ValuesDelta getEntry(Long childId) { in getEntry()
[all …]
H A DValuesDelta.java40 public class ValuesDelta implements Parcelable { class
54 protected ValuesDelta() { in ValuesDelta() method in ValuesDelta
62 final ValuesDelta entry = new ValuesDelta(); in fromBefore()
73 final ValuesDelta entry = new ValuesDelta(); in fromAfter()
335 public static ValuesDelta mergeAfter(ValuesDelta local, ValuesDelta remote) { in mergeAfter()
355 if (object instanceof ValuesDelta) { in equals()
357 final ValuesDelta other = (ValuesDelta)object; in equals()
475 public static final Creator<ValuesDelta> CREATOR = new Creator<ValuesDelta>() {
477 final ValuesDelta values = new ValuesDelta();
482 public ValuesDelta[] newArray(int size) {
[all …]
H A DRawContactModifier.java111 public static ValuesDelta ensureKindExists( in ensureKindExists()
198 for (ValuesDelta entry : mimeEntries) { in getTypeFrequencies()
364 final ValuesDelta child = ValuesDelta.fromAfter(after); in insertChild()
422 for (ValuesDelta entry : entries) { in trimEmpty()
460 for (ValuesDelta entry : entries) { in hasChanges()
709 ValuesDelta entry = ValuesDelta.fromAfter(values); in parseValues()
792 ValuesDelta entry, ArrayList<ValuesDelta> entries, DataKind kind) { in adjustType()
857 for (ValuesDelta entry : entries) { in getEntryCountByType()
1022 ArrayList<ValuesDelta> newMimeEntries = new ArrayList<ValuesDelta>(typeOverallMax); in ensureEntryMaxSize()
1097 for (ValuesDelta entry : mimeEntries) { in migratePostal()
[all …]
H A DRawContactDeltaList.java312 final ValuesDelta values = delta.getValues(); in getRawContactId()
362 public ValuesDelta getSuperPrimaryEntry(final String mimeType) { in getSuperPrimaryEntry()
363 ValuesDelta primary = null; in getSuperPrimaryEntry()
364 ValuesDelta randomEntry = null; in getSuperPrimaryEntry()
366 final ArrayList<ValuesDelta> mimeEntries = delta.getMimeEntries(mimeType); in getSuperPrimaryEntry()
369 for (ValuesDelta entry : mimeEntries) { in getSuperPrimaryEntry()
/aosp12/packages/apps/Contacts/tests/src/com/android/contacts/model/
H A DValuesDeltaTests.java47 final ValuesDelta values = ValuesDelta.fromAfter(after); in testValuesDiffInsert()
67 final ValuesDelta values = ValuesDelta.fromBefore(before); in testValuesDiffNone()
79 final ValuesDelta values = ValuesDelta.fromBefore(before); in testValuesDiffUpdate()
H A DRawContactDeltaTests.java105 source.addEntry(ValuesDelta.fromAfter(phone)); in testParcelChangesInsert()
118 final ValuesDelta child = source.getEntry(TEST_PHONE_ID); in testParcelChangesUpdate()
132 final ValuesDelta child = source.getEntry(TEST_PHONE_ID); in testParcelChangesDelete()
145 final ValuesDelta values = ValuesDelta.fromBefore(before); in testValuesDiffDelete()
181 source.addEntry(ValuesDelta.fromAfter(phone)); in testEntityDiffNoneInsert()
224 source.addEntry(ValuesDelta.fromAfter(phone)); in testEntityDiffUpdateInsert()
266 final ValuesDelta child = source.getEntry(TEST_PHONE_ID); in testEntityDiffNoneUpdate()
328 final ValuesDelta values = ValuesDelta.fromAfter(after); in testEntityDiffInsert()
350 final ValuesDelta values = ValuesDelta.fromAfter(after); in testEntityDiffInsertInsert()
358 source.addEntry(ValuesDelta.fromAfter(phone)); in testEntityDiffInsertInsert()
H A DRawContactModifierTests.java352 final ValuesDelta values = ValuesDelta.fromAfter(after); in testIsEmptyEmpty()
484 state.addEntry(ValuesDelta.fromBefore(before)); in testTrimEmptyUntouched()
517 final ValuesDelta child = state.getEntry(TEST_ID); in testTrimEmptyAfterUpdate()
648 final ValuesDelta child = state.getEntry(TEST_ID); in testTrimUpdateRemain()
720 final ValuesDelta child = state.getEntry(TEST_ID); in testTrimUpdateUpdate()
843 oldState.addEntry(ValuesDelta.fromAfter(mockNameValues)); in testMigrateNameFromGoogleToExchange()
870 oldState.addEntry(ValuesDelta.fromAfter(mockNameValues)); in testMigratePostalFromGoogleToExchange()
897 oldState.addEntry(ValuesDelta.fromAfter(mockNameValues)); in testMigratePostalFromExchangeToGoogle()
936 oldState.addEntry(ValuesDelta.fromAfter(mockNameValues)); in testMigrateEventCommon()
961 oldState.addEntry(ValuesDelta.fromAfter(mockNameValues)); in testMigrateEventFromGoogleToExchange2()
[all …]
H A DRawContactDeltaListTests.java110 final ValuesDelta values = ValuesDelta.fromAfter(after); in getInsert()
137 final RawContactDelta after = new RawContactDelta(ValuesDelta.fromAfter(contact)); in buildAfterEntity()
139 after.addEntry(ValuesDelta.fromAfter(entry)); in buildAfterEntity()
168 match.addEntry(ValuesDelta.fromAfter(values)); in insertPhone()
265 static ContentValues buildDataInsert(ValuesDelta values, long rawContactId) { in buildDataInsert()
275 static ContentProviderOperation buildOper(Uri uri, int type, ValuesDelta values) { in buildOper()
395 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED); in testMergeDataLocalUpdateRemoteInsert()
420 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED); in testMergeDataLocalUpdateRemoteDelete()
446 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED); in testMergeDataLocalDeleteRemoteUpdate()
471 final ValuesDelta bluePhone = ValuesDelta.fromAfter(buildPhone(PHONE_BLUE)); in testMergeDataLocalInsertRemoteInsert()
[all …]
/aosp12/packages/apps/Contacts/src/com/android/contacts/quickcontact/
H A DInvisibleContactUtil.java16 import com.android.contacts.model.ValuesDelta;
101 final ValuesDelta entry = RawContactModifier.insertChild(rawContactEntityDelta, in markAddToDefaultGroup()
/aosp12/packages/apps/Contacts/src/com/android/contacts/activities/
H A DAttachPhotoActivity.java51 import com.android.contacts.model.ValuesDelta;
333 ValuesDelta values = in saveToContact()
401 = new RawContactDelta(ValuesDelta.fromAfter(after)); in createNewRawContact()
/aosp12/packages/apps/Contacts/src/com/android/contacts/detail/
H A DPhotoSelectionHandler.java45 import com.android.contacts.model.ValuesDelta;
227 final ValuesDelta child = RawContactModifier.ensureKindExists( in getDeltaForAttachingPhotoToContact()

12