Home
last modified time | relevance | path

Searched refs:cpoWrapper (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Contacts/tests/src/com/android/contacts/model/
DRawContactDeltaTests.java189 final CPOWrapper cpoWrapper = diff.get(0); in testEntityDiffNoneInsert() local
190 assertTrue("Expected version enforcement", CompatUtils.isAssertQueryCompat(cpoWrapper)); in testEntityDiffNoneInsert()
193 final CPOWrapper cpoWrapper = diff.get(1); in testEntityDiffNoneInsert() local
194 final ContentProviderOperation oper = cpoWrapper.getOperation(); in testEntityDiffNoneInsert()
195 assertTrue("Expected aggregation mode change", CompatUtils.isUpdateCompat(cpoWrapper)); in testEntityDiffNoneInsert()
199 final CPOWrapper cpoWrapper = diff.get(2); in testEntityDiffNoneInsert() local
200 final ContentProviderOperation oper = cpoWrapper.getOperation(); in testEntityDiffNoneInsert()
201 assertTrue("Incorrect type", CompatUtils.isInsertCompat(cpoWrapper)); in testEntityDiffNoneInsert()
205 final CPOWrapper cpoWrapper = diff.get(3); in testEntityDiffNoneInsert() local
206 final ContentProviderOperation oper = cpoWrapper.getOperation(); in testEntityDiffNoneInsert()
[all …]
DRawContactModifierTests.java388 final CPOWrapper cpoWrapper = diff.get(0); in testTrimEmptySingle() local
389 final ContentProviderOperation oper = cpoWrapper.getOperation(); in testTrimEmptySingle()
390 assertTrue("Expected aggregation mode change", CompatUtils.isUpdateCompat(cpoWrapper)); in testTrimEmptySingle()
394 final CPOWrapper cpoWrapper = diff.get(1); in testTrimEmptySingle() local
395 final ContentProviderOperation oper = cpoWrapper.getOperation(); in testTrimEmptySingle()
396 assertTrue("Incorrect type", CompatUtils.isInsertCompat(cpoWrapper)); in testTrimEmptySingle()
400 final CPOWrapper cpoWrapper = diff.get(2); in testTrimEmptySingle() local
401 final ContentProviderOperation oper = cpoWrapper.getOperation(); in testTrimEmptySingle()
402 assertTrue("Expected aggregation mode change", CompatUtils.isUpdateCompat(cpoWrapper)); in testTrimEmptySingle()
412 final CPOWrapper cpoWrapper = diff.get(0); in testTrimEmptySingle() local
[all …]
DRawContactDeltaListTests.java214 static String getTypeString(CPOWrapper cpoWrapper) { in getTypeString() argument
215 if (CompatUtils.isAssertQueryCompat(cpoWrapper)) { in getTypeString()
217 } else if (CompatUtils.isInsertCompat(cpoWrapper)) { in getTypeString()
219 } else if (CompatUtils.isUpdateCompat(cpoWrapper)) { in getTypeString()
221 } else if (CompatUtils.isDeleteCompat(cpoWrapper)) { in getTypeString()
300 for (CPOWrapper cpoWrapper : diff) { in countExceptionUpdates()
301 final ContentProviderOperation oper = cpoWrapper.getOperation(); in countExceptionUpdates()
303 && CompatUtils.isUpdateCompat(cpoWrapper)) { in countExceptionUpdates()
/packages/apps/Contacts/src/com/android/contacts/compat/
DCompatUtils.java46 public static boolean isInsertCompat(CPOWrapper cpoWrapper) { in isInsertCompat() argument
48 return cpoWrapper.getOperation().isInsert(); in isInsertCompat()
50 return (cpoWrapper.getType() == TYPE_INSERT); in isInsertCompat()
56 public static boolean isUpdateCompat(CPOWrapper cpoWrapper) { in isUpdateCompat() argument
58 return cpoWrapper.getOperation().isUpdate(); in isUpdateCompat()
60 return (cpoWrapper.getType() == TYPE_UPDATE); in isUpdateCompat()
66 public static boolean isDeleteCompat(CPOWrapper cpoWrapper) { in isDeleteCompat() argument
68 return cpoWrapper.getOperation().isDelete(); in isDeleteCompat()
70 return (cpoWrapper.getType() == TYPE_DELETE); in isDeleteCompat()
75 public static boolean isAssertQueryCompat(CPOWrapper cpoWrapper) { in isAssertQueryCompat() argument
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/
DRawContactDeltaList.java228 for (CPOWrapper cpoWrapper : cpoWrappers) { in diffToStringWrapper()
229 ops.add(cpoWrapper.getOperation()); in diffToStringWrapper()
/packages/apps/Contacts/src/com/android/contacts/
DContactSaveService.java522 for (CPOWrapper cpoWrapper : diffWrapper) { in saveContact()
523 diff.add(cpoWrapper.getOperation()); in saveContact()
734 final CPOWrapper cpoWrapper = diffWrapper.get(i); in getInsertedRawContactId() local
735 final boolean isInsert = CompatUtils.isInsertCompat(cpoWrapper); in getInsertedRawContactId()
736 if (isInsert && cpoWrapper.getOperation().getUri().getEncodedPath().contains( in getInsertedRawContactId()