Home
last modified time | relevance | path

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

1234567

/tools/metalava/metalava-testing/src/main/java/com/android/tools/metalava/testing/
DTemporaryFolderOwner.kt34 val dir = newFolder("project") in createProject() constant
36 files.map { it.createFile(dir) }.forEach { assertNotNull(it) } in createProject()
38 return dir in createProject()
42 val dir = File(temporaryFolder.root.path, children) in newFolder() constant
43 return if (dir.exists()) { in newFolder()
44 dir in newFolder()
51 val dir = File(temporaryFolder.root.path, children) in newFile() constant
52 return if (dir.exists()) { in newFile()
53 dir in newFile()
/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/
DAndroid.mk15 LOCAL_PATH := $(call my-dir)
49 tradefed_dist_copy_pairs := $(foreach m, $(tradefed_dist_host_jars), $(call intermediates-dir-for,J…
50 tradefed_dist_copy_pairs += $(foreach m, $(tradefed_dist_host_exes), $(call intermediates-dir-for,E…
51 tradefed_dist_copy_pairs += $(foreach m, $(tradefed_dist_test_apks), $(call intermediates-dir-for,A…
58 tradefed_dist_intermediates := $(call intermediates-dir-for,PACKAGING,tradefed_dist,HOST,COMMON)
62 rm -rf $(dir $@)/tmp && mkdir -p $(dir $@)/tmp
64 cp -f $(call word-colon,1,$(f)) $(dir $@)/tmp/$(call word-colon,2,$(f)) &&) true
65 echo $(BUILD_NUMBER_FROM_FILE) > $(dir $@)/tmp/version.txt
66 $(SOONG_ZIP) -o $@ -C $(dir $@)/tmp -f $(dir $@)/tmp/version.txt \
67 $(foreach f,$(PRIVATE_COPY_PAIRS),-f $(dir $@)/tmp/$(call word-colon,2,$(f)))
/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 …]
/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/metalava/metalava/src/test/java/com/android/tools/metalava/
DSymlinkTest.kt43 projectSetup = { dir -> in <lambda>() method
46 val file = File(dir, "src/test/pkg/sub1/sub2") in <lambda>()
49 java.nio.file.Files.createSymbolicLink(symlink, dir.toPath()) in <lambda>()
52 java.nio.file.Files.createSymbolicLink(git, dir.toPath()) in <lambda>()
55 File(dir, "src/test/pkg/Foo.java") in <lambda>()
70 File(dir, "src/test/pkg/sub1/package.html") in <lambda>()
DBaselineTest.kt149 projectSetup = { dir -> in <lambda>() method
152 val file = File(dir, "src/test/pkg/sub1/sub2") in <lambda>()
155 java.nio.file.Files.createSymbolicLink(symlink, dir.toPath()) in <lambda>()
157 java.nio.file.Files.createSymbolicLink(git, dir.toPath()) in <lambda>()
/tools/aadevtools/validation/
Dget_file_dir.sh21 dir=$1
23 if [[ -d ${dir} ]]; then
24 cd ${dir} && fList=$(find "${dir}" -name "*.${ext}")
/tools/metalava/metalava/
Dbuild.gradle.kts62 val testPrebuiltsSdkDir = layout.buildDirectory.dir("prebuilts/sdk")
86 destinationDirectory.set(layout.buildDirectory.dir(javaCompileTaskName)) in registerTestPrebuiltsSdkTasks()
90 val dir = destJarFile.parent in registerTestPrebuiltsSdkTasks() constant
92 if (dir == ".") { in registerTestPrebuiltsSdkTasks()
100 destinationDirectory.set(testPrebuiltsSdkDir.map { it.dir(dir) }) in registerTestPrebuiltsSdkTasks()
151 into(project.layout.buildDirectory.dir("version")) in <lambda>()
155 sourceSets.getByName("main").output.dir(copyVersion)
/tools/tradefederation/core/src/com/android/tradefed/util/
DSystemUtil.java93 File dir = new File(testCasesDirName); in getExternalTestCasesDirs() local
94 if (dir.exists() && dir.isDirectory()) { in getExternalTestCasesDirs()
96 testCasesDirs.add(dir); in getExternalTestCasesDirs()
119 File dir = new File(var); in getExternalTestCasesDir() local
120 if (dir.exists() && dir.isDirectory()) { in getExternalTestCasesDir()
121 CLog.d("Found test case dir: %s for %s.", dir.getAbsolutePath(), envVariable.name()); in getExternalTestCasesDir()
122 return dir; in getExternalTestCasesDir()
DBuildTestsZipUtils.java57 for (File dir : altDirs) { in getApkFile()
58 dirs.add(dir); in getApkFile()
61 dirs.add(FileUtil.getFileForPath(dir, "DATA", "app")); in getApkFile()
62 dirs.add(FileUtil.getFileForPath(dir, "DATA", "app", apkBase)); in getApkFile()
63 dirs.add(FileUtil.getFileForPath(dir, "DATA", "priv-app", apkBase)); in getApkFile()
65 dirs.add(FileUtil.getFileForPath(dir, "data", "app", apkBase)); in getApkFile()
115 for (File dir : dirs) { in getApkFile()
117 File testAppFile = FileUtil.findFile(dir, apkFileName); in getApkFile()
/tools/treble/hacksaw/bind/
Dlocal.go43 for dir := filepath.Dir(inPath); dir != "." && dir != "/"; dir = filepath.Dir(dir) {
45 if filepath.Base(dir) == "hacksaw" {
/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/test_framework/com/android/tradefed/targetprep/
DArtChrootPreparer.java76 for (String dir : MKDIRS) { in setUp()
77 adbShell(device, "mkdir -p %s%s", CHROOT_PATH, dir); in setUp()
81 for (String dir : MOUNTS) { in setUp()
82 adbShell(device, "mkdir -p %s%s", CHROOT_PATH, dir); in setUp()
83 adbShell(device, "mount --bind %s %s%s", dir, CHROOT_PATH, dir); in setUp()
84 mMountPoints.add(CHROOT_PATH + dir); in setUp()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DVersionParser.java46 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()
DFileUtil.java933 public static File findFile(File dir, String fileName) { in findFile() argument
934 if (dir.listFiles() != null) { in findFile()
935 for (File file : dir.listFiles()) { in findFile()
961 for (File dir : dirs) { in findFile()
962 Set<File> testSrcs = findFilesObject(dir, fileName); in findFile()
982 for (File dir : dirs) { in findFile()
983 File matchFile = findFile(dir, fileName); in findFile()
1079 public static List<File> collectJars(File dir) { in collectJars() argument
1081 File[] jarFiles = dir.listFiles(new JarFilter()); in collectJars()
1083 list.addAll(Arrays.asList(dir.listFiles(new JarFilter()))); in collectJars()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/log/
DLogRegistry.java250 private void saveGlobalLogToDir(File dir) { in saveGlobalLogToDir() argument
252 saveLog(GLOBAL_LOG_PREFIX, globalLog, dir); in saveGlobalLogToDir()
261 private void saveHistoryLogToDir(File dir) { in saveHistoryLogToDir() argument
263 saveLog(HISTORY_LOG_PREFIX, globalLog, dir); in saveHistoryLogToDir()
302 public void dumpLogsToDir(File dir) { in dumpLogsToDir() argument
308 saveLog(filePrefix, logSource, dir); in dumpLogsToDir()
313 saveHistoryLogToDir(dir); in dumpLogsToDir()
315 saveGlobalLogToDir(dir); in dumpLogsToDir()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DModulePusherTest.java287 Path dir = mFakeApex.toPath().getParent(); in testInstallModulesSuccess() local
288 File renamedApex = dir.resolve(APEX_PRELOAD_NAME).toFile(); in testInstallModulesSuccess()
289 File renamedApk = dir.resolve(APK_PRELOAD_NAME).toFile(); in testInstallModulesSuccess()
314 Path dir = mFakeApex.toPath().getParent(); in testInstallModulesSuccessViaReboot() local
315 File renamedApex = dir.resolve(APEX_PRELOAD_NAME).toFile(); in testInstallModulesSuccessViaReboot()
316 File renamedApk = dir.resolve(APK_PRELOAD_NAME).toFile(); in testInstallModulesSuccessViaReboot()
341 Path dir = mFakeApex.toPath().getParent(); in testInstallModulesSuccessWithApks() local
342 File renamedApex = dir.resolve(APEX_PRELOAD_NAME).toFile(); in testInstallModulesSuccessWithApks()
343 File renamedSplitApk = dir.resolve(SPLIT_APK_PACKAGE_NAME).toFile(); in testInstallModulesSuccessWithApks()
377 Path dir = mFakeApex.toPath().getParent(); in testInstallModulesSuccessDisablePackageCache() local
[all …]
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterBuildProvider.java123 File dir = resource.getDecompressDir(mRootDir); in getBuild() local
124 validateTestResourceFile(mRootDir, dir); in getBuild()
126 validateTestResourceFile(dir, new File(dir, name)); in getBuild()
218 final File dir = resource.getDecompressDir(mRootDir); in prepareTestResource() local
222 dir, in prepareTestResource()
229 return dir; in prepareTestResource()
358 for (File dir : ((ClusterBuildInfo) info).getZipMounts()) {
359 fuseUtil.unmountZip(dir);
360 FileUtil.recursiveDelete(dir);
/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)
/tools/netsim/scripts/tasks/
Drun_pytest_task.py65 self.dir = EMULATOR_ARTIFACT_PATH / "emulator" if buildbot else OBJS_DIR
84 emulator_bin = self.dir / binary_extension("emulator")
85 if not (self.dir.exists() and emulator_bin.exists()):
/tools/treble/hacksaw/workspace/
Dcopier.go59 for dir := project; dir != "." && dir != "/"; dir = filepath.Dir(dir) {
60 containsGitSet[dir] = exists
/tools/treble/hacksaw/codebase/
Dcodebase.go86 dir, ok := cfg.Codebases[codebase]
88 return dir, fmt.Errorf("Codebase %s not found",
91 return dir, nil
/tools/netsim/src/util/
Dos_utils_test.cc30 auto dir = osutils::GetDiscoveryDirectory(); in TEST() local
31 EXPECT_TRUE(netsim::filesystem::exists(dir)); in TEST()
/tools/tradefederation/core/javatests/com/android/tradefed/cluster/
DClusterBuildProviderTest.java272 for (File dir : mountDirs) { in testGetBuild_decompressTestResources_withMountZip()
273 FileUtil.recursiveDelete(dir); in testGetBuild_decompressTestResources_withMountZip()
319 for (File dir : mountDirs) { in testGetBuild_decompressTestResources_withFileNamesAndMountZip()
320 FileUtil.recursiveDelete(dir); in testGetBuild_decompressTestResources_withFileNamesAndMountZip()
435 File dir = FileUtil.createTempDir("ClusterBuildProvider"); in testCleanUp() local
436 buildInfo.addZipMount(dir); in testCleanUp()
437 zipMounts.add(dir); in testCleanUp()
443 for (File dir : zipMounts) { in testCleanUp()
444 Mockito.verify(mMockFuseUtil).unmountZip(dir); in testCleanUp()
445 assertFalse(dir.exists()); in testCleanUp()
[all …]

1234567