/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
D | RawContactDeltaTests.java | 87 final RawContactDelta source = RawContactDelta.fromBefore(before); in testParcelChangesNone() 88 final RawContactDelta dest = RawContactDelta.fromBefore(before); in testParcelChangesNone() 91 final RawContactDelta merged = RawContactDelta.mergeAfter(dest, source); in testParcelChangesNone() 97 final RawContactDelta source = RawContactDelta.fromBefore(before); in testParcelChangesInsert() 98 final RawContactDelta dest = RawContactDelta.fromBefore(before); in testParcelChangesInsert() 108 final RawContactDelta merged = RawContactDelta.mergeAfter(dest, source); in testParcelChangesInsert() 115 final RawContactDelta source = RawContactDelta.fromBefore(before); in testParcelChangesUpdate() 116 final RawContactDelta dest = RawContactDelta.fromBefore(before); in testParcelChangesUpdate() 122 final RawContactDelta merged = RawContactDelta.mergeAfter(dest, source); in testParcelChangesUpdate() 129 final RawContactDelta source = RawContactDelta.fromBefore(before); in testParcelChangesDelete() [all …]
|
D | RawContactModifierTests.java | 165 protected RawContactDelta getRawContact(Long existingId, ContentValues... entries) { in getRawContact() 177 return RawContactDelta.fromBefore(before); in getRawContact() 209 final RawContactDelta state = getRawContact(TEST_ID); in testValidTypes() 254 final RawContactDelta state = getRawContact(TEST_ID); in testValidTypesWhenUpdating() 289 final RawContactDelta state = getRawContact(TEST_ID); in testCanInsert() 321 final RawContactDelta state = getRawContact(TEST_ID); in testBestValidType() 363 final RawContactDelta state = getRawContact(TEST_ID); in testIsEmptyDirectFields() 380 final RawContactDelta state = getRawContact(TEST_ID); in testTrimEmptySingle() 425 final RawContactDelta state = RawContactDeltaListTests.buildBeforeEntity(mContext, TEST_ID, in testTrimEmptySpaces() 451 final RawContactDelta state = RawContactDeltaListTests.buildBeforeEntity(mContext, TEST_ID, in testTrimLeaveValid() [all …]
|
D | RawContactDeltaListTests.java | 95 static RawContactDelta getUpdate(Context context, long rawContactId) { in getUpdate() 98 return RawContactDelta.fromBefore(before); in getUpdate() 101 static RawContactDelta getInsert() { in getInsert() 107 return new RawContactDelta(values); in getInsert() 110 static RawContactDeltaList buildSet(RawContactDelta... deltas) { in buildSet() 116 static RawContactDelta buildBeforeEntity(Context context, long rawContactId, long version, in buildBeforeEntity() 126 return RawContactDelta.fromBefore(before); in buildBeforeEntity() 129 static RawContactDelta buildAfterEntity(ContentValues... entries) { in buildAfterEntity() 133 final RawContactDelta after = new RawContactDelta(ValuesDelta.fromAfter(contact)); in buildAfterEntity() 163 final RawContactDelta match = set.getByRawContactId(rawContactId); in insertPhone() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | RawContactDeltaList.java | 46 public class RawContactDeltaList extends ArrayList<RawContactDelta> implements Parcelable { 91 final RawContactDelta rawContactDelta = RawContactDelta.fromBefore(before); in addAll() 106 for (RawContactDelta remoteEntity : remote) { in mergeAfter() 110 final RawContactDelta localEntity = local.getByRawContactId(rawContactId); in mergeAfter() 111 final RawContactDelta merged = RawContactDelta.mergeAfter(localEntity, remoteEntity); in mergeAfter() 138 for (RawContactDelta delta : this) { in buildDiffWrapper() 148 for (RawContactDelta delta : this) { in buildDiffWrapper() 297 for (RawContactDelta delta : this) { in findRawContactId() 311 final RawContactDelta delta = this.get(index); in getRawContactId() 323 public RawContactDelta getByRawContactId(Long rawContactId) { in getByRawContactId() [all …]
|
D | RawContactDelta.java | 55 public class RawContactDelta implements Parcelable { class 78 public RawContactDelta() { in RawContactDelta() method in RawContactDelta 81 public RawContactDelta(ValuesDelta values) { in RawContactDelta() method in RawContactDelta 89 public static RawContactDelta fromBefore(RawContact before) { in fromBefore() 90 final RawContactDelta rawContactDelta = new RawContactDelta(); in fromBefore() 105 public static RawContactDelta mergeAfter(RawContactDelta local, RawContactDelta remote) { in mergeAfter() 111 if (local == null) local = new RawContactDelta(); in mergeAfter() 330 if (object instanceof RawContactDelta) { in equals() 331 final RawContactDelta other = (RawContactDelta)object; in equals() 647 public static final Parcelable.Creator<RawContactDelta> CREATOR = [all …]
|
D | RawContactModifier.java | 88 public static boolean canInsert(RawContactDelta state, DataKind kind) { in canInsert() 97 public static boolean hasValidTypes(RawContactDelta state, DataKind kind) { in hasValidTypes() 112 RawContactDelta state, AccountType accountType, String mimeType) { in ensureKindExists() 147 public static ArrayList<EditType> getValidTypes(RawContactDelta state, DataKind kind, in getValidTypes() 190 private static SparseIntArray getTypeFrequencies(RawContactDelta state, DataKind kind) { in getTypeFrequencies() 286 public static EditType getBestValidType(RawContactDelta state, DataKind kind, in getBestValidType() 330 public static ValuesDelta insertChild(RawContactDelta state, DataKind kind) { in insertChild() 346 public static ValuesDelta insertChild(RawContactDelta state, DataKind kind, EditType type) { in insertChild() 376 for (RawContactDelta state : set) { in trimEmpty() 395 for (RawContactDelta state : set) { in hasChanges() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | ContactEditorFragment.java | 78 import com.android.contacts.model.RawContactDelta; 859 final Iterator<RawContactDelta> iterator = mState.iterator(); in onSplitContactConfirmed() 861 final RawContactDelta rawContactDelta = iterator.next(); in onSplitContactConfirmed() 987 final RawContactDelta beforeRawContactDelta = mState in hasPendingChanges() 1138 RawContactDelta oldState, AccountType oldAccountType, boolean isUserProfile) { in setStateForNewContact() 1154 private RawContactDelta createNewRawContactDelta(AccountWithDataSet account, in createNewRawContactDelta() 1155 AccountType accountType, RawContactDelta oldState, AccountType oldAccountType) { in createNewRawContactDelta() 1163 final RawContactDelta result = new RawContactDelta( in createNewRawContactDelta() 1207 for (RawContactDelta rawContactDelta : mState) { in setStateForExistingContact() 1251 private static RawContactDelta createLocalRawContactDelta() { in createLocalRawContactDelta() [all …]
|
D | KindSectionData.java | 21 import com.android.contacts.model.RawContactDelta; 37 private final RawContactDelta mRawContactDelta; 40 RawContactDelta rawContactDelta) { in KindSectionData() 118 public RawContactDelta getRawContactDelta() { in getRawContactDelta()
|
D | RawContactDeltaComparator.java | 23 import com.android.contacts.model.RawContactDelta; 32 class RawContactDeltaComparator implements Comparator<RawContactDelta> { 41 public int compare(RawContactDelta one, RawContactDelta two) { in compare()
|
D | ViewIdGenerator.java | 23 import com.android.contacts.model.RawContactDelta; 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 | RawContactEditorView.java | 57 import com.android.contacts.model.RawContactDelta; 107 public void onRebindEditorsForNewContact(RawContactDelta oldState, in onRebindEditorsForNewContact() 207 private RawContactDelta mCurrentRawContactDelta; 354 final RawContactDelta rawContactDelta = mRawContactDeltas.get(i); in unsetSuperPrimaryFromAllPhotos() 397 public RawContactDelta getCurrentRawContactDelta() { in getCurrentRawContactDelta() 491 final RawContactDelta rawContactDelta = in setState() 547 final RawContactDelta rawContactDelta = mRawContactDeltas.get(j); in pickRawContactDelta() 804 private void addAccountSelector(final RawContactDelta rawContactDelta) { in addAccountSelector()
|
D | KindSectionView.java | 34 import com.android.contacts.model.RawContactDelta; 329 private void addNameEditorViews(AccountType accountType, RawContactDelta rawContactDelta) { in addNameEditorViews() 396 private void addGroupEditorView(RawContactDelta rawContactDelta, DataKind dataKind) { in addGroupEditorView() 409 private View addNonNameEditorView(RawContactDelta rawContactDelta, DataKind dataKind, in addNonNameEditorView() 541 final RawContactDelta rawContactDelta = mKindSectionData.getRawContactDelta(); in updateEmptyNonNameEditors()
|
D | Editor.java | 21 import com.android.contacts.model.RawContactDelta; 67 … public void setValues(DataKind kind, ValuesDelta values, RawContactDelta state, boolean readOnly, in setValues()
|
D | GroupMembershipView.java | 43 import com.android.contacts.model.RawContactDelta; 151 private RawContactDelta mState; 258 public void setState(RawContactDelta state) { in setState()
|
D | StructuredNameEditorView.java | 32 import com.android.contacts.model.RawContactDelta; 72 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly, in setValues()
|
D | LabeledEditorView.java | 49 import com.android.contacts.model.RawContactDelta; 78 private RawContactDelta mState; 403 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly, in setValues()
|
D | EventFieldEditorView.java | 33 import com.android.contacts.model.RawContactDelta; 109 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly, in setValues()
|
D | TextFieldsEditorView.java | 47 import com.android.contacts.model.RawContactDelta; 260 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly, in setValues()
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | AttachPhotoActivity.java | 48 import com.android.contacts.model.RawContactDelta; 288 RawContactDelta raw = deltaList.getFirstWritableRawContact(this); in saveContact() 299 RawContactDelta raw) { in saveToContact() 397 final RawContactDelta newRawContactDelta in createNewRawContact() 398 = new RawContactDelta(ValuesDelta.fromAfter(after)); in createNewRawContact()
|
/packages/apps/Contacts/src/com/android/contacts/model/account/ |
D | AccountDisplayInfoFactory.java | 22 import com.android.contacts.model.RawContactDelta; 77 public AccountDisplayInfo getAccountDisplayInfoFor(RawContactDelta delta) { in getAccountDisplayInfoFor()
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
D | InvisibleContactUtil.java | 13 import com.android.contacts.model.RawContactDelta; 94 final RawContactDelta rawContactEntityDelta = rawContactDeltaList.get(0); in markAddToDefaultGroup()
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
D | PhotoSelectionHandler.java | 42 import com.android.contacts.model.RawContactDelta; 218 final RawContactDelta delta = mState.get(writableEntityIndex); in getDeltaForAttachingPhotoToContact()
|
/packages/apps/Contacts/ |
D | proguard.flags | 78 -keep class com.android.contacts.model.RawContactDelta { *; }
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ContactSaveService.java | 63 import com.android.contacts.model.RawContactDelta; 634 for (RawContactDelta delta : state) { in saveContact()
|