/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/invoker/ |
D | TestInformation.java | 192 public File getDependencyFile(String fileName, boolean targetFirst) in getDependencyFile() argument 195 dependency = getFromEnv(fileName, targetFirst); in getDependencyFile() 199 dependency = getFromTestsDir(fileName); in getDependencyFile() 203 dependency = getFile(fileName); in getDependencyFile() 207 dependency = getFromDependencyFolder(fileName); in getDependencyFile() 212 String.format("Could not find an artifact file associated with %s", fileName)); in getDependencyFile() 215 private File getFromEnv(String fileName, boolean targetFirst) { in getFromEnv() argument 222 File file = FileUtil.findFile(testsDir, fileName); in getFromEnv() 230 private File getFromTestsDir(String fileName) { in getFromTestsDir() argument 233 File file = FileUtil.findFile(testsDir, fileName); in getFromTestsDir() [all …]
|
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
D | FatLfnDirectoryEntry.java | 46 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/ |
D | TestFilePushSetup.java | 71 protected void addTestFileName(String fileName) { in addTestFileName() argument 72 mTestPaths.add(new File(fileName)); in addTestFileName() 91 protected File getLocalPathForFilename(IBuildInfo buildInfo, String fileName, in getLocalPathForFilename() argument 106 File testAppFile = new File(dir, fileName); in getLocalPathForFilename() 110 testAppFile = FileUtil.findFile(dir, fileName); in getLocalPathForFilename() 133 for (String fileName : getTestFileNames()) { in setUp() 134 File localFile = getLocalPathForFilename(buildInfo, fileName, device); in setUp() 140 fileName), in setUp() 147 fileName); in setUp() 148 mFailedToPush.add(fileName); in setUp() [all …]
|
D | DeviceStorageFiller.java | 55 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()
|
D | PushFilePreparer.java | 222 public File resolveRelativeFilePath(IBuildInfo buildInfo, String fileName) { in resolveRelativeFilePath() argument 225 src = buildInfo.getFile(fileName); in resolveRelativeFilePath() 252 if (mModuleName.equals(fileName)) { in resolveRelativeFilePath() 258 src = FileUtil.findFile(fileName, null, moduleDir); in resolveRelativeFilePath() 261 File srcWithAbi = FileUtil.findFile(fileName, mAbi, moduleDir); in resolveRelativeFilePath() 287 Set<File> allMatch = FileUtil.findFilesObject(searchDir, fileName); in resolveRelativeFilePath() 291 fileName); in resolveRelativeFilePath() 308 src = FileUtil.findFile(fileName, null, scanDirs.toArray(new File[] {})); in resolveRelativeFilePath() 312 FileUtil.findFile(fileName, mAbi, scanDirs.toArray(new File[] {})); in resolveRelativeFilePath() 331 src = buildInfo.stageRemoteFile(fileName, testDir); in resolveRelativeFilePath() [all …]
|
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/cli/internal/ |
D | RewriteAnnotations.kt | 40 val fileName = source.name in modifyAnnotationSources() constant 41 if (fileName.endsWith(SdkConstants.DOT_JAVA)) { in modifyAnnotationSources() 43 val qualifiedName = pkg + "." + fileName.substring(0, fileName.indexOf('.')) in modifyAnnotationSources() 52 val newPackage = if (pkg.isEmpty()) fileName else "$pkg.$fileName" in modifyAnnotationSources()
|
/tools/tradefederation/contrib/src/com/android/performance/tests/ |
D | AppIncrementalInstallTest.java | 111 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()
|
D | AppInstallTest.java | 139 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/contrib/tests/src/com/android/build/tests/ |
D | ImageStatsTest.java | 146 String fileName = "/system/app/WallpapersBReel2017/WallpapersBReel2017.apk"; in testGetAggregationLabel_regular() local 152 mImageStats.getAggregationLabel(pattern.matcher(fileName), label)); in testGetAggregationLabel_regular() 158 String fileName = "/system/app/WallpapersBReel2017/WallpapersBReel2017.apk"; in testGetAggregationLabel_capturingGroups() local 161 Matcher m = pattern.matcher(fileName); in testGetAggregationLabel_capturingGroups() 176 String fileName = "/system/app/WallpapersBReel2017/WallpapersBReel2017.apk"; in testGetAggregationLabel_capturingGroups_partialBackReference() local 179 Matcher m = pattern.matcher(fileName); in testGetAggregationLabel_capturingGroups_partialBackReference()
|
/tools/trebuchet/trebuchet/startup-summarizer/src/ |
D | StartupSummarizer.kt | 128 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/core/javatests/com/android/tradefed/util/ |
D | ZipUtil2Test.java | 79 final String fileName = "rwxr-x--x"; in testExtractFileFromZip() local 85 extracted = ZipUtil2.extractFileFromZip(zipFile, fileName, destFile); in testExtractFileFromZip() 87 verifyFilePermission(destFile, fileName); in testExtractFileFromZip() 96 final String fileName = "rwxr-x--x"; in testExtractFileFromZipToTemp() local 100 File extracted = ZipUtil2.extractFileFromZip(zipFile, fileName); in testExtractFileFromZipToTemp() 102 verifyFilePermission(extracted, fileName); in testExtractFileFromZipToTemp()
|
D | FakeTestsZipFolderTest.java | 58 for (String fileName : mFiles.keySet()) { in testFakeTestsZipFolder() 59 File file = new File(data, fileName); in testFakeTestsZipFolder() 60 ItemType type = mFiles.get(fileName); in testFakeTestsZipFolder()
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/net/ |
D | HttpMultipartPost.java | 82 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/src/com/android/tradefed/util/ |
D | FakeTestsZipFolder.java | 67 for (String fileName : mItems.keySet()) { in createItems() 68 File file = new File(mData, fileName); in createItems() 69 ItemType type = mItems.get(fileName); in createItems()
|
D | BluetoothUtils.java | 270 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()
|
/tools/asuite/atest/java/src/com/android/atest/ |
D | AtestLogArtifactsUploader.java | 59 for (String fileName : fileNames) { in tearDown() 60 File artifactFile = new File(mAtestRootReportDir.getParentFile(), fileName); in tearDown() 65 fileName, LogDataType.HOST_LOG, new FileInputStreamSource(artifactFile)); in tearDown()
|
/tools/tradefederation/core/src/com/android/tradefed/build/cache/ |
D | PartialZipDownloadCache.java | 105 public boolean getCachedFile(File targetFile, String fileName, String crc) { in getCachedFile() argument 106 String key = String.format("%s:%s", fileName, crc); in getCachedFile() 130 public void populateCacheFile(File toCache, String fileName, String crc) { in populateCacheFile() argument 132 String key = String.format("%s:%s", fileName, crc); in populateCacheFile()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/contentprovider/ |
D | ContentProviderHandlerTest.java | 308 String fileName = "content-provider-file.txt"; in testPullDir_OneFile() local 310 doReturn(createMockFileRow(fileName, devicePath + "/" + fileName, "text/plain")) in testPullDir_OneFile() 322 assertEquals(pullTo.listFiles()[0].getName(), fileName); in testPullDir_OneFile() local 339 String fileName = "test-file.txt"; in testPullDir_RecursiveSubDir() local 351 doReturn(createMockFileRow(fileName, subDirPath + "/" + fileName, "text/plain")) in testPullDir_RecursiveSubDir() 374 assertEquals(pullTo.listFiles()[0].listFiles()[0].getName(), fileName); in testPullDir_RecursiveSubDir() local
|
/tools/test/graphicsbenchmark/performance_tests/helper/src/com/android/game/qualification/ |
D | ApkInfo.java | 74 String fileName, in ApkInfo() argument 85 checkNotNull(fileName, Field.FILE_NAME.getTag()); in ApkInfo() 90 this.mFileName = fileName; in ApkInfo()
|
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | PushFilePreparerTest.java | 302 String fileName = "source_file"; in testResolveRelativeFilePath_noDeviceBuildInfo() local 303 when(buildInfo.getFile(fileName)).thenReturn(null); in testResolveRelativeFilePath_noDeviceBuildInfo() 305 assertNull(mPreparer.resolveRelativeFilePath(buildInfo, fileName)); in testResolveRelativeFilePath_noDeviceBuildInfo() 307 inOrder.verify(buildInfo).getFile(fileName); in testResolveRelativeFilePath_noDeviceBuildInfo() 317 String fileName = "source_file"; in testResolveRelativeFilePath_withDeviceBuildInfo() local 324 File sourceFile = FileUtil.createTempFile(fileName, null, hostTestCasesDir); in testResolveRelativeFilePath_withDeviceBuildInfo() 326 fileName = sourceFile.getName(); in testResolveRelativeFilePath_withDeviceBuildInfo() 327 when(buildInfo.getFile(fileName)).thenReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo() 333 mPreparer.resolveRelativeFilePath(buildInfo, fileName).getAbsolutePath()); in testResolveRelativeFilePath_withDeviceBuildInfo() 335 inOrder.verify(buildInfo).getFile(fileName); in testResolveRelativeFilePath_withDeviceBuildInfo() [all …]
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/rust/ |
D | RustBinaryHostTest.java | 96 for (String fileName : mBinaryNames) { in findFiles() 98 File filePath = new File(fileName); in findFiles() 104 String.format("Cannot find %s without test directory", fileName)); in findFiles() 108 if (!baseName.equals(fileName)) { in findFiles() 114 if (f.getPath().endsWith(fileName)) { in findFiles() 120 CLog.e("Cannot find %s; try to find %s", fileName, baseName); in findFiles() 150 String.format("Cannot find %s under %s", fileName, paths)); in findFiles()
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | BaseDeviceMetricCollector.java | 168 public File getFileFromTestArtifacts(String fileName) { in getFileFromTestArtifacts() argument 169 if (mTestArtifactFilePathMap.containsKey(fileName)) { in getFileFromTestArtifacts() 170 return mTestArtifactFilePathMap.get(fileName); in getFileFromTestArtifacts() 173 File resolvedFile = resolveRelativeFilePath(fileName); in getFileFromTestArtifacts() 175 CLog.i("Using file %s from %s", fileName, resolvedFile.getAbsolutePath()); in getFileFromTestArtifacts() 176 mTestArtifactFilePathMap.put(fileName, resolvedFile); in getFileFromTestArtifacts() 692 private File resolveRelativeFilePath(String fileName) { in resolveRelativeFilePath() argument 703 src = buildInfo.getFile(fileName); in resolveRelativeFilePath() 731 if (mModuleName.equals(fileName)) { in resolveRelativeFilePath() 737 src = FileUtil.findFile(fileName, null, moduleDir); in resolveRelativeFilePath() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | ModulePusher.java | 511 String fileName = line.trim(); in getApexPaths() local 514 if (fileName.contains("_")) { in getApexPaths() 515 endIndex = fileName.indexOf('_'); in getApexPaths() 516 } else if (fileName.contains(APEX_SUFFIX)) { in getApexPaths() 517 endIndex = fileName.indexOf(APEX_SUFFIX); in getApexPaths() 518 } else if (fileName.contains(CAPEX_SUFFIX)) { in getApexPaths() 519 endIndex = fileName.indexOf(CAPEX_SUFFIX); in getApexPaths() 522 builder.put(fileName.substring(0, endIndex), Paths.get(APEX_DIR, fileName)); in getApexPaths() 524 LogUtil.CLog.w("Got unexpected filename %s under /system/apex/", fileName); in getApexPaths() 681 static boolean hasExtension(String extension, File fileName) { in hasExtension() argument [all …]
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/multi/ |
D | MixImageZipPreparer.java | 443 for (String fileName : buildFileNames) { in getBuildFiles() 444 final File file = buildInfo.getFile(fileName); in getBuildFiles() 446 throw new IOException(String.format("Could not get file with name: %s", fileName)); in getBuildFiles() 448 factories.put(fileName, new FileInputStreamFactory(file)); in getBuildFiles() 615 void addSystemFileName(String fileName) { in addSystemFileName() argument 616 mSystemFileNames.add(fileName); in addSystemFileName() 625 void addResourceFileName(String fileName) { in addResourceFileName() argument 626 mExtraBuildResourceFiles.add(fileName); in addResourceFileName() 630 void addStubFileName(String fileName) { in addStubFileName() argument 631 mStubFileNames.add(fileName); in addStubFileName()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/metric/ |
D | BaseDeviceMetricCollectorTest.java | 606 String fileName = "source_file"; in testResolveRelativeFilePath_withDeviceBuildInfo() local 612 File sourceFile = FileUtil.createTempFile(fileName, null, hostTestCasesDir); in testResolveRelativeFilePath_withDeviceBuildInfo() 614 fileName = sourceFile.getName(); in testResolveRelativeFilePath_withDeviceBuildInfo() 615 when(buildInfo.getFile(fileName)).thenReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo() 624 mBase.getFileFromTestArtifacts(fileName) in testResolveRelativeFilePath_withDeviceBuildInfo() 627 buildInfoOrder.verify(buildInfo).getFile(fileName); in testResolveRelativeFilePath_withDeviceBuildInfo() 641 String fileName = "source_file"; in testUnableResolveRelativeFilePath_withDeviceBuildInfo() local 647 File sourceFile = FileUtil.createTempFile(fileName, null, hostTestCasesDir); in testUnableResolveRelativeFilePath_withDeviceBuildInfo() 649 fileName = sourceFile.getName(); in testUnableResolveRelativeFilePath_withDeviceBuildInfo() 677 String fileName = "source_file"; in testResolveRelativeFilePath_fromModule() local [all …]
|