/cts/tests/tests/provider/src/android/provider/cts/ |
D | MediaStorePlacementTest.java | 62 return ProviderTestUtils.getSharedVolumeNames(); in data() 76 final Uri uri = ProviderTestUtils.stageMedia(R.drawable.scenery, in testDefault() 80 final File before = ProviderTestUtils.getRelativeFile(uri); in testDefault() 88 final Uri uri = ProviderTestUtils.stageMedia(R.drawable.scenery, in testIgnored() 115 final Uri uri = ProviderTestUtils.stageMedia(R.drawable.scenery, in testDisplayName_SameMime() 119 final File before = ProviderTestUtils.getRelativeFile(uri); in testDisplayName_SameMime() 123 final File after = ProviderTestUtils.getRelativeFile(uri); in testDisplayName_SameMime() 130 final Uri uri = ProviderTestUtils.stageMedia(R.drawable.scenery, in testDisplayName_DifferentMime() 133 final File before = ProviderTestUtils.getRelativeFile(uri); in testDisplayName_DifferentMime() 141 final File after = ProviderTestUtils.getRelativeFile(uri); in testDisplayName_DifferentMime() [all …]
|
D | BlockedNumberBackupRestoreTest.java | 62 ProviderTestUtils.setDefaultSmsApp(true, mContext.getPackageName(), mUiAutomation); in setUp() 64 mOldTransport = ProviderTestUtils.setBackupTransport( in setUp() 66 mOldBackupEnabled = ProviderTestUtils.setBackupEnabled(true, mUiAutomation); in setUp() 77 ProviderTestUtils.setBackupEnabled(mOldBackupEnabled, mUiAutomation); in tearDown() 78 ProviderTestUtils.setBackupTransport(mOldTransport, mUiAutomation); in tearDown() 79 ProviderTestUtils.setDefaultSmsApp(false, mContext.getPackageName(), mUiAutomation); in tearDown() 137 return ProviderTestUtils.hasBackupTransport(LOCAL_BACKUP_COMPONENT, mUiAutomation) in isFeatureSupported() 170 ProviderTestUtils.runBackup(BLOCKED_NUMBERS_PROVIDER_PACKAGE, mUiAutomation); in runBackup() 174 ProviderTestUtils.runRestore(BLOCKED_NUMBERS_PROVIDER_PACKAGE, mUiAutomation); in runRestore() 178 ProviderTestUtils.wipeBackup(LOCAL_BACKUP_COMPONENT, BLOCKED_NUMBERS_PROVIDER_PACKAGE, in wipeBackup()
|
D | MediaStore_Video_MediaTest.java | 20 import static android.provider.cts.ProviderTestUtils.assertExists; 21 import static android.provider.cts.ProviderTestUtils.assertNotExists; 79 return ProviderTestUtils.getSharedVolumeNames(); in data() 109 final String externalVideoPath = new File(ProviderTestUtils.stageDir(mVolumeName), in testStoreVideoMediaExternal() 111 final String externalVideoPath2 = new File(ProviderTestUtils.stageDir(mVolumeName), in testStoreVideoMediaExternal() 186 File videofile = new File(ProviderTestUtils.stageDir(mVolumeName), "testVideo.3gp"); in testStoreVideoMediaExternal() 193 final File dir = ProviderTestUtils.stageDir(mVolumeName); in insertVideo() 198 ProviderTestUtils.stageFile(R.raw.testvideo, file); in insertVideo() 253 ProviderTestUtils.executeShellCommand( in testLocationRedaction() 319 ProviderTestUtils.executeShellCommand( in testCanonicalize() [all …]
|
D | MediaStore_FilesTest.java | 20 import static android.provider.cts.ProviderTestUtils.containsId; 21 import static android.provider.cts.ProviderTestUtils.resolveVolumeName; 70 return ProviderTestUtils.getSharedVolumeNames(); in data() 91 String dataPath = new File(ProviderTestUtils.stageDir(mVolumeName), in testGetContentUri() 109 String updatedPath = new File(ProviderTestUtils.stageDir(mVolumeName), in testGetContentUri() 134 File stageDir = new File(ProviderTestUtils.stageDir(mVolumeName), in testGetContentUri() 166 final File dir = ProviderTestUtils.stageDir(mVolumeName); in testCaseSensitivity() 169 ProviderTestUtils.stageFile(R.raw.testmp3, file); in testCaseSensitivity() 216 ContentUris.parseId(ProviderTestUtils.stageMedia(R.raw.volantis, mExternalImages))); in testAccess() 256 final File file = new File(ProviderTestUtils.stageDir(mVolumeName), in testUpdateMediaType() [all …]
|
D | MediaStore_Audio_MediaTest.java | 62 return ProviderTestUtils.getSharedVolumeNames(); in data() 171 ProviderTestUtils.executeShellCommand( in testCanonicalize() 176 final File dir = ProviderTestUtils.stageDir(mVolumeName); in testCanonicalize() 177 final Uri a = ProviderTestUtils.scanFileFromShell( in testCanonicalize() 178 ProviderTestUtils.stageFile(R.raw.testmp3_2, new File(dir, "a.mp3"))); in testCanonicalize() 179 final Uri b = ProviderTestUtils.scanFileFromShell( in testCanonicalize() 180 ProviderTestUtils.stageFile(R.raw.testmp3, new File(dir, "b.mp3"))); in testCanonicalize() 181 final Uri c = ProviderTestUtils.scanFileFromShell( in testCanonicalize() 182 ProviderTestUtils.stageFile(R.raw.testmp3_2, new File(dir, "c.mp3"))); in testCanonicalize() 198 final Uri d = ProviderTestUtils.scanFileFromShell( in testCanonicalize() [all …]
|
D | MediaStore_Images_MediaTest.java | 80 return ProviderTestUtils.getSharedVolumeNames(); in data() 109 File file = new File(ProviderTestUtils.stageDir(MediaStore.VOLUME_EXTERNAL), in testInsertImageWithImagePath() 112 ProviderTestUtils.stageFile(R.raw.scenery, file); in testInsertImageWithImagePath() 125 file = new File(ProviderTestUtils.stageDir(MediaStore.VOLUME_EXTERNAL), in testInsertImageWithImagePath() 128 ProviderTestUtils.stageFile(R.raw.scenery, file); in testInsertImageWithImagePath() 222 final String externalPath = new File(ProviderTestUtils.stageDir(mVolumeName), in testStoreImagesMediaExternal() 224 final String externalPath2 = new File(ProviderTestUtils.stageDir(mVolumeName), in testStoreImagesMediaExternal() 345 ProviderTestUtils.executeShellCommand( 408 ProviderTestUtils.executeShellCommand( 413 final File dir = ProviderTestUtils.stageDir(mVolumeName); [all …]
|
D | MediaStoreTest.java | 73 return ProviderTestUtils.getSharedVolumeNames(); in data() 125 final Uri uri = ProviderTestUtils.stageMedia(R.raw.volantis, mExternalImages); in testGetStorageVolume() 163 ProviderTestUtils.executeShellCommand("sync"); in testContributedMedia() 181 final File file = new File(ProviderTestUtils.stageDir(mVolumeName), in testContributedMedia() 183 ProviderTestUtils.stageFile(R.raw.volantis, file); in testContributedMedia() 184 inside = ProviderTestUtils.scanFileFromShell(file); in testContributedMedia() 185 outside = ProviderTestUtils.stageMedia(R.raw.volantis, mExternalImages); in testContributedMedia() 193 ProviderTestUtils.executeShellCommand("sync"); in testContributedMedia() 215 ProviderTestUtils.executeShellCommand("sync"); in testContributedMedia()
|
D | SmsBackupRestoreTest.java | 84 ProviderTestUtils.setDefaultSmsApp(true, mContext.getPackageName(), mUiAutomation); in setUp() 86 ProviderTestUtils.setBackupTransport(LOCAL_BACKUP_COMPONENT, mUiAutomation); in setUp() 87 mOldBackupEnabled = ProviderTestUtils.setBackupEnabled(true, mUiAutomation); in setUp() 98 ProviderTestUtils.setBackupEnabled(mOldBackupEnabled, mUiAutomation); in tearDown() 99 ProviderTestUtils.setBackupTransport(mOldTransport, mUiAutomation); in tearDown() 100 ProviderTestUtils.setDefaultSmsApp(false, mContext.getPackageName(), mUiAutomation); in tearDown() 107 return (ProviderTestUtils.hasBackupTransport(LOCAL_BACKUP_COMPONENT, mUiAutomation) in isFeatureSupported() 156 ProviderTestUtils.runBackup(TELEPHONY_PROVIDER_PACKAGE, mUiAutomation); in testSmsBackupRestore() 160 ProviderTestUtils.runRestore(TELEPHONY_PROVIDER_PACKAGE, mUiAutomation); in testSmsBackupRestore() 262 ProviderTestUtils.wipeBackup(LOCAL_BACKUP_COMPONENT, TELEPHONY_PROVIDER_PACKAGE, in wipeBackup()
|
D | MediaStore_VideoTest.java | 59 return ProviderTestUtils.getSharedVolumeNames(); in data() 75 final File file = new File(ProviderTestUtils.stageDir(mVolumeName), in testQuery() 78 ProviderTestUtils.stageFile(R.raw.testvideo, file); in testQuery()
|
D | MediaStore_Video_ThumbnailsTest.java | 86 return ProviderTestUtils.getSharedVolumeNames(); in data() 195 File file = new File(ProviderTestUtils.stageDir(MediaStore.VOLUME_EXTERNAL), in insertVideo() 202 ProviderTestUtils.stageFile(R.raw.testthumbvideo, file); in insertVideo() 211 final Uri finalUri = ProviderTestUtils.stageMedia(R.raw.testvideo, in testInsertUpdateDelete()
|
D | MediaStore_Audio_PlaylistsTest.java | 58 return ProviderTestUtils.getSharedVolumeNames(); in data() 80 final String externalPlaylistPath = new File(ProviderTestUtils.stageDir(mVolumeName), in testStoreAudioPlaylistsExternal()
|
D | MediaStore_Images_ThumbnailsTest.java | 20 import static android.provider.cts.ProviderTestUtils.assertExists; 21 import static android.provider.cts.ProviderTestUtils.assertNotExists; 90 return ProviderTestUtils.getSharedVolumeNames(); in data() 125 mRed = ProviderTestUtils.stageMedia(R.raw.scenery, mExternalImages); in prepareImages() 126 mBlue = ProviderTestUtils.stageMedia(R.raw.scenery, mExternalImages); in prepareImages() 148 final File file = new File(ProviderTestUtils.stageDir(MediaStore.VOLUME_EXTERNAL), in testQueryExternalThumbnails() 151 ProviderTestUtils.stageFile(R.raw.scenery, file); in testQueryExternalThumbnails()
|
D | MediaStore_Audio_AlbumsTest.java | 67 return ProviderTestUtils.getSharedVolumeNames(); in data() 166 final File dir = ProviderTestUtils.stageDir(mVolumeName); in testAlbumArt() 169 ProviderTestUtils.stageFile(R.raw.testmp3, path); in testAlbumArt()
|
D | MediaStorePendingTest.java | 20 import static android.provider.cts.ProviderTestUtils.containsId; 21 import static android.provider.cts.ProviderTestUtils.getRawFile; 22 import static android.provider.cts.ProviderTestUtils.getRawFileHash; 23 import static android.provider.cts.ProviderTestUtils.hash; 81 return ProviderTestUtils.getSharedVolumeNames(); in data()
|
D | MediaStore_DownloadsTest.java | 19 import static android.provider.cts.ProviderTestUtils.hash; 20 import static android.provider.cts.ProviderTestUtils.resolveVolumeName; 86 return ProviderTestUtils.getSharedVolumeNames(); in data() 359 final Uri mediaStoreUri = ProviderTestUtils.scanFile(file); in verifyScannedDownload()
|
D | ProviderTestUtils.java | 62 public class ProviderTestUtils { class 324 final String res = ProviderTestUtils.executeShellCommand( in getRawFile() 336 final String res = ProviderTestUtils.executeShellCommand( in getRawFileHash()
|
D | MediaStoreAudioTestHelper.java | 113 data = new File(ProviderTestUtils.stageDir(volumeName), FILE_NAME); in getContentValues() 175 data = new File(ProviderTestUtils.stageDir(volumeName), FILE_NAME); in getContentValues()
|
D | MediaStoreIntentsTest.java | 56 return ProviderTestUtils.getSharedVolumeNames(); in data()
|
D | MediaStore_Audio_Artists_AlbumsTest.java | 60 return ProviderTestUtils.getSharedVolumeNames(); in data()
|
D | MediaStore_Audio_GenresTest.java | 61 return ProviderTestUtils.getSharedVolumeNames(); in data()
|
D | MediaStore_Audio_ArtistsTest.java | 57 return ProviderTestUtils.getSharedVolumeNames(); in data()
|
D | BlockedNumberContractTest.java | 435 ProviderTestUtils.setDefaultSmsApp( in setDefaultSmsApp()
|
D | MediaStore_Audio_Genres_MembersTest.java | 64 return ProviderTestUtils.getSharedVolumeNames(); in data()
|
D | MediaStore_Audio_Playlists_MembersTest.java | 127 return ProviderTestUtils.getSharedVolumeNames(); in data()
|