/system/timezone/distro/core/src/test/com/android/timezone/distro/ |
D | FileUtilsTest.java | 26 import java.io.File; 41 private List<File> testFiles = new ArrayList<>(); 47 for (File tempFile : testFiles) { in tearDown() 54 File dir = createTempDir(); in testDeleteRecursive() 55 File file1 = createRegularFile(dir, "file1"); in testDeleteRecursive() 56 File file2 = createRegularFile(dir, "file2"); in testDeleteRecursive() 57 File symLink1 = createSymlink(file1, dir, "symLink1"); in testDeleteRecursive() 58 File subDir = createDir(dir, "subDir"); in testDeleteRecursive() 59 File file3 = createRegularFile(subDir, "subFile1"); in testDeleteRecursive() 60 File file4 = createRegularFile(subDir, "subFile2"); in testDeleteRecursive() [all …]
|
D | TimeZoneDistroTest.java | 25 import java.io.File; 41 private final List<File> testFiles = new ArrayList<>(); 47 for (File tempFile : testFiles) { in tearDown() 110 File dir = createTempDir(); in testExtractZipSafely_goodZip() 111 File targetDir = new File(dir, "target"); in testExtractZipSafely_goodZip() 117 new File(targetDir, "leadingSlash"), in testExtractZipSafely_goodZip() 118 new File(targetDir, "absolute"), in testExtractZipSafely_goodZip() 119 new File(targetDir, "file"), in testExtractZipSafely_goodZip() 120 new File(targetDir, "subDir/subDir/subDir/file")); in testExtractZipSafely_goodZip() 122 new File(targetDir, "subDir/subDir2"), in testExtractZipSafely_goodZip() [all …]
|
/system/timezone/distro/core/src/main/com/android/timezone/distro/ |
D | FileUtils.java | 18 import java.io.File; 41 public static File createSubFile(File parentDir, String name) throws IOException { in createSubFile() 44 File subFile = new File(parentDir, name).getCanonicalFile(); in createSubFile() 62 public static void ensureDirectoriesExist(File dir, boolean makeWorldReadable) in ensureDirectoriesExist() 64 LinkedList<File> dirs = new LinkedList<>(); in ensureDirectoriesExist() 65 File currentDir = dir; in ensureDirectoriesExist() 71 for (File dirToCheck : dirs) { in ensureDirectoriesExist() 85 public static void makeDirectoryWorldAccessible(File directory) throws IOException { in makeDirectoryWorldAccessible() 95 public static void makeWorldReadable(File file) throws IOException { in makeWorldReadable() 101 public static void rename(File from, File to) throws IOException { in rename() [all …]
|
D | TimeZoneDistro.java | 20 import java.io.File; 122 public void extractTo(File targetDir) throws IOException { in extractTo() 127 static void extractZipSafely(InputStream is, File targetDir, boolean makeWorldReadable) in extractZipSafely() 142 File entryFile = FileUtils.createSubFile(targetDir, name); in extractZipSafely()
|
/system/timezone/distro/installer/src/main/com/android/timezone/distro/installer/ |
D | TimeZoneDistroInstaller.java | 27 import java.io.File; 115 private final File baseVersionFile; 116 private final File oldStagedDataDir; 117 private final File stagedTzDataDir; 118 private final File currentTzDataDir; 119 private final File workingDir; 121 public TimeZoneDistroInstaller(String logTag, File baseVersionFile, File installDir) { in TimeZoneDistroInstaller() 124 oldStagedDataDir = new File(installDir, OLD_TZ_DATA_DIR_NAME); in TimeZoneDistroInstaller() 125 stagedTzDataDir = new File(installDir, STAGED_TZ_DATA_DIR_NAME); in TimeZoneDistroInstaller() 126 currentTzDataDir = new File(installDir, CURRENT_TZ_DATA_DIR_NAME); in TimeZoneDistroInstaller() [all …]
|
/system/timezone/distro/installer/src/test/com/android/timezone/distro/installer/ |
D | TimeZoneDistroInstallerTest.java | 27 import java.io.File; 58 private File tempDir; 59 private File testInstallDir; 60 private File testBaseDataDir; 76 File testBaseVersionFile = new File(testBaseDataDir, TzDataSetVersion.DEFAULT_FILE_NAME); in setUp() 87 private static File createUniqueDirectory(File rootDir, String prefix) throws Exception { in createUniqueDirectory() 88 File dir = File.createTempFile(prefix, "", rootDir); in createUniqueDirectory() 94 private static File createSubDirectory(File parent, String subDirName) { in createSubDirectory() 95 File dir = new File(parent, subDirName); in createSubDirectory() 110 File doesNotExist = new File(testBaseDataDir, "doesNotExist"); in testStageInstallWithErrorCode_badBaseFile() [all …]
|
/system/extras/ioblame/ |
D | ioblame-gmail-run.example | 10 File: / 13 File: /app/Chrome/Chrome.apk 27 File: /app/Gmail2Light/Gmail2Light.apk 33 File: /bin/toybox 37 File: /data/com.google.android.gm/app_webview/GPUCache/index 40 File: /data/com.google.android.gm/app_webview/metrics_guid 43 File: /data/com.google.android.gm/files/deviceName 46 File: /data/com.google.android.gm/files/gaClientId 49 File: /data/com.google.android.gm/shared_prefs/Account-android.smoke.fast@gmail.com.xml 52 File: /data/com.google.android.gm/shared_prefs/AndroidMail.Main.xml [all …]
|
D | ioblame-gmail-launch.example | 17 File: / 20 File: /app/Gmail2Light/Gmail2Light.apk 24 File: /bin/am 27 File: /bin/cmd 31 File: /bin/toybox 35 File: /data/com.google.android.gm/files/deviceName 38 File: /data/com.google.android.gm/shared_prefs/Account-android.smoke.fast@gmail.com.xml 41 File: /data/com.google.android.gm/shared_prefs/AndroidMail.Main.xml 44 File: /data/com.google.android.gm/shared_prefs/c9edm_account-1303398453.xml 47 File: /data/com.google.android.gm/shared_prefs/c9edm_account-2137146394.xml [all …]
|
/system/timezone/distro/tools/src/main/com/android/timezone/distro/tools/ |
D | CreateTimeZoneDistro.java | 24 import java.io.File; 77 File f = new File(args[0]); in main() 108 File outputDistroDir = getMandatoryPropertyFile(properties, "output.distro.dir"); in main() 109 File outputVersionFile = new File(getMandatoryProperty(properties, "output.version.file")); in main() 118 File outputDistroFile = new File(outputDistroDir, TimeZoneDistro.FILE_NAME); in main() 125 private static File getMandatoryPropertyFile(Properties p, String propertyName) { in getMandatoryPropertyFile() 127 File file = new File(fileName); in getMandatoryPropertyFile() 147 private static Properties loadProperties(File f) throws IOException { in loadProperties()
|
/system/apex/tests/src/com/android/tests/apex/ |
D | ApexTestUtils.java | 33 import java.io.File; 59 ApexInfo getApexInfo(File apex) { in getApexInfo() 79 File getTestFile(String testFileName) throws IOException { in getTestFile() 80 File testFile = null; in getTestFile() 84 testFile = searchTestFile(new File(testcasesPath), testFileName); in getTestFile() 90 File hostLinkedDir = getBuild().getFile(BuildInfoFileKey.HOST_LINKED_DIR); in getTestFile() 99 File tzdataFile = getBuild().getFile(testFileName); in getTestFile() 134 private File searchTestFile(File baseSearchFile, String testFileName) { in searchTestFile() 136 File testFile = FileUtil.findFile(baseSearchFile, testFileName); in searchTestFile()
|
/system/update_engine/payload_generator/ |
D | squashfs_filesystem_unittest.cc | 79 vector<FilesystemInterface::File> files; in CheckSquashfs() 82 map<string, FilesystemInterface::File> map_files; in CheckSquashfs() 93 [](const FilesystemInterface::File& a, in CheckSquashfs() 94 const FilesystemInterface::File& b) { in CheckSquashfs() 99 auto overlap_check = [](const FilesystemInterface::File& a, in CheckSquashfs() 100 const FilesystemInterface::File& b) { in CheckSquashfs() 121 vector<FilesystemInterface::File> files; in TEST_F() 125 FilesystemInterface::File file; in TEST_F() 139 vector<FilesystemInterface::File> files; in TEST_F() 143 FilesystemInterface::File file; in TEST_F() [all …]
|
D | filesystem_interface.h | 47 struct File { struct 48 File() { memset(&file_stat, 0, sizeof(file_stat)); } in File() argument 83 virtual bool GetFiles(std::vector<File>* files) const = 0; argument
|
D | ext2_filesystem.cc | 87 std::map<ext2_ino_t, FilesystemInterface::File>* inodes = nullptr; 89 vector<FilesystemInterface::File>* files = nullptr; 161 bool Ext2Filesystem::GetFiles(vector<File>* files) const { in GetFiles() 168 std::map<ext2_ino_t, File> inodes; in GetFiles() 195 File& file = inodes[it_ino]; in GetFiles() 290 File inode_file; in GetFiles() 302 File free_space; in GetFiles() 321 File file = ino_file.second; in GetFiles()
|
D | mapfile_filesystem_unittest.cc | 86 vector<FilesystemInterface::File> files; in TEST_F() 89 map<string, FilesystemInterface::File> map_files; in TEST_F() 118 vector<FilesystemInterface::File> files; in TEST_F() 130 vector<FilesystemInterface::File> files; in TEST_F()
|
D | ext2_filesystem_unittest.cc | 83 vector<FilesystemInterface::File> files; in TEST_F() 86 map<string, FilesystemInterface::File> map_files; in TEST_F() 110 vector<FilesystemInterface::File> files; in TEST_F() 111 map<string, FilesystemInterface::File> map_files; in TEST_F() 156 FilesystemInterface::File file; in TEST_F()
|
D | fake_filesystem.h | 40 bool GetFiles(std::vector<File>* files) const override; 59 std::vector<File> files_;
|
D | raw_filesystem.cc | 47 bool RawFilesystem::GetFiles(std::vector<File>* files) const { in GetFiles() 49 File file; in GetFiles()
|
D | fake_filesystem.cc | 34 bool FakeFilesystem::GetFiles(std::vector<File>* files) const { in GetFiles() 41 File file; in AddFile()
|
/system/tools/xsdc/src/com/android/xsdc/ |
D | FileSystem.java | 19 import java.io.File; 26 private File rootDirectory; 29 public FileSystem(File rootDirectory) { in FileSystem() 39 return new PrintWriter(new File(rootDirectory, fileName)); in getPrintWriter()
|
D | Main.java | 19 import java.io.File; 99 File packageDir = new File(Paths.get(outDir, packageName.replace(".", "/")).toString()); in main() 105 File includeDir = new File(Paths.get(outDir, "include").toString()); in main() 107 FileSystem fs = new FileSystem(new File(outDir)); in main()
|
/system/extras/simpleperf/app_api/java/com/android/simpleperf/ |
D | ProfileSession.java | 20 import java.io.File; 191 File file = new File(path); in isExecutableFile() 197 File file = new File(path); in findSimpleperfInTempDir() 247 File file = new File(simpleperfDataDir); in createSimpleperfDataDir() 268 ProcessBuilder pb = new ProcessBuilder(args).directory(new File(simpleperfDataDir)); in createSimpleperfProcess()
|
/system/timezone/distro/tools/src/main/com/android/timezone/distro/builder/ |
D | TimeZoneDistroBuilder.java | 23 import java.io.File; 69 public TimeZoneDistroBuilder setTzDataFile(File tzDataFile) throws IOException { in setTzDataFile() 84 public TimeZoneDistroBuilder setIcuDataFile(File icuDataFile) throws IOException { in setIcuDataFile() 93 public TimeZoneDistroBuilder setTzLookupFile(File tzLookupFile) throws IOException { in setTzLookupFile() 168 private static byte[] readFileAsByteArray(File file) throws IOException { in readFileAsByteArray() 183 private String readFileAsUtf8(File file) throws IOException { in readFileAsUtf8()
|
/system/tools/hidl/docs/src/parser/ |
D | config.kt | 19 import java.io.File in <lambda>() 42 val files = mutableListOf<File>() 105 val allFiles = mutableListOf<File>() in parseArgs() 134 …private fun findFiles(dir: File, files: MutableList<File>, ext: String, excludedPaths: List<Path>)… in findFiles()
|
/system/extras/boottime_tools/bootanalyze/stressfs/src/com/android/car/test/stressfs/ |
D | WritingService.java | 76 private final File mFile; 82 File file, in WriteToDisk() 125 File dataPartitionFile = getFileStreamPath(FILENAME_PREFIX + UUID.randomUUID()); in onBind() 126 File externalPartitionFile = new File( in onBind()
|
/system/extras/ioshark/ |
D | README | 40 File State : Table of File Entries. Each entry describes a file 41 File Op : Table of File Operations. One entry describes one operation 56 File State { 62 File Op {
|