Home
last modified time | relevance | path

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

123

/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.java72 File dir = new File(testCasesDirName); in getExternalTestCasesDirs() local
73 if (dir.exists() && dir.isDirectory()) { in getExternalTestCasesDirs()
75 testCasesDirs.add(dir); in getExternalTestCasesDirs()
98 File dir = new File(var); in getExternalTestCasesDir() local
99 if (dir.exists() && dir.isDirectory()) { in getExternalTestCasesDir()
100 CLog.d("Found test case dir: %s for %s.", dir.getAbsolutePath(), envVariable.name()); in getExternalTestCasesDir()
101 return dir; in getExternalTestCasesDir()
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()
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/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/src/com/android/tradefed/log/
DLogRegistry.java246 private void saveGlobalLogToDir(File dir) { in saveGlobalLogToDir() argument
248 saveLog(GLOBAL_LOG_PREFIX, globalLog, dir); in saveGlobalLogToDir()
257 private void saveHistoryLogToDir(File dir) { in saveHistoryLogToDir() argument
259 saveLog(HISTORY_LOG_PREFIX, globalLog, dir); in saveHistoryLogToDir()
292 public void dumpLogsToDir(File dir) { in dumpLogsToDir() argument
298 saveLog(filePrefix, logSource, dir); in dumpLogsToDir()
303 saveHistoryLogToDir(dir); in dumpLogsToDir()
305 saveGlobalLogToDir(dir); in dumpLogsToDir()
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationUtil.java192 for (File dir : dirs) { in getConfigNamesFileFromDirs()
194 dir = new File(dir, subPath); in getConfigNamesFileFromDirs()
196 if (!dir.isDirectory()) { in getConfigNamesFileFromDirs()
197 CLog.d("%s doesn't exist or is not a directory.", dir.getAbsolutePath()); in getConfigNamesFileFromDirs()
202 configNames.addAll(FileUtil.findFilesObject(dir, configNamePattern)); in getConfigNamesFileFromDirs()
205 CLog.w("Failed to get test config files from directory %s", dir.getAbsolutePath()); in getConfigNamesFileFromDirs()
/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 os.path.isdir(os.path.join(opts.dir, '.git')):
398 parser.error('Not a git directory: %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/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()
DLogFilesReporter.java111 protected void uploadFolderOnDeviceToLogs(String dir, ITestInvocationListener listener) in uploadFolderOnDeviceToLogs() argument
115 IFileEntry outputDir = getDevice().getFileEntry(dir); in uploadFolderOnDeviceToLogs()
130 CLog.w("Directory not found on device: %s", dir); in uploadFolderOnDeviceToLogs()
/tools/tradefederation/core/
DAndroid.mk15 LOCAL_PATH := $(call my-dir)
146 tradefed_dist_intermediates := $(call intermediates-dir-for,PACKAGING,tradefed_dist,HOST,COMMON)
150 $(hide) rm -rf $(dir $@) && mkdir -p $(dir $@)
151 $(hide) cp -f $^ $(dir $@)
152 $(hide) cd $(dir $@) && zip -q $(notdir $@) $(notdir $^)
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DTestFilePushSetup.java96 for (File dir : mAltDirs) { in getLocalPathForFilename()
97 dirs.add(dir); in getLocalPathForFilename()
98 dirs.add(FileUtil.getFileForPath(dir, "DATA")); in getLocalPathForFilename()
126 for (File dir : dirs) { in getLocalPathForFilename()
127 File testAppFile = new File(dir, fileName); in getLocalPathForFilename()
/tools/acloud/
DAndroid.mk17 LOCAL_PATH := $(call my-dir)
28 $(hide) mkdir -p $(dir $@)
/tools/tradefederation/core/tests/test-apps/
DAndroid.mk15 LOCAL_PATH := $(call my-dir)
/tools/tradefederation/core/util-apps/
DAndroid.mk15 LOCAL_PATH := $(call my-dir)
/tools/external/fat32lib/
DAndroid.mk15 LOCAL_PATH := $(call my-dir)
/tools/metalava/
DAndroid.mk16 LOCAL_PATH := $(call my-dir)
/tools/tradefederation/core/tests/test-apps/TradeFedTestApp/
DAndroid.mk15 LOCAL_PATH:= $(call my-dir)
/tools/tradefederation/core/util-apps/WifiUtil/
DAndroid.mk15 LOCAL_PATH := $(call my-dir)
/tools/tradefederation/core/tests/test-apps/UITestApp/
DAndroid.mk15 LOCAL_PATH:= $(call my-dir)
/tools/tradefederation/core/tests/test-apps/NativeTestSampleApp/src/
DAndroid.mk17 LOCAL_PATH := $(call my-dir)

123