Home
last modified time | relevance | path

Searched refs:fileUri (Results 1 – 25 of 55) sorted by relevance

123

/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flac/
DFlacExtractorSeekTest.java52 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE_SEEK_TABLE); in flacExtractorReads_seekTable_returnSeekableSeekMap() local
54 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in flacExtractorReads_seekTable_returnSeekableSeekMap()
64 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_seekTable_handlesSeekToZero() local
65 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekToZero()
71 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_seekTable_handlesSeekToZero()
81 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_seekTable_handlesSeekToEoF() local
82 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekToEoF()
88 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_seekTable_handlesSeekToEoF()
98 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_seekTable_handlesSeekingBackward() local
99 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekingBackward()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/extensions/flac/src/androidTest/java/com/google/android/exoplayer2/ext/flac/
DFlacExtractorSeekTest.java52 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE_SEEK_TABLE); in flacExtractorReads_seekTable_returnSeekableSeekMap() local
54 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in flacExtractorReads_seekTable_returnSeekableSeekMap()
64 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_seekTable_handlesSeekToZero() local
65 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekToZero()
71 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_seekTable_handlesSeekToZero()
81 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_seekTable_handlesSeekToEoF() local
82 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekToEoF()
88 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_seekTable_handlesSeekToEoF()
98 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_seekTable_handlesSeekingBackward() local
99 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekingBackward()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flac/
DFlacExtractorSeekTest.java52 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE_SEEK_TABLE); in flacExtractorReads_seekTable_returnSeekableSeekMap() local
54 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in flacExtractorReads_seekTable_returnSeekableSeekMap()
64 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_seekTable_handlesSeekToZero() local
65 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekToZero()
71 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_seekTable_handlesSeekToZero()
81 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_seekTable_handlesSeekToEoF() local
82 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekToEoF()
88 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_seekTable_handlesSeekToEoF()
98 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_seekTable_handlesSeekingBackward() local
99 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekingBackward()
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/extensions/flac/src/androidTest/java/com/google/android/exoplayer2/ext/flac/
DFlacExtractorSeekTest.java52 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE_SEEK_TABLE); in flacExtractorReads_seekTable_returnSeekableSeekMap() local
54 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in flacExtractorReads_seekTable_returnSeekableSeekMap()
64 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_seekTable_handlesSeekToZero() local
65 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekToZero()
71 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_seekTable_handlesSeekToZero()
81 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_seekTable_handlesSeekToEoF() local
82 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekToEoF()
88 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_seekTable_handlesSeekToEoF()
98 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_seekTable_handlesSeekingBackward() local
99 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekingBackward()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/amr/
DAmrExtractorSeekTest.java60 Uri fileUri = TestUtil.buildAssetUri(fileName); in amrExtractorReads_returnSeekableSeekMap_forNarrowBandAmr() local
69 TestUtil.extractSeekMap(extractor, new FakeExtractorOutput(), dataSource, fileUri); in amrExtractorReads_returnSeekableSeekMap_forNarrowBandAmr()
80 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekingToPositionInFile_extractsCorrectFrame_forNarrowBandAmr() local
90 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingToPositionInFile_extractsCorrectFrame_forNarrowBandAmr()
96 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekingToPositionInFile_extractsCorrectFrame_forNarrowBandAmr()
106 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToEoF_extractsLastFrame_forNarrowBandAmr() local
115 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToEoF_extractsLastFrame_forNarrowBandAmr()
122 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekToEoF_extractsLastFrame_forNarrowBandAmr()
133 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekingBackward_extractsCorrectFrames_forNarrowBandAmr() local
142 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingBackward_extractsCorrectFrames_forNarrowBandAmr()
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/amr/
DAmrExtractorSeekTest.java60 Uri fileUri = TestUtil.buildAssetUri(fileName); in amrExtractorReads_returnSeekableSeekMap_forNarrowBandAmr() local
69 TestUtil.extractSeekMap(extractor, new FakeExtractorOutput(), dataSource, fileUri); in amrExtractorReads_returnSeekableSeekMap_forNarrowBandAmr()
80 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekingToPositionInFile_extractsCorrectFrame_forNarrowBandAmr() local
90 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingToPositionInFile_extractsCorrectFrame_forNarrowBandAmr()
96 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekingToPositionInFile_extractsCorrectFrame_forNarrowBandAmr()
106 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToEoF_extractsLastFrame_forNarrowBandAmr() local
115 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToEoF_extractsLastFrame_forNarrowBandAmr()
122 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekToEoF_extractsLastFrame_forNarrowBandAmr()
133 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekingBackward_extractsCorrectFrames_forNarrowBandAmr() local
142 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingBackward_extractsCorrectFrames_forNarrowBandAmr()
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/
DTsExtractorSeekTest.java70 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE); in tsExtractorReads_nonSeekTableFile_returnSeekableSeekMap() local
74 TestUtil.extractSeekMap(extractor, new FakeExtractorOutput(), dataSource, fileUri); in tsExtractorReads_nonSeekTableFile_returnSeekableSeekMap()
85 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE); in handlePendingSeek_handlesSeekingToPositionInFile_extractsCorrectFrame() local
88 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in handlePendingSeek_handlesSeekingToPositionInFile_extractsCorrectFrame()
94 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in handlePendingSeek_handlesSeekingToPositionInFile_extractsCorrectFrame()
104 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE); in handlePendingSeek_handlesSeekToEoF_extractsLastFrame() local
107 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in handlePendingSeek_handlesSeekToEoF_extractsLastFrame()
114 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in handlePendingSeek_handlesSeekToEoF_extractsLastFrame()
124 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE); in handlePendingSeek_handlesSeekingBackward_extractsCorrectFrame() local
127 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in handlePendingSeek_handlesSeekingBackward_extractsCorrectFrame()
[all …]
DAdtsExtractorSeekTest.java58 Uri fileUri = TestUtil.buildAssetUri(fileName); in adtsExtractorReads_returnSeekableSeekMap() local
67 TestUtil.extractSeekMap(extractor, new FakeExtractorOutput(), dataSource, fileUri); in adtsExtractorReads_returnSeekableSeekMap()
77 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekingToPositionInFile_extractsCorrectSample() local
87 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingToPositionInFile_extractsCorrectSample()
93 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekingToPositionInFile_extractsCorrectSample()
103 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToEoF_extractsLastSample() local
112 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToEoF_extractsLastSample()
119 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekToEoF_extractsLastSample()
129 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekingBackward_extractsCorrectSamples() local
138 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingBackward_extractsCorrectSamples()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/
DTsExtractorSeekTest.java70 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE); in tsExtractorReads_nonSeekTableFile_returnSeekableSeekMap() local
74 TestUtil.extractSeekMap(extractor, new FakeExtractorOutput(), dataSource, fileUri); in tsExtractorReads_nonSeekTableFile_returnSeekableSeekMap()
85 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE); in handlePendingSeek_handlesSeekingToPositionInFile_extractsCorrectFrame() local
88 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in handlePendingSeek_handlesSeekingToPositionInFile_extractsCorrectFrame()
94 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in handlePendingSeek_handlesSeekingToPositionInFile_extractsCorrectFrame()
104 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE); in handlePendingSeek_handlesSeekToEoF_extractsLastFrame() local
107 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in handlePendingSeek_handlesSeekToEoF_extractsLastFrame()
114 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in handlePendingSeek_handlesSeekToEoF_extractsLastFrame()
124 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE); in handlePendingSeek_handlesSeekingBackward_extractsCorrectFrame() local
127 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in handlePendingSeek_handlesSeekingBackward_extractsCorrectFrame()
[all …]
DAdtsExtractorSeekTest.java58 Uri fileUri = TestUtil.buildAssetUri(fileName); in adtsExtractorReads_returnSeekableSeekMap() local
67 TestUtil.extractSeekMap(extractor, new FakeExtractorOutput(), dataSource, fileUri); in adtsExtractorReads_returnSeekableSeekMap()
77 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekingToPositionInFile_extractsCorrectSample() local
87 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingToPositionInFile_extractsCorrectSample()
93 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekingToPositionInFile_extractsCorrectSample()
103 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToEoF_extractsLastSample() local
112 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToEoF_extractsLastSample()
119 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekToEoF_extractsLastSample()
129 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekingBackward_extractsCorrectSamples() local
138 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingBackward_extractsCorrectSamples()
[all …]
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/internal/downloader/
DMddFileDownloader.java149 Uri fileUri, in startDownloading() argument
157 getInProgressFuture(fileKey, fileUri), in startDownloading()
164 fileUri, in startDownloading()
172 fileUri, in startDownloading()
201 Uri fileUri,
213 voidArg -> callback.onDownloadComplete(fileUri),
230 PropagatedFluentFuture.from(addFutureToMap(downloadOrCopyFuture, fileKey, fileUri))
246 ListenableFuture<Void> unused = removeFutureFromMap(fileKey, fileUri);
254 ListenableFuture<Void> downloadOrCopyFuture, String fileKey, Uri fileUri) {
256 fileUriToDownloadFutureMap.put(fileUri, downloadOrCopyFuture);
[all …]
DFileValidator.java50 SynchronousFileStorage fileStorage, Uri fileUri, String fileChecksum) { in verifyChecksum() argument
51 String digest = FileValidator.computeSha1Digest(fileStorage, fileUri); in verifyChecksum()
121 SynchronousFileStorage fileStorage, DataFile dataFile, Uri fileUri, String checksum) in validateDownloadedFile() argument
124 if (!fileStorage.exists(fileUri)) { in validateDownloadedFile()
127 TAG, FileGroupUtil.getFileChecksum(dataFile), fileUri); in validateDownloadedFile()
135 if (!verifyChecksum(fileStorage, fileUri, checksum)) { in validateDownloadedFile()
138 TAG, fileUri, checksum); in validateDownloadedFile()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/
DConstantBitrateSeekerTest.java60 Uri fileUri = TestUtil.buildAssetUri(CONSTANT_FRAME_SIZE_TEST_FILE); in mp3ExtractorReads_returnSeekableCbrSeeker() local
62 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in mp3ExtractorReads_returnSeekableCbrSeeker()
72 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToZero() local
73 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToZero()
79 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekToZero()
89 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToEoF() local
90 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToEoF()
96 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekToEoF()
106 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekingBackward() local
107 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingBackward()
[all …]
DIndexSeekerTest.java60 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE_NO_SEEK_TABLE); in mp3ExtractorReads_returnsSeekableSeekMap() local
62 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in mp3ExtractorReads_returnsSeekableSeekMap()
81 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToZero() local
82 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToZero()
88 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekToZero()
99 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToEof() local
100 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToEof()
106 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekToEof()
117 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekingBackward() local
118 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingBackward()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/
DConstantBitrateSeekerTest.java60 Uri fileUri = TestUtil.buildAssetUri(CONSTANT_FRAME_SIZE_TEST_FILE); in mp3ExtractorReads_returnSeekableCbrSeeker() local
62 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in mp3ExtractorReads_returnSeekableCbrSeeker()
72 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToZero() local
73 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToZero()
79 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekToZero()
89 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToEoF() local
90 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToEoF()
96 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekToEoF()
106 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekingBackward() local
107 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingBackward()
[all …]
DIndexSeekerTest.java60 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE_NO_SEEK_TABLE); in mp3ExtractorReads_returnsSeekableSeekMap() local
62 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in mp3ExtractorReads_returnsSeekableSeekMap()
81 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToZero() local
82 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToZero()
88 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekToZero()
99 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToEof() local
100 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToEof()
106 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekToEof()
117 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekingBackward() local
118 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingBackward()
[all …]
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/integration/downloader/
DDownloadDestinationOpenerTest.java87 Uri fileUri = tmpUri.newUri(); in opener_withNoExistingData_createsNewMetadata() local
93 DownloadDestination destination = storage.open(fileUri, opener); in opener_withNoExistingData_createsNewMetadata()
102 Uri fileUri = tmpUri.newUri(); in opener_withNoExistingData_writes() local
114 DownloadDestination destination = storage.open(fileUri, opener); in opener_withNoExistingData_writes()
123 byte[] readContent = storage.open(fileUri, readOpener); in opener_withNoExistingData_writes()
135 Uri fileUri = tmpUri.newUri(); in opener_withExistingData_usesExistingMetadata() local
140 Void unused = storage.open(fileUri, WriteByteArrayOpener.create(CONTENT)); in opener_withExistingData_usesExistingMetadata()
142 writeToMetadataStore(fileUri.toString(), expectedMetadata); in opener_withExistingData_usesExistingMetadata()
147 DownloadDestination destination = storage.open(fileUri, opener); in opener_withExistingData_usesExistingMetadata()
156 Uri fileUri = tmpUri.newUri(); in opener_withExistingData_writes() local
[all …]
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/downloader/offroad/
DOffroad2FileDownloaderTest.java195 Uri fileUri = tmpUri.newUri(); in testStartDownloading_downloadConditionsNull_usesWifiOnly() local
212 .setFileUri(fileUri) in testStartDownloading_downloadConditionsNull_usesWifiOnly()
224 assertThat(fakeDownloadMetadataStore.upsertCalls).containsKey(fileUri); in testStartDownloading_downloadConditionsNull_usesWifiOnly()
225 assertThat(fakeDownloadMetadataStore.deleteCalls).contains(fileUri); in testStartDownloading_downloadConditionsNull_usesWifiOnly()
226 assertThat(fakeDownloadMetadataStore.read(fileUri).get(MAX_CONNECTION_WAIT_SECS, SECONDS)) in testStartDownloading_downloadConditionsNull_usesWifiOnly()
232 Uri fileUri = tmpUri.newUri(); in testStartDownloading_wifi() local
252 .setFileUri(fileUri) in testStartDownloading_wifi()
277 Uri fileUri = tmpUri.newUri(); in testStartDownloading_wifi_notSettingTrafficTag() local
284 .setFileUri(fileUri) in testStartDownloading_wifi_notSettingTrafficTag()
302 Uri fileUri = tmpUri.newUri(); in testStartDownloading_extraHttpHeaders() local
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flv/
DFlvExtractorSeekTest.java61 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE_KEY_FRAME_INDEX); in flvExtractorReads_returnsSeekableSeekMap() local
63 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in flvExtractorReads_returnsSeekableSeekMap()
72 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToZero() local
73 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToZero()
80 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekToZero()
90 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToEof() local
91 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToEof()
98 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekToEof()
108 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekingBackward() local
109 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingBackward()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flv/
DFlvExtractorSeekTest.java61 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE_KEY_FRAME_INDEX); in flvExtractorReads_returnsSeekableSeekMap() local
63 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in flvExtractorReads_returnsSeekableSeekMap()
72 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToZero() local
73 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToZero()
80 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekToZero()
90 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToEof() local
91 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToEof()
98 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekToEof()
108 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekingBackward() local
109 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingBackward()
[all …]
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DPathTypeTest.java67 URI fileUri = type.toUri(fileSystemUri, "$", ImmutableList.of("foo", "bar"), false); in testToUri() local
68 assertThat(fileUri.toString()).isEqualTo("jimfs://foo/$/foo/bar"); in testToUri()
69 assertThat(fileUri.getPath()).isEqualTo("/$/foo/bar"); in testToUri()
82 URI fileUri = type.toUri(fileSystemUri, "$", ImmutableList.of("foo", "bar baz"), false); in testToUri_escaping() local
83 assertThat(fileUri.toString()).isEqualTo("jimfs://foo/$/foo/bar%20baz"); in testToUri_escaping()
84 assertThat(fileUri.getRawPath()).isEqualTo("/$/foo/bar%20baz"); in testToUri_escaping()
85 assertThat(fileUri.getPath()).isEqualTo("/$/foo/bar baz"); in testToUri_escaping()
DWindowsPathTypeTest.java162 URI fileUri = in testWindows_toUri_normal() local
164 assertThat(fileUri.toString()).isEqualTo("jimfs://foo/C:/foo/bar"); in testWindows_toUri_normal()
165 assertThat(fileUri.getPath()).isEqualTo("/C:/foo/bar"); in testWindows_toUri_normal()
179 URI fileUri = in testWindows_toUri_unc() local
182 assertThat(fileUri.toString()).isEqualTo("jimfs://foo//host/share/foo/bar"); in testWindows_toUri_unc()
183 assertThat(fileUri.getPath()).isEqualTo("//host/share/foo/bar"); in testWindows_toUri_unc()
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/testing/
DLocalFileDownloader.java64 Uri fileUri = downloadRequest.fileUri(); in startDownloadingInternal() local
66 LogUtil.d("%s: startDownloading; fileUri: %s; urlToDownload: %s", TAG, fileUri, urlToDownload); in startDownloadingInternal()
79 OutputStream out = fileStorage.open(fileUri, writeStreamOpener)) { in startDownloadingInternal()
82 LogUtil.d("%s: File URI %s download complete, writtenBytes: %d", TAG, fileUri, writtenBytes); in startDownloadingInternal()
DRobolectricFileDownloader.java72 Uri fileUri = downloadRequest.fileUri(); in startDownloadingInternal() local
78 if (fileStorage.exists(fileUri)) { in startDownloadingInternal()
99 .setFileUri(fileUri) in startDownloadingInternal()
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/downloader/inline/
DInlineFileDownloaderTest.java65 private final Uri fileUri = field in InlineFileDownloaderTest
87 .setFileUri(fileUri) in startDownloading_whenNonInlineFileSchemeGiven_fails()
109 .setFileUri(fileUri) in startDownloading_whenCopyFails_fails()
129 .setFileUri(fileUri) in startDownloading_whenCopyCompletes_isSuccess()
137 assertThat(FILE_STORAGE.exists(fileUri)).isTrue(); in startDownloading_whenCopyCompletes_isSuccess()
138 InputStream copiedContentStream = FILE_STORAGE.open(fileUri, ReadStreamOpener.create()); in startDownloading_whenCopyCompletes_isSuccess()

123