Home
last modified time | relevance | path

Searched refs:operations (Results 1 – 25 of 44) sorted by relevance

12

/packages/apps/Dialer/java/com/android/dialer/databasepopulator/
DContactsPopulator.java132 ArrayList<ContentProviderOperation> operations = new ArrayList<>(); in populateContacts() local
140 addContact(contact, operations); in populateContacts()
144 context.getContentResolver().applyBatch(ContactsContract.AUTHORITY, operations); in populateContacts()
153 ArrayList<ContentProviderOperation> operations = new ArrayList<>(); in populateSpeedDialTestContacts() local
154 addContact(SIMPLE_CONTACTS[0], operations); in populateSpeedDialTestContacts()
155 addContact(SIMPLE_CONTACTS[3], operations); in populateSpeedDialTestContacts()
156 addContact(SIMPLE_CONTACTS[5], operations); in populateSpeedDialTestContacts()
158 context.getContentResolver().applyBatch(ContactsContract.AUTHORITY, operations); in populateSpeedDialTestContacts()
185 private static void addContact(Contact contact, List<ContentProviderOperation> operations) { in addContact() argument
186 int index = operations.size(); in addContact()
[all …]
DBlockedBumberPopulator.java40 ArrayList<ContentProviderOperation> operations = new ArrayList<>(); in populateBlockedNumber() local
42 operations.add( in populateBlockedNumber()
49 context.getContentResolver().applyBatch(BlockedNumberContract.AUTHORITY, operations); in populateBlockedNumber()
DCallLogPopulator.java91 ArrayList<ContentProviderOperation> operations = new ArrayList<>(); in populateCallLog() local
106 operations.add( in populateCallLog()
115 context.getContentResolver().applyBatch(CallLog.AUTHORITY, operations); in populateCallLog()
/packages/apps/Contacts/src/com/android/contacts/
DContactSaveService.java399 ArrayList<ContentProviderOperation> operations = new ArrayList<ContentProviderOperation>(); in createRawContact() local
400 operations.add(ContentProviderOperation.newInsert(RawContacts.CONTENT_URI) in createRawContact()
410 operations.add(ContentProviderOperation.newInsert(Data.CONTENT_URI) in createRawContact()
419 results = resolver.applyBatch(ContactsContract.AUTHORITY, operations); in createRawContact()
1280 final ArrayList<ContentProviderOperation> operations = new ArrayList<>(batchSize); in splitContact() local
1284 if (!buildSplitTwoContacts(operations, rawContactIds[i], rawContactIds[j], in splitContact()
1294 if (operations.size() > 0 && !applyOperations(resolver, operations)) { in splitContact()
1314 private boolean buildSplitTwoContacts(ArrayList<ContentProviderOperation> operations, in buildSplitTwoContacts() argument
1326 buildSplitContactDiff(operations, rawContactIds1[i], rawContactIds2[j], hardSplit); in buildSplitTwoContacts()
1328 if (operations.size() > 0 && operations.size() % batchSize == 0) { in buildSplitTwoContacts()
[all …]
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/calendarsync/
DCalendarCleaner.java77 String calId, ArrayList<ContentProviderOperation> operations) { in buildCalendarDeletionOps() argument
94 operations.add( in buildCalendarDeletionOps()
102 operations.add( in buildCalendarDeletionOps()
107 operations.add( in buildCalendarDeletionOps()
113 private void executeBatchOperations(ArrayList<ContentProviderOperation> operations) { in executeBatchOperations() argument
115 mContentResolver.applyBatch(CalendarContract.AUTHORITY, operations); in executeBatchOperations()
DCalendarImporter.java206 ArrayList<ContentProviderOperation> operations = new ArrayList<>(); in insertAttendees() local
218 operations.add( in insertAttendees()
226 mContentResolver.applyBatch(CalendarContract.AUTHORITY, operations); in insertAttendees()
/packages/apps/Dialer/java/com/android/dialer/blocking/
DBlocking.java76 ArrayList<ContentProviderOperation> operations = new ArrayList<>(); in block()
84 operations.add( in block()
89 applyBatchOps(context.getContentResolver(), operations); in block() local
108 ArrayList<ContentProviderOperation> operations = new ArrayList<>(); in unblock()
122 operations.add( in unblock()
127 applyBatchOps(context.getContentResolver(), operations); in unblock() local
/packages/providers/TvProvider/src/com/android/providers/tv/
DPackageRemovedReceiver.java63 ArrayList<ContentProviderOperation> operations = new ArrayList<>(); in onReceive() local
69 operations.add( in onReceive()
74 operations.add( in onReceive()
79 operations.add( in onReceive()
88 results = cr.applyBatch(TvContract.AUTHORITY, operations); in onReceive()
DPackageChangedReceiver.java56 ArrayList<ContentProviderOperation> operations = new ArrayList<>(); in onReceive() local
61 operations.add(ContentProviderOperation in onReceive()
64 operations.add(ContentProviderOperation in onReceive()
72 operations.add(ContentProviderOperation in onReceive()
79 results = cr.applyBatch(TvContract.AUTHORITY, operations); in onReceive()
/packages/apps/Dialer/java/com/android/dialer/calllog/database/
DMutationApplier.java69 ArrayList<ContentProviderOperation> operations = new ArrayList<>(); in applyToDatabaseInternal() local
77 operations.add( in applyToDatabaseInternal()
91 operations.add( in applyToDatabaseInternal()
118 operations.add( in applyToDatabaseInternal()
125 appContext.getContentResolver().applyBatch(AnnotatedCallLogContract.AUTHORITY, operations); in applyToDatabaseInternal()
DAnnotatedCallLogContentProvider.java277 public ContentProviderResult[] applyBatch(@NonNull ArrayList<ContentProviderOperation> operations) in applyBatch() argument
279 ContentProviderResult[] results = new ContentProviderResult[operations.size()]; in applyBatch()
280 if (operations.isEmpty()) { in applyBatch()
288 for (int i = 0; i < operations.size(); i++) { in applyBatch()
289 ContentProviderOperation operation = operations.get(i); in applyBatch()
302 if (operations.get(i).isInsert()) { in applyBatch()
/packages/apps/Dialer/java/com/android/dialer/phonelookup/database/
DPhoneLookupHistoryContentProvider.java273 public ContentProviderResult[] applyBatch(@NonNull ArrayList<ContentProviderOperation> operations) in applyBatch() argument
275 ContentProviderResult[] results = new ContentProviderResult[operations.size()]; in applyBatch()
276 if (operations.isEmpty()) { in applyBatch()
284 for (int i = 0; i < operations.size(); i++) { in applyBatch()
285 ContentProviderOperation operation = operations.get(i); in applyBatch()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DSQLiteContentProvider.java218 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) in applyBatch() argument
220 final int numOperations = operations.size(); in applyBatch()
226 final boolean isCallerSyncAdapter = getIsCallerSyncAdapter(operations.get(0).getUri()); in applyBatch()
232 final ContentProviderOperation operation = operations.get(i); in applyBatch()
/packages/apps/Dialer/java/com/android/dialer/calllog/
DCallLogCacheUpdater.java97 ArrayList<ContentProviderOperation> operations = new ArrayList<>();
116 operations.add(
142 Arrays.stream(appContext.getContentResolver().applyBatch(CallLog.AUTHORITY, operations))
/packages/apps/Dialer/java/com/android/dialer/app/list/
DPhoneFavoritesTileAdapter.java514 ArrayList<ContentProviderOperation> operations = in handleDrop() local
516 StrictModeUtils.bypass(() -> updateDatabaseWithPinnedPositions(operations)); in handleDrop()
522 private void updateDatabaseWithPinnedPositions(ArrayList<ContentProviderOperation> operations) { in updateDatabaseWithPinnedPositions() argument
523 if (operations.isEmpty()) { in updateDatabaseWithPinnedPositions()
528 context.getContentResolver().applyBatch(ContactsContract.AUTHORITY, operations); in updateDatabaseWithPinnedPositions()
/packages/apps/Dialer/java/com/android/dialer/calllog/ui/
DRealtimeRowProcessor.java152 ArrayList<ContentProviderOperation> operations = new ArrayList<>(); in writePhoneLookupHistory()
167 operations.add( in writePhoneLookupHistory()
176 .applyBatch(PhoneLookupHistoryContract.AUTHORITY, operations)) in writePhoneLookupHistory()
/packages/apps/Gallery2/src/com/android/photos/data/
DSQLiteContentProvider.java205 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) in applyBatch() argument
214 final int numOperations = operations.size(); in applyBatch()
223 final ContentProviderOperation operation = operations.get(i); in applyBatch()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DAbstractContactsProvider.java249 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) in applyBatch() argument
255 Log.v(TAG, "applyBatch: " + operations.size() + " ops"); in applyBatch()
261 final int numOperations = operations.size(); in applyBatch()
270 final ContentProviderOperation operation = operations.get(i); in applyBatch()
DContactMetadataProvider.java290 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) in applyBatch() argument
296 Log.v(TAG, "applyBatch: " + operations.size() + " ops"); in applyBatch()
301 ContentProviderResult[] results = super.applyBatch(operations); in applyBatch()
/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/
DCommonDatabaseUtils.java87 ArrayList<ContentProviderOperation> operations) { in applyBatch() argument
89 resolver.applyBatch(ContactsContract.AUTHORITY, operations); in applyBatch()
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/phonelookup/
DPhoneLookupDataSource.java264 ArrayList<ContentProviderOperation> operations = new ArrayList<>(); in writePhoneLookupHistory() local
272 operations.add( in writePhoneLookupHistory()
279 operations.add( in writePhoneLookupHistory()
287 .applyBatch(PhoneLookupHistoryContract.AUTHORITY, operations)); in writePhoneLookupHistory()
/packages/apps/Dialer/java/com/android/dialer/speeddial/loader/
DSpeedDialUiItemMutator.java598 ArrayList<ContentProviderOperation> operations = new ArrayList<>(); in updatePinnedPosition() local
612 operations.add(ContentProviderOperation.newUpdate(uri).withValues(values).build()); in updatePinnedPosition()
614 if (operations.isEmpty()) { in updatePinnedPosition()
619 appContext.getContentResolver().applyBatch(ContactsContract.AUTHORITY, operations); in updatePinnedPosition()
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DForwardingContentProvider.java189 ArrayList<ContentProviderOperation> operations) { in applyBatch() argument
191 return mClient.applyBatch(operations); in applyBatch()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java9195 final ArrayList<ContentProviderOperation> operations = in testPinnedPositionsUpdate() local
9198 operations.add(newPinningOperation(i1.mContactId, 1, true)); in testPinnedPositionsUpdate()
9199 operations.add(newPinningOperation(i3.mContactId, 3, true)); in testPinnedPositionsUpdate()
9200 operations.add(newPinningOperation(i4.mContactId, 2, false)); in testPinnedPositionsUpdate()
9202 CommonDatabaseUtils.applyBatch(mResolver, operations); in testPinnedPositionsUpdate()
9220 operations.clear(); in testPinnedPositionsUpdate()
9223 operations.add(newPinningOperation(i3.mContactId, unpinned, false)); in testPinnedPositionsUpdate()
9225 CommonDatabaseUtils.applyBatch(mResolver, operations); in testPinnedPositionsUpdate()
9258 final ArrayList<ContentProviderOperation> operations = in testPinnedPositionsAfterJoinAndSplit() local
9261 operations.add(newPinningOperation(i1.mContactId, 1, true)); in testPinnedPositionsAfterJoinAndSplit()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dperformance.md3 …tion] [1] which evaluates speed, memory usage and code size of various operations among 20 JSON li…

12