Package org.robolectric.shadows
Class ShadowDownloadManager
java.lang.Object
org.robolectric.shadows.ShadowDownloadManager
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Value class to represent a "completed download" sent toDownloadManager
using the addCompletedDownload APIs.static class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected long
addCompletedDownload
(String title, String description, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean showNotification) protected long
addCompletedDownload
(String title, String description, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean showNotification, Uri uri, Uri referrer) protected long
enqueue
(DownloadManager.Request request) getCompletedDownload
(long id) int
getRequest
(long id) int
protected Cursor
query
(DownloadManager.Query query) protected int
remove
(long... ids)
-
Constructor Details
-
ShadowDownloadManager
public ShadowDownloadManager()
-
-
Method Details
-
enqueue
-
remove
-
query
-
addCompletedDownload
@Implementation protected long addCompletedDownload(String title, String description, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean showNotification) -
addCompletedDownload
-
getRequest
-
getRequestCount
public int getRequestCount() -
getCompletedDownload
-
getCompletedDownloadsCount
public int getCompletedDownloadsCount()
-