/aosp_15_r20/tools/tradefederation/core/javatests/com/android/tradefed/util/testmapping/ |
D | TestMappingTest.java | 77 String srcFile = File.separator + TEST_DATA_DIR + File.separator + "test_mapping_1"; in testparseTestMapping() local 78 InputStream resourceStream = this.getClass().getResourceAsStream(srcFile); in testparseTestMapping() 206 String srcFile = File.separator + TEST_DATA_DIR + File.separator + "test_mapping_1"; in testGetTests() local 207 InputStream resourceStream = this.getClass().getResourceAsStream(srcFile); in testGetTests() 210 srcFile = File.separator + TEST_DATA_DIR + File.separator + "test_mapping_2"; in testGetTests() 211 resourceStream = this.getClass().getResourceAsStream(srcFile); in testGetTests() 213 srcFile = File.separator + TEST_DATA_DIR + File.separator + DISABLED_PRESUBMIT_TESTS; in testGetTests() 214 resourceStream = this.getClass().getResourceAsStream(srcFile); in testGetTests() 262 String srcFile = File.separator + TEST_DATA_DIR + File.separator + "test_mapping_1"; in testGetTests_matchKeywords() local 263 InputStream resourceStream = this.getClass().getResourceAsStream(srcFile); in testGetTests_matchKeywords() [all …]
|
/aosp_15_r20/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/ |
D | TestMappingSuiteRunnerTest.java | 223 String srcFile = in testLoadTestsWhenRemoteTestTimeoutIsSet() local 225 InputStream resourceStream = this.getClass().getResourceAsStream(srcFile); in testLoadTestsWhenRemoteTestTimeoutIsSet() 228 srcFile = File.separator + TEST_DATA_DIR + File.separator + "test_mapping_1"; in testLoadTestsWhenRemoteTestTimeoutIsSet() 229 resourceStream = this.getClass().getResourceAsStream(srcFile); in testLoadTestsWhenRemoteTestTimeoutIsSet() 232 srcFile = File.separator + TEST_DATA_DIR + File.separator + "test_mapping_2"; in testLoadTestsWhenRemoteTestTimeoutIsSet() 233 resourceStream = this.getClass().getResourceAsStream(srcFile); in testLoadTestsWhenRemoteTestTimeoutIsSet() 317 String srcFile = in testLoadTests_testMappingsZip() local 319 InputStream resourceStream = this.getClass().getResourceAsStream(srcFile); in testLoadTests_testMappingsZip() 322 srcFile = File.separator + TEST_DATA_DIR + File.separator + "test_mapping_1"; in testLoadTests_testMappingsZip() 323 resourceStream = this.getClass().getResourceAsStream(srcFile); in testLoadTests_testMappingsZip() [all …]
|
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/dist/ |
D | buildtool.go | 266 func isUnneededSSARewriteFile(srcFile, goArch string) (archCaps string, unneeded bool) { argument 267 if !strings.Contains(srcFile, ssaRewriteFileSubstring) { 270 fileArch := strings.TrimSuffix(strings.TrimPrefix(filepath.Base(srcFile), "rewrite"), ".go") 291 func bootstrapRewriteFile(srcFile string) string { 296 if archCaps, ok := isUnneededSSARewriteFile(srcFile, gohostarch); ok { 304 return bootstrapFixImports(srcFile) 312 func bootstrapFixImports(srcFile string) string { 313 text := readfile(srcFile) 314 if !strings.Contains(srcFile, "/cmd/") && !strings.Contains(srcFile, `\cmd\`) { 346 fatalf("%s:%d: invalid import declaration: %q", srcFile, i+1, line) [all …]
|
/aosp_15_r20/build/soong/cc/ |
H A D | gen.go | 263 for i, srcFile := range srcFiles { 264 switch srcFile.Ext() { 266 cFile := android.GenPathWithExt(ctx, "yacc", srcFile, "c") 268 deps = append(deps, genYacc(ctx, yaccRule(), srcFile, cFile, buildFlags.yacc)...) 271 cppFile := android.GenPathWithExt(ctx, "yacc", srcFile, "cpp") 273 deps = append(deps, genYacc(ctx, yaccRule(), srcFile, cppFile, buildFlags.yacc)...) 276 cFile := android.GenPathWithExt(ctx, "lex", srcFile, "c") 278 genLex(ctx, srcFile, cFile, buildFlags.lex) 281 cppFile := android.GenPathWithExt(ctx, "lex", srcFile, "cpp") 283 genLex(ctx, srcFile, cppFile, buildFlags.lex) [all …]
|
H A D | builder.go | 579 for i, srcFile := range srcFiles { 580 objFile := android.ObjPathWithExt(ctx, subdir, srcFile, "o") 585 switch srcFile.Ext() { 589 Description: "yasm " + srcFile.Rel(), 591 Input: srcFile, 600 objFiles[i] = srcFile 615 switch srcFile.Ext() { 641 …"Header file %s is not supported, instead use export_include_dirs or local_include_dirs.", srcFile) 644 …, "File %s has unknown extension. Supported extensions: .s, .S, .c, .cpp, .cc, .cxx, .mm", srcFile) 659 gcnoFile := android.ObjPathWithExt(ctx, subdir, srcFile, "gcno") [all …]
|
/aosp_15_r20/build/soong/java/ |
H A D | gen.go | 119 for _, srcFile := range srcFiles { 120 if srcFile.Ext() == ".aidl" { 121 baseDir := strings.TrimSuffix(srcFile.String(), srcFile.Rel()) 140 for _, srcFile := range srcFiles { 141 switch srcFile.Ext() { 143 aidlSrcs = append(aidlSrcs, srcFile) 145 j.logtagsSrcs = append(j.logtagsSrcs, srcFile) 146 javaFile := genLogtags(ctx, srcFile) 149 protoSrcs = append(protoSrcs, srcFile) 151 outSrcFiles = append(outSrcFiles, srcFile)
|
/aosp_15_r20/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | MixKernelTargetPreparer.java | 144 File srcFile = buildInfo.getFile(fileKey); in setUp() local 147 copyLabelFileToDir(fileKey, srcFile, tmpKernelDir); in setUp() 150 copyLabelFileToDir(fileKey, srcFile, tmpGkiDir); in setUp() 153 copyLabelFileToDir(fileKey, srcFile, tmpDeviceDir); in setUp() 155 copyDeviceImageToDir(srcFile, tmpDeviceDir); in setUp() 192 void copyDeviceImageToDir(File srcFile, File destDir) throws IOException { in copyDeviceImageToDir() argument 194 String srcFileName = srcFile.getName(); in copyDeviceImageToDir() 211 CLog.i("Copy %s to %s", srcFile.toString(), dstFile.toString()); in copyDeviceImageToDir() 213 if (srcFile.isDirectory()) { in copyDeviceImageToDir() 214 FileUtil.symlinkFile(srcFile, dstFile); in copyDeviceImageToDir() [all …]
|
/aosp_15_r20/external/bazelbuild-rules_go/go/tools/builders/ |
H A D | go_path.go | 128 srcFile, err := os.Open(abs(filepath.FromSlash(entry.Src))) 134 srcFile.Close() 137 if _, err := io.Copy(w, srcFile); err != nil { 138 srcFile.Close() 141 if err := srcFile.Close(); err != nil { 161 srcFile, err := os.Open(abs(filepath.FromSlash(entry.Src))) 167 srcFile.Close() 170 if _, err := io.Copy(dstFile, srcFile); err != nil { 172 srcFile.Close() 175 srcFile.Close()
|
/aosp_15_r20/cts/tests/media/src/android/mediav2/cts/ |
H A D | ExtractorTest.java | 893 private ArrayList<MediaCodec.BufferInfo> getSeekablePoints(String srcFile, String mediaType) 898 Preconditions.assertTestFileExists(MEDIA_DIR + srcFile); 899 extractor.setDataSource(MEDIA_DIR + srcFile); 921 private ArrayList<SeekTestParams> generateSeekTestArgs(String srcFile, String mediaType, 925 Preconditions.assertTestFileExists(MEDIA_DIR + srcFile); 928 extractor.setDataSource(MEDIA_DIR + srcFile); 950 ArrayList<MediaCodec.BufferInfo> bookmarks = getSeekablePoints(srcFile, mediaType); 1005 int checkSeekPoints(String srcFile, String mediaType, 1008 Preconditions.assertTestFileExists(MEDIA_DIR + srcFile); 1010 extractor.setDataSource(MEDIA_DIR + srcFile); [all …]
|
/aosp_15_r20/external/apache-commons-io/src/main/java/org/apache/commons/io/ |
H A D | FileUtils.java | 679 for (final File srcFile : srcFiles) { in copyDirectory() 680 exclusionList.add(new File(destDir, srcFile.getName()).getCanonicalPath()); in copyDirectory() 741 public static void copyFile(final File srcFile, final File destFile) throws IOException { in copyFile() argument 742 copyFile(srcFile, destFile, StandardCopyOption.REPLACE_EXISTING); in copyFile() 768 …public static void copyFile(final File srcFile, final File destFile, final boolean preserveFileDat… in copyFile() argument 769 copyFile(srcFile, destFile, preserveFileDate, StandardCopyOption.REPLACE_EXISTING); in copyFile() 798 …public static void copyFile(final File srcFile, final File destFile, final boolean preserveFileDat… in copyFile() argument 799 requireFileCopy(srcFile, destFile); in copyFile() 800 requireFile(srcFile, "srcFile"); in copyFile() 801 requireCanonicalPathsNotEquals(srcFile, destFile); in copyFile() [all …]
|
/aosp_15_r20/external/deqp/scripts/ |
H A D | make_release.py | 111 def __init__ (self, srcFile, dstFile): argument 113 self.srcFile = srcFile 119 shutil.copyfile(self.srcFile, self.dstFile) 139 def __init__ (self, srcFile, dstFile, replaceVars): argument 141 self.srcFile = srcFile 147 src = readFile(self.srcFile) 192 def __init__ (self, srcFile, dstFile, makeTarget): argument 193 self.srcFile = srcFile 198 fullSrcPath = os.path.normpath(os.path.join(packageBuildInfo.srcBasePath, self.srcFile)) 243 srcFile = os.path.normpath(os.path.join(buildRoot, "package", "bin", "dEQP-debug.apk")) [all …]
|
/aosp_15_r20/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/ |
H A D | com_github_javaparser_symbolsolver_resolution_typesolvers_JavaParserTypeSolver.txt | 1 …Line 72) parsedFiles.containsKey(srcFile.getAbsolutePath()) ==> java.util.Map.containsKey(java.lan… 2 Line 72) srcFile.getAbsolutePath() ==> java.io.File.getAbsolutePath() 3 …Line 73) parsedFiles.put(srcFile.getAbsolutePath(), JavaParser.parse(srcFile)) ==> java.util.Map.p… 4 Line 73) srcFile.getAbsolutePath() ==> java.io.File.getAbsolutePath() 5 Line 73) JavaParser.parse(srcFile) ==> com.github.javaparser.JavaParser.parse(java.io.File) 6 Line 75) parsedFiles.get(srcFile.getAbsolutePath()) ==> java.util.Map.get(java.lang.Object) 7 Line 75) srcFile.getAbsolutePath() ==> java.io.File.getAbsolutePath() 33 …Line 133) parse(srcFile) ==> com.github.javaparser.symbolsolver.resolution.typesolvers.JavaParserT… 40 …Line 143) parseDirectory(srcFile.getParentFile()) ==> com.github.javaparser.symbolsolver.resolutio… 41 Line 143) srcFile.getParentFile() ==> java.io.File.getParentFile()
|
/aosp_15_r20/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/ |
H A D | JavaParserTypeSolver.java | 110 private Optional<CompilationUnit> parse(Path srcFile) { in parse() argument 112 return parsedFiles.get(srcFile.toAbsolutePath(), () -> { in parse() 114 if (!Files.exists(srcFile) || !Files.isRegularFile(srcFile)) { in parse() 117 return javaParser.parse(COMPILATION_UNIT, provider(srcFile)) in parse() 119 .map(cu -> cu.setStorage(srcFile)); in parse() 121 …throw new RuntimeException("Issue while parsing while type solving: " + srcFile.toAbsolutePath(), … in parse() 202 Path srcFile = Paths.get(filePath.toString()); 204 Optional<CompilationUnit> compilationUnit = parse(srcFile); 216 List<CompilationUnit> compilationUnits = parseDirectory(srcFile.getParent());
|
/aosp_15_r20/external/lz4/tests/ |
H A D | checkFrame.c | 137 int frameCheck(cRess_t ress, FILE* const srcFile, unsigned bsid, size_t blockSize) in frameCheck() argument 152 readSize = fread(ress.srcBuffer, 1, ress.srcBufferSize, srcFile); in frameCheck() 204 if (ferror(srcFile)) EXM_THROW(26, "Read error"); in frameCheck() 292 FILE *srcFile; in main() local 299 srcFile = fopen(argument, "rb"); in main() 300 if ( srcFile==NULL ) { in main() 304 assert (srcFile != NULL); in main() 305 err = frameCheck(ress, srcFile, bsid, blockSize); in main() 307 fclose(srcFile); in main()
|
/aosp_15_r20/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/resolution/typesolvers/ |
H A D | JavaParserTypeSolver.java | 71 private CompilationUnit parse(File srcFile) throws FileNotFoundException { in parse() argument 72 if (!parsedFiles.containsKey(srcFile.getAbsolutePath())) { in parse() 73 parsedFiles.put(srcFile.getAbsolutePath(), JavaParser.parse(srcFile)); in parse() 75 return parsedFiles.get(srcFile.getAbsolutePath()); in parse() 131 File srcFile = new File(filePath); in tryToSolveTypeUncached() local 133 CompilationUnit compilationUnit = parse(srcFile); in tryToSolveTypeUncached() 143 List<CompilationUnit> compilationUnits = parseDirectory(srcFile.getParentFile()); in tryToSolveTypeUncached()
|
/aosp_15_r20/frameworks/av/media/module/libmediatranscoding/transcoder/benchmark/ |
H A D | MediaTrackTranscoderBenchmark.cpp | 395 const std::string& srcFile, bool mockReader, in BenchmarkTranscoderWithOperatingRate() argument 407 BenchmarkTranscoder(state, srcFile, mockReader, mediaType, editor); in BenchmarkTranscoderWithOperatingRate() 413 const char* srcFile = "video_1920x1080_3648frame_h264_22Mbps_30fps_aac.mp4"; in BM_VideoTranscode_AVC2AVC() local 414 BenchmarkTranscoderWithOperatingRate(state, srcFile, false /* mockReader */, kVideo); in BM_VideoTranscode_AVC2AVC() 418 const char* srcFile = "video_1920x1080_3648frame_h264_22Mbps_30fps_aac.mp4"; in BM_VideoTranscode_AVC2AVC_NoExtractor() local 419 BenchmarkTranscoderWithOperatingRate(state, srcFile, true /* mockReader */, kVideo); in BM_VideoTranscode_AVC2AVC_NoExtractor() 425 const char* srcFile = "video_1920x1080_3863frame_hevc_4Mbps_30fps_aac.mp4"; in BM_VideoTranscode_HEVC2AVC() local 426 BenchmarkTranscoderWithOperatingRate(state, srcFile, false /* mockReader */, kVideo); in BM_VideoTranscode_HEVC2AVC() 430 const char* srcFile = "video_1920x1080_3863frame_hevc_4Mbps_30fps_aac.mp4"; in BM_VideoTranscode_HEVC2AVC_NoExtractor() local 431 BenchmarkTranscoderWithOperatingRate(state, srcFile, true /* mockReader */, kVideo); in BM_VideoTranscode_HEVC2AVC_NoExtractor()
|
/aosp_15_r20/external/clang/utils/analyzer/ |
H A D | reducer.pl | 16 my $srcFile = "$dir/$file"; 17 `cp $file $srcFile`; 30 push @$command, $srcFile; 54 system("multidelta -level=$level $scriptFile $srcFile"); 64 `cp $srcFile $file.reduced`;
|
/aosp_15_r20/tools/tradefederation/contrib/src/com/android/tradefed/targetprep/ |
D | PerfettoHeapConfigTargetPreparer.java | 110 File srcFile = getFileFromTestArtifacts(testInfo.getBuildInfo(), pushFile); in setUp() local 111 updateTraceConfig(srcFile); in setUp() 112 pushFile(testInfo.getDevice(), srcFile, mPushFiles.get(pushFile)); in setUp() local 125 private void updateTraceConfig(File srcFile) { in updateTraceConfig() argument 165 FileWriter fileWriter = new FileWriter(srcFile, true); in updateTraceConfig() 166 storeToFile(srcFile.getName(), modifiedResult, fileWriter); in updateTraceConfig() 169 CLog.e(String.format("Unable to update file %s ", srcFile.getName()), e); in updateTraceConfig()
|
/aosp_15_r20/build/make/tools/libhost/ |
H A D | CopyFile.c | 493 char* srcFile; in copyDirectory() local 511 srcFile = malloc(srcLen +1 + nameLen +1); in copyDirectory() 512 memcpy(srcFile, src, srcLen); in copyDirectory() 513 srcFile[srcLen] = FSSEP; in copyDirectory() 514 memcpy(srcFile + srcLen+1, ent->d_name, nameLen +1); in copyDirectory() 521 if (copyFileRecursive(srcFile, dstFile, false, options) != 0) in copyDirectory() 524 free(srcFile); in copyDirectory()
|
/aosp_15_r20/external/lz4/programs/ |
H A D | lz4io.c | 1176 FILE* const srcFile = LZ4IO_openSrcFile(srcFileName); in LZ4IO_compressFilename_extRess_MT() local 1177 if (srcFile == NULL) return 1; in LZ4IO_compressFilename_extRess_MT() 1179 if (dstFile == NULL) { fclose(srcFile); return 1; } in LZ4IO_compressFilename_extRess_MT() 1185 U64 const fileSize = UTIL_getOpenFileSize(srcFile); in LZ4IO_compressFilename_extRess_MT() 1193 readSize = fread(srcBuffer, (size_t)1, chunkSize, srcFile); in LZ4IO_compressFilename_extRess_MT() 1194 if (ferror(srcFile)) in LZ4IO_compressFilename_extRess_MT() 1236 rjd.fin = srcFile; in LZ4IO_compressFilename_extRess_MT() 1333 fclose (srcFile); in LZ4IO_compressFilename_extRess_MT() 1384 FILE* const srcFile = LZ4IO_openSrcFile(srcFileName); in LZ4IO_compressFilename_extRess_ST() local 1385 if (srcFile == NULL) return 1; in LZ4IO_compressFilename_extRess_ST() [all …]
|
/aosp_15_r20/external/ksp/integration-tests/src/test/kotlin/com/google/devtools/ksp/test/ |
H A D | OutputDepsIt.kt | 112 val srcFile = File(project.root, src) in <lambda>() constant 116 srcFile.appendText("\n\n") in <lambda>() 126 Assert.assertTrue(it.lastModified() > srcFile.lastModified()) in <lambda>() 128 Assert.assertTrue(it.lastModified() < srcFile.lastModified()) in <lambda>()
|
/aosp_15_r20/cts/tests/tests/media/misc/src/android/media/misc/cts/ |
H A D | ExifInterfaceTest.java | 539 File srcFile = new File(mInpPrefix, fileName); in writeToFilesWithExif() local 540 File imageFile = clone(srcFile); in writeToFilesWithExif() 547 assertBitmapsEquivalent(srcFile, imageFile); in writeToFilesWithExif() 624 File srcFile = new File(mInpPrefix, fileName); in writeToFilesWithoutExif() local 625 File imageFile = clone(srcFile); in writeToFilesWithoutExif() 631 assertBitmapsEquivalent(srcFile, imageFile); in writeToFilesWithoutExif() 776 File srcFile = new File(mInpPrefix, JPEG_WITH_DATETIME_TAG); in testGetSetDateTime() local 777 File imageFile = clone(srcFile); in testGetSetDateTime() 833 File srcFile = new File(mInpPrefix, JPEG_WITH_EXIF_BYTE_ORDER_MM); in testSetAttribute() local 834 File imageFile = clone(srcFile); in testSetAttribute() [all …]
|
/aosp_15_r20/cts/tests/media/common/src/android/mediav2/common/cts/ |
H A D | CodecDecoderTestBase.java | 113 protected MediaFormat setUpSource(String srcFile) throws IOException { in setUpSource() argument 114 Preconditions.assertTestFileExists(srcFile); in setUpSource() 116 mExtractor.setDataSource(srcFile); in setUpSource() 125 getMaxSampleSizeForMediaType(srcFile, mMediaType)); in setUpSource() 132 if (!selectHBD && srcFile.contains("10bit")) { in setUpSource() 153 mIsInterlaced = srcFile.contains("_interlaced_"); in setUpSource() 157 fail("No track with mediaType: " + mMediaType + " found in file: " + srcFile + "\n" in setUpSource()
|
/aosp_15_r20/frameworks/av/media/module/libmediatranscoding/transcoder/tools/ |
H A D | Transcode.cpp | 73 std::string srcFile; member 84 const int srcFd = open(config.srcFile.c_str(), O_RDONLY); in transcode() 86 ERR_MSG("Unable to open source file %s", config.srcFile.c_str()); in transcode() 206 config.srcFile.assign(argv[optind++]); in main()
|
/aosp_15_r20/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/ |
H A D | FileCopier.java | 65 String srcFile, in copyAndReplace() argument 71 new InputStreamReader(cls.getResourceAsStream(srcFile), charSet), in copyAndReplace() 198 String srcFile, in copyAndReplace() argument 204 new InputStreamReader(cls.getResourceAsStream(srcFile)), in copyAndReplace()
|