Home
last modified time | relevance | path

Searched refs:SampleChunk (Results 1 – 12 of 12) sorted by relevance

/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/
DBufferManager.java64 private final SampleChunk.SampleChunkCreator mSampleChunkCreator;
66 private final Map<String, SortedMap<Long, Pair<SampleChunk, Integer>>> mChunkMap =
73 private final SampleChunk.ChunkCallback mChunkCallback =
74 new SampleChunk.ChunkCallback() {
76 public void onChunkWrite(SampleChunk chunk) {
81 public void onChunkDelete(SampleChunk chunk) {
291 void writeIndexFile(String trackName, SortedMap<Long, Pair<SampleChunk, Integer>> index) in writeIndexFile() argument
305 String trackName, int size, long position, SampleChunk sampleChunk, int offset) in updateIndexFile()
310 private final Map<String, LinkedList<SampleChunk>> mEvictMap = new ArrayMap<>();
317 private void add(String key, SampleChunk chunk) { in add()
[all …]
DSampleChunk.java36 public class SampleChunk { class
53 private SampleChunk mNextChunk;
75 public void onChunkWrite(SampleChunk chunk) {} in onChunkWrite()
82 public void onChunkDelete(SampleChunk chunk) {} in onChunkDelete()
97 SampleChunk createSampleChunk( in createSampleChunk()
102 return new SampleChunk( in createSampleChunk()
121 SampleChunk loadSampleChunkFromFile( in loadSampleChunkFromFile()
127 SampleChunk prev) { in loadSampleChunkFromFile()
129 SampleChunk chunk = in loadSampleChunkFromFile()
130 new SampleChunk(inputBufferPool, file, startPositionUs, chunkCallback); in loadSampleChunkFromFile()
[all …]
DSampleChunkIoHelper.java78 private final SampleChunk.IoState[] mReadIoStates;
79 private final SampleChunk.IoState[] mWriteIoStates;
167 mReadIoStates = new SampleChunk.IoState[mTrackCount]; in SampleChunkIoHelper()
168 mWriteIoStates = new SampleChunk.IoState[mTrackCount]; in SampleChunkIoHelper()
179 mReadIoStates[i] = new SampleChunk.IoState(); in SampleChunkIoHelper()
180 mWriteIoStates[i] = new SampleChunk.IoState(); in SampleChunkIoHelper()
442 Pair<SampleChunk, Integer> readPosition = in doOpenRead()
468 SampleChunk chunk = in doOpenWrite()
525 Pair<SampleChunk, Integer> readPosition = in doUpdateIndex()
549 SampleChunk nextChunk = null; in doWrite()
[all …]
DTrickplayStorageManager.java144 String trackName, SortedMap<Long, Pair<SampleChunk, Integer>> index) {} in writeIndexFile() argument
148 String trackName, int size, long position, SampleChunk sampleChunk, int offset) {} in updateIndexFile()
DDvrStorageManager.java379 public void writeIndexFile(String trackName, SortedMap<Long, Pair<SampleChunk, Integer>> index) in writeIndexFile() argument
384 for (Map.Entry<Long, Pair<SampleChunk, Integer>> entry : index.entrySet()) { in writeIndexFile()
394 String trackName, int size, long position, SampleChunk sampleChunk, int offset) in updateIndexFile()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DBufferManager.java63 private final SampleChunk.SampleChunkCreator mSampleChunkCreator;
65 private final Map<String, SortedMap<Long, Pair<SampleChunk, Integer>>> mChunkMap =
72 private final SampleChunk.ChunkCallback mChunkCallback =
73 new SampleChunk.ChunkCallback() {
75 public void onChunkWrite(SampleChunk chunk) {
80 public void onChunkDelete(SampleChunk chunk) {
288 void writeIndexFile(String trackName, SortedMap<Long, Pair<SampleChunk, Integer>> index) in writeIndexFile() argument
302 String trackName, int size, long position, SampleChunk sampleChunk, int offset) in updateIndexFile()
307 private final Map<String, LinkedList<SampleChunk>> mEvictMap = new ArrayMap<>();
314 private void add(String key, SampleChunk chunk) { in add()
[all …]
DSampleChunk.java33 public class SampleChunk { class
39 private SampleChunk mNextChunk;
61 public void onChunkWrite(SampleChunk chunk) {} in onChunkWrite()
68 public void onChunkDelete(SampleChunk chunk) {} in onChunkDelete()
83 public SampleChunk createSampleChunk( in createSampleChunk()
88 return new SampleChunk( in createSampleChunk()
104 SampleChunk loadSampleChunkFromFile( in loadSampleChunkFromFile()
110 SampleChunk prev) in loadSampleChunkFromFile()
113 SampleChunk chunk = new SampleChunk(samplePool, file, startPositionUs, chunkCallback); in loadSampleChunkFromFile()
127 private SampleChunk mChunk;
[all …]
DSampleChunkIoHelper.java76 private final SampleChunk.IoState[] mReadIoStates;
77 private final SampleChunk.IoState[] mWriteIoStates;
165 mReadIoStates = new SampleChunk.IoState[mTrackCount]; in SampleChunkIoHelper()
166 mWriteIoStates = new SampleChunk.IoState[mTrackCount]; in SampleChunkIoHelper()
177 mReadIoStates[i] = new SampleChunk.IoState(); in SampleChunkIoHelper()
178 mWriteIoStates[i] = new SampleChunk.IoState(); in SampleChunkIoHelper()
397 Pair<SampleChunk, Integer> readPosition = in doOpenRead()
423 SampleChunk chunk = in doOpenWrite()
480 Pair<SampleChunk, Integer> readPosition = in doUpdateIndex()
504 SampleChunk nextChunk = null; in doWrite()
[all …]
DTrickplayStorageManager.java144 String trackName, SortedMap<Long, Pair<SampleChunk, Integer>> index) {} in writeIndexFile() argument
148 String trackName, int size, long position, SampleChunk sampleChunk, int offset) {} in updateIndexFile()
DDvrStorageManager.java379 public void writeIndexFile(String trackName, SortedMap<Long, Pair<SampleChunk, Integer>> index) in writeIndexFile() argument
384 for (Map.Entry<Long, Pair<SampleChunk, Integer>> entry : index.entrySet()) { in writeIndexFile()
394 String trackName, int size, long position, SampleChunk sampleChunk, int offset) in updateIndexFile()
/packages/apps/TV/tuner/tests/testing/src/com/android/tv/tuner/testing/buffer/
DVerySlowSampleChunk.java19 import com.android.tv.tuner.exoplayer.buffer.SampleChunk;
26 public class VerySlowSampleChunk extends SampleChunk {
31 public SampleChunk createSampleChunk( in createSampleChunk()
/packages/apps/TV/tuner/tests/robotests/javatests/com/android/tv/tuner/exoplayer/tests/
DSampleSourceExtractorTest.java33 import com.android.tv.tuner.exoplayer.buffer.SampleChunk;
258 String trackName, SortedMap<Long, Pair<SampleChunk, Integer>> index) in writeIndexFile() argument
265 String trackName, int size, long position, SampleChunk sampleChunk, int offset) in updateIndexFile()