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.java83 String calId, ArrayList<ContentProviderOperation> operations) { in buildCalendarDeletionOps() argument
105 operations.add( in buildCalendarDeletionOps()
113 operations.add( in buildCalendarDeletionOps()
118 operations.add( in buildCalendarDeletionOps()
124 private void executeBatchOperations(ArrayList<ContentProviderOperation> operations) { in executeBatchOperations() argument
126 mContentResolver.applyBatch(CalendarContract.AUTHORITY, operations); in executeBatchOperations()
DCalendarImporter.java203 ArrayList<ContentProviderOperation> operations = new ArrayList<>(); in insertAttendees() local
214 operations.add(ContentProviderOperation.newInsert( in insertAttendees()
221 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/providers/MediaProvider/legacy/src/com/android/providers/media/
DLegacyMediaProvider.java115 public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) in applyBatch() argument
120 for (ContentProviderOperation op : operations) { in applyBatch()
128 final ContentProviderResult[] result = super.applyBatch(operations); in applyBatch()
/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/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/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.java191 ArrayList<ContentProviderOperation> operations) { in applyBatch() argument
193 return mClient.applyBatch(operations); in applyBatch()
/packages/modules/DnsResolver/
DDnsStatsTest.cpp328 constexpr size_t operations = 100000; in TEST_F() local
352 for (size_t i = 0; i < operations; i++) { in TEST_F()

12