Home
last modified time | relevance | path

Searched refs:FileUtils (Results 1 – 5 of 5) sorted by relevance

/system/timezone/distro/core/src/test/com/android/timezone/distro/
DFileUtilsTest.java75 FileUtils.deleteRecursive(dir); in testDeleteRecursive()
90 assertFalse(FileUtils.isSymlink(dir)); in testIsSymlink()
91 assertFalse(FileUtils.isSymlink(subDir)); in testIsSymlink()
92 assertFalse(FileUtils.isSymlink(fileInSubDir)); in testIsSymlink()
93 assertFalse(FileUtils.isSymlink(normalFile)); in testIsSymlink()
94 assertTrue(FileUtils.isSymlink(symlinkToDir)); in testIsSymlink()
95 assertTrue(FileUtils.isSymlink(symlinkToFile)); in testIsSymlink()
96 assertTrue(FileUtils.isSymlink(symlinkToFileInSubDir)); in testIsSymlink()
97 assertFalse(FileUtils.isSymlink(normalFileViaSymlink)); in testIsSymlink()
103 File actualSubFile = FileUtils.createSubFile(dir1, "file"); in testCreateSubFile()
[all …]
/system/timezone/distro/installer/src/main/com/android/timezone/distro/installer/
DTimeZoneDistroInstaller.java23 import com.android.timezone.distro.FileUtils;
161 FileUtils.deleteRecursive(oldStagedDataDir); in stageInstallWithErrorCode()
164 FileUtils.deleteRecursive(workingDir); in stageInstallWithErrorCode()
262 FileUtils.makeDirectoryWorldAccessible(workingDir); in stageInstallWithErrorCode()
271 FileUtils.rename(stagedTzDataDir, oldStagedDataDir); in stageInstallWithErrorCode()
276 FileUtils.rename(workingDir, stagedTzDataDir); in stageInstallWithErrorCode()
302 FileUtils.deleteRecursive(oldStagedDataDir); in stageUninstall()
305 FileUtils.deleteRecursive(workingDir); in stageUninstall()
316 FileUtils.rename(stagedTzDataDir, oldStagedDataDir); in stageUninstall()
327 FileUtils.ensureDirectoriesExist(workingDir, true /* makeWorldReadable */); in stageUninstall()
[all …]
/system/timezone/distro/core/src/main/com/android/timezone/distro/
DTimeZoneDistro.java134 FileUtils.ensureDirectoriesExist(targetDir, makeWorldReadable); in extractZipSafely()
145 File entryFile = FileUtils.createSubFile(targetDir, name); in extractZipSafely()
148 FileUtils.ensureDirectoriesExist(entryFile, makeWorldReadable); in extractZipSafely()
152 FileUtils.ensureDirectoriesExist( in extractZipSafely()
166 FileUtils.makeWorldReadable(entryFile); in extractZipSafely()
DFileUtils.java29 public final class FileUtils { class
31 private FileUtils() { in FileUtils() method in FileUtils
133 if (file.isDirectory() && !FileUtils.isSymlink(file)) { in deleteRecursive()
139 FileUtils.doDelete(file); in deleteRecursive()
148 FileUtils.doDelete(toDelete); in deleteRecursive()
/system/timezone/distro/installer/src/test/com/android/timezone/distro/installer/
DTimeZoneDistroInstallerTest.java20 import com.android.timezone.distro.FileUtils;
103 FileUtils.deleteRecursive(tempDir); in tearDown()
787 byte[] actualVersionBytes = FileUtils.readBytes(versionFile, expectedVersionBytes.length); in assertInstalledDistro()