/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/ |
D | LegacyStorageTest.java | 270 assertThat(existingFile.delete()).isFalse(); in testCantAccessExternalStorage() 285 fileInDataDir.delete(); in testCantAccessExternalStorage() 297 fileInMediaDir.delete(); in testCantAccessExternalStorage() 344 newDir.delete(); in testReadOnlyExternalStorage_hasR() 387 hiddenImageFile.delete(); in testInsertHiddenFile() 423 musicFile1.delete(); in testCanRename_hasRW() 424 musicFile2.delete(); in testCanRename_hasRW() 425 musicFile3.delete(); in testCanRename_hasRW() 427 pdfFile1.delete(); in testCanRename_hasRW() 428 pdfFile2.delete(); in testCanRename_hasRW() [all …]
|
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/ |
D | TranscodeTest.java | 145 modernFile.delete(); in testTranscoded_FilePath() 177 modernFile.delete(); in testNoTranscodeOutsideCamera_FilePath() 179 file.delete(); in testNoTranscodeOutsideCamera_FilePath() 200 modernFile.delete(); in testSameTranscoded_FilePath() 222 modernFile.delete(); in testTranscoded_ContentResolver() 257 modernFile.delete(); in testNoTranscodeOutsideCamera_ConentResolver() 259 file.delete(); in testNoTranscodeOutsideCamera_ConentResolver() 281 modernFile.delete(); in testSameTranscodedFile_ContentResolver() 297 assertTrue(modernFile.delete()); in testDeleteTranscodedFile_FilePath() 304 modernFile.delete(); in testDeleteTranscodedFile_FilePath() [all …]
|
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | ScopedStorageDeviceTest.java | 409 assertThat(file.delete()).isTrue(); in testCreateFileInAppExternalDir() 421 file.delete(); in testCreateFileInAppExternalDir() 477 assertThat(videoFile.delete()).isTrue(); in testReadWriteFilesInOtherAppExternalDir() 479 videoFile.delete(); in testReadWriteFilesInOtherAppExternalDir() 513 imageFile.delete(); in testContributeMediaFile() 523 externalFilesDir.delete(); in testCreateAndDeleteEmptyDir() 537 assertThat(dir2.delete()).isTrue(); in testCreateAndDeleteEmptyDir() 538 assertThat(dir1.delete()).isTrue(); in testCreateAndDeleteEmptyDir() 539 assertThat(externalFilesDir.delete()).isTrue(); in testCreateAndDeleteEmptyDir() 585 assertThat(dirInDownload.delete()).isFalse(); in testCantDeleteOtherAppsContents() [all …]
|
D | RedactUriDeviceTest.java | 134 img.delete(); in testRedactedUri_single() 159 files.forEach(file -> file.delete()); in testRedactedUri_list() 234 img.delete(); in testQueryOnRedactionUri() 250 img.delete(); in testSharedRedactedUri_openFdForWrite() 266 img.delete(); in testSharedRedactedUri_openFdForRead() 283 img.delete(); in testSharedRedactedUri_openFileForRead() 298 img.delete(); in testSharedRedactedUri_query() 316 img.delete(); in testSharedRedactedUri_openFileForRead_withLocationPerm() 335 img.delete(); in testSharedRedactedUri_openFdForRead_withLocationPerm() 357 img.delete(); in testUnsharedRedactedUri_openFdForRead() [all …]
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | SettingsUtils.java | 50 delete(namespace, key); in set() 55 delete(namespace, key); in set() 111 public static void delete(@NonNull String namespace, @NonNull String key) { in delete() method in SettingsUtils 118 public static void delete(@NonNull String key) { in delete() method in SettingsUtils 119 delete(NAMESPACE_SECURE, key); in delete() 136 delete(namespace, key); in syncDelete() 226 delete(mNamespace, mKey); in close()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaScannerTest.java | 121 mMediaFile.delete(); in cleanup() 127 new File(mFileDir + "/" + f).delete(); in cleanup() 130 new File(mFileDir).delete(); in cleanup() 138 mContext.getContentResolver().delete(MediaStore.Audio.Media.getContentUri("external"), in cleanup() 225 nomedia.delete(); in testMediaScanner() 238 res.delete(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, in testMediaScanner() 241 res.delete(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, in testMediaScanner() 245 res.delete(MediaStore.Files.getContentUri("external"), in testMediaScanner() 248 res.delete(MediaStore.Files.getContentUri("external"), in testMediaScanner() 366 new File(file1).delete(); in testWildcardPaths() [all …]
|
D | MediaScannerNotificationTest.java | 70 assertTrue(noMedia.delete()); in testMediaScannerNotification() 116 assertTrue(new File(tmpPath, "foobar." + extensions[i]).delete()); in deleteTempFiles() 118 assertTrue(new File(tmpPath).delete()); in deleteTempFiles()
|
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/ |
D | ScopedStorageTest.java | 215 assertThat(otherAppExternalDataFile.delete()).isFalse(); in testManageExternalStorageCantReadWriteOtherAppExternalDir() 238 assertThat(otherAppPdf.delete()).isTrue(); in testManageExternalStorageCanDeleteOtherAppsContents() 241 assertThat(otherAppImage.delete()).isTrue(); in testManageExternalStorageCanDeleteOtherAppsContents() 244 assertThat(otherAppMusic.delete()).isTrue(); in testManageExternalStorageCanDeleteOtherAppsContents() 288 myAppPdf.delete(); in testAccess_file() 389 pdf.delete(); in testManageExternalStorageCanRenameOtherAppsContents() 390 pdfInObviouslyWrongPlace.delete(); in testManageExternalStorageCanRenameOtherAppsContents() 391 topLevelPdf.delete(); in testManageExternalStorageCanRenameOtherAppsContents() 392 musicFile.delete(); in testManageExternalStorageCanRenameOtherAppsContents() 485 assertThat(renamedMediaFile.delete()).isTrue(); in testManageExternalStorageDoesntSkipScanningDirtyNomediaDir() [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | RecoverySystemTest.java | 68 packageFile.delete(); in testVerify() 77 otacerts.delete(); in testVerify() 94 packageFile.delete(); in expectVerifyFail()
|
D | FileObserverTest.java | 79 testFile.delete(); in helpTearDown() 83 moveDestFile.delete(); in helpTearDown() 87 testDir.delete(); in helpTearDown() 107 dir.delete(); in tearDown() 151 testFile.delete(); // delete in helpTestFileObserver() 235 testFile.delete(); in verifyTriggeredEventsOnDir() 236 testDir.delete(); in verifyTriggeredEventsOnDir()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | BlockedNumberContractTest.java | 70 mContentResolver.delete(row, null, null); in tearDown() 308 mContentResolver.delete( in testDelete() 315 mContentResolver.delete( in testDelete() 322 mContentResolver.delete( in testDelete() 329 mContentResolver.delete( in testDelete() 335 assertEquals(1, mContentResolver.delete(insertedUri, null, null)); in testDelete() 338 mContentResolver.delete( in testDelete() 352 mContentResolver.delete(Uri.parse("foobar"), null, null); in testDelete_failsOnInvalidInputs() 359 mContentResolver.delete( in testDelete_failsOnInvalidInputs() 390 mContentResolver.delete(uri, null, null); in testProviderNotifiesChangesUsingContentObserver()
|
D | SmsBackupRestoreTest.java | 112 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()
|
/cts/hostsidetests/backup/fullbackupapp/src/android/cts/backup/fullbackupapp/ |
D | FullbackupTest.java | 129 mNoBackupFile.delete(); in deleteAllFiles() 130 mNoBackupFile2.delete(); in deleteAllFiles() 131 mDoBackupFile.delete(); in deleteAllFiles() 132 mDoBackupFile2.delete(); in deleteAllFiles()
|
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/ |
D | ContactsContract_RawContactsTest.java | 140 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()
|
D | ContactsContract_PinnedPositionsTest.java | 129 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/hostsidetests/numberblocking/app/src/com/android/cts/numberblocking/hostside/ |
D | NumberBlockingAppTest.java | 29 assertTrue(mContext.getContentResolver().delete( in testCleanupBlockedNumberAsPrimaryUserSucceeds() 54 assertEquals(1, mContext.getContentResolver().delete( in testUnblockNumberAsPrimaryUserSucceeds()
|
/cts/tools/vm-tests-tf/build/src/util/build/ |
D | JarBuildStep.java | 101 jarOutFile.delete(); in build() 107 tempFile.delete(); in build() 110 inputFile.fileName.delete(); in build()
|
/cts/tests/tests/provider/src/android/provider/cts/media/ |
D | MediaStore_Video_ThumbnailsTest.java | 134 assertEquals(1, mResolver.delete(videoUri, null, null)); in testGetThumbnail() 156 mResolver.delete(uri, null /* where clause */, null /* where args */); in testThumbnailGenerationAndCleanup() 197 mResolver.delete(fileUri, null /* where */, null /* where args */); in testThumbnailGenerationAndCleanup() 198 new File(sourcePath).delete(); in testThumbnailGenerationAndCleanup() 205 mResolver.delete(Media.EXTERNAL_CONTENT_URI, in insertVideo() 207 file.delete(); in insertVideo() 263 mResolver.delete(finalUri, null, null); in testInsertUpdateDelete()
|
/cts/hostsidetests/backup/FullBackupOnly/src/ |
D | FullBackupOnlyTest.java | 132 mKeyValueBackupFile.delete(); in deleteAllFiles() 133 mDoBackupFile.delete(); in deleteAllFiles() 134 mDoBackupFile2.delete(); in deleteAllFiles()
|
/cts/tests/inputmethod/mockspellchecker/src/com/android/cts/mockspellchecker/ |
D | SharedPrefsProvider.kt | 77 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/tests/tests/util/src/android/util/cts/ |
D | SparseArrayMapTest.java | 120 assertEquals(i, sam.delete(0, KEYS_1[i]).intValue()); in testDelete() 125 assertNull(sam.delete(0, KEYS_1[i])); in testDelete() 130 assertEquals(i, sam.delete(1, KEYS_1[i]).intValue()); in testDelete() 139 sam.delete(2); in testDelete() 193 sam.delete(100); in testNumMaps() 198 sam.delete(i - 1); in testNumMaps()
|
/cts/tests/tests/speech/src/android/speech/tts/cts/ |
D | TextToSpeechServiceTest.java | 73 sampleFile.delete(); in testSynthesizeToFile() 93 sampleFile.delete(); in testSynthesizeToFileWithFileObject() 116 sampleFile.delete(); in testSynthesizeToFileWithFileDescriptor() 143 sampleFile.delete(); in testMaxSpeechInputLength() 210 sampleFile.delete(); in testMediaPlayerFails() 227 sampleFile.delete(); in testAddPlayEarcon() 244 sampleFile.delete(); in testAddPlaySpeech()
|
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/db/ |
D | Database.java | 118 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/telephonyprovider/src/android/telephonyprovider/cts/ |
D | ThreadsTest.java | 57 contentResolver.delete(Telephony.Threads.CONTENT_URI, null, null); in cleanup() 58 contentResolver.delete(Telephony.Sms.CONTENT_URI, null, null); in cleanup() 76 mContentResolver.delete( in testThreadDeletion_doNotReuseThreadIdsFromEmptyThreads()
|
/cts/tests/BlobStore/src/com/android/cts/blob/ |
D | BlobStoreManagerTest.java | 139 mContext.getFilesDir().delete(); in tearDown() 154 blobData.delete(); in testGetCreateSession() 175 blobData.delete(); in testCreateBlobHandle_invalidArguments() 208 blobData.delete(); in testAbandonSession() 233 blobData.delete(); in testOpenReadWriteSession() 259 blobData.delete(); in testOpenSession_fromAnotherPkg() 286 blobData.delete(); in testOpenSessionAndAbandon() 325 blobData.delete(); in testCloseSession() 346 blobData.delete(); in testAllowPublicAccess() 369 blobData.delete(); in testAllowPublicAccess_abandonedSession() [all …]
|