Package org.robolectric.shadows
Class ShadowDownloadManager.ShadowRequest
java.lang.Object
org.robolectric.shadows.ShadowDownloadManager.ShadowRequest
- Enclosing class:
- ShadowDownloadManager
@Implements(android.app.DownloadManager.Request.class)
public static class ShadowDownloadManager.ShadowRequest
extends Object
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintbooleanbooleanlonglonggetId()intintgetTitle()longgetUri()booleanvoidsetBytesSoFar(long bytesSoFar) protected voidsetDestinationFromBase(File base, String subPath) protected DownloadManager.RequestsetDestinationInExternalPublicDir(String dirType, String subPath) voidsetId(long id) voidsetStatus(int status) voidsetTotalSize(long totalSize) 
- 
Constructor Details- 
ShadowRequestpublic ShadowRequest()
 
- 
- 
Method Details- 
getStatuspublic int getStatus()
- 
setStatuspublic void setStatus(int status) 
- 
getTotalSizepublic long getTotalSize()
- 
setTotalSizepublic void setTotalSize(long totalSize) 
- 
getBytesSoFarpublic long getBytesSoFar()
- 
setBytesSoFarpublic void setBytesSoFar(long bytesSoFar) 
- 
getIdpublic long getId()
- 
setIdpublic void setId(long id) 
- 
getUri
- 
getDestination
- 
getTitle
- 
getDescription
- 
getMimeType
- 
getNotificationVisibilitypublic int getNotificationVisibility()
- 
getAllowedNetworkTypespublic int getAllowedNetworkTypes()
- 
getAllowedOverRoamingpublic boolean getAllowedOverRoaming()
- 
getAllowedOverMeteredpublic boolean getAllowedOverMetered()
- 
getVisibleInDownloadsUipublic boolean getVisibleInDownloadsUi()
- 
getRequestHeaders
- 
setDestinationInExternalPublicDir@Implementation protected DownloadManager.Request setDestinationInExternalPublicDir(String dirType, String subPath) throws Exception - Throws:
- Exception
 
- 
setDestinationFromBase
 
-