Home
last modified time | relevance | path

Searched refs:fileToDelete (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/data/
DFilmstripItemBase.java73 File fileToDelete = new File(mData.getFilePath()); in delete() local
74 boolean deletionSucceeded = fileToDelete.delete(); in delete()
75 deleteIfEmptyCameraSubDir(fileToDelete.getParentFile()); in delete()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxStorageHostTest/src/com/android/tests/sdksandbox/host/
DSdkSandboxStorageHostTest.java588 final String fileToDelete = dataPath + "/cache/deleteme.txt"; in testSdkDataPackageDirectory_IsClearedOnClearAppData() local
589 getDevice().executeShellCommand("echo something to delete > " + fileToDelete); in testSdkDataPackageDirectory_IsClearedOnClearAppData()
590 assertThat(getDevice().doesFileExist(fileToDelete)).isTrue(); in testSdkDataPackageDirectory_IsClearedOnClearAppData()
627 final String fileToDelete = dataPath + "/cache/deleteme.txt"; in testSdkDataPackageDirectory_IsClearedOnFreeCache() local
628 getDevice().executeShellCommand("echo something to delete > " + fileToDelete); in testSdkDataPackageDirectory_IsClearedOnFreeCache()
629 assertThat(getDevice().doesFileExist(fileToDelete)).isTrue(); in testSdkDataPackageDirectory_IsClearedOnFreeCache()
666 final String fileToDelete = dataPath + "/cache/deleteme.txt"; in testSdkDataPackageDirectory_IsClearedOnClearCache() local
667 getDevice().executeShellCommand("echo something to delete > " + fileToDelete); in testSdkDataPackageDirectory_IsClearedOnClearCache()
668 assertThat(getDevice().doesFileExist(fileToDelete)).isTrue(); in testSdkDataPackageDirectory_IsClearedOnClearCache()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DCallLogProvider.java926 Path fileToDelete = pathToCallComposerDir.resolve(uri.getLastPathSegment()); in deleteCallComposerPicture() local
927 enforceValidCallLogPath(pathToCallComposerDir, fileToDelete, in deleteCallComposerPicture()
929 return Files.deleteIfExists(fileToDelete) ? 1 : 0; in deleteCallComposerPicture()
/packages/services/Telephony/src/com/android/phone/
DCarrierConfigLoader.java1466 File fileToDelete = new File(mContext.getFilesDir(), fileName); in overrideConfig() local
1467 fileToDelete.delete(); in overrideConfig()