Home
last modified time | relevance | path

Searched refs:insertOperations (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPhonebookPullRequest.java73 ArrayList<ContentProviderOperation> insertOperations = new ArrayList<>(); in onPullComplete() local
82 int numberOfOperations = insertOperations.size(); in onPullComplete()
84 e.constructInsertOperations(contactsProvider, insertOperations); in onPullComplete()
85 if (insertOperations.size() >= MAX_OPS) { in onPullComplete()
88 insertOperations.subList(numberOfOperations, insertOperations.size()).clear(); in onPullComplete()
89 contactsProvider.applyBatch(ContactsContract.AUTHORITY, insertOperations); in onPullComplete()
90 insertOperations = e.constructInsertOperations(contactsProvider, null); in onPullComplete()
91 if (insertOperations.size() >= MAX_OPS) { in onPullComplete()
93 insertOperations.clear(); in onPullComplete()
97 if (insertOperations.size() > 0) { in onPullComplete()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DImportDataTask.java148 ArrayList<ContentProviderOperation> insertOperations = new ArrayList<>(BATCH_INSERT_SIZE); in importWorkspaceItems() local
285 insertOperations.add(ContentProviderOperation in importWorkspaceItems()
291 if (insertOperations.size() >= BATCH_INSERT_SIZE) { in importWorkspaceItems()
293 insertOperations); in importWorkspaceItems()
294 insertOperations.clear(); in importWorkspaceItems()
302 if (!insertOperations.isEmpty()) { in importWorkspaceItems()
304 insertOperations); in importWorkspaceItems()
305 insertOperations.clear(); in importWorkspaceItems()
316 hotseatTargetApps, hotseatItems, insertOperations, maxId + 1, myHotseatCount); in importWorkspaceItems()
321 if (!insertOperations.isEmpty()) { in importWorkspaceItems()
[all …]