Home
last modified time | relevance | path

Searched refs:fileName (Results 1 – 25 of 53) sorted by relevance

123

/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/invoker/
DTestInformation.java174 public File getDependencyFile(String fileName, boolean targetFirst) in getDependencyFile() argument
177 dependency = getFromEnv(fileName, targetFirst); in getDependencyFile()
181 dependency = getFromTestsDir(fileName); in getDependencyFile()
185 dependency = getFile(fileName); in getDependencyFile()
189 dependency = getFromDependencyFolder(fileName); in getDependencyFile()
194 String.format("Could not find an artifact file associated with %s", fileName)); in getDependencyFile()
197 private File getFromEnv(String fileName, boolean targetFirst) { in getFromEnv() argument
204 File file = FileUtil.findFile(testsDir, fileName); in getFromEnv()
212 private File getFromTestsDir(String fileName) { in getFromTestsDir() argument
215 File file = FileUtil.findFile(testsDir, fileName); in getFromTestsDir()
[all …]
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DFatLfnDirectoryEntry.java46 private String fileName; field in FatLfnDirectoryEntry
54 this.fileName = name; in FatLfnDirectoryEntry()
64 FatDirectoryEntry realEntry, String fileName) { in FatLfnDirectoryEntry() argument
70 this.fileName = fileName; in FatLfnDirectoryEntry()
77 final String fileName; in extract() local
81 fileName = realEntry.getShortName().asSimpleString(); in extract()
91 fileName = name.toString().trim(); in extract()
94 return new FatLfnDirectoryEntry(dir, realEntry, fileName); in extract()
197 int result = (fileName.length() / 13) + 1; in totalEntrySize()
199 if ((fileName.length() % 13) != 0) { in totalEntrySize()
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DTestFilePushSetup.java66 protected void addTestFileName(String fileName) { in addTestFileName() argument
67 mTestPaths.add(new File(fileName)); in addTestFileName()
86 protected File getLocalPathForFilename(IBuildInfo buildInfo, String fileName, in getLocalPathForFilename() argument
102 File testAppFile = new File(dir, fileName); in getLocalPathForFilename()
125 for (String fileName : getTestFileNames()) { in setUp()
126 File localFile = getLocalPathForFilename(buildInfo, fileName, device); in setUp()
131 fileName), device.getDeviceDescriptor()); in setUp()
136 fileName); in setUp()
137 mFailedToPush.add(fileName); in setUp()
141 String remoteFileName = getDevicePathFromUserData(fileName); in setUp()
DPushFilePreparer.java204 public File resolveRelativeFilePath(IBuildInfo buildInfo, String fileName) { in resolveRelativeFilePath() argument
207 src = buildInfo.getFile(fileName); in resolveRelativeFilePath()
234 if (mModuleName.equals(fileName)) { in resolveRelativeFilePath()
240 src = FileUtil.findFile(fileName, null, moduleDir); in resolveRelativeFilePath()
243 File srcWithAbi = FileUtil.findFile(fileName, mAbi, moduleDir); in resolveRelativeFilePath()
269 Set<File> allMatch = FileUtil.findFilesObject(searchDir, fileName); in resolveRelativeFilePath()
273 fileName); in resolveRelativeFilePath()
290 src = FileUtil.findFile(fileName, null, scanDirs.toArray(new File[] {})); in resolveRelativeFilePath()
294 FileUtil.findFile(fileName, mAbi, scanDirs.toArray(new File[] {})); in resolveRelativeFilePath()
313 src = buildInfo.stageRemoteFile(fileName, testDir); in resolveRelativeFilePath()
DDeviceStorageFiller.java55 String fileName = getFullFileName(); in setUp() local
57 device.executeShellCommand(String.format("fallocate -l %d %s", bytesToWrite, fileName)); in setUp()
58 CLog.i("Wrote %d bytes to %s", bytesToWrite, fileName); in setUp()
68 String fileName = getFullFileName(); in tearDown() local
70 device.executeShellCommand(String.format("rm -f %s", fileName)); in tearDown()
/tools/metalava/src/main/java/com/android/tools/metalava/
DRewriteAnnotations.kt52 val fileName = source.name in <lambda>() constant
53 if (fileName.endsWith(SdkConstants.DOT_JAVA)) { in <lambda>()
56 val qualifiedName = pkg + "." + fileName.substring(0, fileName.indexOf('.')) in <lambda>()
71 val newPackage = if (pkg.isEmpty()) fileName else "$pkg.$fileName" in <lambda>()
80 val fileName = source.name in <lambda>() constant
81 if (fileName.endsWith(SdkConstants.DOT_JAVA)) { in <lambda>()
84 val qualifiedName = pkg + "." + fileName.substring(0, fileName.indexOf('.')) in <lambda>()
94 val newPackage = if (pkg.isEmpty()) fileName else "$pkg.$fileName" in <lambda>()
/tools/tradefederation/contrib/src/com/android/performance/tests/
DAppIncrementalInstallTest.java111 for (String fileName : files) { in run()
112 if (!fileName.endsWith(".apk")) { in run()
113 CLog.d("Skipping non-apk %s", fileName); in run()
115 } else if (!matchesPackagesForInstall(fileName)) { in run()
116 CLog.d("Skipping apk %s", fileName); in run()
119 File file = new File(mTestApkPath, fileName); in run()
123 metrics.put(fileName, Long.toString(installTime)); in run()
221 private boolean matchesPackagesForInstall(String fileName) { in matchesPackagesForInstall() argument
229 if (fileName.contains(pkg + "-")) { in matchesPackagesForInstall()
DAppInstallTest.java139 for (String fileName : files) { in run()
140 if (!fileName.endsWith(".apk")) { in run()
141 CLog.d("Skipping non-apk %s", fileName); in run()
143 } else if (!matchesPackagesForInstall(fileName)) { in run()
144 CLog.d("Skipping apk %s", fileName); in run()
147 File file = new File(mTestApkPath, fileName); in run()
151 metrics.put(fileName, Long.toString(installTime)); in run()
281 private boolean matchesPackagesForInstall(String fileName) { in matchesPackagesForInstall() argument
289 if (fileName.contains(pkg + "-")) { in matchesPackagesForInstall()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DBaseDeviceMetricCollector.java131 public File getFileFromTestArtifacts(String fileName) { in getFileFromTestArtifacts() argument
132 if (mTestArtifactFilePathMap.containsKey(fileName)) { in getFileFromTestArtifacts()
133 return mTestArtifactFilePathMap.get(fileName); in getFileFromTestArtifacts()
136 File resolvedFile = resolveRelativeFilePath(fileName); in getFileFromTestArtifacts()
138 CLog.i("Using file %s from %s", fileName, resolvedFile.getAbsolutePath()); in getFileFromTestArtifacts()
139 mTestArtifactFilePathMap.put(fileName, resolvedFile); in getFileFromTestArtifacts()
471 private File resolveRelativeFilePath(String fileName) { in resolveRelativeFilePath() argument
482 src = buildInfo.getFile(fileName); in resolveRelativeFilePath()
510 if (mModuleName.equals(fileName)) { in resolveRelativeFilePath()
516 src = FileUtil.findFile(fileName, null, moduleDir); in resolveRelativeFilePath()
[all …]
/tools/trebuchet/trebuchet/startup-summarizer/src/
DStartupSummarizer.kt128 fun parseFileName(fileName : String) : Triple<String, CompilerFilter, Temperature> { in parseFileName()
129 val md = FILENAME_PATTERN.find(fileName) in parseFileName()
149 println("Unrecognized file name: $fileName") in parseFileName()
336 args.forEach { fileName -> in main() method
337 val (_, compiler, temperature) = parseFileName(fileName) in main()
339 val trace = parseTrace(File(fileName), false) in main()
350 exceptions.add(Pair(fileName, e)) in main()
366 exceptions.forEach { (fileName, exception) -> in main() method
367 …println("\t$fileName: $exception${if (exception.message != null) "(${exception.message})" else ""}… in main()
/tools/tradefederation/contrib/tests/src/com/android/build/tests/
DImageStatsTest.java80 String fileName = "/system/app/WallpapersBReel2017/WallpapersBReel2017.apk"; in testGetAggregationLabel_regular() local
86 mImageStats.getAggregationLabel(pattern.matcher(fileName), label)); in testGetAggregationLabel_regular()
92 String fileName = "/system/app/WallpapersBReel2017/WallpapersBReel2017.apk"; in testGetAggregationLabel_capturingGroups() local
95 Matcher m = pattern.matcher(fileName); in testGetAggregationLabel_capturingGroups()
110 String fileName = "/system/app/WallpapersBReel2017/WallpapersBReel2017.apk"; in testGetAggregationLabel_capturingGroups_partialBackReference() local
113 Matcher m = pattern.matcher(fileName); in testGetAggregationLabel_capturingGroups_partialBackReference()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/rust/
DRustBinaryHostTest.java85 for (String fileName : mBinaryNames) { in findFiles()
87 File filePath = new File(fileName); in findFiles()
93 String.format("Cannot find %s without test directory", fileName)); in findFiles()
97 if (!baseName.equals(fileName)) { in findFiles()
103 if (f.getPath().endsWith(fileName)) { in findFiles()
109 CLog.e("Cannot find %s; try to find %s", fileName, baseName); in findFiles()
123 String.format("Cannot find %s under %s", fileName, paths)); in findFiles()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/contentprovider/
DContentProviderHandlerTest.java293 String fileName = "content-provider-file.txt"; in testPullDir_OneFile() local
295 doReturn(createMockFileRow(fileName, devicePath + "/" + fileName, "text/plain")) in testPullDir_OneFile()
307 assertEquals(pullTo.listFiles()[0].getName(), fileName); in testPullDir_OneFile() local
324 String fileName = "test-file.txt"; in testPullDir_RecursiveSubDir() local
335 doReturn(createMockFileRow(fileName, subDirPath + "/" + fileName, "text/plain")) in testPullDir_RecursiveSubDir()
356 assertEquals(pullTo.listFiles()[0].listFiles()[0].getName(), fileName); in testPullDir_RecursiveSubDir() local
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/multi/
DMixImageZipPreparer.java419 for (String fileName : buildFileNames) { in getBuildFiles()
420 final File file = buildInfo.getFile(fileName); in getBuildFiles()
422 throw new IOException(String.format("Could not get file with name: %s", fileName)); in getBuildFiles()
424 factories.put(fileName, new FileInputStreamFactory(file)); in getBuildFiles()
591 void addSystemFileName(String fileName) { in addSystemFileName() argument
592 mSystemFileNames.add(fileName); in addSystemFileName()
596 void addResourceFileName(String fileName) { in addResourceFileName() argument
597 mExtraBuildResourceFiles.add(fileName); in addResourceFileName()
601 void addDummyFileName(String fileName) { in addDummyFileName() argument
602 mDummyFileNames.add(fileName); in addDummyFileName()
/tools/tradefederation/core/src/com/android/tradefed/util/
DBluetoothUtils.java270 String fileName = getBtSnoopLogFilePath(device); in uploadLogFiles() local
271 if (fileName != null) { in uploadLogFiles()
273 logFile = device.pullFile(fileName); in uploadLogFiles()
297 String fileName = getBtSnoopLogFilePath(device); in cleanLogFile() local
298 if (fileName != null) { in cleanLogFile()
299 device.executeShellCommand(String.format("rm %s", fileName)); in cleanLogFile()
DFakeTestsZipFolder.java67 for (String fileName : mItems.keySet()) { in createItems()
68 File file = new File(mData, fileName); in createItems()
69 ItemType type = mItems.get(fileName); in createItems()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DBaseDeviceMetricCollectorTest.java584 String fileName = "source_file"; in testResolveRelativeFilePath_withDeviceBuildInfo() local
590 File sourceFile = FileUtil.createTempFile(fileName, null, hostTestCasesDir); in testResolveRelativeFilePath_withDeviceBuildInfo()
592 fileName = sourceFile.getName(); in testResolveRelativeFilePath_withDeviceBuildInfo()
593 EasyMock.expect(buildInfo.getFile(fileName)).andReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo()
603 mBase.getFileFromTestArtifacts(fileName) in testResolveRelativeFilePath_withDeviceBuildInfo()
617 String fileName = "source_file"; in testUnableResolveRelativeFilePath_withDeviceBuildInfo() local
623 File sourceFile = FileUtil.createTempFile(fileName, null, hostTestCasesDir); in testUnableResolveRelativeFilePath_withDeviceBuildInfo()
625 fileName = sourceFile.getName(); in testUnableResolveRelativeFilePath_withDeviceBuildInfo()
651 String fileName = "source_file"; in testResolveRelativeFilePath_fromModule() local
657 File sourceFile = FileUtil.createTempFile(fileName, null, hostTestCasesDir); in testResolveRelativeFilePath_fromModule()
[all …]
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DFileUtil.java718 public static String getExtension(String fileName) { in getExtension() argument
719 int index = fileName.lastIndexOf('.'); in getExtension()
723 return fileName.substring(index); in getExtension()
735 public static String getBaseName(String fileName) { in getBaseName() argument
736 int index = fileName.lastIndexOf('.'); in getBaseName()
738 return fileName; in getBaseName()
740 return fileName.substring(0, index); in getBaseName()
852 public static File findFile(File dir, String fileName) { in findFile() argument
856 File result = findFile(file, fileName); in findFile()
862 if (file.getName().matches(fileName)) { in findFile()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DPushFilePreparerTest.java320 String fileName = "source_file"; in testResolveRelativeFilePath_noDeviceBuildInfo() local
321 EasyMock.expect(buildInfo.getFile(fileName)).andReturn(null); in testResolveRelativeFilePath_noDeviceBuildInfo()
324 assertNull(mPreparer.resolveRelativeFilePath(buildInfo, fileName)); in testResolveRelativeFilePath_noDeviceBuildInfo()
335 String fileName = "source_file"; in testResolveRelativeFilePath_withDeviceBuildInfo() local
342 File sourceFile = FileUtil.createTempFile(fileName, null, hostTestCasesDir); in testResolveRelativeFilePath_withDeviceBuildInfo()
344 fileName = sourceFile.getName(); in testResolveRelativeFilePath_withDeviceBuildInfo()
345 EasyMock.expect(buildInfo.getFile(fileName)).andReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo()
352 mPreparer.resolveRelativeFilePath(buildInfo, fileName).getAbsolutePath()); in testResolveRelativeFilePath_withDeviceBuildInfo()
366 String fileName = "source_file"; in testResolveRelativeFilePath_withDeviceBuildInfo_remoteZip() local
373 File sourceFile = FileUtil.createTempFile(fileName, null, hostTestCasesDir); in testResolveRelativeFilePath_withDeviceBuildInfo_remoteZip()
[all …]
DDynamicSystemPreparerTest.java76 for (String fileName : fileNames) { in createImageDir()
77 new File(tempDir, fileName).createNewFile(); in createImageDir()
88 for (String fileName : fileNames) { in createImageZip()
89 tempFiles.add(new File(tempDir, fileName)); in createImageZip()
/tools/tradefederation/core/common_util/com/android/tradefed/util/net/
DHttpMultipartPost.java82 String fileName = file.getAbsolutePath(); in addTextFile() local
84 addTextFile(name, fileName, in); in addTextFile()
98 public void addTextFile(String name, String fileName, InputStream in) in addTextFile() argument
104 name, fileName, CRLF)); in addTextFile()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DGTest.java206 String fileName = getFileName(path); in shouldRunFolder() local
207 if (!AbiUtils.getArchSupported().contains(fileName)) { in shouldRunFolder()
210 if (fileName.equals(AbiUtils.getArchForAbi(getAbi().getName()))) { in shouldRunFolder()
221 String fileName = fullPath.substring(pos + 1); in getFileName() local
222 if (fileName.isEmpty()) { in getFileName()
225 return fileName; in getFileName()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DCentralDirectory.java346 String fileName = EncodeUtils.decode(encodedFileName, flags); in readEntry() local
367 fileName, encodedFileName, uncompressedSize, compressInfo, flags, file); in readEntry()
383 throw new IOException("Failed to read stored entry '" + fileName + "'.", e); in readEntry()
386 if (entries.containsKey(fileName)) { in readEntry()
387 verifyLog.log("File file contains duplicate file '" + fileName + "'."); in readEntry()
390 entries.put(fileName, entry); in readEntry()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DFakeTestsZipFolderTest.java52 for (String fileName : mFiles.keySet()) { in testFakeTestsZipFolder()
53 File file = new File(data, fileName); in testFakeTestsZipFolder()
54 ItemType type = mFiles.get(fileName); in testFakeTestsZipFolder()
/tools/test/graphicsbenchmark/performance_tests/helper/src/com/android/game/qualification/
DApkInfo.java74 String fileName, in ApkInfo() argument
85 checkNotNull(fileName, Field.FILE_NAME.getTag()); in ApkInfo()
90 this.mFileName = fileName; in ApkInfo()

123