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

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/
H A DCommonDatabaseUtils.java87 ArrayList<ContentProviderOperation> operations) {
89 resolver.applyBatch(ContactsContract.AUTHORITY, operations);
86 applyBatch(ContentResolver resolver, ArrayList<ContentProviderOperation> operations) argument
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DSQLiteContentProvider.java217 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument
219 final int numOperations = operations.size();
225 final boolean isCallerSyncAdapter = getIsCallerSyncAdapter(operations.get(0).getUri());
231 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.java2317 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument
2320 return super.applyBatch(operations);
/packages/apps/Contacts/src/com/android/contacts/
H A DContactSaveService.java76 /** Set to true in order to view logs on content provider operations */
270 ArrayList<ContentProviderOperation> operations = new ArrayList<ContentProviderOperation>();
271 operations.add(ContentProviderOperation.newInsert(RawContacts.CONTENT_URI)
281 operations.add(ContentProviderOperation.newInsert(Data.CONTENT_URI)
290 results = resolver.applyBatch(ContactsContract.AUTHORITY, operations);
384 // Build operations and try applying
1093 // The maximum number of operations per batch (aka yield point) is 500. See b/22480225
1095 final ArrayList<ContentProviderOperation> operations = new ArrayList<>(batchSize);
1099 buildJoinContactDiff(operations, rawContactIds[i], rawContactIds[j]);
1101 // Before we get to 500 we need to flush the operations lis
1117 applyJoinOperations(ContentResolver resolver, ArrayList<ContentProviderOperation> operations) argument
1261 buildJoinContactDiff(ArrayList<ContentProviderOperation> operations, long rawContactId1, long rawContactId2) argument
[all...]
/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/Gallery2/src/com/android/photos/data/
H A DSQLiteContentProvider.java50 * Maximum number of operations allowed in a batch between yield points.
205 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument
214 final int numOperations = operations.size();
219 "Too many content provider operations between yield points. "
220 + "The maximum number of operations per yield point is "
223 final ContentProviderOperation operation = operations.get(i);
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DFolderOperations.java32 * Object that contains a list of folder operations (application/removals of folders)
61 * Adds an operation to the list of folder operations to be applied. The last
62 * operation for a folder will be retained in the list of operations.
141 * Return the number of folder operations
148 * Returns a FolderOperations object that will revert the operations described in
163 * Returns an array of the folder operations
164 * @return Array of the folder operations to perform
179 * @return Serialized representation of the folder operations
181 public static String serialize(FolderOperations operations) { argument
/packages/apps/Calendar/tests/src/com/android/calendar/event/
H A DEditEventHelperTest.java194 ArrayList<ContentProviderOperation> operations) {
198 verifySaveEventNewEvent(operations);
202 verifySaveEventModifyRecurring(operations);
206 verifySaveEventRecurringToNonRecurring(operations);
210 verifySaveEventNonRecurringToRecurring(operations);
214 verifySaveEventUpdateNonRecurring(operations);
218 verifySaveEventModifySingleInstance(operations);
222 verifySaveEventModifyAllFollowingWithNonRecurring(operations);
226 verifySaveEventModifyAllFollowingFirstWithNonRecurring(operations);
230 verifySaveEventModifyAllFollowingFirstWithRecurring(operations);
193 mockApplyBatch(String authority, ArrayList<ContentProviderOperation> operations) argument
[all...]
/packages/apps/Dialer/src/com/android/dialer/list/
H A DPhoneFavoritesTileAdapter.java483 final ArrayList<ContentProviderOperation> operations =
486 if (!operations.isEmpty()) {
490 operations);
/packages/apps/Calendar/tests/src/com/android/calendar/
H A DAsyncQueryServiceTest.java130 assertEquals("Not all operations were executed.", work.length, aqs
156 assertEquals("Not all operations were executed.", work.length, aqs
184 assertEquals("Not all operations were executed.", work.length, aqs
214 assertEquals("Not all operations were executed.", work.length, aqs
246 assertEquals("Not all operations were executed.", work.length, aqs
268 assertEquals("Not all operations were executed.", work.length, aqs
296 assertEquals("Not all operations were executed.", expected.length, aqs
328 assertEquals("Not all operations were executed.", expected.length, aqs
360 assertEquals("Not all operations were executed.", expected.length, aqs
644 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) { argument
[all...]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DContactsProvider2Test.java8521 final ArrayList<ContentProviderOperation> operations =
8524 operations.add(newPinningOperation(i1.mContactId, 1, true));
8525 operations.add(newPinningOperation(i3.mContactId, 3, true));
8526 operations.add(newPinningOperation(i4.mContactId, 2, false));
8528 CommonDatabaseUtils.applyBatch(mResolver, operations);
8546 operations.clear();
8549 operations.add(newPinningOperation(i3.mContactId, unpinned, false));
8551 CommonDatabaseUtils.applyBatch(mResolver, operations);
8584 final ArrayList<ContentProviderOperation> operations =
8587 operations
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/
H A DLauncherProvider.java199 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument
204 ContentProviderResult[] result = super.applyBatch(operations);
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DConversationCursor.java1471 * Quick and dirty class that executes underlying provider CRUD operations on a background
1619 // Keep track of whether our operations require recalibrating the cursor position
1783 // "Mostly" operations are reflected globally, but not locally, except to set
2099 * Apply many operations in a single batch transaction.
2100 * @param op the collection of operations obtained through successive calls to
2170 private int apply(Collection<ConversationOperation> operations) { argument
2171 return sProvider.apply(operations, this);
/packages/providers/TvProvider/src/com/android/providers/tv/
H A DTvProvider.java857 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument
864 ContentProviderResult[] results = super.applyBatch(operations);
/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMediaProvider.java3763 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument
3766 // The operations array provides no overall information about the URI(s) being operated
3778 ContentProviderResult[] result = super.applyBatch(operations);
/packages/apps/Email/provider_src/com/android/email/provider/
H A DEmailProvider.java188 /** Appended to the notification URI for delete operations */
190 /** Appended to the notification URI for insert operations */
192 /** Appended to the notification URI for update operations */
2528 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument
2540 ContentProviderResult[] results = super.applyBatch(operations);
5577 // First see if we have any operations saved
5591 // But clear the operations
5830 * Restart any push operations for an account.

Completed in 765 milliseconds