Home
last modified time | relevance | path

Searched refs:RawContactDelta (Results 1 – 25 of 32) sorted by relevance

12

/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
DRawContactDeltaTests.java34 import com.android.contacts.common.model.RawContactDelta;
91 final RawContactDelta source = RawContactDelta.fromBefore(before); in testParcelChangesNone()
92 final RawContactDelta dest = RawContactDelta.fromBefore(before); in testParcelChangesNone()
95 final RawContactDelta merged = RawContactDelta.mergeAfter(dest, source); in testParcelChangesNone()
101 final RawContactDelta source = RawContactDelta.fromBefore(before); in testParcelChangesInsert()
102 final RawContactDelta dest = RawContactDelta.fromBefore(before); in testParcelChangesInsert()
112 final RawContactDelta merged = RawContactDelta.mergeAfter(dest, source); in testParcelChangesInsert()
119 final RawContactDelta source = RawContactDelta.fromBefore(before); in testParcelChangesUpdate()
120 final RawContactDelta dest = RawContactDelta.fromBefore(before); in testParcelChangesUpdate()
126 final RawContactDelta merged = RawContactDelta.mergeAfter(dest, source); in testParcelChangesUpdate()
[all …]
DRawContactModifierTests.java41 import com.android.contacts.common.model.RawContactDelta;
173 protected RawContactDelta getRawContact(Long existingId, ContentValues... entries) { in getRawContact()
185 return RawContactDelta.fromBefore(before); in getRawContact()
217 final RawContactDelta state = getRawContact(TEST_ID); in testValidTypes()
262 final RawContactDelta state = getRawContact(TEST_ID); in testValidTypesWhenUpdating()
297 final RawContactDelta state = getRawContact(TEST_ID); in testCanInsert()
329 final RawContactDelta state = getRawContact(TEST_ID); in testBestValidType()
371 final RawContactDelta state = getRawContact(TEST_ID); in testIsEmptyDirectFields()
388 final RawContactDelta state = getRawContact(TEST_ID); in testTrimEmptySingle()
433 final RawContactDelta state = RawContactDeltaListTests.buildBeforeEntity(mContext, TEST_ID, in testTrimEmptySpaces()
[all …]
DRawContactDeltaListTests.java36 import com.android.contacts.common.model.RawContactDelta;
104 static RawContactDelta getUpdate(Context context, long rawContactId) { in getUpdate()
107 return RawContactDelta.fromBefore(before); in getUpdate()
110 static RawContactDelta getInsert() { in getInsert()
116 return new RawContactDelta(values); in getInsert()
119 static RawContactDeltaList buildSet(RawContactDelta... deltas) { in buildSet()
125 static RawContactDelta buildBeforeEntity(Context context, long rawContactId, long version, in buildBeforeEntity()
135 return RawContactDelta.fromBefore(before); in buildBeforeEntity()
138 static RawContactDelta buildAfterEntity(ContentValues... entries) { in buildAfterEntity()
142 final RawContactDelta after = new RawContactDelta(ValuesDelta.fromAfter(contact)); in buildAfterEntity()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DRawContactDeltaList.java48 public class RawContactDeltaList extends ArrayList<RawContactDelta> implements Parcelable {
93 final RawContactDelta rawContactDelta = RawContactDelta.fromBefore(before); in addAll()
108 for (RawContactDelta remoteEntity : remote) { in mergeAfter()
112 final RawContactDelta localEntity = local.getByRawContactId(rawContactId); in mergeAfter()
113 final RawContactDelta merged = RawContactDelta.mergeAfter(localEntity, remoteEntity); in mergeAfter()
140 for (RawContactDelta delta : this) { in buildDiff()
150 for (RawContactDelta delta : this) { in buildDiff()
228 for (RawContactDelta delta : this) { in buildDiffWrapper()
238 for (RawContactDelta delta : this) { in buildDiffWrapper()
407 for (RawContactDelta delta : this) { in findRawContactId()
[all …]
DRawContactDelta.java58 public class RawContactDelta implements Parcelable { class
81 public RawContactDelta() { in RawContactDelta() method in RawContactDelta
84 public RawContactDelta(ValuesDelta values) { in RawContactDelta() method in RawContactDelta
92 public static RawContactDelta fromBefore(RawContact before) { in fromBefore()
93 final RawContactDelta rawContactDelta = new RawContactDelta(); in fromBefore()
108 public static RawContactDelta mergeAfter(RawContactDelta local, RawContactDelta remote) { in mergeAfter()
114 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 …]
DRawContactModifier.java90 public static boolean canInsert(RawContactDelta state, DataKind kind) { in canInsert()
99 public static boolean hasValidTypes(RawContactDelta state, DataKind kind) { in hasValidTypes()
114 RawContactDelta state, AccountType accountType, String mimeType) { in ensureKindExists()
149 public static ArrayList<EditType> getValidTypes(RawContactDelta state, DataKind kind, in getValidTypes()
192 private static SparseIntArray getTypeFrequencies(RawContactDelta state, DataKind kind) { in getTypeFrequencies()
288 public static EditType getBestValidType(RawContactDelta state, DataKind kind, in getBestValidType()
332 public static ValuesDelta insertChild(RawContactDelta state, DataKind kind) { in insertChild()
348 public static ValuesDelta insertChild(RawContactDelta state, DataKind kind, EditType type) { in insertChild()
378 for (RawContactDelta state : set) { in trimEmpty()
397 for (RawContactDelta state : set) { in hasChanges()
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DKindSectionData.java19 import com.android.contacts.common.model.RawContactDelta;
37 private final RawContactDelta mRawContactDelta;
40 RawContactDelta rawContactDelta) { in KindSectionData()
118 public RawContactDelta getRawContactDelta() { in getRawContactDelta()
DRawContactDeltaComparator.java20 import com.android.contacts.common.model.RawContactDelta;
32 class RawContactDeltaComparator implements Comparator<RawContactDelta> {
41 public int compare(RawContactDelta one, RawContactDelta two) { in compare()
DCompactRawContactsEditorView.java21 import com.android.contacts.common.model.RawContactDelta;
109 public void onRebindEditorsForNewContact(RawContactDelta oldState, in onRebindEditorsForNewContact()
145 for (RawContactDelta rawContactDelta : rawContactDeltas) { in RawContactAccountListAdapter()
158 final RawContactDelta rawContactDelta = mRawContactDeltas.get(position); in getView()
186 public RawContactDelta getItem(int position) { in getItem()
278 final RawContactDelta rawContactDelta1 = kindSectionData1.getRawContactDelta(); in compare()
279 final RawContactDelta rawContactDelta2 = kindSectionData2.getRawContactDelta(); in compare()
659 final RawContactDelta rawContactDelta = in setState()
685 final RawContactDelta rawContactDelta = rawContactDeltas.get(j); in parseRawContactDeltas()
738 final RawContactDelta rawContactDelta = in addAccountInfo()
[all …]
DContactEditorBaseFragment.java33 import com.android.contacts.common.model.RawContactDelta;
878 final Iterator<RawContactDelta> iterator = mState.iterator(); in onSplitContactConfirmed()
880 final RawContactDelta rawContactDelta = iterator.next(); in onSplitContactConfirmed()
1208 RawContactDelta oldState, AccountType oldAccountType, boolean isUserProfile) { in setStateForNewContact()
1223 private RawContactDelta createNewRawContactDelta(AccountWithDataSet account, in createNewRawContactDelta()
1224 AccountType accountType, RawContactDelta oldState, AccountType oldAccountType) { in createNewRawContactDelta()
1232 final RawContactDelta result = new RawContactDelta( in createNewRawContactDelta()
1276 for (RawContactDelta rawContactDelta : mState) { in setStateForExistingContact()
1297 private static RawContactDelta createLocalRawContactDelta() { in createLocalRawContactDelta()
1301 final RawContactDelta result = new RawContactDelta( in createLocalRawContactDelta()
[all …]
DViewIdGenerator.java23 import com.android.contacts.common.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()
DEditor.java21 import com.android.contacts.common.model.RawContactDelta;
67 … public void setValues(DataKind kind, ValuesDelta values, RawContactDelta state, boolean readOnly, in setValues()
DCompactKindSectionView.java20 import com.android.contacts.common.model.RawContactDelta;
342 ValuesDelta valuesDelta, RawContactDelta rawContactDelta) { in addNameEditorViews()
401 private void addGroupEditorView(RawContactDelta rawContactDelta, DataKind dataKind) { in addGroupEditorView()
414 private View addNonNameEditorView(RawContactDelta rawContactDelta, DataKind dataKind, in addNonNameEditorView()
545 final RawContactDelta rawContactDelta = in updateEmptyNonNameEditors()
DKindSectionView.java30 import com.android.contacts.common.model.RawContactDelta;
58 private RawContactDelta mState;
135 public void setState(DataKind kind, RawContactDelta state, boolean readOnly, in setState()
DPhoneticNameEditorView.java23 import com.android.contacts.common.model.RawContactDelta;
105 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly, in setValues()
DKindSectionDataList.java18 import com.android.contacts.common.model.RawContactDelta;
124 RawContactDelta rawContactDelta) { in matchesAccount()
DBaseRawContactEditorView.java34 import com.android.contacts.common.model.RawContactDelta;
215 public abstract void setState(RawContactDelta state, AccountType source, ViewIdGenerator vig, in setState()
DContactEditorFragment.java41 import com.android.contacts.common.model.RawContactDelta;
196 final RawContactDelta rawContactDelta = mState.get(i); in bindEditors()
384 final RawContactDelta currentState, BaseRawContactEditorView editor) { in addAccountSwitcher()
526 final RawContactDelta entity = mState.get(i); in hasMoreThanOnePhoto()
DGroupMembershipView.java44 import com.android.contacts.common.model.RawContactDelta;
135 private RawContactDelta mState;
219 public void setState(RawContactDelta state) { in setState()
DRawContactEditorView.java43 import com.android.contacts.common.model.RawContactDelta;
88 private RawContactDelta mState;
187 public void setState(RawContactDelta state, AccountType type, ViewIdGenerator vig, in setState()
DPhotoEditorView.java35 import com.android.contacts.common.model.RawContactDelta;
115 … public void setValues(DataKind kind, ValuesDelta values, RawContactDelta state, boolean readOnly, in setValues()
DStructuredNameEditorView.java32 import com.android.contacts.common.model.RawContactDelta;
71 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly, in setValues()
/packages/apps/Contacts/src/com/android/contacts/activities/
DAttachPhotoActivity.java46 import com.android.contacts.common.model.RawContactDelta;
278 RawContactDelta raw = deltaList.getFirstWritableRawContact(this); in saveContact()
289 RawContactDelta raw) { in saveToContact()
374 final RawContactDelta newRawContactDelta in createNewRawContact()
375 = new RawContactDelta(ValuesDelta.fromAfter(after)); in createNewRawContact()
DConfirmAddDetailActivity.java69 import com.android.contacts.common.model.RawContactDelta;
135 private RawContactDelta mRawContactDelta;
630 private static RawContactDelta addEditableRawContact(Context context, in addEditableRawContact()
647 final RawContactDelta entityDelta = new RawContactDelta(ValuesDelta.fromAfter( in addEditableRawContact()
651 for (RawContactDelta entity : entityDeltaList) { in addEditableRawContact()
716 …private void inflateEditorView(DataKind dataKind, ValuesDelta valuesDelta, RawContactDelta state) { in inflateEditorView()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DInvisibleContactUtil.java11 import com.android.contacts.common.model.RawContactDelta;
80 final RawContactDelta rawContactEntityDelta = contactDeltaList.get(0); in addToDefaultGroup()

12