Home
last modified time | relevance | path

Searched refs:mediaUri (Results 1 – 11 of 11) sorted by relevance

/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DOtherAppFilesRule.java145 final Uri mediaUri = MediaStore.scanFile(mContentResolver, newFile); in createFileAsOther() local
146 assertThat(mediaUri).isNotNull(); in createFileAsOther()
147 return mediaUri; in createFileAsOther()
155 final Uri mediaUri = MediaStore.scanFile(mContentResolver, file); in createEmptyFileAsOther() local
156 assertThat(mediaUri).isNotNull(); in createEmptyFileAsOther()
157 return mediaUri; in createEmptyFileAsOther()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DMediaScannerConnectionTest.java94 assertNotNull(mMediaScannerConnectionClient.mediaUri); in testMediaScannerConnection()
128 public Uri mediaUri; field in MediaScannerConnectionTest.MockMediaScannerConnectionClient
136 mediaUri = uri; in onScanCompleted()
DMediaScannerTest.java162 final Uri media1Uri = mMediaScannerConnectionClient.mediaUri; in testLocalizeRingtoneTitles()
179 final Uri media2Uri = mMediaScannerConnectionClient.mediaUri; in testLocalizeRingtoneTitles()
207 Uri insertUri = mMediaScannerConnectionClient.mediaUri; in testMediaScanner()
330 Uri file1Uri = mMediaScannerConnectionClient.mediaUri; in testWildcardPaths()
337 Uri file2Uri = mMediaScannerConnectionClient.mediaUri; in testWildcardPaths()
419 Uri uri = mMediaScannerConnectionClient.mediaUri; in canonicalizeTest()
443 Uri uri2 = mMediaScannerConnectionClient.mediaUri; in canonicalizeTest()
726 public Uri mediaUri; field in MediaScannerTest.MockMediaScannerConnectionClient
735 mediaUri = uri; in onScanCompleted()
741 mediaUri = null; in reset()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tunnelmode/
DMediaCodecFlushActivity.java62 Uri mediaUri = Uri.fromFile(new File("/data/local/tmp/video.webm")); in onCreate() local
63 mPlayer.setVideoDataSource(mediaUri, null); in onCreate()
64 mPlayer.setAudioDataSource(mediaUri, null); in onCreate()
DVolumeLevelChangesActivity.java181 Uri mediaUri = getAsResourceUri( in restartVideo() local
183 mPlayer.setVideoDataSource(mediaUri, null); in restartVideo()
184 mPlayer.setAudioDataSource(mediaUri, null); in restartVideo()
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStore_Audio_AlbumsTest.java177 final Uri mediaUri = mContentResolver in testAlbumArt() local
179 final long mediaId = ContentUris.parseId(mediaUri); in testAlbumArt()
182 try (Cursor c = mContentResolver.query(mediaUri, null, null, null, null)) { in testAlbumArt()
191 assertNotNull(mContentResolver.loadThumbnail(mediaUri, new Size(32, 32), null)); in testAlbumArt()
205 mContentResolver.delete(mediaUri, null, null); in testAlbumArt()
209 mContentResolver.loadThumbnail(mediaUri, new Size(32, 32), null); in testAlbumArt()
DMediaStore_Audio_MediaTest.java125 Uri mediaUri = Media.getContentUri(mVolumeName); in testStoreAudioMedia() local
126 Uri uri = mContentResolver.insert(mediaUri, values); in testStoreAudioMedia()
203 Uri mediaUri = Media.getContentUri(mVolumeName); in testStoreNotAudioRecordingMedia() local
204 Uri uri = mContentResolver.insert(mediaUri, values); in testStoreNotAudioRecordingMedia()
313 final Uri mediaUri = ContentUris.withAppendedId(mExternalFiles, in testMediaWithSubtitles() local
325 try (Cursor c = mContentResolver.query(mediaUri, projection, null, null)) { in testMediaWithSubtitles()
DMediaStore_Video_MediaTest.java461 final Uri mediaUri = ContentUris.withAppendedId(mExternalFiles, in testMediaWithSubtitles() local
473 try (Cursor c = mContentResolver.query(mediaUri, projection, null, null)) { in testMediaWithSubtitles()
/cts/tests/providerui/src/android/providerui/cts/
DMediaStoreUiTest.java207 final Uri mediaUri = MediaStore.getMediaUri(mActivity, docUri); in testGetDocumentUri_symmetry_externalStorageProvider() local
208 Log.v(TAG, "Media " + mediaUri); in testGetDocumentUri_symmetry_externalStorageProvider()
209 assertNotNull(mediaUri); in testGetDocumentUri_symmetry_externalStorageProvider()
211 assertEquals(mMediaStoreUri, mediaUri); in testGetDocumentUri_symmetry_externalStorageProvider()
212 assertAccessToMediaUri(mediaUri, mFile); in testGetDocumentUri_symmetry_externalStorageProvider()
232 final Uri mediaUri = MediaStore.getMediaUri(mActivity, uri); in testGetMediaUriAccess_mediaDocumentsProvider() local
234 assertAccessToMediaUri(mediaUri, mFile); in testGetMediaUriAccess_mediaDocumentsProvider()
336 private void assertAccessToMediaUri(Uri mediaUri, File file) { in assertAccessToMediaUri() argument
339 mediaUri, projection, null, null, null)) { in assertAccessToMediaUri()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/display/
DModeSwitchingTestActivity.java110 Uri mediaUri = getAsResourceUri(R.raw.bunny_1280x720_24fps_VP9); in onCreate() local
111 mPlayer.setVideoDataSource(mediaUri, null); in onCreate()
112 mPlayer.setAudioDataSource(mediaUri, null); in onCreate()
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DDecoderTest.java3327 Uri mediaUri = Uri.fromFile(new File(mInpPrefix, videoName));
3328 mMediaCodecPlayer.setAudioDataSource(mediaUri, null);
3329 mMediaCodecPlayer.setVideoDataSource(mediaUri, null);
3416 Uri mediaUri = Uri.fromFile(new File(mInpPrefix, videoName));
3417 mMediaCodecPlayer.setAudioDataSource(mediaUri, null);
3418 mMediaCodecPlayer.setVideoDataSource(mediaUri, null);
3492 Uri mediaUri = Uri.fromFile(new File(mInpPrefix, videoName));
3493 mMediaCodecPlayer.setAudioDataSource(mediaUri, null);
3494 mMediaCodecPlayer.setVideoDataSource(mediaUri, null);
3584 Uri mediaUri = Uri.fromFile(new File(mInpPrefix, videoName));
[all …]