/packages/providers/TvProvider/src/com/android/providers/tv/ |
H A D | PackageRemovedReceiver.java | 45 ArrayList<ContentProviderOperation> operations = new ArrayList<>(); 51 operations.add(ContentProviderOperation.newDelete(TvContract.Channels.CONTENT_URI) 53 operations.add(ContentProviderOperation.newDelete(TvContract.Programs.CONTENT_URI) 55 operations.add(ContentProviderOperation 58 operations.add(ContentProviderOperation 61 operations.add(ContentProviderOperation 68 results = cr.applyBatch(TvContract.AUTHORITY, operations);
|
H A D | TvProvider.java | 1859 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument 1866 ContentProviderResult[] results = super.applyBatch(operations);
|
/packages/apps/Dialer/java/com/android/dialer/calllog/database/ |
H A D | MutationApplier.java | 52 ArrayList<ContentProviderOperation> operations = new ArrayList<>(); 60 operations.add( 74 operations.add( 97 operations.add( 103 appContext.getContentResolver().applyBatch(AnnotatedCallLogContract.AUTHORITY, operations);
|
H A D | AnnotatedCallLogContentProvider.java | 262 public ContentProviderResult[] applyBatch(@NonNull ArrayList<ContentProviderOperation> operations) argument 264 ContentProviderResult[] results = new ContentProviderResult[operations.size()]; 265 if (operations.isEmpty()) { 273 for (int i = 0; i < operations.size(); i++) { 274 ContentProviderOperation operation = operations.get(i); 288 if (operations.get(i).isInsert()) { 294 * The batches built by MutationApplier happen to contain operations in order of:
|
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/ |
H A D | SimulatorContacts.java | 119 ArrayList<ContentProviderOperation> operations = new ArrayList<>(); 121 addContact(contact, operations); 124 context.getContentResolver().applyBatch(ContactsContract.AUTHORITY, operations); 130 private static void addContact(Contact contact, List<ContentProviderOperation> operations) { argument 131 int index = operations.size(); 133 operations.add( 142 operations.add( 154 operations.add( 167 operations.add( 180 operations [all...] |
H A D | SimulatorCallLog.java | 78 ArrayList<ContentProviderOperation> operations = new ArrayList<>(); 84 operations.add( 93 context.getContentResolver().applyBatch(CallLog.AUTHORITY, operations);
|
/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/ |
H A D | CommonDatabaseUtils.java | 87 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 D | SQLiteContentProvider.java | 218 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument 220 final int numOperations = operations.size(); 226 final boolean isCallerSyncAdapter = getIsCallerSyncAdapter(operations.get(0).getUri()); 232 final ContentProviderOperation operation = operations.get(i);
|
/packages/apps/Contacts/src/com/android/contacts/ |
H A D | ContactSaveService.java | 88 /** Set to true in order to view logs on content provider operations */ 399 ArrayList<ContentProviderOperation> operations = new ArrayList<ContentProviderOperation>(); 400 operations.add(ContentProviderOperation.newInsert(RawContacts.CONTENT_URI) 410 operations.add(ContentProviderOperation.newInsert(Data.CONTENT_URI) 419 results = resolver.applyBatch(ContactsContract.AUTHORITY, operations); 517 // Build operations and try applying 1280 final ArrayList<ContentProviderOperation> operations = new ArrayList<>(batchSize); 1284 if (!buildSplitTwoContacts(operations, rawContactIds[i], rawContactIds[j], 1294 if (operations.size() > 0 && !applyOperations(resolver, operations)) { 1314 buildSplitTwoContacts(ArrayList<ContentProviderOperation> operations, long[] rawContactIds1, long[] rawContactIds2, boolean hardSplit) argument 1517 applyOperations(ContentResolver resolver, ArrayList<ContentProviderOperation> operations) argument 1717 buildJoinContactDiff(ArrayList<ContentProviderOperation> operations, long rawContactId1, long rawContactId2) argument 1732 buildSplitContactDiff(ArrayList<ContentProviderOperation> operations, long rawContactId1, long rawContactId2, boolean hardSplit) argument [all...] |
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
H A D | GoogleSource.java | 221 ArrayList<ContentProviderOperation> operations = 224 operations.add(ContentProviderOperation 229 operations.add(ContentProviderOperation 236 ContactsContract.AUTHORITY, operations);
|
/packages/apps/Gallery2/src/com/android/photos/data/ |
H A D | SQLiteContentProvider.java | 50 * 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 D | FolderOperations.java | 32 * 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/Contacts/tests/src/com/android/contacts/test/mocks/ |
H A D | ForwardingContentProvider.java | 189 ArrayList<ContentProviderOperation> operations) { 191 return mClient.applyBatch(operations); 188 applyBatch( ArrayList<ContentProviderOperation> operations) argument
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | ContactMetadataProvider.java | 290 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument 296 Log.v(TAG, "applyBatch: " + operations.size() + " ops"); 301 ContentProviderResult[] results = super.applyBatch(operations);
|
H A D | AbstractContactsProvider.java | 50 * but exposes awareness of batch operations to the subclass so that cross-database operations 69 * Maximum number of operations allowed in a batch between yield points. 91 * and initiate a transaction on that database. This should be used to ensure that operations 290 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument 295 Log.v(TAG, "applyBatch: " + operations.size() + " ops"); 301 final int numOperations = operations.size(); 306 "Too many content provider operations between yield points. " 307 + "The maximum number of operations per yield point is " 310 final ContentProviderOperation operation = operations [all...] |
H A D | ContactsProvider2.java | 2390 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument 2393 return super.applyBatch(operations);
|
/packages/apps/Calendar/tests/src/com/android/calendar/event/ |
H A D | EditEventHelperTest.java | 194 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/java/com/android/dialer/app/list/ |
H A D | PhoneFavoritesTileAdapter.java | 522 final ArrayList<ContentProviderOperation> operations = 524 if (!operations.isEmpty()) { 527 mContext.getContentResolver().applyBatch(ContactsContract.AUTHORITY, operations);
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
H A D | AsyncQueryServiceTest.java | 130 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/apps/TV/src/com/android/tv/tuner/tvinput/ |
H A D | ChannelDataManager.java | 84 // Throttle the batch operations to avoid TransactionTooLargeException. 550 private void applyBatch(String channelName, ArrayList<ContentProviderOperation> operations) { argument 552 mContext.getContentResolver().applyBatch(TvContract.AUTHORITY, operations);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | ContactsProvider2Test.java | 9297 final ArrayList<ContentProviderOperation> operations = 9300 operations.add(newPinningOperation(i1.mContactId, 1, true)); 9301 operations.add(newPinningOperation(i3.mContactId, 3, true)); 9302 operations.add(newPinningOperation(i4.mContactId, 2, false)); 9304 CommonDatabaseUtils.applyBatch(mResolver, operations); 9322 operations.clear(); 9325 operations.add(newPinningOperation(i3.mContactId, unpinned, false)); 9327 CommonDatabaseUtils.applyBatch(mResolver, operations); 9360 final ArrayList<ContentProviderOperation> operations = 9363 operations [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | LauncherProvider.java | 323 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument 327 ContentProviderResult[] result = super.applyBatch(operations);
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
H A D | ConversationCursor.java | 1471 * 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/MediaProvider/src/com/android/providers/media/ |
H A D | MediaProvider.java | 2879 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) argument 2882 // batched operations are likely to need to call getParent(), which in turn may need to 2885 // The operations array provides no overall information about the URI(s) being operated 2899 ContentProviderResult[] result = super.applyBatch(operations);
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
H A D | EmailProvider.java | 188 /** 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.
|