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;
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 …]
DMediaStore_FilesTest.java20 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 …]
DMediaStore_Audio_MediaTest.java62 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 …]
DMediaStore_Images_MediaTest.java83 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 …]
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.java85 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()
DMediaStore_Images_ThumbnailsTest.java20 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()
DMediaStore_Audio_PlaylistsTest.java58 return ProviderTestUtils.getSharedVolumeNames(); in data()
80 final String externalPlaylistPath = new File(ProviderTestUtils.stageDir(mVolumeName), in testStoreAudioPlaylistsExternal()
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_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()
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.java67 public class ProviderTestUtils { class
352 final String res = ProviderTestUtils.executeShellCommand("content query --uri " + uri in getRawFile()
365 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_ArtistsTest.java57 return ProviderTestUtils.getSharedVolumeNames(); in data()
DMediaStore_Audio_GenresTest.java61 return ProviderTestUtils.getSharedVolumeNames(); in data()
DMediaStore_Audio_Artists_AlbumsTest.java60 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()