/cts/tests/tests/provider/src/android/provider/cts/media/ |
D | MediaStoreTrashedTest.java | 59 public String mVolumeName; field in MediaStoreTrashedTest 71 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 72 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp() 80 Assume.assumeFalse(MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)); in testOwned() 82 final File dir = ProviderTestUtils.getVolumePath(mVolumeName); in testOwned() 96 Assume.assumeFalse(MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)); in testUnowned() 98 final File dir = ProviderTestUtils.getVolumePath(mVolumeName); in testUnowned() 112 Assume.assumeFalse(MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)); in testAtypical() 114 final File dir = ProviderTestUtils.getVolumePath(mVolumeName); in testAtypical()
|
D | MediaStore_Audio_GenresTest.java | 57 public String mVolumeName; field in MediaStore_Audio_GenresTest 69 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 76 Genres.getContentUri(mVolumeName), null, null, in testGetContentUri() 87 Uri uri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testStoreAudioGenresExternal() 107 Uri audioUri = Audio1.getInstance().insert(mContentResolver, mVolumeName); in testGetContentUriForAudioId() 115 Uri genreUri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testGetContentUriForAudioId() 123 Uri audioGenresUri = Genres.getContentUriForAudioId(mVolumeName, (int) audioId); in testGetContentUriForAudioId() 130 Uri membersUri = Members.getContentUri(mVolumeName, genreId); in testGetContentUriForAudioId()
|
D | MediaStore_Audio_Genres_MembersTest.java | 61 public String mVolumeName; field in MediaStore_Audio_Genres_MembersTest 77 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 79 Uri uri = Audio1.getInstance().insert(mContentResolver, mVolumeName); in setUp() 85 uri = Audio2.getInstance().insert(mContentResolver, mVolumeName); in setUp() 96 mContentResolver.delete(Media.getContentUri(mVolumeName), in tearDown() 98 mContentResolver.delete(Media.getContentUri(mVolumeName), in tearDown() 106 Members.getContentUri(mVolumeName, 1), null, in testGetContentUri() 116 Uri uri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testStoreAudioGenresMembersExternal() 125 assertEquals(ContentUris.withAppendedId(Genres.getContentUri(mVolumeName), genreId), in testStoreAudioGenresMembersExternal() 131 Uri membersUri = Members.getContentUri(mVolumeName, genreId); in testStoreAudioGenresMembersExternal() [all …]
|
D | MediaStore_FilesTest.java | 74 public String mVolumeName; field in MediaStore_FilesTest 86 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 87 mExternalAudio = MediaStore.Audio.Media.getContentUri(mVolumeName); in setUp() 88 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp() 89 mExternalFiles = MediaStore.Files.getContentUri(mVolumeName); in setUp() 100 String dataPath = new File(ProviderTestUtils.stageDir(mVolumeName), in testGetContentUri() 118 String updatedPath = new File(ProviderTestUtils.stageDir(mVolumeName), in testGetContentUri() 143 File stageDir = new File(ProviderTestUtils.stageDir(mVolumeName), in testGetContentUri() 171 assertEquals(ContentUris.withAppendedId(MediaStore.Files.getContentUri(mVolumeName), 42), in testGetContentUri() 172 MediaStore.Files.getContentUri(mVolumeName, 42)); in testGetContentUri() [all …]
|
D | MediaStore_Audio_AlbumsTest.java | 66 public String mVolumeName; field in MediaStore_Audio_AlbumsTest 78 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 85 Albums.getContentUri(mVolumeName), null, null, in testGetContentUri() 93 Uri audioAlbumsUri = Albums.getContentUri(mVolumeName); in testStoreAudioAlbums() 103 Uri audioMediaUri = audio1.insert(mContentResolver, mVolumeName); in testStoreAudioAlbums() 169 final File dir = ProviderTestUtils.stageDir(mVolumeName); in testAlbumArt() 180 .insert(MediaStore.Audio.Media.getContentUri(mVolumeName), v); in testAlbumArt() 190 .withAppendedId(MediaStore.Audio.Albums.getContentUri(mVolumeName), albumId); in testAlbumArt() 197 final Uri byMedia = MediaStore.AUTHORITY_URI.buildUpon().appendPath(mVolumeName) in testAlbumArt() 200 final Uri byAlbum = MediaStore.AUTHORITY_URI.buildUpon().appendPath(mVolumeName) in testAlbumArt()
|
D | MediaStore_VideoTest.java | 58 public String mVolumeName; field in MediaStore_VideoTest 70 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 71 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp() 78 final File file = new File(ProviderTestUtils.stageDir(mVolumeName), in testQuery()
|
D | MediaStore_DownloadsTest.java | 87 public String mVolumeName; field in MediaStore_DownloadsTest 99 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 100 mExternalFiles = MediaStore.Files.getContentUri(mVolumeName); in setUp() 101 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp() 102 mExternalDownloads = MediaStore.Downloads.getContentUri(mVolumeName); in setUp() 104 mDownloadsDir = new File(ProviderTestUtils.getVolumePath(resolveVolumeName(mVolumeName)), in setUp() 106 mPicturesDir = new File(ProviderTestUtils.getVolumePath(resolveVolumeName(mVolumeName)), in setUp() 115 Assume.assumeTrue(MediaStore.VOLUME_EXTERNAL.equals(mVolumeName) in testScannedDownload() 116 || MediaStore.VOLUME_EXTERNAL_PRIMARY.equals(mVolumeName)); in testScannedDownload() 129 Assume.assumeTrue(MediaStore.VOLUME_EXTERNAL.equals(mVolumeName) in testScannedMediaDownload() [all …]
|
D | MediaStoreIntentsTest.java | 56 public String mVolumeName; field in MediaStoreIntentsTest 65 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 66 mExternalAudio = MediaStore.Audio.Media.getContentUri(mVolumeName); in setUp() 67 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp() 68 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
|
D | MediaStore_Audio_MediaTest.java | 70 public String mVolumeName; field in MediaStore_Audio_MediaTest 82 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 83 mExternalAudio = MediaStore.Audio.Media.getContentUri(mVolumeName); in setUp() 84 mExternalFiles = MediaStore.Files.getContentUri(mVolumeName); in setUp() 91 Media.getContentUri(mVolumeName), null, null, in testGetContentUri() 95 assertEquals(ContentUris.withAppendedId(Media.getContentUri(mVolumeName), 42), in testGetContentUri() 96 Media.getContentUri(mVolumeName, 42)); in testGetContentUri() 120 ContentValues values = audio1.getContentValues(mVolumeName); in testStoreAudioMedia() 122 Uri mediaUri = Media.getContentUri(mVolumeName); in testStoreAudioMedia() 136 String expected = audio1.getContentValues(mVolumeName).getAsString(Media.DATA); in testStoreAudioMedia() [all …]
|
D | MediaStore_Audio_ArtistsTest.java | 55 public String mVolumeName; field in MediaStore_Audio_ArtistsTest 67 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 74 Artists.getContentUri(mVolumeName), null, null, in testGetContentUri() 81 Uri artistsUri = Artists.getContentUri(mVolumeName); in testStoreAudioArtists() 90 Uri uri = Audio1.getInstance().insert(mContentResolver, mVolumeName); in testStoreAudioArtists()
|
D | MediaStore_Audio_PlaylistsTest.java | 55 public String mVolumeName; field in MediaStore_Audio_PlaylistsTest 67 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 74 Playlists.getContentUri(mVolumeName), null, null, in testGetContentUri() 87 Uri uri = mContentResolver.insert(Playlists.getContentUri(mVolumeName), values); in testStoreAudioPlaylistsExternal() 123 .insert(MediaStore.Audio.Playlists.getContentUri(mVolumeName), values); in testName()
|
D | MediaStore_Audio_Artists_AlbumsTest.java | 62 public String mVolumeName; field in MediaStore_Audio_Artists_AlbumsTest 74 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 80 Uri contentUri = MediaStore.Audio.Artists.Albums.getContentUri(mVolumeName, 1); in testGetContentUri() 88 Uri audioMediaUri = Audio1.getInstance().insert(mContentResolver, mVolumeName); in testStoreAudioArtistsAlbums() 95 Uri artistsAlbumsUri = MediaStore.Audio.Artists.Albums.getContentUri(mVolumeName, artistId); in testStoreAudioArtistsAlbums() 152 final Uri audioMediaUri = Audio1.getInstance().insert(mContentResolver, mVolumeName); in testDifferentArtistInSameAlbum() 157 mVolumeName); in testDifferentArtistInSameAlbum() 162 mVolumeName); in testDifferentArtistInSameAlbum() 170 final Uri artistsAlbumsUri = MediaStore.Audio.Artists.Albums.getContentUri(mVolumeName, in testDifferentArtistInSameAlbum() 179 mVolumeName, artistId); in testDifferentArtistInSameAlbum() [all …]
|
D | MediaStorePlacementTest.java | 68 public String mVolumeName; field in MediaStorePlacementTest 80 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 81 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp() 82 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp() 213 Assume.assumeFalse(MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)); in testDirectory_InsideSandbox() 215 final File dir = ProviderTestUtils.getVolumePath(mVolumeName); in testDirectory_InsideSandbox() 234 Assume.assumeFalse(MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)); in testDirectory_OutsideSandbox() 321 Assume.assumeFalse(MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)); in stageImageInAudio() 324 final File file = Environment.buildPath(ProviderTestUtils.getVolumePath(mVolumeName), in stageImageInAudio()
|
D | MediaStore_Audio_Playlists_MembersTest.java | 125 public String mVolumeName; field in MediaStore_Audio_Playlists_MembersTest 133 Uri uri = which.insert(mContentResolver, mVolumeName); in insertAudioItem() 146 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 157 final Uri uri = Media.getContentUri(mVolumeName); in tearDown() 219 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testStoreAudioPlaylistsMembersExternal() 228 Uri uri = mContentResolver.insert(Playlists.getContentUri(mVolumeName), values); in testStoreAudioPlaylistsMembersExternal() 236 assertEquals(ContentUris.withAppendedId(Playlists.getContentUri(mVolumeName), playlistId), in testStoreAudioPlaylistsMembersExternal() 240 Uri membersUri = Members.getContentUri(mVolumeName, playlistId); in testStoreAudioPlaylistsMembersExternal() 253 final String expected1 = Audio1.getInstance().getContentValues(mVolumeName) in testStoreAudioPlaylistsMembersExternal() 298 final String expected2 = Audio2.getInstance().getContentValues(mVolumeName) in testStoreAudioPlaylistsMembersExternal() [all …]
|
D | MediaStoreMatchTest.java | 57 public String mVolumeName; field in MediaStoreMatchTest 69 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 70 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
|
D | MediaStore_Video_ThumbnailsTest.java | 85 public String mVolumeName; field in MediaStore_Video_ThumbnailsTest 97 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 98 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp() 111 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testGetThumbnail() 139 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testThumbnailGenerationAndCleanup() 238 if (MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) { in testInsertUpdateDelete()
|
D | MediaStoreNotificationTest.java | 61 public String mVolumeName; field in MediaStoreNotificationTest 73 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 74 mSpecificImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp() 75 mSpecificFiles = MediaStore.Files.getContentUri(mVolumeName); in setUp()
|
D | MediaStore_Images_ThumbnailsTest.java | 90 public String mVolumeName; field in MediaStore_Images_ThumbnailsTest 121 Log.d(TAG, "Using volume " + mVolumeName + " for user " + mContext.getUserId()); in setUp() 122 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp() 144 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testQueryExternalThumbnails() 190 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testQueryExternalMiniThumbnails() 252 assertNotNull(c = mContentResolver.query(Thumbnails.getContentUri(mVolumeName), null, null, in testGetContentUri() 259 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testStoreImagesMediaExternal() 305 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testThumbnailGenerationAndCleanup() 369 if (!MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) return; in testThumbnailOrderedQuery() 457 if (MediaStore.VOLUME_EXTERNAL.equals(mVolumeName)) { in testInsertUpdateDelete()
|
D | MediaStore_Video_MediaTest.java | 81 public String mVolumeName; field in MediaStore_Video_MediaTest 93 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 94 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp() 95 mExternalFiles = MediaStore.Files.getContentUri(mVolumeName); in setUp() 105 assertNotNull(c = mContentResolver.query(Media.getContentUri(mVolumeName), null, null, null, in testGetContentUri() 109 assertEquals(ContentUris.withAppendedId(Media.getContentUri(mVolumeName), 42), in testGetContentUri() 110 Media.getContentUri(mVolumeName, 42)); in testGetContentUri() 120 final File dir = ProviderTestUtils.stageDir(mVolumeName); in testStoreVideoMediaExternal() 196 final File dir = ProviderTestUtils.stageDir(mVolumeName); in insertVideo() 353 final File dir = ProviderTestUtils.stageDir(mVolumeName); in testCanonicalize()
|
D | MediaStoreTest.java | 78 public String mVolumeName; field in MediaStoreTest 94 Log.d(TAG, "Using volume " + mVolumeName + " for user " + mContext.getUserId()); in setUp() 95 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp() 180 if (MediaStore.VOLUME_EXTERNAL_PRIMARY.equals(mVolumeName)) { in testGetStorageVolume()
|
D | MediaStorePendingTest.java | 82 public String mVolumeName; field in MediaStorePendingTest 94 Log.d(TAG, "Using volume " + mVolumeName); in setUp() 95 mExternalAudio = MediaStore.Audio.Media.getContentUri(mVolumeName); in setUp() 96 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp() 97 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp() 98 mExternalDownloads = MediaStore.Downloads.getContentUri(mVolumeName); in setUp()
|
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | BypassDatabaseOperationsTest.java | 125 public String mVolumeName; field in BypassDatabaseOperationsTest 134 super.setupExternalStorage(mVolumeName); in setupExternalStorage() 135 Log.i(TAG, "Using volume : " + mVolumeName); in setupExternalStorage()
|
D | RedactUriDeviceTest.java | 104 public String mVolumeName; field in RedactUriDeviceTest
|
D | ScopedStorageDeviceTest.java | 227 public String mVolumeName; field in ScopedStorageDeviceTest 262 super.setupExternalStorage(mVolumeName); in setupExternalStorage() 263 Log.i(TAG, "Using volume : " + mVolumeName); in setupExternalStorage()
|
/cts/tests/providerui/src/android/providerui/cts/ |
D | MediaStoreUiTest.java | 101 public String mVolumeName; field in MediaStoreUiTest 313 final File dir = new File(getVolumePath(mVolumeName), in prepareFile()
|