/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
D | EntityDelta.java | 65 private ValuesDelta mValues; 71 private HashMap<String, ArrayList<ValuesDelta>> mEntries = Maps.newHashMap(); 76 public EntityDelta(ValuesDelta values) { in EntityDelta() 86 entity.mValues = ValuesDelta.fromBefore(before.getEntityValues()); in fromBefore() 89 entity.addEntry(ValuesDelta.fromBefore(namedValues.values)); in fromBefore() 102 final ValuesDelta remoteValues = remote.mValues; in mergeAfter() 117 local.mValues = ValuesDelta.mergeAfter(local.mValues, remote.mValues); in mergeAfter() 120 for (ArrayList<ValuesDelta> mimeEntries : remote.mEntries.values()) { in mergeAfter() 121 for (ValuesDelta remoteEntry : mimeEntries) { in mergeAfter() 125 final ValuesDelta localEntry = local.getEntry(childId); in mergeAfter() [all …]
|
D | EntitySet.java | 19 import com.android.loaderapp.model.EntityDelta.ValuesDelta; 247 final ValuesDelta values = delta.getValues(); in getRawContactId() 275 public ValuesDelta getSuperPrimaryEntry(final String mimeType) { in getSuperPrimaryEntry() 276 ValuesDelta primary = null; in getSuperPrimaryEntry() 277 ValuesDelta randomEntry = null; in getSuperPrimaryEntry() 279 final ArrayList<ValuesDelta> mimeEntries = delta.getMimeEntries(mimeType); in getSuperPrimaryEntry() 282 for (ValuesDelta entry : mimeEntries) { in getSuperPrimaryEntry()
|
D | GoogleSource.java | 20 import com.android.loaderapp.model.EntityDelta.ValuesDelta; 162 final ValuesDelta stateValues = state.getValues(); in attemptMyContactsMembership() 257 state.addEntry(ValuesDelta.fromAfter(values)); in attemptMyContactsMembership()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
D | RawContactDelta.java | 33 import com.android.contacts.common.model.ValuesDelta; 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() [all …]
|
D | RawContactModifier.java | 51 import com.android.contacts.common.model.ValuesDelta; 113 public static ValuesDelta ensureKindExists( in ensureKindExists() 124 final ValuesDelta child = insertChild(state, kind); in ensureKindExists() 213 final List<ValuesDelta> mimeEntries = state.getMimeEntries(kind.mimeType); in getTypeFrequencies() 217 for (ValuesDelta entry : mimeEntries) { in getTypeFrequencies() 245 public static EditType getCurrentType(ValuesDelta entry, DataKind kind) { in getCurrentType() 349 public static ValuesDelta insertChild(RawContactDelta state, DataKind kind) { in insertChild() 365 public static ValuesDelta insertChild(RawContactDelta state, DataKind kind, EditType type) { in insertChild() 383 final ValuesDelta child = ValuesDelta.fromAfter(after); in insertChild() 396 ValuesDelta values = state.getValues(); in trimEmpty() [all …]
|
D | ValuesDelta.java | 39 public class ValuesDelta implements Parcelable { class 53 protected ValuesDelta() { in ValuesDelta() method in ValuesDelta 60 public static ValuesDelta fromBefore(ContentValues before) { in fromBefore() 61 final ValuesDelta entry = new ValuesDelta(); in fromBefore() 71 public static ValuesDelta fromAfter(ContentValues after) { in fromAfter() 72 final ValuesDelta entry = new ValuesDelta(); in fromAfter() 278 public void copyStringFrom(ValuesDelta from, String key) { in copyStringFrom() 329 public static ValuesDelta mergeAfter(ValuesDelta local, ValuesDelta remote) { in mergeAfter() 334 if (local == null) local = new ValuesDelta(); in mergeAfter() 349 if (object instanceof ValuesDelta) { in equals() [all …]
|
D | RawContactDeltaList.java | 33 import com.android.contacts.common.model.ValuesDelta; 302 final ValuesDelta values = delta.getValues(); in getRawContactId() 352 public ValuesDelta getSuperPrimaryEntry(final String mimeType) { in getSuperPrimaryEntry() 353 ValuesDelta primary = null; in getSuperPrimaryEntry() 354 ValuesDelta randomEntry = null; in getSuperPrimaryEntry() 356 final ArrayList<ValuesDelta> mimeEntries = delta.getMimeEntries(mimeType); in getSuperPrimaryEntry() 359 for (ValuesDelta entry : mimeEntries) { in getSuperPrimaryEntry()
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/ |
D | RawContactModifierTests.java | 44 import com.android.contacts.common.model.ValuesDelta; 322 final ValuesDelta values = ValuesDelta.fromAfter(after); in testIsEmptyEmpty() 334 final ValuesDelta values = RawContactModifier.insertChild(state, kindPhone, typeHome); in testIsEmptyDirectFields() 393 final ValuesDelta values = RawContactModifier.insertChild(state, kindPhone, typeHome); in testTrimEmptySpaces() 419 final ValuesDelta values = RawContactModifier.insertChild(state, kindPhone, typeHome); in testTrimLeaveValid() 450 state.addEntry(ValuesDelta.fromBefore(before)); in testTrimEmptyUntouched() 483 final ValuesDelta child = state.getEntry(TEST_ID); in testTrimEmptyAfterUpdate() 608 final ValuesDelta child = state.getEntry(TEST_ID); in testTrimUpdateRemain() 674 final ValuesDelta child = state.getEntry(TEST_ID); in testTrimUpdateUpdate() 793 oldState.addEntry(ValuesDelta.fromAfter(mockNameValues)); in testMigrateWithDisplayNameFromGoogleToExchange1() [all …]
|
D | RawContactDeltaTests.java | 37 import com.android.contacts.common.model.ValuesDelta; 111 source.addEntry(ValuesDelta.fromAfter(phone)); in testParcelChangesInsert() 124 final ValuesDelta child = source.getEntry(TEST_PHONE_ID); in testParcelChangesUpdate() 138 final ValuesDelta child = source.getEntry(TEST_PHONE_ID); in testParcelChangesDelete() 151 final ValuesDelta values = ValuesDelta.fromBefore(before); in testValuesDiffDelete() 185 source.addEntry(ValuesDelta.fromAfter(phone)); in testEntityDiffNoneInsert() 225 source.addEntry(ValuesDelta.fromAfter(phone)); in testEntityDiffUpdateInsert() 263 final ValuesDelta child = source.getEntry(TEST_PHONE_ID); in testEntityDiffNoneUpdate() 321 final ValuesDelta values = ValuesDelta.fromAfter(after); in testEntityDiffInsert() 342 final ValuesDelta values = ValuesDelta.fromAfter(after); in testEntityDiffInsertInsert() [all …]
|
D | RawContactDeltaListTests.java | 40 import com.android.contacts.common.model.ValuesDelta; 112 final ValuesDelta values = ValuesDelta.fromAfter(after); in getInsert() 139 final RawContactDelta after = new RawContactDelta(ValuesDelta.fromAfter(contact)); in buildAfterEntity() 141 after.addEntry(ValuesDelta.fromAfter(entry)); in buildAfterEntity() 170 match.addEntry(ValuesDelta.fromAfter(values)); in insertPhone() 173 static ValuesDelta getPhone(RawContactDeltaList set, long rawContactId, long dataId) { in getPhone() 257 static ContentValues buildDataInsert(ValuesDelta values, long rawContactId) { in buildDataInsert() 267 static ContentProviderOperation buildOper(Uri uri, int type, ValuesDelta values) { in buildOper() 378 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED); in testMergeDataLocalUpdateRemoteInsert() 403 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED); in testMergeDataLocalUpdateRemoteDelete() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | StructuredNameEditorView.java | 29 import com.android.contacts.common.model.ValuesDelta; 66 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly, in setValues() 117 ValuesDelta values = getValues(); in switchFromFullNameToStructuredName() 142 ValuesDelta values = getValues(); in switchFromStructuredNameToFullName() 165 private Map<String, String> valuesToStructuredNameMap(ValuesDelta values) { in valuesToStructuredNameMap() 173 private void eraseFullName(ValuesDelta values) { in eraseFullName() 177 private void rebuildFullName(ValuesDelta values) { in rebuildFullName() 184 private void eraseStructuredName(ValuesDelta values) { in eraseStructuredName() 190 private void rebuildStructuredName(ValuesDelta values) { in rebuildStructuredName()
|
D | PhoneticNameEditorView.java | 24 import com.android.contacts.common.model.ValuesDelta; 34 private static class PhoneticValuesDelta extends ValuesDelta { 35 private ValuesDelta mValues; 38 public PhoneticValuesDelta(ValuesDelta values) { in PhoneticValuesDelta() 105 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly, in setValues() 145 ValuesDelta entry = getEntry(); in hasData()
|
D | RawContactEditorView.java | 42 import com.android.contacts.common.model.ValuesDelta; 261 final ValuesDelta primary = state.getPrimaryEntry(mimeType); in setState() 273 ValuesDelta primaryNickNameEntry = state.getPrimaryEntry(nickNameKind.mimeType); in setState() 286 final ValuesDelta primary = state.getPrimaryEntry(mimeType); in setState() 338 ArrayList<ValuesDelta> entries = mState.getMimeEntries(GroupMembership.CONTENT_ITEM_TYPE); in addToDefaultGroupIfNeeded() 340 for (ValuesDelta values : entries) { in addToDefaultGroupIfNeeded() 352 ValuesDelta entry = RawContactModifier.insertChild(mState, mGroupMembershipKind); in addToDefaultGroupIfNeeded()
|
D | RawContactReadOnlyEditorView.java | 43 import com.android.contacts.common.model.ValuesDelta; 149 ValuesDelta primary; in setState() 174 final ArrayList<ValuesDelta> phones = state.getMimeEntries(Phone.CONTENT_ITEM_TYPE); in setState() 179 for (ValuesDelta phone : phones) { in setState() 199 final ArrayList<ValuesDelta> emails = state.getMimeEntries(Email.CONTENT_ITEM_TYPE); in setState() 204 for (ValuesDelta email : emails) { in setState()
|
D | GroupMembershipView.java | 45 import com.android.contacts.common.model.ValuesDelta; 358 ArrayList<ValuesDelta> entries = mState.getMimeEntries(GroupMembership.CONTENT_ITEM_TYPE); in onItemClick() 360 for (ValuesDelta entry : entries) { in onItemClick() 377 ValuesDelta entry = RawContactModifier.insertChild(mState, mKind); in onItemClick() 403 ArrayList<ValuesDelta> entries = mState.getMimeEntries(GroupMembership.CONTENT_ITEM_TYPE); in hasMembership() 405 for (ValuesDelta values : entries) { in hasMembership()
|
D | KindSectionView.java | 46 import com.android.contacts.common.model.ValuesDelta; 163 for (ValuesDelta entry : mState.getMimeEntries(mKind.mimeType)) { in rebuildFromState() 179 private View createEditorView(ValuesDelta entry) { in createEditorView() 206 private boolean isEmptyNoop(ValuesDelta item) { in isEmptyNoop() 254 final ValuesDelta values = RawContactModifier.insertChild(mState, mKind); in updateEmptyEditors()
|
D | LabeledEditorView.java | 49 import com.android.contacts.common.model.ValuesDelta; 76 private ValuesDelta mEntry; 271 protected ValuesDelta getEntry() { in getEntry() 361 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly, in setValues() 387 public ValuesDelta getValues() { in getValues()
|
D | ViewIdGenerator.java | 24 import com.android.contacts.common.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 | AggregationSuggestionEngine.java | 40 import com.android.contacts.common.model.ValuesDelta; 173 public void onNameChange(ValuesDelta values) { in onNameChange() 200 private Uri buildAggregationSuggestionUri(ValuesDelta values) { in buildAggregationSuggestionUri() 237 private void appendValue(StringBuilder sb, ValuesDelta values, String column) { in appendValue()
|
D | PhotoEditorView.java | 38 import com.android.contacts.common.model.ValuesDelta; 51 private ValuesDelta mEntry; 116 … public void setValues(DataKind kind, ValuesDelta values, RawContactDelta state, boolean readOnly, in setValues()
|
D | Editor.java | 22 import com.android.contacts.common.model.ValuesDelta; 67 … public void setValues(DataKind kind, ValuesDelta values, RawContactDelta state, boolean readOnly, in setValues()
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/ |
D | ValuesDeltaTests.java | 47 final ValuesDelta values = ValuesDelta.fromAfter(after); in testValuesDiffInsert() 65 final ValuesDelta values = ValuesDelta.fromBefore(before); in testValuesDiffNone() 77 final ValuesDelta values = ValuesDelta.fromBefore(before); in testValuesDiffUpdate()
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | ConfirmAddDetailActivity.java | 70 import com.android.contacts.common.model.ValuesDelta; 644 final RawContactDelta entityDelta = new RawContactDelta(ValuesDelta.fromAfter( in addEditableRawContact() 649 final ArrayList<ValuesDelta> readOnlyNames = in addEditableRawContact() 652 final ValuesDelta readOnlyName = readOnlyNames.get(0); in addEditableRawContact() 653 final ValuesDelta newName = RawContactModifier.ensureKindExists(entityDelta, in addEditableRawContact() 693 final ArrayList<ValuesDelta> deltas = mRawContactDelta.getMimeEntries(mMimetype); in bindEditor() 695 for (ValuesDelta valuesDelta : deltas) { in bindEditor() 713 …private void inflateEditorView(DataKind dataKind, ValuesDelta valuesDelta, RawContactDelta state) { in inflateEditorView()
|
D | AttachPhotoActivity.java | 48 import com.android.contacts.common.model.ValuesDelta; 289 ValuesDelta values = in saveToContact() 348 = new RawContactDelta(ValuesDelta.fromAfter(after)); in createNewRawContact()
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
D | InvisibleContactUtil.java | 14 import com.android.contacts.common.model.ValuesDelta; 87 final ValuesDelta entry = RawContactModifier.insertChild(rawContactEntityDelta, in addToDefaultGroup()
|