docs/doc/reference/com/google/android/exoplayer2/testutil/FakeAdaptiveDataSet.html
Package com.google.android.exoplayer2.testutil
public final classFakeAdaptiveDataSetextends[FakeDataSet](FakeDataSet.html "class in com.google.android.exoplayer2.testutil")
Fake data set emulating the data of an adaptive media source. It provides chunk data for all Formats in the given TrackGroup.
Nested Classes | Modifier and Type | Class | Description |
| --- | --- | --- |
| static class | FakeAdaptiveDataSet.Factory |
Factory for FakeAdaptiveDataSets.
|
| static class | FakeAdaptiveDataSet.Iterator |
MediaChunkIterator for the chunks defined by a fake adaptive data set.
|
-
FakeDataSet.FakeData
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| int | getChunkCount() | |
| long | getChunkDuration(int chunkIndex) | |
| int | getChunkIndexByPosition(long positionUs) | |
| long | getStartTime(int chunkIndex) | |
| String | getUri(int trackIndex) | |
-
getAllData, getData, getData, newData, newData, newDefaultData, setData, setData, setRandomData, setRandomData
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public int getChunkCount()
-
public[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")getUri(int trackIndex)
-
public long getChunkDuration(int chunkIndex)
-
public long getStartTime(int chunkIndex)
-
public int getChunkIndexByPosition(long positionUs)