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

/packages/apps/Contacts/src/com/android/contacts/activities/
H A DAttachPhotoActivity.java214 ArrayList<ContentProviderOperation> operations =
219 operations.add(ContentProviderOperation.newAssertQuery(rawContactDataUri)
231 operations.add(ContentProviderOperation.newInsert(rawContactDataUri)
235 mContentResolver.applyBatch(ContactsContract.AUTHORITY, operations);
254 ArrayList<ContentProviderOperation> operations =
260 operations.add(ContentProviderOperation.newAssertQuery(rawContactDataUri)
266 operations.add(ContentProviderOperation.newUpdate(rawContactDataUri)
271 mContentResolver.applyBatch(ContactsContract.AUTHORITY, operations);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DAbstractContactsProvider.java34 * but exposes awareness of batch operations to the subclass so that cross-database operations
46 * Maximum number of operations allowed in a batch between yield points.
68 * and initiate a transaction on that database. This should be used to ensure that operations
175 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument
181 final int numOperations = operations.size();
186 "Too many content provider operations between yield points. "
187 + "The maximum number of operations per yield point is "
190 final ContentProviderOperation operation = operations.get(i);
H A DContactsProvider2.java2062 // Clear out the active database; modification operations will set this to the contacts DB.
2225 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument
2228 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/providers/CalendarProvider/src/com/android/providers/calendar/
H A DSQLiteContentProvider.java207 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument
213 final int numOperations = operations.size();
216 final ContentProviderOperation operation = operations.get(i);
/packages/apps/Contacts/src/com/android/contacts/
H A DContactSaveService.java67 /** Set to true in order to view logs on content provider operations */
238 ArrayList<ContentProviderOperation> operations = new ArrayList<ContentProviderOperation>();
239 operations.add(ContentProviderOperation.newInsert(RawContacts.CONTENT_URI)
249 operations.add(ContentProviderOperation.newInsert(Data.CONTENT_URI)
258 results = resolver.applyBatch(ContactsContract.AUTHORITY, operations);
309 // Build operations and try applying
928 ArrayList<ContentProviderOperation> operations = new ArrayList<ContentProviderOperation>();
932 buildJoinContactDiff(operations, rawContactIds[i], rawContactIds[j]);
943 operations.add(builder.build());
949 resolver.applyBatch(ContactsContract.AUTHORITY, operations);
972 buildJoinContactDiff(ArrayList<ContentProviderOperation> operations, long rawContactId1, long rawContactId2) argument
[all...]
/packages/apps/Calendar/tests/src/com/android/calendar/event/
H A DEditEventHelperTest.java173 ArrayList<ContentProviderOperation> operations) {
177 verifySaveEventNewEvent(operations);
181 verifySaveEventModifyRecurring(operations);
185 verifySaveEventRecurringToNonRecurring(operations);
189 verifySaveEventNonRecurringToRecurring(operations);
193 verifySaveEventUpdateNonRecurring(operations);
197 verifySaveEventModifySingleInstance(operations);
201 verifySaveEventModifyAllFollowingWithNonRecurring(operations);
205 verifySaveEventModifyAllFollowingFirstWithNonRecurring(operations);
209 verifySaveEventModifyAllFollowingFirstWithRecurring(operations);
172 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
613 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) { argument
[all...]
/packages/apps/Email/src/com/android/email/provider/
H A DEmailProvider.java99 /** Appended to the notification URI for delete operations */
101 /** Appended to the notification URI for insert operations */
103 /** Appended to the notification URI for update operations */
2351 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument
2357 ContentProviderResult[] results = super.applyBatch(operations);
/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMediaProvider.java3159 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument
3162 // The operations array provides no overall information about the URI(s) being operated
3174 ContentProviderResult[] result = super.applyBatch(operations);

Completed in 312 milliseconds