Home
last modified time | relevance | path

Searched refs:fileOrDirectory (Results 1 – 3 of 3) sorted by relevance

/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/vendor/
DFileUtils.java80 public static void deleteDirectory(File fileOrDirectory) { in deleteDirectory() argument
81 if (fileOrDirectory.isDirectory()) { in deleteDirectory()
82 for (File child : fileOrDirectory.listFiles()) { in deleteDirectory()
86 fileOrDirectory.delete(); in deleteDirectory()
/packages/apps/TV/common/src/com/android/tv/common/util/
DCommonUtils.java141 public static boolean deleteDirOrFile(File fileOrDirectory) { in deleteDirOrFile() argument
142 if (fileOrDirectory.isDirectory()) { in deleteDirOrFile()
143 File[] files = fileOrDirectory.listFiles(); in deleteDirOrFile()
151 return fileOrDirectory.delete(); in deleteDirOrFile()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/testcommon/
DTestUtils.kt48 fun deleteRecursive(fileOrDirectory: File) { in <lambda>()
49 fileOrDirectory.deleteRecursively() in <lambda>()