Home
last modified time | relevance | path

Searched refs:downloadProvider (Results 1 – 3 of 3) sorted by relevance

/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DMediaScanTriggerJob.java74 final DownloadProvider downloadProvider in onStartJob() local
76 try (Cursor cursor = downloadProvider.query(ALL_DOWNLOADS_CONTENT_URI, in onStartJob()
94 mediaValues = downloadProvider.convertToMediaProviderValues(info); in onStartJob()
103 downloadProvider.updateMediaProvider(mediaProviderClient, mediaValues); in onStartJob()
110 downloadProvider.update(ALL_DOWNLOADS_CONTENT_URI, in onStartJob()
DHelpers.java828 ContentProvider downloadProvider, int removedUid) { in handleRemovedUidEntries() argument
834 try (Cursor cursor = downloadProvider.query(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, in handleRemovedUidEntries()
871 downloadProvider.update(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, values, in handleRemovedUidEntries()
877 downloadProvider.delete(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, in handleRemovedUidEntries()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DHelpersTest.java571 final ContentProvider downloadProvider = mock(ContentProvider.class); in testHandleRemovedUidEntries() local
572 when(downloadProvider.query(eq(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI), in testHandleRemovedUidEntries()
576 Helpers.handleRemovedUidEntries(context, downloadProvider, Process.INVALID_UID); in testHandleRemovedUidEntries()
579 verify(downloadProvider).update(eq(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI), in testHandleRemovedUidEntries()
584 verify(downloadProvider).delete(eq(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI), in testHandleRemovedUidEntries()
594 reset(downloadProvider); in testHandleRemovedUidEntries()
599 when(downloadProvider.query(eq(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI), in testHandleRemovedUidEntries()
603 Helpers.handleRemovedUidEntries(context, downloadProvider, TEST_UID2); in testHandleRemovedUidEntries()
606 verify(downloadProvider).update(eq(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI), in testHandleRemovedUidEntries()
611 verify(downloadProvider).delete(eq(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI), in testHandleRemovedUidEntries()