/packages/apps/Contacts/src/com/android/contacts/model/ |
D | RawContactDelta.java | 64 private ValuesDelta mValues; 76 private final HashMap<String, ArrayList<ValuesDelta>> mEntries = Maps.newHashMap(); 81 public RawContactDelta(ValuesDelta values) { in RawContactDelta() 91 rawContactDelta.mValues = ValuesDelta.fromBefore(before.getValues()); in fromBefore() 94 rawContactDelta.addEntry(ValuesDelta.fromBefore(values)); in fromBefore() 107 final ValuesDelta remoteValues = remote.mValues; in mergeAfter() 122 local.mValues = ValuesDelta.mergeAfter(local.mValues, remote.mValues); in mergeAfter() 125 for (ArrayList<ValuesDelta> mimeEntries : remote.mEntries.values()) { in mergeAfter() 126 for (ValuesDelta remoteEntry : mimeEntries) { in mergeAfter() 130 final ValuesDelta localEntry = local.getEntry(childId); in mergeAfter() [all …]
|
D | RawContactModifier.java | 111 public static ValuesDelta ensureKindExists( in ensureKindExists() 122 final ValuesDelta child = insertChild(state, kind); in ensureKindExists() 194 final List<ValuesDelta> mimeEntries = state.getMimeEntries(kind.mimeType); in getTypeFrequencies() 198 for (ValuesDelta entry : mimeEntries) { in getTypeFrequencies() 226 public static EditType getCurrentType(ValuesDelta entry, DataKind kind) { in getCurrentType() 330 public static ValuesDelta insertChild(RawContactDelta state, DataKind kind) { in insertChild() 346 public static ValuesDelta insertChild(RawContactDelta state, DataKind kind, EditType type) { in insertChild() 364 final ValuesDelta child = ValuesDelta.fromAfter(after); in insertChild() 377 ValuesDelta values = state.getValues(); in trimEmpty() 396 ValuesDelta values = state.getValues(); in hasChanges() [all …]
|
D | ValuesDelta.java | 40 public class ValuesDelta implements Parcelable { class 54 protected ValuesDelta() { in ValuesDelta() method in ValuesDelta 61 public static ValuesDelta fromBefore(ContentValues before) { in fromBefore() 62 final ValuesDelta entry = new ValuesDelta(); in fromBefore() 72 public static ValuesDelta fromAfter(ContentValues after) { in fromAfter() 73 final ValuesDelta entry = new ValuesDelta(); in fromAfter() 282 public void copyStringFrom(ValuesDelta from, String key) { in copyStringFrom() 335 public static ValuesDelta mergeAfter(ValuesDelta local, ValuesDelta remote) { in mergeAfter() 340 if (local == null) local = new ValuesDelta(); in mergeAfter() 355 if (object instanceof ValuesDelta) { in equals() [all …]
|
D | RawContactDeltaList.java | 312 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()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | KindSectionData.java | 22 import com.android.contacts.model.ValuesDelta; 51 public List<ValuesDelta> getValuesDeltas() { in getValuesDeltas() 52 final List<ValuesDelta> valuesDeltas = mRawContactDelta.getMimeEntries(mDataKind.mimeType); in getValuesDeltas() 53 return valuesDeltas == null ? new ArrayList<ValuesDelta>() : valuesDeltas; in getValuesDeltas() 57 public List<ValuesDelta> getVisibleValuesDeltas() { in getVisibleValuesDeltas() 58 final ArrayList<ValuesDelta> valuesDeltas = new ArrayList<> (); in getVisibleValuesDeltas() 59 for (ValuesDelta valuesDelta : getValuesDeltas()) { in getVisibleValuesDeltas() 69 public List<ValuesDelta> getNonEmptyValuesDeltas() { in getNonEmptyValuesDeltas() 70 final ArrayList<ValuesDelta> valuesDeltas = new ArrayList<> (); in getNonEmptyValuesDeltas() 71 for (ValuesDelta valuesDelta : getValuesDeltas()) { in getNonEmptyValuesDeltas() [all …]
|
D | RawContactEditorView.java | 60 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 …]
|
D | KindSectionView.java | 36 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()
|
D | GroupMembershipView.java | 45 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()
|
D | ViewIdGenerator.java | 24 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()
|
D | ContactEditorFragment.java | 81 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()
|
D | Editor.java | 22 import com.android.contacts.model.ValuesDelta; 67 … public void setValues(DataKind kind, ValuesDelta values, RawContactDelta state, boolean readOnly, in setValues()
|
D | LabeledEditorView.java | 51 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()
|
D | AggregationSuggestionEngine.java | 42 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()
|
D | EditorUiUtils.java | 52 import com.android.contacts.model.ValuesDelta; 230 public static Long getPhotoFileId(ValuesDelta valuesDelta) { in getPhotoFileId() 255 public static Bitmap getPhotoBitmap(ValuesDelta valuesDelta) { in getPhotoBitmap()
|
D | PhotoEditorView.java | 31 import com.android.contacts.model.ValuesDelta; 124 public void setPhoto(ValuesDelta valuesDelta) { in setPhoto()
|
D | StructuredNameEditorView.java | 33 import com.android.contacts.model.ValuesDelta; 72 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly, in setValues()
|
D | EventFieldEditorView.java | 34 import com.android.contacts.model.ValuesDelta; 109 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly, in setValues()
|
D | TextFieldsEditorView.java | 48 import com.android.contacts.model.ValuesDelta; 260 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly, in setValues()
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
D | RawContactModifierTests.java | 352 final ValuesDelta values = ValuesDelta.fromAfter(after); in testIsEmptyEmpty() 364 final ValuesDelta values = RawContactModifier.insertChild(state, kindPhone, typeHome); in testIsEmptyDirectFields() 427 final ValuesDelta values = RawContactModifier.insertChild(state, kindPhone, typeHome); in testTrimEmptySpaces() 453 final ValuesDelta values = RawContactModifier.insertChild(state, kindPhone, typeHome); in testTrimLeaveValid() 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() 847 List<ValuesDelta> list = newState.getMimeEntries(StructuredName.CONTENT_ITEM_TYPE); in testMigrateNameFromGoogleToExchange() [all …]
|
D | RawContactDeltaTests.java | 105 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()
|
D | ValuesDeltaTests.java | 47 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()
|
D | RawContactDeltaListTests.java | 110 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() 171 static ValuesDelta getPhone(RawContactDeltaList set, long rawContactId, long dataId) { in getPhone() 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() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
D | InvisibleContactUtil.java | 16 import com.android.contacts.model.ValuesDelta; 101 final ValuesDelta entry = RawContactModifier.insertChild(rawContactEntityDelta, in markAddToDefaultGroup()
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | AttachPhotoActivity.java | 51 import com.android.contacts.model.ValuesDelta; 330 ValuesDelta values = in saveToContact() 398 = new RawContactDelta(ValuesDelta.fromAfter(after)); in createNewRawContact()
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
D | PhotoSelectionHandler.java | 45 import com.android.contacts.model.ValuesDelta; 227 final ValuesDelta child = RawContactModifier.ensureKindExists( in getDeltaForAttachingPhotoToContact()
|