Home
last modified time | relevance | path

Searched refs:ProviderTestUtils (Results 1 – 24 of 24) sorted by relevance

/cts/tests/tests/provider/src/android/provider/cts/
DMediaStorePlacementTest.java62 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 …]
DBlockedNumberBackupRestoreTest.java62 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()
DMediaStore_Video_MediaTest.java20 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 …]
DMediaStore_FilesTest.java20 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 …]
DMediaStore_Audio_MediaTest.java62 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 …]
DMediaStore_Images_MediaTest.java80 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 …]
DMediaStoreTest.java73 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()
DSmsBackupRestoreTest.java84 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()
DMediaStore_VideoTest.java59 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()
DMediaStore_Video_ThumbnailsTest.java86 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()
DMediaStore_Audio_PlaylistsTest.java58 return ProviderTestUtils.getSharedVolumeNames(); in data()
80 final String externalPlaylistPath = new File(ProviderTestUtils.stageDir(mVolumeName), in testStoreAudioPlaylistsExternal()
DMediaStore_Images_ThumbnailsTest.java20 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()
DMediaStore_Audio_AlbumsTest.java67 return ProviderTestUtils.getSharedVolumeNames(); in data()
166 final File dir = ProviderTestUtils.stageDir(mVolumeName); in testAlbumArt()
169 ProviderTestUtils.stageFile(R.raw.testmp3, path); in testAlbumArt()
DMediaStorePendingTest.java20 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()
DMediaStore_DownloadsTest.java19 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()
DProviderTestUtils.java62 public class ProviderTestUtils { class
324 final String res = ProviderTestUtils.executeShellCommand( in getRawFile()
336 final String res = ProviderTestUtils.executeShellCommand( in getRawFileHash()
DMediaStoreAudioTestHelper.java113 data = new File(ProviderTestUtils.stageDir(volumeName), FILE_NAME); in getContentValues()
175 data = new File(ProviderTestUtils.stageDir(volumeName), FILE_NAME); in getContentValues()
DMediaStoreIntentsTest.java56 return ProviderTestUtils.getSharedVolumeNames(); in data()
DMediaStore_Audio_Artists_AlbumsTest.java60 return ProviderTestUtils.getSharedVolumeNames(); in data()
DMediaStore_Audio_GenresTest.java61 return ProviderTestUtils.getSharedVolumeNames(); in data()
DMediaStore_Audio_ArtistsTest.java57 return ProviderTestUtils.getSharedVolumeNames(); in data()
DBlockedNumberContractTest.java435 ProviderTestUtils.setDefaultSmsApp( in setDefaultSmsApp()
DMediaStore_Audio_Genres_MembersTest.java64 return ProviderTestUtils.getSharedVolumeNames(); in data()
DMediaStore_Audio_Playlists_MembersTest.java127 return ProviderTestUtils.getSharedVolumeNames(); in data()