Home
last modified time | relevance | path

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

12345678910>>...17

/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/
DTranscodeTest.java142 modernFile.delete(); in testTranscoded_FilePath()
174 modernFile.delete(); in testNoTranscodeOutsideCamera_FilePath()
176 file.delete(); in testNoTranscodeOutsideCamera_FilePath()
197 modernFile.delete(); in testSameTranscoded_FilePath()
219 modernFile.delete(); in testTranscoded_ContentResolver()
254 modernFile.delete(); in testNoTranscodeOutsideCamera_ConentResolver()
256 file.delete(); in testNoTranscodeOutsideCamera_ConentResolver()
278 modernFile.delete(); in testSameTranscodedFile_ContentResolver()
294 assertTrue(modernFile.delete()); in testDeleteTranscodedFile_FilePath()
301 modernFile.delete(); in testDeleteTranscodedFile_FilePath()
[all …]
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DLegacyStorageTest.java280 assertThat(existingFile.delete()).isFalse(); in testCantAccessExternalStorage()
295 fileInDataDir.delete(); in testCantAccessExternalStorage()
307 fileInMediaDir.delete(); in testCantAccessExternalStorage()
397 hiddenImageFile.delete(); in testInsertHiddenFile()
433 musicFile1.delete(); in testCanRename_hasRW()
434 musicFile2.delete(); in testCanRename_hasRW()
435 musicFile3.delete(); in testCanRename_hasRW()
437 pdfFile1.delete(); in testCanRename_hasRW()
438 pdfFile2.delete(); in testCanRename_hasRW()
457 otherVideoFile.delete(); in testCanTrashOtherAndroidMediaFiles_hasRW()
[all …]
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
DScopedStorageDeviceTest.java430 assertThat(file.delete()).isTrue(); in testCreateFileInAppExternalDir()
442 file.delete(); in testCreateFileInAppExternalDir()
498 assertThat(videoFile.delete()).isTrue(); in testReadWriteFilesInOtherAppExternalDir()
500 videoFile.delete(); in testReadWriteFilesInOtherAppExternalDir()
534 imageFile.delete(); in testContributeMediaFile()
606 assertThat(dirInDownload.delete()).isFalse(); in testCantDeleteOtherAppsContents()
614 assertThat(dirInDownload.delete()).isFalse(); in testCantDeleteOtherAppsContents()
622 assertThat(dirInDownload.delete()).isFalse(); in testCantDeleteOtherAppsContents()
637 mediaFile.delete(); in testCantDeleteOtherAppsContents()
655 assertTrue(nonMediaFile.delete()); in testDeleteAlreadyUnlinkedFile()
[all …]
/cts/hostsidetests/scopedstorage/redacturi/src/android/scopedstorage/cts/redacturi/
DRedactUriDeviceTest.java141 img.delete(); in testRedactedUri_single()
166 files.forEach(file -> file.delete()); in testRedactedUri_list()
241 img.delete(); in testQueryOnRedactionUri()
257 img.delete(); in testSharedRedactedUri_openFdForWrite()
273 img.delete(); in testSharedRedactedUri_openFdForRead()
289 img.delete(); in testSharedRedactedUri_openFileForRead()
304 img.delete(); in testSharedRedactedUri_query()
322 img.delete(); in testSharedRedactedUri_openFileForRead_withLocationPerm()
340 img.delete(); in testSharedRedactedUri_openFdForRead_withLocationPerm()
361 img.delete(); in testUnsharedRedactedUri_openFdForRead()
[all …]
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/util/
DAtomicFileHelperTest.java66 baseFile.delete(); in testAtomicFileWithPreExistedBaseFile()
76 baseFile.delete(); in testAtomicFileWithNonExistedBaseFile()
98 baseFile.delete(); in testAtomicFileWithNonExistedBaseFile()
108 baseFile.delete(); in testAtomicFileWithFailedWrite()
129 baseFile.delete(); in testAtomicFileRewrite()
165 baseFile.delete(); in testAtomicFileRewrite()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DMediaScannerTest.java125 mMediaFile.delete(); in cleanup()
131 new File(mFileDir + "/" + f).delete(); in cleanup()
134 new File(mFileDir).delete(); in cleanup()
142 mContext.getContentResolver().delete(MediaStore.Audio.Media.getContentUri("external"), in cleanup()
229 nomedia.delete(); in testMediaScanner()
242 res.delete(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, in testMediaScanner()
245 res.delete(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, in testMediaScanner()
249 res.delete(MediaStore.Files.getContentUri("external"), in testMediaScanner()
252 res.delete(MediaStore.Files.getContentUri("external"), in testMediaScanner()
370 new File(file1).delete(); in testWildcardPaths()
[all …]
DMediaScannerNotificationTest.java74 assertTrue(noMedia.delete()); in testMediaScannerNotification()
120 assertTrue(new File(tmpPath, "foobar." + extensions[i]).delete()); in deleteTempFiles()
122 assertTrue(new File(tmpPath).delete()); in deleteTempFiles()
/cts/tests/tests/os/src/android/os/cts/
DRecoverySystemTest.java68 packageFile.delete(); in testVerify()
77 otacerts.delete(); in testVerify()
94 packageFile.delete(); in expectVerifyFail()
DFileObserverTest.java81 testFile.delete(); in helpTearDown()
85 moveDestFile.delete(); in helpTearDown()
89 testDir.delete(); in helpTearDown()
109 dir.delete(); in tearDown()
158 testFile.delete(); // delete in helpTestFileObserver()
239 testFile.delete(); in verifyTriggeredEventsOnDir()
240 testDir.delete(); in verifyTriggeredEventsOnDir()
/cts/hostsidetests/backup/fullbackupapp/src/android/cts/backup/fullbackupapp/
DFullbackupTest.java129 mNoBackupFile.delete(); in deleteAllFiles()
130 mNoBackupFile2.delete(); in deleteAllFiles()
131 mDoBackupFile.delete(); in deleteAllFiles()
132 mDoBackupFile2.delete(); in deleteAllFiles()
/cts/tests/tests/provider/src/android/provider/cts/
DSmsBackupRestoreTest.java112 mContentResolver.delete(Telephony.Sms.CONTENT_URI, SMS_SELECTION, smsAddressBody1); in clearMessages()
113 mContentResolver.delete(Telephony.Sms.CONTENT_URI, SMS_SELECTION, smsAddressBody2); in clearMessages()
121 mContentResolver.delete(partUri, MMS_PART_SELECTION, in clearMessages()
125 mContentResolver.delete(addrUri, MMS_ADDR_SELECTION, in clearMessages()
129 mContentResolver.delete(Telephony.Mms.CONTENT_URI, MMS_SELECTION, new String[]{mmsSubject}); in clearMessages()
164 mContentResolver.delete(Telephony.Sms.CONTENT_URI, SMS_SELECTION, smsAddressBody1)); in testSmsBackupRestore()
166 mContentResolver.delete(Telephony.Sms.CONTENT_URI, SMS_SELECTION, smsAddressBody2)); in testSmsBackupRestore()
188 assertEquals(2, mContentResolver.delete(partUri, MMS_PART_SELECTION, in testSmsBackupRestore()
201 assertEquals(mmsAddresses.length, mContentResolver.delete(addrUri, MMS_ADDR_SELECTION, in testSmsBackupRestore()
DBlockedNumberContractTest.java76 mContentResolver.delete(row, null, null); in tearDown()
314 mContentResolver.delete( in testDelete()
321 mContentResolver.delete( in testDelete()
328 mContentResolver.delete( in testDelete()
335 mContentResolver.delete( in testDelete()
341 assertEquals(1, mContentResolver.delete(insertedUri, null, null)); in testDelete()
344 mContentResolver.delete( in testDelete()
358 mContentResolver.delete(Uri.parse("foobar"), null, null); in testDelete_failsOnInvalidInputs()
365 mContentResolver.delete( in testDelete_failsOnInvalidInputs()
396 mContentResolver.delete(uri, null, null); in testProviderNotifiesChangesUsingContentObserver()
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContactsContract_RawContactsTest.java140 RawContactUtil.delete(mResolver, rawContactid, false); in testRawContactDelete_setsDeleteFlag()
165 RawContactUtil.delete(mResolver, rawContactid, false); in testRawContactDelete_localDeleteRemovesRecord()
177 RawContactUtil.delete(mResolver, rawContactid, true); in testRawContactDelete_removesRecord()
195 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testRawContactCreate_updatesContactUpdatedTimestamp()
222 RawContactUtil.delete(mResolver, rawContactid, true); in testRawContactCreate_noAccountUsesLocalAccount()
263 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testRawContactUpdate_updatesContactUpdatedTimestamp()
271 RawContactUtil.delete(mResolver, ids.mRawContactId, false); in testRawContactPsuedoDelete_hasDeleteLogForContact()
276 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testRawContactPsuedoDelete_hasDeleteLogForContact()
284 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testRawContactDelete_hasDeleteLogForContact()
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()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DUserSettings.java150 delete(key); in set()
156 delete(key); in set()
176 delete(key); in syncDelete()
186 public void delete(String key) { in delete() method in UserSettings
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DOwnedFilesRule.java87 sImageFile1.delete(); in after()
88 sImageFile2Metadata.delete(); in after()
89 sVideoFile1.delete(); in after()
/cts/tools/vm-tests-tf/build/src/util/build/
DJarBuildStep.java101 jarOutFile.delete(); in build()
107 tempFile.delete(); in build()
110 inputFile.fileName.delete(); in build()
/cts/hostsidetests/numberblocking/app/src/com/android/cts/numberblocking/hostside/
DNumberBlockingAppTest.java29 assertTrue(mContext.getContentResolver().delete( in testCleanupBlockedNumberAsPrimaryUserSucceeds()
54 assertEquals(1, mContext.getContentResolver().delete( in testUnblockNumberAsPrimaryUserSucceeds()
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStore_Video_ThumbnailsTest.java132 assertEquals(1, mResolver.delete(videoUri, null, null)); in testGetThumbnail()
154 mResolver.delete(uri, null /* where clause */, null /* where args */); in testThumbnailGenerationAndCleanup()
195 mResolver.delete(fileUri, null /* where */, null /* where args */); in testThumbnailGenerationAndCleanup()
196 new File(sourcePath).delete(); in testThumbnailGenerationAndCleanup()
203 mResolver.delete(Media.EXTERNAL_CONTENT_URI, in insertVideo()
205 file.delete(); in insertVideo()
261 mResolver.delete(finalUri, null, null); in testInsertUpdateDelete()
/cts/hostsidetests/backup/FullBackupOnly/src/
DFullBackupOnlyTest.java132 mKeyValueBackupFile.delete(); in deleteAllFiles()
133 mDoBackupFile.delete(); in deleteAllFiles()
134 mDoBackupFile2.delete(); in deleteAllFiles()
/cts/tests/inputmethod/mockspellchecker/src/com/android/cts/mockspellchecker/
DSharedPrefsProvider.kt77 override fun delete( in delete() method in com.android.cts.mockspellchecker.SharedPrefsProvider
110 fun delete(resolver: ContentResolver, key: String) { in getSharedPreferences() method
111 resolver.delete(uriFor(key), null) in getSharedPreferences()
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java286 assertThat(otherAppExternalDataFile.delete()).isFalse(); in testManageExternalStorageCantReadWriteOtherAppExternalDir()
332 assertThat(otherAppPdf.delete()).isTrue(); in testManageExternalStorageCanDeleteOtherAppsContents()
335 assertThat(otherAppImage.delete()).isTrue(); in testManageExternalStorageCanDeleteOtherAppsContents()
338 assertThat(otherAppMusic.delete()).isTrue(); in testManageExternalStorageCanDeleteOtherAppsContents()
459 myAppPdf.delete(); in testAccess_MediaFile()
554 myAppPdf.delete(); in testAccess_file()
656 pdf.delete(); in testManageExternalStorageCanRenameOtherAppsContents()
657 pdfInObviouslyWrongPlace.delete(); in testManageExternalStorageCanRenameOtherAppsContents()
658 topLevelPdf.delete(); in testManageExternalStorageCanRenameOtherAppsContents()
659 musicFile.delete(); in testManageExternalStorageCanRenameOtherAppsContents()
[all …]
/cts/tests/BlobStore/src/com/android/cts/blob/
DBlobStoreManagerTest.java146 mContext.getFilesDir().delete(); in tearDown()
161 blobData.delete(); in testGetCreateSession()
182 blobData.delete(); in testCreateBlobHandle_invalidArguments()
215 blobData.delete(); in testAbandonSession()
240 blobData.delete(); in testOpenReadWriteSession()
266 blobData.delete(); in testOpenSession_fromAnotherPkg()
293 blobData.delete(); in testOpenSessionAndAbandon()
332 blobData.delete(); in testCloseSession()
353 blobData.delete(); in testAllowPublicAccess()
376 blobData.delete(); in testAllowPublicAccess_abandonedSession()
[all …]
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/db/
DDatabase.java118 public int delete(String table, String selection, String[] selectionArgs) { in delete() method in Database
119 return mHelper.getWritableDatabase().delete(table, selection, selectionArgs); in delete()
/cts/tests/tests/util/src/android/util/cts/
DSparseArrayMapTest.java150 assertEquals(i, sam.delete(0, KEYS_1[i]).intValue()); in testDelete()
155 assertNull(sam.delete(0, KEYS_1[i])); in testDelete()
160 assertEquals(i, sam.delete(1, KEYS_1[i]).intValue()); in testDelete()
169 sam.delete(2); in testDelete()
223 sam.delete(100); in testNumMaps()
228 sam.delete(i - 1); in testNumMaps()

12345678910>>...17