Home
last modified time | relevance | path

Searched refs:delete (Results 1 – 25 of 163) sorted by relevance

1234567

/cts/common/host-side/java-scanner/tests/src/com/android/compatibility/common/scanner/
DJavaScannerTest.java124 f.delete(); in runScanner()
126 parent4.delete(); in runScanner()
127 parent3.delete(); in runScanner()
128 parent2.delete(); in runScanner()
129 parent1.delete(); in runScanner()
/cts/tests/tests/media/src/android/media/cts/
DMediaScannerTest.java87 mMediaFile.delete(); in cleanup()
93 new File(mFileDir + "/" + f).delete(); in cleanup()
96 new File(mFileDir).delete(); in cleanup()
104 mContext.getContentResolver().delete(MediaStore.Audio.Media.getContentUri("external"), in cleanup()
141 nomedia.delete(); in testMediaScanner()
160 res.delete(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, in testMediaScanner()
163 res.delete(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, in testMediaScanner()
167 res.delete(MediaStore.Files.getContentUri("external"), in testMediaScanner()
170 res.delete(MediaStore.Files.getContentUri("external"), in testMediaScanner()
294 new File(file1).delete(); in testWildcardPaths()
[all …]
DMediaScannerNotificationTest.java77 assertTrue(noMedia.delete()); in testMediaScannerNotification()
123 assertTrue(new File(tmpPath, "foobar." + extensions[i]).delete()); in deleteTempFiles()
125 assertTrue(new File(tmpPath).delete()); in deleteTempFiles()
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_FilesTest.java65 mResolver.delete(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in cleanup()
87 f.delete(); in deleteAll()
137 assertEquals(1, mResolver.delete(fileUri, null, null)); in testGetContentUri()
169 mResolver.delete(fileUri, null, null); in testGetContentUri()
192 mResolver.delete(fileUri, null, null); in testCaseSensitivity()
193 new File(fileName).delete(); in testCaseSensitivity()
194 new File(fileDir).delete(); in testCaseSensitivity()
209 mResolver.delete(MediaStore.Images.Media.INTERNAL_CONTENT_URI, in testAccess()
291 path.delete(); in testAccess()
335 assertEquals(1, mResolver.delete(uri, null, null)); in testAccess()
[all …]
DContactsContract_RawContactsTest.java134 RawContactUtil.delete(mResolver, rawContactid, false); in testRawContactDelete_setsDeleteFlag()
154 RawContactUtil.delete(mResolver, rawContactid, true); in testRawContactDelete_removesRecord()
173 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testRawContactCreate_updatesContactUpdatedTimestamp()
189 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testRawContactUpdate_updatesContactUpdatedTimestamp()
197 RawContactUtil.delete(mResolver, ids.mRawContactId, false); in testRawContactPsuedoDelete_hasDeleteLogForContact()
202 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testRawContactPsuedoDelete_hasDeleteLogForContact()
210 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testRawContactDelete_hasDeleteLogForContact()
DMediaStore_Video_ThumbnailsTest.java115 mResolver.delete(ContentUris.withAppendedId(Thumbnails.EXTERNAL_CONTENT_URI, id), in testGetThumbnail()
121 assertEquals(1, mResolver.delete(videoUri, null, null)); in testGetThumbnail()
127 mResolver.delete(Media.EXTERNAL_CONTENT_URI, in insertVideo()
129 file.delete(); in insertVideo()
DMediaStore_Audio_AlbumsTest.java134 mContentResolver.delete(audioAlbumsUri, selection, selectionArgs); in testStoreAudioAlbums()
155 mContentResolver.delete(audioMediaUri, null, null); in testStoreAudioAlbums()
190 mContentResolver.delete(albumart, null, null); in testAlbumArt()
200 new File(albumartfile).delete(); in testAlbumArt()
210 path.delete(); in testAlbumArt()
212 mContentResolver.delete(uri, null, null); in testAlbumArt()
DSettings_SystemTest.java51 cr.delete(System.CONTENT_URI, selection, null); in deleteTestedRows()
54 cr.delete(System.CONTENT_URI, selection, null); in deleteTestedRows()
57 cr.delete(System.CONTENT_URI, selection, null); in deleteTestedRows()
60 cr.delete(System.CONTENT_URI, selection, null); in deleteTestedRows()
DContactsContract_PinnedPositionsTest.java129 ContactUtil.delete(mResolver, i1.mContactId); in testPinnedPositionsUpdate()
130 ContactUtil.delete(mResolver, i2.mContactId); in testPinnedPositionsUpdate()
131 ContactUtil.delete(mResolver, i3.mContactId); in testPinnedPositionsUpdate()
132 ContactUtil.delete(mResolver, i4.mContactId); in testPinnedPositionsUpdate()
249 ContactUtil.delete(mResolver, cId1); in testPinnedPositionsAfterJoinAndSplit()
250 ContactUtil.delete(mResolver, i2.mContactId); in testPinnedPositionsAfterJoinAndSplit()
251 ContactUtil.delete(mResolver, cId4); in testPinnedPositionsAfterJoinAndSplit()
252 ContactUtil.delete(mResolver, i5.mContactId); in testPinnedPositionsAfterJoinAndSplit()
327 ContactUtil.delete(mResolver, i1.mContactId); in testPinnedPositionsAfterDemoteAndUndemote()
328 ContactUtil.delete(mResolver, i2.mContactId); in testPinnedPositionsAfterDemoteAndUndemote()
DMediaStore_Audio_Playlists_MembersTest.java127 mContentResolver.delete(Media.EXTERNAL_CONTENT_URI, Media._ID + "=" + mIdOfAudio1, null); in tearDown()
128 mContentResolver.delete(Media.EXTERNAL_CONTENT_URI, Media._ID + "=" + mIdOfAudio2, null); in tearDown()
129 mContentResolver.delete(Media.EXTERNAL_CONTENT_URI, Media._ID + "=" + mIdOfAudio3, null); in tearDown()
130 mContentResolver.delete(Media.EXTERNAL_CONTENT_URI, Media._ID + "=" + mIdOfAudio4, null); in tearDown()
131 mContentResolver.delete(Media.EXTERNAL_CONTENT_URI, Media._ID + "=" + mIdOfAudio5, null); in tearDown()
322 … mContentResolver.delete(Media.EXTERNAL_CONTENT_URI, Media._ID + "=" + mIdOfAudio2, null); in testStoreAudioPlaylistsMembersExternal()
402 result = mContentResolver.delete(membersUri, null, null); in testStoreAudioPlaylistsMembersExternal()
404 result = mContentResolver.delete(members2Uri, null, null); in testStoreAudioPlaylistsMembersExternal()
427 mContentResolver.delete(Media.EXTERNAL_CONTENT_URI, in testStoreAudioPlaylistsMembersExternal()
445 mContentResolver.delete(Playlists.EXTERNAL_CONTENT_URI, in testStoreAudioPlaylistsMembersExternal()
[all …]
DMediaStore_Video_MediaTest.java63 mContentResolver.delete(Media.EXTERNAL_CONTENT_URI, "_data=?", new String[] { path }); in cleanExternalMediaFile()
64 new File(path).delete(); in cleanExternalMediaFile()
195 assertEquals(1, mContentResolver.delete(uri, null, null)); in testStoreVideoMediaExternal()
196 new File(externalVideoPath).delete(); in testStoreVideoMediaExternal()
204 mContentResolver.delete(videoUri, null, null); in testStoreVideoMediaExternal()
212 mContentResolver.delete(builder.build(), null, null); in testStoreVideoMediaExternal()
214 videofile.delete(); in testStoreVideoMediaExternal()
DContactsContract_DataUsageTest.java58 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testSingleDataUsageFeedback_incrementsCorrectDataItems()
81 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testMultiIdDataUsageFeedback_incrementsCorrectDataItems()
153 mResolver.delete(DataUsageFeedback.DELETE_USAGE_URI, null, null); in deleteDataUsage()
DMediaStore_Images_ThumbnailsTest.java54 mContentResolver.delete(row, null, null); in tearDown()
167 mContentResolver.delete(Uri.parse(stringUrl), null, null); in testQueryExternalMiniThumbnails()
190 mContentResolver.delete(fileuri, null, null); in testQueryExternalMiniThumbnails()
212 mContentResolver.delete(MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI, in testQueryExternalMiniThumbnails()
272 assertEquals(1, mContentResolver.delete(uri, null, null)); in testStoreImagesMediaExternal()
305 assertTrue(new File(path).delete()); in testThumbnailOrderedQuery()
316 assertTrue(new File(path).delete()); in testThumbnailOrderedQuery()
324 assertTrue(list[i].delete()); in testThumbnailOrderedQuery()
DMediaStore_Audio_GenresTest.java87 assertEquals(1, mContentResolver.delete(uri, null, null)); in testStoreAudioGenresExternal()
138 assertEquals(1, mContentResolver.delete(audioUri, null, null)); in testGetContentUriForAudioId()
139 assertEquals(1, mContentResolver.delete(genreUri, null, null)); in testGetContentUriForAudioId()
DMediaStore_Audio_Genres_MembersTest.java61 mContentResolver.delete(Media.EXTERNAL_CONTENT_URI, Media._ID + "=" + mAudioIdOfJam, null); in tearDown()
62 mContentResolver.delete(Media.EXTERNAL_CONTENT_URI, Media._ID + "=" + mAudioIdOfJamLive, in tearDown()
247 … assertEquals(1, mContentResolver.delete(membersUri, null, null)); // check number of rows deleted in testStoreAudioGenresMembersExternal()
255 assertEquals(1, mContentResolver.delete(members2Uri, null, null)); in testStoreAudioGenresMembersExternal()
280 mContentResolver.delete(Media.EXTERNAL_CONTENT_URI, in testStoreAudioGenresMembersExternal()
297 mContentResolver.delete(Genres.EXTERNAL_CONTENT_URI, Genres._ID + "=" + genreId, null); in testStoreAudioGenresMembersExternal()
299 … mContentResolver.delete(Genres.EXTERNAL_CONTENT_URI, Genres._ID + "=" + genre2Id, null); in testStoreAudioGenresMembersExternal()
/cts/tests/tests/os/src/android/os/cts/
DFileObserverTest.java55 mTestFile.delete(); in tearDown()
59 mMoveDestFile.delete(); in tearDown()
63 mTestDir.delete(); in tearDown()
111 mTestFile.delete(); // delete in testFileObserver()
129 mTestFile.delete(); in testFileObserver()
130 mTestDir.delete(); in testFileObserver()
DRecoverySystemTest.java68 packageFile.delete(); in testVerify()
77 otacerts.delete(); in testVerify()
94 packageFile.delete(); in expectVerifyFail()
DFileAccessPermissionTest.java74 assertFalse(f.delete()); in testSystemDirAccess()
154 assertTrue(sdcardSubDir.delete()); in testAccessAppDataDir()
193 assertTrue(file.delete()); in writeFileCheck()
/cts/libs/vogar-expect/src/vogar/util/
DMarkResetConsole.java42 rowContent.delete(0, rowContent.length()); in print()
82 rowContent.delete(0, rowContent.length()); in reset()
/cts/tests/tests/util/src/android/util/cts/
DSparseLongArrayTest.java77 sparseArray.delete(KEYS[1]); in testSparseArrayWithDefaultCapacity()
85 sparseArray.delete(KEYS[2]); in testSparseArrayWithDefaultCapacity()
138 sparseArray.delete(KEYS[1]); in testSparseArrayWithSpecifiedCapacity()
146 sparseArray.delete(KEYS[2]); in testSparseArrayWithSpecifiedCapacity()
/cts/tools/vm-tests-tf/src/util/build/
DJarBuildStep.java67 tempFile.delete(); in build()
70 inputFile.fileName.delete(); in build()
/cts/tests/tests/content/src/android/content/cts/
DSharedPreferencesTest.java59 mPrefsFile.delete(); in setUp()
227 mPrefsFile.delete(); in testRedundantCommitWritesFileIfNotAlreadyExisting()
300 prefsFileClone.delete(); in testTorture2()
318 prefsFile.delete(); in testTorture2()
319 prefsFileClone.delete(); in testTorture2()
DMockContentProvider.java132 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() method in MockContentProvider
143 count = db.delete("TestTable1", selection, selectionArgs); in delete()
147 count = db.delete("TestTable1", "_id=" + segment + in delete()
152 count = db.delete("TestTable2", selection, selectionArgs); in delete()
156 count = db.delete("TestTable2", "_id=" + segment + in delete()
412 file.delete(); in setCrashOnLaunch()
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
DCommonExternalStorageTest.java213 probe.delete(); in assertDirReadOnlyAccess()
231 probe.delete(); in assertDirReadWriteAccess()
246 probe.delete(); in assertDirNoAccess()
259 probe.delete(); in assertDirNoWriteAccess()
336 resolver.delete(uri, null, null); in assertMediaReadWriteAccess()
377 assertTrue(file.delete()); in deleteContents()
/cts/tests/tests/security/src/android/security/cts/
DServicePermissionsTest.java50 mTempFile.delete(); in tearDown()
80 mTempFile.delete(); in testDumpProtected()

1234567