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.java59 ArrayList<ContentProviderOperation> insertOperations = new ArrayList<>(); in onPullComplete() local
68 int numberOfOperations = insertOperations.size(); in onPullComplete()
70 e.constructInsertOperations(contactsProvider, insertOperations); in onPullComplete()
71 if (insertOperations.size() >= MAX_OPS) { in onPullComplete()
74 insertOperations.subList(numberOfOperations, insertOperations.size()).clear(); in onPullComplete()
75 contactsProvider.applyBatch(ContactsContract.AUTHORITY, insertOperations); in onPullComplete()
76 insertOperations = e.constructInsertOperations(contactsProvider, null); in onPullComplete()
77 if (insertOperations.size() >= MAX_OPS) { in onPullComplete()
79 insertOperations.clear(); in onPullComplete()
83 if (insertOperations.size() > 0) { in onPullComplete()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DImportDataTask.java121 ArrayList<ContentProviderOperation> insertOperations = new ArrayList<>(BATCH_INSERT_SIZE); in importWorkspaceItems() local
264 insertOperations.add(ContentProviderOperation in importWorkspaceItems()
270 if (insertOperations.size() >= BATCH_INSERT_SIZE) { in importWorkspaceItems()
272 insertOperations); in importWorkspaceItems()
273 insertOperations.clear(); in importWorkspaceItems()
281 if (!insertOperations.isEmpty()) { in importWorkspaceItems()
283 insertOperations); in importWorkspaceItems()
284 insertOperations.clear(); in importWorkspaceItems()
293 hotseatTargetApps, hotseatItems, insertOperations, maxId + 1, myHotseatCount); in importWorkspaceItems()
298 if (!insertOperations.isEmpty()) { in importWorkspaceItems()
[all …]