/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; 82 return ProviderTestUtils.getSharedVolumeNames(); in data() 112 final String externalVideoPath = new File(ProviderTestUtils.stageDir(mVolumeName), in testStoreVideoMediaExternal() 114 final String externalVideoPath2 = new File(ProviderTestUtils.stageDir(mVolumeName), in testStoreVideoMediaExternal() 189 File videofile = new File(ProviderTestUtils.stageDir(mVolumeName), "testVideo.3gp"); in testStoreVideoMediaExternal() 196 final File dir = ProviderTestUtils.stageDir(mVolumeName); in insertVideo() 201 ProviderTestUtils.stageFile(R.raw.testvideo, file); in insertVideo() 276 ProviderTestUtils.executeShellCommand("content update" in testLocationRedaction() 343 ProviderTestUtils.executeShellCommand("content delete" in testCanonicalize() [all …]
|
D | MediaStore_FilesTest.java | 20 import static android.provider.cts.ProviderTestUtils.containsId; 21 import static android.provider.cts.ProviderTestUtils.resolveVolumeName; 71 return ProviderTestUtils.getSharedVolumeNames(); in data() 93 String dataPath = new File(ProviderTestUtils.stageDir(mVolumeName), in testGetContentUri() 111 String updatedPath = new File(ProviderTestUtils.stageDir(mVolumeName), in testGetContentUri() 136 File stageDir = new File(ProviderTestUtils.stageDir(mVolumeName), in testGetContentUri() 168 final File dir = ProviderTestUtils.stageDir(mVolumeName); in testCaseSensitivity() 171 ProviderTestUtils.stageFile(R.raw.testmp3, file); in testCaseSensitivity() 218 ContentUris.parseId(ProviderTestUtils.stageMedia(R.raw.volantis, mExternalImages))); in testAccess() 258 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("content delete" in testCanonicalize() 177 final File dir = ProviderTestUtils.stageDir(mVolumeName); in testCanonicalize() 178 final Uri a = ProviderTestUtils.scanFileFromShell( in testCanonicalize() 179 ProviderTestUtils.stageFile(R.raw.testmp3_2, new File(dir, "a.mp3"))); in testCanonicalize() 180 final Uri b = ProviderTestUtils.scanFileFromShell( in testCanonicalize() 181 ProviderTestUtils.stageFile(R.raw.testmp3, new File(dir, "b.mp3"))); in testCanonicalize() 182 final Uri c = ProviderTestUtils.scanFileFromShell( in testCanonicalize() 183 ProviderTestUtils.stageFile(R.raw.testmp3_2, new File(dir, "c.mp3"))); in testCanonicalize() 199 final Uri d = ProviderTestUtils.scanFileFromShell( in testCanonicalize() [all …]
|
D | MediaStore_Images_MediaTest.java | 83 return ProviderTestUtils.getSharedVolumeNames(); in data() 112 File file = new File(ProviderTestUtils.stageDir(MediaStore.VOLUME_EXTERNAL), in testInsertImageWithImagePath() 115 ProviderTestUtils.stageFile(R.raw.scenery, file); in testInsertImageWithImagePath() 128 file = new File(ProviderTestUtils.stageDir(MediaStore.VOLUME_EXTERNAL), in testInsertImageWithImagePath() 131 ProviderTestUtils.stageFile(R.raw.scenery, file); in testInsertImageWithImagePath() 225 final File dir = ProviderTestUtils.stageDir(mVolumeName); in testStoreImagesMediaExternal() 226 final File file = ProviderTestUtils.stageFile(R.raw.scenery, in testStoreImagesMediaExternal() 232 ProviderTestUtils.waitUntilExists(file); in testStoreImagesMediaExternal() 365 ProviderTestUtils.executeShellCommand("content update" 429 ProviderTestUtils.executeShellCommand("content delete" [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 | 85 return ProviderTestUtils.getSharedVolumeNames(); in data() 198 File file = new File(ProviderTestUtils.stageDir(MediaStore.VOLUME_EXTERNAL), in insertVideo() 205 ProviderTestUtils.stageFile(R.raw.testthumbvideo, file); in insertVideo() 214 final Uri finalUri = ProviderTestUtils.stageMedia(R.raw.testvideo, in testInsertUpdateDelete()
|
D | MediaStore_Images_ThumbnailsTest.java | 20 import static android.provider.cts.ProviderTestUtils.assertExists; 21 import static android.provider.cts.ProviderTestUtils.assertNotExists; 89 return ProviderTestUtils.getSharedVolumeNames(); in data() 124 mRed = ProviderTestUtils.stageMedia(R.raw.scenery, mExternalImages); in prepareImages() 125 mBlue = ProviderTestUtils.stageMedia(R.raw.scenery, mExternalImages); in prepareImages() 147 final File file = new File(ProviderTestUtils.stageDir(MediaStore.VOLUME_EXTERNAL), in testQueryExternalThumbnails() 150 ProviderTestUtils.stageFile(R.raw.scenery, file); in testQueryExternalThumbnails()
|
D | MediaStore_Audio_PlaylistsTest.java | 58 return ProviderTestUtils.getSharedVolumeNames(); in data() 80 final String externalPlaylistPath = new File(ProviderTestUtils.stageDir(mVolumeName), in testStoreAudioPlaylistsExternal()
|
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_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 | 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 | 67 public class ProviderTestUtils { class 352 final String res = ProviderTestUtils.executeShellCommand("content query --uri " + uri in getRawFile() 365 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_ArtistsTest.java | 57 return ProviderTestUtils.getSharedVolumeNames(); in data()
|
D | MediaStore_Audio_GenresTest.java | 61 return ProviderTestUtils.getSharedVolumeNames(); in data()
|
D | MediaStore_Audio_Artists_AlbumsTest.java | 60 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()
|