Home
last modified time | relevance | path

Searched refs:CPOWrapper (Results 1 – 8 of 8) sorted by relevance

/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
DRawContactDeltaTests.java32 import com.android.contacts.common.model.CPOWrapper;
170 final ArrayList<CPOWrapper> diff = Lists.newArrayList(); in testEntityDiffNone()
188 final ArrayList<CPOWrapper> diff = Lists.newArrayList(); in testEntityDiffNoneInsert()
193 final CPOWrapper cpoWrapper = diff.get(0); in testEntityDiffNoneInsert()
197 final CPOWrapper cpoWrapper = diff.get(1); in testEntityDiffNoneInsert()
203 final CPOWrapper cpoWrapper = diff.get(2); in testEntityDiffNoneInsert()
209 final CPOWrapper cpoWrapper = diff.get(3); in testEntityDiffNoneInsert()
231 final ArrayList<CPOWrapper> diff = Lists.newArrayList(); in testEntityDiffUpdateInsert()
236 final CPOWrapper cpoWrapper = diff.get(0); in testEntityDiffUpdateInsert()
240 final CPOWrapper cpoWrapper = diff.get(1); in testEntityDiffUpdateInsert()
[all …]
DRawContactDeltaListTests.java34 import com.android.contacts.common.model.CPOWrapper;
181 static void assertDiffPattern(RawContactDelta delta, CPOWrapper... pattern) { in assertDiffPattern()
182 final ArrayList<CPOWrapper> diff = Lists.newArrayList(); in assertDiffPattern()
188 static void assertDiffPattern(RawContactDeltaList set, CPOWrapper... pattern) { in assertDiffPattern()
192 static void assertDiffPattern(ArrayList<CPOWrapper> diff, CPOWrapper... pattern) { in assertDiffPattern()
195 final CPOWrapper expected = pattern[i]; in assertDiffPattern()
196 final CPOWrapper found = diff.get(i); in assertDiffPattern()
223 static String getTypeString(CPOWrapper cpoWrapper) { in getTypeString()
236 static CPOWrapper buildAssertVersion(long version) { in buildAssertVersion()
242 static CPOWrapper buildAggregationModeUpdate(int mode) { in buildAggregationModeUpdate()
[all …]
DRawContactModifierTests.java39 import com.android.contacts.common.model.CPOWrapper;
392 final ArrayList<CPOWrapper> diff = Lists.newArrayList(); in testTrimEmptySingle()
396 final CPOWrapper cpoWrapper = diff.get(0); in testTrimEmptySingle()
402 final CPOWrapper cpoWrapper = diff.get(1); in testTrimEmptySingle()
408 final CPOWrapper cpoWrapper = diff.get(2); in testTrimEmptySingle()
420 final CPOWrapper cpoWrapper = diff.get(0); in testTrimEmptySingle()
495 final ArrayList<CPOWrapper> diff = Lists.newArrayList(); in testTrimEmptyUntouched()
520 final ArrayList<CPOWrapper> diff = Lists.newArrayList(); in testTrimEmptyAfterUpdate()
531 final CPOWrapper cpoWrapper = diff.get(0); in testTrimEmptyAfterUpdate()
537 final CPOWrapper cpoWrapper = diff.get(1); in testTrimEmptyAfterUpdate()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DRawContactDeltaList.java34 import com.android.contacts.common.model.CPOWrapper;
218 public ArrayList<CPOWrapper> buildDiffWrapper() { in buildDiffWrapper()
222 final ArrayList<CPOWrapper> diffWrapper = Lists.newArrayList(); in buildDiffWrapper()
257 diffWrapper.add(new CPOWrapper(builder.build(), CompatUtils.TYPE_UPDATE)); in buildDiffWrapper()
272 diffWrapper.add(new CPOWrapper(builder.build(), CompatUtils.TYPE_UPDATE)); in buildDiffWrapper()
284 diffWrapper.add(new CPOWrapper(builder.build(), CompatUtils.TYPE_UPDATE)); in buildDiffWrapper()
316 private static String diffToStringWrapper(ArrayList<CPOWrapper> cpoWrappers) { in diffToStringWrapper()
318 for (CPOWrapper cpoWrapper : cpoWrappers) { in diffToStringWrapper()
359 private void buildSplitContactDiffWrapper(final ArrayList<CPOWrapper> diff, int[] backRefs) { in buildSplitContactDiffWrapper()
368 diff.add(new CPOWrapper(builder.build(), CompatUtils.TYPE_UPDATE)); in buildSplitContactDiffWrapper()
DRawContactDelta.java35 import com.android.contacts.common.model.CPOWrapper;
405 private void possibleAddWrapper(ArrayList<CPOWrapper> diff, BuilderWrapper bw) { in possibleAddWrapper()
407 diff.add(new CPOWrapper(bw.getBuilder().build(), bw.getType())); in possibleAddWrapper()
427 public void buildAssertWrapper(ArrayList<CPOWrapper> buildInto) { in buildAssertWrapper()
430 buildInto.add(new CPOWrapper(builder.build(), CompatUtils.TYPE_ASSERT)); in buildAssertWrapper()
529 public void buildDiffWrapper(ArrayList<CPOWrapper> buildInto) { in buildDiffWrapper()
584 buildInto.add(firstIndex, new CPOWrapper(builder.build(), CompatUtils.TYPE_UPDATE)); in buildDiffWrapper()
588 buildInto.add(new CPOWrapper(builder.build(), CompatUtils.TYPE_UPDATE)); in buildDiffWrapper()
595 buildInto.add(new CPOWrapper(builder.build(), CompatUtils.TYPE_UPDATE)); in buildDiffWrapper()
DCPOWrapper.java25 public class CPOWrapper { class
29 public CPOWrapper(ContentProviderOperation builder, int type) { in CPOWrapper() method in CPOWrapper
/packages/apps/ContactsCommon/src/com/android/contacts/common/compat/
DCompatUtils.java25 import com.android.contacts.common.model.CPOWrapper;
48 public static boolean isInsertCompat(CPOWrapper cpoWrapper) { in isInsertCompat()
58 public static boolean isUpdateCompat(CPOWrapper cpoWrapper) { in isUpdateCompat()
68 public static boolean isDeleteCompat(CPOWrapper cpoWrapper) { in isDeleteCompat()
77 public static boolean isAssertQueryCompat(CPOWrapper cpoWrapper) { in isAssertQueryCompat()
/packages/apps/Contacts/src/com/android/contacts/
DContactSaveService.java55 import com.android.contacts.common.model.CPOWrapper;
431 final ArrayList<CPOWrapper> diffWrapper = state.buildDiffWrapper(); in saveContact()
435 for (CPOWrapper cpoWrapper : diffWrapper) { in saveContact()
626 final ArrayList<CPOWrapper> diffWrapper, in getRawContactId()
640 final ArrayList<CPOWrapper> diffWrapper, final ContentProviderResult[] results) { in getInsertedRawContactId()
647 final CPOWrapper cpoWrapper = diffWrapper.get(i); in getInsertedRawContactId()