Home
last modified time | relevance | path

Searched refs:dir (Results 1 – 25 of 92) sorted by relevance

1234

/tools/test/graphicsbenchmark/
DAndroid.mk16 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/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DFatLfnDirectory.java63 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 …]
DFatLfnDirectoryEntry.java74 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()
DAbstractDirectory.java316 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/
DAndroid.mk15 LOCAL_PATH := $(call my-dir)
24 …$(call intermediates-dir-for,JAVA_LIBRARIES,tradefed,HOST)/javalib.jar:$(HOST_OUT)/tradefed/tradef…
63 tradefed_dist_copy_pairs := $(foreach m, $(tradefed_dist_host_jars), $(call intermediates-dir-for,J…
65 tradefed_dist_copy_pairs += $(foreach m, $(tradefed_dist_test_apks), $(call intermediates-dir-for,A…
71 tradefed_dist_intermediates := $(call intermediates-dir-for,PACKAGING,tradefed_dist,HOST,COMMON)
75 rm -rf $(dir $@)/tmp && mkdir -p $(dir $@)/tmp
77 cp -f $(call word-colon,1,$(f)) $(dir $@)/tmp/$(call word-colon,2,$(f)) &&) true
78 echo $(BUILD_NUMBER_FROM_FILE) > $(dir $@)/tmp/version.txt
79 $(SOONG_ZIP) -o $@ -C $(dir $@)/tmp -f $(dir $@)/tmp/version.txt \
80 $(foreach f,$(PRIVATE_COPY_PAIRS),-f $(dir $@)/tmp/$(call word-colon,2,$(f)))
/tools/tradefederation/core/src/com/android/tradefed/build/
DOtatoolsBuildInfo.java41 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/util/
DSystemUtil.java84 File dir = new File(testCasesDirName); in getExternalTestCasesDirs() local
85 if (dir.exists() && dir.isDirectory()) { in getExternalTestCasesDirs()
87 testCasesDirs.add(dir); in getExternalTestCasesDirs()
110 File dir = new File(var); in getExternalTestCasesDir() local
111 if (dir.exists() && dir.isDirectory()) { in getExternalTestCasesDir()
112 CLog.d("Found test case dir: %s for %s.", dir.getAbsolutePath(), envVariable.name()); in getExternalTestCasesDir()
113 return dir; in getExternalTestCasesDir()
DFileUtil.java819 public static File findFile(File dir, String fileName) { in findFile() argument
820 if (dir.listFiles() != null) { in findFile()
821 for (File file : dir.listFiles()) { in findFile()
925 public static List<File> collectJars(File dir) { in collectJars() argument
927 File[] jarFiles = dir.listFiles(new JarFilter()); in collectJars()
929 list.addAll(Arrays.asList(dir.listFiles(new JarFilter()))); in collectJars()
939 public boolean accept(File dir, String name) { in accept() argument
983 public static File createZip(File dir) throws IOException { in createZip() argument
984 return ZipUtil.createZip(dir); in createZip()
997 public static void createZip(File dir, File zipFile) throws IOException { in createZip() argument
[all …]
DBuildTestsZipUtils.java55 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()
105 for (File dir : dirs) { in getApkFile()
107 File testAppFile = FileUtil.findFile(dir, apkFileName); in getApkFile()
DZipUtil.java130 public static File createZip(File dir) throws IOException { in createZip() argument
131 return createZip(dir, DEFAULT_DIRNAME); in createZip()
143 public static File createZip(File dir, String name) throws IOException { in createZip() argument
145 createZip(dir, zipFile); in createZip()
157 public static void createZip(File dir, File zipFile) throws IOException { in createZip() argument
162 addToZip(out, dir, new LinkedList<String>()); in createZip()
DVersionParser.java43 File dir = getTradefedJarDir(); in getPackageVersion() local
44 if (dir != null) { in getPackageVersion()
45 File versionFile = new File(dir, VERSION_FILE); in getPackageVersion()
55 CLog.e("Did not find Version file in directory: %s", dir.getAbsolutePath()); in getPackageVersion()
DClassPathScanner.java150 private void getEntriesFromDir(File dir, Set<String> entries, List<String> rootPath, in getEntriesFromDir() argument
152 File[] childFiles = dir.listFiles(); in getEntriesFromDir()
155 dir.getAbsolutePath())); in getEntriesFromDir()
172 dir.getAbsolutePath())); in getEntriesFromDir()
DTarUtil.java174 File dir = FileUtil.createTempDir("tmp_tar_dir"); in extractAndLog() local
177 ungzipLog = TarUtil.unGzip(targzFile, dir); in extractAndLog()
178 List<File> logs = TarUtil.unTar(ungzipLog, dir); in extractAndLog()
191 FileUtil.recursiveDelete(dir); in extractAndLog()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/extras/
DImportUtils.kt49 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/log/
DLogRegistry.java238 private void saveGlobalLogToDir(File dir) { in saveGlobalLogToDir() argument
240 saveLog(GLOBAL_LOG_PREFIX, globalLog, dir); in saveGlobalLogToDir()
249 private void saveHistoryLogToDir(File dir) { in saveHistoryLogToDir() argument
251 saveLog(HISTORY_LOG_PREFIX, globalLog, dir); in saveHistoryLogToDir()
290 public void dumpLogsToDir(File dir) { in dumpLogsToDir() argument
296 saveLog(filePrefix, logSource, dir); in dumpLogsToDir()
301 saveHistoryLogToDir(dir); in dumpLogsToDir()
303 saveGlobalLogToDir(dir); in dumpLogsToDir()
/tools/repohooks/
Dpre-upload.py275 project = rh.Project(name=project_name, dir=proj_dir, remote=remote)
388 if opts.dir is None:
394 opts.dir = os.path.dirname(os.path.abspath(git_dir))
395 elif not os.path.isdir(opts.dir):
396 parser.error('Invalid dir: %s' % opts.dir)
397 elif not rh.git.is_git_repository(opts.dir):
398 parser.error('Not a git repository: %s' % opts.dir)
403 opts.project = _identify_project(opts.dir)
405 parser.error("Repo couldn't identify the project of %s" % opts.dir)
407 if _run_project_hooks(opts.project, proj_dir=opts.dir,
/tools/test/graphicsbenchmark/dist/
DREADME4 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/tradefederation/core/src/com/android/tradefed/config/
DConfigurationUtil.java236 for (File dir : dirs) { in getConfigNamesFileFromDirs()
238 dir = new File(dir, subPath); in getConfigNamesFileFromDirs()
240 if (!dir.isDirectory()) { in getConfigNamesFileFromDirs()
241 CLog.d("%s doesn't exist or is not a directory.", dir.getAbsolutePath()); in getConfigNamesFileFromDirs()
246 configNames.addAll(FileUtil.findFilesObject(dir, configNamePattern)); in getConfigNamesFileFromDirs()
249 CLog.w("Failed to get test config files from directory %s", dir.getAbsolutePath()); in getConfigNamesFileFromDirs()
/tools/metalava/src/test/java/com/android/tools/metalava/
DSymlinkTest.kt75 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>()
DBaselineTest.kt133 projectSetup = { dir -> in <lambda>() method
135 val file = File(dir, "src/test/pkg/sub1/sub2") in <lambda>()
138 java.nio.file.Files.createSymbolicLink(symlink, dir.toPath()) in <lambda>()
140 java.nio.file.Files.createSymbolicLink(git, dir.toPath()) in <lambda>()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DTestFilePushSetup.java100 for (File dir : mAltDirs) { in getLocalPathForFilename()
101 dirs.add(dir); in getLocalPathForFilename()
102 dirs.add(FileUtil.getFileForPath(dir, "DATA")); in getLocalPathForFilename()
130 for (File dir : dirs) { in getLocalPathForFilename()
131 File testAppFile = new File(dir, fileName); in getLocalPathForFilename()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DNativeDeviceTest.java355 File dir = FileUtil.createTempDir("tf-test"); in testPullDir_nothingToDo() local
361 boolean res = mTestDevice.pullDir("/some_device_path/screenshots/", dir); in testPullDir_nothingToDo()
363 assertTrue(dir.list().length == 0); in testPullDir_nothingToDo()
365 FileUtil.recursiveDelete(dir); in testPullDir_nothingToDo()
411 File dir = FileUtil.createTempDir("tf-test"); in testPullDir() local
430 boolean res = mTestDevice.pullDir("/some_device_path/", dir); in testPullDir()
432 assertEquals(2, dir.list().length); in testPullDir()
433 assertTrue(Arrays.asList(dir.list()).contains("fakeFile")); in testPullDir()
434 assertTrue(Arrays.asList(dir.list()).contains("fakeDir")); in testPullDir()
436 FileUtil.recursiveDelete(dir); in testPullDir()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/
DDocAnalyzer.kt661 val dir = File(tmp, relative) in <lambda>() constant
662 if (!dir.isDirectory) { in <lambda>()
663 dir.mkdirs() in <lambda>()
666 return java.nio.file.Files.createTempDirectory(dir.toPath(), null).toFile() in <lambda>()
669 val dir = File(System.getProperty("java.io.tmpdir"), relative) in <lambda>() constant
670 if (create && !dir.isDirectory) { in <lambda>()
671 dir.mkdirs() in <lambda>()
673 return dir in <lambda>()
/tools/tradefederation/core/src/com/android/tradefed/result/
DRetentionFileSaver.java39 public void writeRetentionFile(File dir, int logRetentionDays) { in writeRetentionFile() argument
44 File retentionFile = new File(dir, RETENTION_FILE_NAME); in writeRetentionFile()
48 CLog.e("Unable to create retention file in directory in %s", dir.getAbsolutePath()); in writeRetentionFile()
/tools/tradefederation/contrib/src/com/android/graphics/tests/
DSkiaTest.java120 private void mkdirs(File dir) throws DeviceNotAvailableException { in mkdirs() argument
121 if (dir == null || mDevice.doesFileExist(dir.getPath())) { in mkdirs()
125 String dirName = dir.getPath(); in mkdirs()

1234