Searched refs:operations (Results 1 - 11 of 11) sorted by relevance

/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DSQLiteContentProvider.java207 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument
209 final int numOperations = operations.size();
215 final boolean isCallerSyncAdapter = getIsCallerSyncAdapter(operations.get(0).getUri());
220 final ContentProviderOperation operation = operations.get(i);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DAbstractContactsProvider.java35 * but exposes awareness of batch operations to the subclass so that cross-database operations
54 * Maximum number of operations allowed in a batch between yield points.
76 * and initiate a transaction on that database. This should be used to ensure that operations
203 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument
206 Log.v(TAG, "applyBatch: " + operations.size() + " ops");
212 final int numOperations = operations.size();
217 "Too many content provider operations between yield points. "
218 + "The maximum number of operations per yield point is "
221 final ContentProviderOperation operation = operations
[all...]
H A DContactsProvider2.java2095 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument
2098 return super.applyBatch(operations);
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
H A DGoogleSource.java221 ArrayList<ContentProviderOperation> operations =
224 operations.add(ContentProviderOperation
229 operations.add(ContentProviderOperation
236 ContactsContract.AUTHORITY, operations);
/packages/apps/Browser/src/com/android/browser/provider/
H A DSQLiteContentProvider.java49 * Maximum number of operations allowed in a batch between yield points.
195 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument
204 final int numOperations = operations.size();
209 "Too many content provider operations between yield points. "
210 + "The maximum number of operations per yield point is "
213 final ContentProviderOperation operation = operations.get(i);
/packages/apps/Contacts/src/com/android/contacts/
H A DContactSaveService.java73 /** Set to true in order to view logs on content provider operations */
253 ArrayList<ContentProviderOperation> operations = new ArrayList<ContentProviderOperation>();
254 operations.add(ContentProviderOperation.newInsert(RawContacts.CONTENT_URI)
264 operations.add(ContentProviderOperation.newInsert(Data.CONTENT_URI)
273 results = resolver.applyBatch(ContactsContract.AUTHORITY, operations);
355 // Build operations and try applying
1054 ArrayList<ContentProviderOperation> operations = new ArrayList<ContentProviderOperation>();
1058 buildJoinContactDiff(operations, rawContactIds[i], rawContactIds[j]);
1069 operations.add(builder.build());
1075 resolver.applyBatch(ContactsContract.AUTHORITY, operations);
1098 buildJoinContactDiff(ArrayList<ContentProviderOperation> operations, long rawContactId1, long rawContactId2) argument
[all...]
/packages/apps/Calendar/tests/src/com/android/calendar/event/
H A DEditEventHelperTest.java179 ArrayList<ContentProviderOperation> operations) {
183 verifySaveEventNewEvent(operations);
187 verifySaveEventModifyRecurring(operations);
191 verifySaveEventRecurringToNonRecurring(operations);
195 verifySaveEventNonRecurringToRecurring(operations);
199 verifySaveEventUpdateNonRecurring(operations);
203 verifySaveEventModifySingleInstance(operations);
207 verifySaveEventModifyAllFollowingWithNonRecurring(operations);
211 verifySaveEventModifyAllFollowingFirstWithNonRecurring(operations);
215 verifySaveEventModifyAllFollowingFirstWithRecurring(operations);
178 mockApplyBatch(String authority, ArrayList<ContentProviderOperation> operations) argument
[all...]
/packages/apps/Calendar/tests/src/com/android/calendar/
H A DAsyncQueryServiceTest.java109 assertEquals("Not all operations were executed.", work.length, aqs
135 assertEquals("Not all operations were executed.", work.length, aqs
163 assertEquals("Not all operations were executed.", work.length, aqs
193 assertEquals("Not all operations were executed.", work.length, aqs
225 assertEquals("Not all operations were executed.", work.length, aqs
247 assertEquals("Not all operations were executed.", work.length, aqs
275 assertEquals("Not all operations were executed.", expected.length, aqs
307 assertEquals("Not all operations were executed.", expected.length, aqs
339 assertEquals("Not all operations were executed.", expected.length, aqs
614 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) { argument
[all...]
/packages/apps/Email/src/com/android/email/provider/
H A DEmailProvider.java108 /** Appended to the notification URI for delete operations */
110 /** Appended to the notification URI for insert operations */
112 /** Appended to the notification URI for update operations */
1720 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument
1726 ContentProviderResult[] results = super.applyBatch(operations);
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/
H A DEmailSyncAdapter.java1237 // Try applying the batch operations in smaller chunks
1249 private void applyBatchOperations(List<ContentProviderOperation> operations) { argument
1255 final List<ContentProviderOperation> remainingOperations = new ArrayList(operations);
/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMediaProvider.java3523 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument
3526 // The operations array provides no overall information about the URI(s) being operated
3538 ContentProviderResult[] result = super.applyBatch(operations);

Completed in 292 milliseconds