Package org.robolectric.shadows.util
Class DataSource
java.lang.Object
org.robolectric.shadows.util.DataSource
public class DataSource extends Object
Opaque class for uniquely identifying a media data source, as used by
ShadowMediaPlayer
and ShadowMediaMetadataRetriever
.-
Method Summary
Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
static DataSource
toDataSource(Context context, Uri uri)
static DataSource
toDataSource(Context context, Uri uri, Map<String,String> headers)
static DataSource
toDataSource(Context context, Uri uri, Map<String,String> headers, List<HttpCookie> cookies)
static DataSource
toDataSource(AssetFileDescriptor assetFileDescriptor)
static DataSource
toDataSource(MediaDataSource mediaDataSource)
static DataSource
toDataSource(FileDescriptor fd)
static DataSource
toDataSource(FileDescriptor fd, long offset, long length)
static DataSource
toDataSource(String path)
static DataSource
toDataSource(String uri, Map<String,String> headers)
-
Method Details
-
toDataSource
-
toDataSource
-
toDataSource
-
toDataSource
public static DataSource toDataSource(Context context, Uri uri, Map<String,String> headers, List<HttpCookie> cookies) -
toDataSource
-
toDataSource
-
toDataSource
-
toDataSource
-
toDataSource
-
hashCode
public int hashCode() -
equals
-