Home
last modified time | relevance | path

Searched refs:volumeName (Results 1 – 9 of 9) sorted by relevance

/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStoreAudioTestHelper.java62 public abstract ContentValues getContentValues(String volumeName); in getContentValues() argument
64 public Uri insert(ContentResolver contentResolver, String volumeName) { in insert() argument
65 final Uri dirUri = MediaStore.Audio.Media.getContentUri(volumeName); in insert()
66 final ContentValues values = getContentValues(volumeName); in insert()
110 public ContentValues getContentValues(String volumeName) { in getContentValues() argument
114 if (MediaStore.VOLUME_INTERNAL.equals(volumeName)) { in getContentValues()
117 data = new File(MediaProviderTestUtils.stageDir(volumeName), FILE_NAME); in getContentValues()
172 public ContentValues getContentValues(String volumeName) { in getContentValues() argument
176 if (MediaStore.VOLUME_INTERNAL.equals(volumeName)) { in getContentValues()
179 data = new File(MediaProviderTestUtils.stageDir(volumeName), FILE_NAME); in getContentValues()
[all …]
DMediaProviderTestUtils.java103 public static String resolveVolumeName(String volumeName) { in resolveVolumeName() argument
104 if (MediaStore.VOLUME_EXTERNAL.equals(volumeName)) { in resolveVolumeName()
107 return volumeName; in resolveVolumeName()
131 public static File getVolumePath(String volumeName) { in getVolumePath() argument
134 .getStorageVolume(MediaStore.Files.getContentUri(volumeName)).getDirectory(); in getVolumePath()
137 public static File stageDir(String volumeName) throws IOException { in stageDir() argument
138 if (MediaStore.VOLUME_EXTERNAL.equals(volumeName)) { in stageDir()
139 volumeName = MediaStore.VOLUME_EXTERNAL_PRIMARY; in stageDir()
143 .getStorageVolume(MediaStore.Files.getContentUri(volumeName)); in stageDir()
146 Log.d(TAG, "stageDir(" + volumeName + "): returning " + dir); in stageDir()
[all …]
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DPublicVolumeLegacyTest.java36 final String volumeName = TestUtils.getPublicVolumeName(); in setup() local
37 assertThat(volumeName).isNotNull(); in setup()
38 TestUtils.setExternalStorageVolume(volumeName); in setup()
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DPublicVolumeTest.java37 final String volumeName = TestUtils.getPublicVolumeName(); in setup() local
38 assertThat(volumeName).isNotNull(); in setup()
39 TestUtils.setExternalStorageVolume(volumeName); in setup()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DScopedStorageBaseDeviceTest.java53 public void setupExternalStorage(String volumeName) throws Exception { in setupExternalStorage() argument
54 assertThat(volumeName).isNotNull(); in setupExternalStorage()
56 if (volumeName.equals(MediaStore.VOLUME_EXTERNAL)) { in setupExternalStorage()
DTestUtils.java2145 for (String volumeName : MediaStore.getExternalVolumeNames(getContext())) { in isFuseReady()
2146 final Uri uri = MediaStore.Files.getContentUri(volumeName); in isFuseReady()
/cts/tests/app/src/android/app/cts/
DDownloadManagerTestBase.java164 final String volumeName = MediaStore.getVolumeName(mediaStoreUri); in getMediaStoreColumnValue() local
169 MediaStore.Audio.Media.getContentUri(volumeName), id); in getMediaStoreColumnValue()
173 MediaStore.Images.Media.getContentUri(volumeName), id); in getMediaStoreColumnValue()
177 MediaStore.Video.Media.getContentUri(volumeName), id); in getMediaStoreColumnValue()
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerTest.java343 String volumeName = StorageManagerHelper.createUSBVirtualDisk(); in testGetStorageVolumeUSB() local
344 Log.d(TAG, "testGetStorageVolumeUSB#volumeName: " + volumeName); in testGetStorageVolumeUSB()
348 sv != null && sv.getPath() != null && sv.getPath().contains(volumeName) in testGetStorageVolumeUSB()
360 String volumeName = StorageManagerHelper.createSDCardVirtualDisk(); in testGetStorageVolumeSDCard() local
361 Log.d(TAG, "testGetStorageVolumeSDCard#volumeName: " + volumeName); in testGetStorageVolumeSDCard()
365 sv != null && sv.getPath() != null && sv.getPath().contains(volumeName) in testGetStorageVolumeSDCard()
/cts/tests/providerui/src/android/providerui/cts/
DMediaStoreUiTest.java412 public File getVolumePath(String volumeName) { in getVolumePath() argument
414 .getStorageVolume(MediaStore.Files.getContentUri(volumeName)).getDirectory(); in getVolumePath()