Searched refs:downloadProvider (Results 1 – 3 of 3) sorted by relevance
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | HelpersTest.java | 190 final ContentProvider downloadProvider = mock(ContentProvider.class); in testHandleRemovedUidEntries() local 191 when(downloadProvider.query(eq(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI), in testHandleRemovedUidEntries() 195 Helpers.handleRemovedUidEntries(context, downloadProvider, Process.INVALID_UID); in testHandleRemovedUidEntries() 198 verify(downloadProvider).update(eq(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI), in testHandleRemovedUidEntries() 203 verify(downloadProvider).delete(eq(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI), in testHandleRemovedUidEntries() 213 reset(downloadProvider); in testHandleRemovedUidEntries() 218 when(downloadProvider.query(eq(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI), in testHandleRemovedUidEntries() 222 Helpers.handleRemovedUidEntries(context, downloadProvider, TEST_UID2); in testHandleRemovedUidEntries() 225 verify(downloadProvider).update(eq(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI), in testHandleRemovedUidEntries() 230 verify(downloadProvider).delete(eq(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI), in testHandleRemovedUidEntries()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | MediaScanTriggerJob.java | 74 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()
|
D | Helpers.java | 745 ContentProvider downloadProvider, int removedUid) { in handleRemovedUidEntries() argument 751 try (Cursor cursor = downloadProvider.query(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, in handleRemovedUidEntries() 788 downloadProvider.update(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, values, in handleRemovedUidEntries() 794 downloadProvider.delete(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, in handleRemovedUidEntries()
|