/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
D | FatLfnDirectory.java | 63 final AbstractDirectory dir; field in FatLfnDirectory 65 FatLfnDirectory(AbstractDirectory dir, Fat fat, boolean readOnly) in FatLfnDirectory() argument 70 if ((dir == null) || (fat == null)) throw new NullPointerException(); in FatLfnDirectory() 73 this.dir = dir; in FatLfnDirectory() 139 dir.addEntries(entry.compactForm()); in addFile() 146 dir.setDirty(); in addFile() 191 final FatDirectoryEntry real = dir.createSub(fat); in addDirectory() 197 dir.addEntries(e.compactForm()); in addDirectory() 202 dir.removeEntry(real); in addDirectory() 242 final int size = dir.getEntryCount(); in parseLfn() [all …]
|
D | FatLfnDirectoryEntry.java | 74 FatLfnDirectory dir, int offset, int len) { in extract() argument 76 final FatDirectoryEntry realEntry = dir.dir.getEntry(offset + len - 1); in extract() 87 FatDirectoryEntry entry = dir.dir.getEntry(i + offset); in extract() 94 return new FatLfnDirectoryEntry(dir, realEntry, fileName); in extract()
|
D | AbstractDirectory.java | 316 final ClusterChainDirectory dir = in createSub() local 323 dot.setStartCluster(dir.getStorageCluster()); in createSub() 325 dir.addEntry(dot); in createSub() 333 dir.addEntry(dotDot); in createSub() 335 dir.flush(); in createSub()
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/ |
D | FileUtil.java | 854 public static File findFile(File dir, String fileName) { in findFile() argument 855 if (dir.listFiles() != null) { in findFile() 856 for (File file : dir.listFiles()) { in findFile() 960 public static List<File> collectJars(File dir) { in collectJars() argument 962 File[] jarFiles = dir.listFiles(new JarFilter()); in collectJars() 964 list.addAll(Arrays.asList(dir.listFiles(new JarFilter()))); in collectJars() 974 public boolean accept(File dir, String name) { in accept() argument 1018 public static File createZip(File dir) throws IOException { in createZip() argument 1019 return ZipUtil.createZip(dir); in createZip() 1032 public static void createZip(File dir, File zipFile) throws IOException { in createZip() argument [all …]
|
D | ZipUtil.java | 147 public static File createZip(File dir) throws IOException { in createZip() argument 148 return createZip(dir, DEFAULT_DIRNAME); in createZip() 160 public static File createZip(File dir, String name) throws IOException { in createZip() argument 162 createZip(dir, zipFile); in createZip() 174 public static void createZip(File dir, File zipFile) throws IOException { in createZip() argument 179 addToZip(out, dir, new LinkedList<String>()); in createZip()
|
D | VersionParser.java | 46 File dir = getTradefedJarDir(); in getPackageVersion() local 47 if (dir != null) { in getPackageVersion() 48 File versionFile = new File(dir, VERSION_FILE); in getPackageVersion() 58 CLog.e("Did not find Version file in directory: %s", dir.getAbsolutePath()); in getPackageVersion()
|
/tools/tradefederation/core/ |
D | Android.mk | 15 LOCAL_PATH := $(call my-dir) 26 …$(call intermediates-dir-for,JAVA_LIBRARIES,tradefed-no-fwk,HOST)/javalib.jar:$(HOST_OUT)/tradefed… 29 …$(call intermediates-dir-for,JAVA_LIBRARIES,tradefed-test-framework,HOST)/javalib.jar:$(HOST_OUT)/… 32 …$(call intermediates-dir-for,JAVA_LIBRARIES,tradefed-isolation,HOST)/javalib.jar:$(HOST_OUT)/trade… 64 tradefed_dist_copy_pairs := $(call intermediates-dir-for,JAVA_LIBRARIES,tradefed-no-fwk,HOST,COMMON… 65 tradefed_dist_copy_pairs += $(foreach m, $(tradefed_dist_host_jars), $(call intermediates-dir-for,J… 67 tradefed_dist_copy_pairs += $(foreach m, $(tradefed_dist_test_apks), $(call intermediates-dir-for,A… 73 tradefed_dist_intermediates := $(call intermediates-dir-for,PACKAGING,tradefed_dist,HOST,COMMON) 77 rm -rf $(dir $@)/tmp && mkdir -p $(dir $@)/tmp 79 cp -f $(call word-colon,1,$(f)) $(dir $@)/tmp/$(call word-colon,2,$(f)) &&) true [all …]
|
/tools/test/graphicsbenchmark/ |
D | Android.mk | 16 LOCAL_PATH:= $(call my-dir) 38 $(call intermediates-dir-for,JAVA_LIBRARIES,$(m),HOST,COMMON)/javalib.jar:gamecore/bin/$(m).jar) 40 …$(call intermediates-dir-for,NATIVE_TESTS,$(m))/$(m)$(bit_suffix):gamecore/testcases/$(TARGET_ARCH… 42 $(call intermediates-dir-for,APPS,$(m))/package.apk:gamecore/testcases/$(m).apk) 54 gamecore_dist_intermediates := $(call intermediates-dir-for,PACKAGING,gamecore_dist,HOST,COMMON) 58 rm -rf $(dir $@) && mkdir -p $(dir $@)/gamecore 59 mkdir -p $(dir $@)/gamecore/bin 60 mkdir -p $(dir $@)/gamecore/testcases/$(TARGET_ARCH) 62 cp -f $(call word-colon,1,$(p)) $(dir $@)/$(call word-colon,2,$(p)) &&) true 63 echo $(BUILD_NUMBER_FROM_FILE) > $(dir $@)/gamecore/version.txt [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | SystemUtil.java | 86 File dir = new File(testCasesDirName); in getExternalTestCasesDirs() local 87 if (dir.exists() && dir.isDirectory()) { in getExternalTestCasesDirs() 89 testCasesDirs.add(dir); in getExternalTestCasesDirs() 112 File dir = new File(var); in getExternalTestCasesDir() local 113 if (dir.exists() && dir.isDirectory()) { in getExternalTestCasesDir() 114 CLog.d("Found test case dir: %s for %s.", dir.getAbsolutePath(), envVariable.name()); in getExternalTestCasesDir() 115 return dir; in getExternalTestCasesDir()
|
D | BuildTestsZipUtils.java | 55 for (File dir : altDirs) { in getApkFile() 56 dirs.add(dir); in getApkFile() 59 dirs.add(FileUtil.getFileForPath(dir, "DATA", "app")); in getApkFile() 60 dirs.add(FileUtil.getFileForPath(dir, "DATA", "app", apkBase)); in getApkFile() 61 dirs.add(FileUtil.getFileForPath(dir, "DATA", "priv-app", apkBase)); in getApkFile() 63 dirs.add(FileUtil.getFileForPath(dir, "data", "app", apkBase)); in getApkFile() 113 for (File dir : dirs) { in getApkFile() 115 File testAppFile = FileUtil.findFile(dir, apkFileName); in getApkFile()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | NativeDeviceTest.java | 357 File dir = FileUtil.createTempDir("tf-test"); in testPullDir_nothingToDo() local 363 boolean res = mTestDevice.pullDir("/some_device_path/screenshots/", dir); in testPullDir_nothingToDo() 365 assertTrue(dir.list().length == 0); in testPullDir_nothingToDo() 367 FileUtil.recursiveDelete(dir); in testPullDir_nothingToDo() 413 File dir = FileUtil.createTempDir("tf-test"); in testPullDir() local 432 boolean res = mTestDevice.pullDir("/some_device_path/", dir); in testPullDir() 434 assertEquals(2, dir.list().length); in testPullDir() 435 assertTrue(Arrays.asList(dir.list()).contains("fakeFile")); in testPullDir() 436 assertTrue(Arrays.asList(dir.list()).contains("fakeDir")); in testPullDir() 438 FileUtil.recursiveDelete(dir); in testPullDir() [all …]
|
/tools/repohooks/ |
D | pre-upload.py | 294 project = rh.Project(name=project_name, dir=proj_dir, remote=remote) 451 if opts.dir is None: 456 opts.dir = os.path.dirname(os.path.abspath(git_dir)) 457 elif not os.path.isdir(opts.dir): 458 parser.error('Invalid dir: %s' % opts.dir) 459 elif not rh.git.is_git_repository(opts.dir): 460 parser.error('Not a git repository: %s' % opts.dir) 465 opts.project = _identify_project(opts.dir) 467 parser.error("Repo couldn't identify the project of %s" % opts.dir) 469 if _run_project_hooks(opts.project, proj_dir=opts.dir,
|
/tools/tradefederation/core/src/com/android/tradefed/build/ |
D | OtatoolsBuildInfo.java | 41 public void setSecurityDir(File dir, String version) { in setSecurityDir() argument 42 setFile(SECURITY_DIR_NAME, dir, version); in setSecurityDir() 55 public void setBinDir(File dir, String version) { in setBinDir() argument 56 setFile(BIN_DIR_NAME, dir, version); in setBinDir() 69 public void setFrameworkDir(File dir, String version) { in setFrameworkDir() argument 70 setFile(FRAMEWORK_DIR_NAME, dir, version); in setFrameworkDir() 83 public void setReleasetoolsDir(File dir, String version) { in setReleasetoolsDir() argument 84 setFile(RELEASETOOLS_DIR_NAME, dir, version); in setReleasetoolsDir()
|
/tools/tradefederation/core/src/com/android/tradefed/log/ |
D | LogRegistry.java | 241 private void saveGlobalLogToDir(File dir) { in saveGlobalLogToDir() argument 243 saveLog(GLOBAL_LOG_PREFIX, globalLog, dir); in saveGlobalLogToDir() 252 private void saveHistoryLogToDir(File dir) { in saveHistoryLogToDir() argument 254 saveLog(HISTORY_LOG_PREFIX, globalLog, dir); in saveHistoryLogToDir() 293 public void dumpLogsToDir(File dir) { in dumpLogsToDir() argument 299 saveLog(filePrefix, logSource, dir); in dumpLogsToDir() 304 saveHistoryLogToDir(dir); in dumpLogsToDir() 306 saveGlobalLogToDir(dir); in dumpLogsToDir()
|
/tools/tradefederation/core/src/com/android/tradefed/config/ |
D | ConfigurationUtil.java | 271 for (File dir : dirs) { in getConfigNamesFileFromDirs() 273 dir = new File(dir, subPath); in getConfigNamesFileFromDirs() 275 if (!dir.isDirectory()) { in getConfigNamesFileFromDirs() 276 CLog.d("%s doesn't exist or is not a directory.", dir.getAbsolutePath()); in getConfigNamesFileFromDirs() 281 configNames.addAll(FileUtil.findFilesObject(dir, configNamePattern)); in getConfigNamesFileFromDirs() 284 CLog.w("Failed to get test config files from directory %s", dir.getAbsolutePath()); in getConfigNamesFileFromDirs()
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | DocAnalyzer.kt | 708 val dir = File(tmp, relative) in <lambda>() constant 709 if (!dir.isDirectory) { in <lambda>() 710 dir.mkdirs() in <lambda>() 713 return java.nio.file.Files.createTempDirectory(dir.toPath(), null).toFile() in <lambda>() 716 val dir = File(System.getProperty("java.io.tmpdir"), relative) in <lambda>() constant 717 if (create && !dir.isDirectory) { in <lambda>() 718 dir.mkdirs() in <lambda>() 720 return dir in <lambda>()
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/extras/ |
D | ImportUtils.kt | 49 var dir = File(".").absoluteFile in findSampleData() variable 50 while (!File(dir, "sample_data").exists()) { in findSampleData() 51 dir = dir.parentFile in findSampleData() 52 if (dir == null) { in findSampleData() 56 return File(dir, "sample_data").absolutePath in findSampleData()
|
/tools/tradefederation/core/src/com/android/tradefed/cluster/ |
D | ClusterLogSaver.java | 132 private Stream<Path> getPathStream(final File dir, final Pattern pattern) throws IOException { in getPathStream() argument 134 dir.toPath(), in getPathStream() 142 private Set<File> findFilesRecursively(final File dir, final String regex) { in findFilesRecursively() argument 144 try (final Stream<Path> stream = getPathStream(dir, pattern)) { in findFilesRecursively() 175 final File dir, in findTestContextFile() argument 180 try (Stream<Path> stream = getPathStream(dir, pattern)) { in findTestContextFile() 196 Path relPath = dir.toPath().relativize(p); in findTestContextFile()
|
D | SubprocessConfigBuilder.java | 69 public SubprocessConfigBuilder setWorkingDir(File dir) { in setWorkingDir() argument 70 mWorkDir = dir; in setWorkingDir() 96 final File dir = new File(path.substring(0, path.length() - 1)); in build() local 97 if (!dir.exists()) { in build() 101 dir.listFiles((parent, name) -> name.toLowerCase().endsWith(".jar"))) { in build()
|
D | TestOutputUploader.java | 65 final File dir = new File(new URL(uploadUrl).getPath()); in uploadFile() local 66 if (!dir.exists()) { in uploadFile() 67 dir.mkdirs(); in uploadFile() 69 final File destFile = new File(dir, file.getName()); in uploadFile()
|
/tools/test/graphicsbenchmark/dist/ |
D | README | 4 Usage: ./run_gamecore.sh [--all] [--apk-info=file] [--apk-dir=dir] 10 --apk-dir=dir Directory containing the APKs for qualifications. If --apk-info is 11 not specified and a file named 'apk-info.xml' exists in --apk-dir,
|
/tools/metalava/src/main/java/com/android/tools/metalava/stub/ |
D | StubWriter.kt | 151 val dir = File(stubsDir, relative) in <lambda>() constant 152 if (create && !dir.isDirectory) { in <lambda>() 153 val ok = dir.mkdirs() in <lambda>() 155 throw IOException("Could not create $dir") in <lambda>() 159 return dir in <lambda>()
|
/tools/metalava/src/test/java/com/android/tools/metalava/ |
D | SymlinkTest.kt | 75 projectSetup = { dir -> in <lambda>() method 78 val file = File(dir, "src/test/pkg/sub1/sub2") in <lambda>() 81 java.nio.file.Files.createSymbolicLink(symlink, dir.toPath()) in <lambda>() 84 java.nio.file.Files.createSymbolicLink(git, dir.toPath()) in <lambda>()
|
D | BaselineTest.kt | 132 projectSetup = { dir -> in <lambda>() method 134 val file = File(dir, "src/test/pkg/sub1/sub2") in <lambda>() 137 java.nio.file.Files.createSymbolicLink(symlink, dir.toPath()) in <lambda>() 139 java.nio.file.Files.createSymbolicLink(git, dir.toPath()) in <lambda>()
|
D | OptionsTest.kt | 563 val dir = File(top, "childdir").apply { mkdirs() } in Test for --strict-input-files-exempt() constant 564 val grandchild1 = File(dir, "grandchiild1").apply { createNewFile() } in Test for --strict-input-files-exempt() 565 val grandchild2 = File(dir, "grandchiild2").apply { createNewFile() } in Test for --strict-input-files-exempt() 572 file1.path + File.pathSeparatorChar + dir.path) in Test for --strict-input-files-exempt()
|