/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 | 23 import java.io.File; 40 private final List<File> testFiles = new ArrayList<>(); 46 for (File tempFile : testFiles) { in tearDown() 109 File dir = createTempDir(); in testExtractZipSafely_goodZip() 110 File targetDir = new File(dir, "target"); in testExtractZipSafely_goodZip() 116 new File(targetDir, "leadingSlash"), in testExtractZipSafely_goodZip() 117 new File(targetDir, "absolute"), in testExtractZipSafely_goodZip() 118 new File(targetDir, "file"), in testExtractZipSafely_goodZip() 119 new File(targetDir, "subDir/subDir/subDir/file")); in testExtractZipSafely_goodZip() 121 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; 125 public void extractTo(File targetDir) throws IOException { in extractTo() 130 static void extractZipSafely(InputStream is, File targetDir, boolean makeWorldReadable) in extractZipSafely() 145 File entryFile = FileUtils.createSubFile(targetDir, name); in extractZipSafely()
|
/system/teeui/tools/framebufferizer/src/com/android/framebufferizer/utils/ |
D | Config.java | 40 … private static final String fileDir = System.getProperty("user.home") + File.separator + ".teeui"; 60 … String content = new String(Files.readAllBytes(Paths.get(fileDir + File.separator + fileName))); in getConfiguration() 64 …System.err.println("" + fileDir + File.separator + fileName + " file does not exists because the t… in getConfiguration() 67 …System.err.println("" + fileDir + File.separator + fileName + " file read/write permission denied.… in getConfiguration() 70 … System.err.println("Exception while opening file " + fileDir + File.separator + fileName + "."); in getConfiguration() 73 … System.err.println("Invalid json format for file " + fileDir + File.separator + fileName + "."); in getConfiguration() 76 … System.err.println("Exception while parsing file " + fileDir + File.separator + fileName + "."); in getConfiguration() 86 File directory = new File(fileDir); in saveConfiguration() 88 File file = new File(directory, fileName); in saveConfiguration() 96 …System.err.println("Exception while saving configuration, " + fileDir + File.separator + fileName … in saveConfiguration() [all …]
|
/system/timezone/distro/installer/src/main/com/android/timezone/distro/installer/ |
D | TimeZoneDistroInstaller.java | 30 import java.io.File; 117 private final File baseVersionFile; 118 private final File oldStagedDataDir; 119 private final File stagedTzDataDir; 120 private final File currentTzDataDir; 121 private final File workingDir; 123 public TimeZoneDistroInstaller(String logTag, File baseVersionFile, File installDir) { in TimeZoneDistroInstaller() 126 oldStagedDataDir = new File(installDir, OLD_TZ_DATA_DIR_NAME); in TimeZoneDistroInstaller() 127 stagedTzDataDir = new File(installDir, STAGED_TZ_DATA_DIR_NAME); in TimeZoneDistroInstaller() 128 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 | 28 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; 79 File f = new File(args[0]); in main() 112 File outputDistroDir = getMandatoryPropertyFile(properties, "output.distro.dir"); in main() 113 File outputVersionFile = new File(getMandatoryProperty(properties, "output.version.file")); in main() 122 File outputDistroFile = new File(outputDistroDir, TimeZoneDistro.FILE_NAME); in main() 129 private static File getMandatoryPropertyFile(Properties p, String propertyName) { in getMandatoryPropertyFile() 131 File file = new File(fileName); in getMandatoryPropertyFile() 151 private static Properties loadProperties(File f) throws IOException { in loadProperties()
|
/system/timezone/debug_tools/host/main/java/ |
D | ZoneSplitter.java | 17 import java.io.File; 44 private final File tzData; 45 private final File outputDir; 48 this.tzData = new File(tzData); in ZoneSplitter() 49 this.outputDir = new File(outputDir); in ZoneSplitter() 83 File zicFilesDir = new File(outputDir, "zones"); in execute() 95 static MappedByteBuffer createMappedByteBuffer(File tzData) throws IOException { in createMappedByteBuffer() 111 private static void writeVersionFile(MappedByteBuffer mappedFile, File targetDir) in writeVersionFile() 121 writeStringUtf8ToFile(new File(targetDir, "version"), in writeVersionFile() 126 int dataOffset, File outputDir) throws IOException { in extractZicFiles() [all …]
|
D | TzFileDumper.java | 19 import java.io.File; 44 File input = new File(args[0]); in main() 45 File output = new File(args[1]); in main() 52 for (File inputFile : input.listFiles()) { in main() 54 File outputFile = new File(output, inputFile.getName() + ".csv"); in main() 67 private final File inputFile; 68 private final File outputFile; 70 private TzFileDumper(File inputFile, File outputFile) { in TzFileDumper()
|
/system/gsid/tests/ |
D | DSUEndtoEndTest.java | 38 import java.io.File; 73 private File mUnsparseSystemImage; 88 File imgs = ((IDeviceBuildInfo) buildInfo).getDeviceImageFile(); in testDSU() 90 File otaTools = buildInfo.getFile("otatools.zip"); in testDSU() 91 File tempdir = ZipUtil2.extractZipToTemp(otaTools, "otatools"); in testDSU() 92 File system = ZipUtil2.extractFileFromZip(new ZipFile(imgs), "system.img"); in testDSU() 94 File superImg = ZipUtil2.extractFileFromZip(new ZipFile(imgs), "super.img"); in testDSU() 95 String lpunpackPath = new File(tempdir, LPUNPACK_PATH).getAbsolutePath(); in testDSU() 101 mSystemImagePath = new File(outputDir, "system_a.img").getAbsolutePath(); in testDSU() 114 simg2imgPath = new File(tempdir, SIMG2IMG_PATH).getAbsolutePath(); in testDSU() [all …]
|
/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 90 virtual bool GetFiles(std::vector<File>* files) const = 0; argument
|
D | boot_img_filesystem_stub.cc | 33 FilesystemInterface::File BootImgFilesystem::GetFile( in GetFile() 40 bool BootImgFilesystem::GetFiles(std::vector<File>* /* files */) const { in GetFiles()
|
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()
|
/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; 105 File packageDir = new File(Paths.get(outDir, packageName.replace(".", "/")).toString()); in main() 112 File includeDir = new File(Paths.get(outDir, "include").toString()); in main() 114 FileSystem fs = new FileSystem(new File(outDir)); in main()
|
/system/core/adb/fastdeploy/deployagent/test/com/android/fastdeploy/ |
D | ApkArchiveTest.java | 31 import java.io.File; 37 private static final File SAMPLE_APK = new File("/data/local/tmp/FastDeployTests/sample.apk"); 38 private static final File WRONG_APK = new File("/data/local/tmp/FastDeployTests/sample.cd");
|
/system/timezone/distro/tools/src/main/com/android/timezone/distro/builder/ |
D | TimeZoneDistroBuilder.java | 23 import java.io.File; 70 public TimeZoneDistroBuilder setTzDataFile(File tzDataFile) throws IOException { in setTzDataFile() 85 public TimeZoneDistroBuilder setIcuDataFile(File icuDataFile) throws IOException { in setIcuDataFile() 94 public TimeZoneDistroBuilder setTzLookupFile(File tzLookupFile) throws IOException { in setTzLookupFile() 103 public TimeZoneDistroBuilder setTelephonyLookupFile(File telephonyLookupFile) in setTelephonyLookupFile() 183 private static byte[] readFileAsByteArray(File file) throws IOException { in readFileAsByteArray() 198 private String readFileAsUtf8(File file) throws IOException { in readFileAsUtf8()
|
/system/apex/tests/util/com/android/tests/util/ |
D | ModuleTestUtils.java | 39 import java.io.File; 75 public ApexInfo getApexInfo(File apex) { in getApexInfo() 95 public File getTestFile(String testFileName) throws IOException { in getTestFile() 96 File testFile = null; in getTestFile() 100 testFile = searchTestFile(new File(testcasesPath), testFileName); in getTestFile() 106 File hostLinkedDir = getBuild().getFile(BuildInfoFileKey.HOST_LINKED_DIR); in getTestFile() 115 File buildInfoFile = getBuild().getFile(testFileName); in getTestFile() 137 private File searchTestFile(File baseSearchFile, String testFileName) { in searchTestFile() 139 File testFile = FileUtil.findFile(baseSearchFile, testFileName); in searchTestFile()
|
/system/timezone/apex/tests/src/java/android/tzdata/mts/ |
D | TimeZoneVersionTest.java | 26 import java.io.File; 40 private static final File TIME_ZONE_MODULE_VERSION_FILE = 41 new File("/apex/com.android.tzdata/etc/tz/tz_version"); 80 private static byte[] readBytes(File file, int maxBytes) throws IOException { in readBytes()
|
/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/simpleperf/app_api/java/com/android/simpleperf/ |
D | ProfileSession.java | 27 import java.io.File; 234 File file = new File(path); in isExecutableFile() 241 File file = new File(path); in findSimpleperfInTempDir() 295 File file = new File(mSimpleperfDataDir); in createSimpleperfDataDir() 316 ProcessBuilder pb = new ProcessBuilder(args).directory(new File(mSimpleperfDataDir)); in createSimpleperfProcess()
|