Home
last modified time | relevance | path

Searched refs:inputFile (Results 1 – 25 of 58) sorted by relevance

123

/external/zstd/contrib/pzstd/test/
DPzstdTest.cpp34 std::string inputFile = std::tmpnam(nullptr); in TEST() local
35 auto guard = makeScopeGuard([&] { std::remove(inputFile.c_str()); }); in TEST()
39 auto fd = std::fopen(inputFile.c_str(), "wb"); in TEST()
52 options.inputFiles = {inputFile}; in TEST()
69 std::string inputFile = std::tmpnam(nullptr); in TEST() local
70 auto guard = makeScopeGuard([&] { std::remove(inputFile.c_str()); }); in TEST()
74 auto fd = std::fopen(inputFile.c_str(), "wb"); in TEST()
87 options.inputFiles = {inputFile}; in TEST()
103 std::string inputFile = std::tmpnam(nullptr); in TEST() local
104 auto guard = makeScopeGuard([&] { std::remove(inputFile.c_str()); }); in TEST()
[all …]
DRoundTripTest.cpp49 Options generateOptions(Generator& gen, const string& inputFile) { in generateOptions() argument
51 options.inputFiles = {inputFile}; in generateOptions()
72 auto inputFile = generateInputFile(gen); in main() local
73 auto inputGuard = makeScopeGuard([&] { std::remove(inputFile.c_str()); }); in main()
75 auto options = generateOptions(gen, inputFile); in main()
80 std::fprintf(stderr, "file: %s\n", inputFile.c_str()); in main()
/external/libxaac/test/
Dixheaacd_fileifc.c40 transport->inputFile = NULL; in FileWrapper_Open()
51 transport->inputFile = fopen(fileName, "rb"); in FileWrapper_Open()
52 if (!transport->inputFile) { in FileWrapper_Open()
63 transport->inputFile = fopen(fileName, "rb"); in FileWrapper_Open()
64 if (!transport->inputFile) { in FileWrapper_Open()
80 transport->inputFile = fopen(fileName, "rb"); in FileWrapper_Open()
81 if (!transport->inputFile) { in FileWrapper_Open()
93 *length = fread(buffer, 1, bufSize, transport->inputFile); in FileWrapper_Read()
154 *length = fread(buffer, 1, bufSize, transport->inputFile); in FileWrapper_Read()
169 if (transport->inputFile) in FileWrapper_Close()
[all …]
/external/parameter-framework/upstream/test/test-subsystem/
DTESTSubsystemObject.cpp82 std::ifstream inputFile; in receiveFromHW() local
84 inputFile.open(_strFilePath.c_str()); in receiveFromHW()
86 if (!inputFile.is_open()) { in receiveFromHW()
91 receiveFromFile(inputFile); in receiveFromHW()
93 inputFile.close(); in receiveFromHW()
126 void CTESTSubsystemObject::receiveFromFile(std::ifstream &inputFile) in receiveFromFile() argument
136 inputFile >> strValue; in receiveFromFile()
/external/icu/tools/srcgen/src/main/java/com/android/icu4j/srcgen/
DIcu4jTransformRules.java37 File inputFile = new File(dirNames[i]); in createInputFileGenerator() local
39 if (isValidDir(inputFile)) { in createInputFileGenerator()
40 inputFileGenerator = new DirectoryInputFileGenerator(inputFile); in createInputFileGenerator()
41 } else if (isValidFile(inputFile)) { in createInputFileGenerator()
42 inputFileGenerator = new FilesInputFileGenerator(inputFile); in createInputFileGenerator()
44 throw new IllegalArgumentException("Input arg [" + inputFile + "] does not exist."); in createInputFileGenerator()
/external/dagger2/java/dagger/hilt/android/plugin/src/main/kotlin/dagger/hilt/android/plugin/
DAndroidEntryPointTransform.kt151 inputFile: File, in <lambda>()
155 if (inputFile.isClassFile()) { in <lambda>()
156 transformer.transformFile(inputFile) in <lambda>()
157 } else if (inputFile.isFile) { in <lambda>()
160 val outputFile = File(outputDir, inputFile.name) in <lambda>()
161 inputFile.copyTo(target = outputFile, overwrite = true) in <lambda>()
172 private fun toOutputFile(outputDir: File, inputDir: File, inputFile: File) = in <lambda>()
173 File(outputDir, inputFile.relativeTo(inputDir).path) in <lambda>()
DAndroidEntryPointClassTransformer.kt67 fun transformJarContents(inputFile: File): Boolean { in <lambda>()
68 require(inputFile.isJarFile()) { in <lambda>()
69 "Invalid file, '$inputFile' is not a jar." in <lambda>()
78 ZipInputStream(FileInputStream(inputFile)).use { input -> in <lambda>()
97 fun transformFile(inputFile: File): Boolean { in <lambda>()
98 check(inputFile.isClassFile()) { in <lambda>()
99 "Invalid file, '$inputFile' is not a class." in <lambda>()
101 val clazz = inputFile.inputStream().use { classPool.makeClass(it, false) } in <lambda>()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/cpio/
DCpioArchiveEntry.java313 public CpioArchiveEntry(final File inputFile, final String entryName) { in CpioArchiveEntry() argument
314 this(FORMAT_NEW, inputFile, entryName); in CpioArchiveEntry()
338 public CpioArchiveEntry(final short format, final File inputFile, in CpioArchiveEntry() argument
340 this(format, entryName, inputFile.isFile() ? inputFile.length() : 0); in CpioArchiveEntry()
341 if (inputFile.isDirectory()){ in CpioArchiveEntry()
343 } else if (inputFile.isFile()){ in CpioArchiveEntry()
347 + inputFile.getName()); in CpioArchiveEntry()
350 setTime(inputFile.lastModified() / 1000); in CpioArchiveEntry()
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/sbcs/
DStatisticsTool.java53 private InputFile inputFile; field in StatisticsTool
124 bufMax = nextBuffer(inputFile); in nextChar()
146 String filename = inputFile.getPath(); in dumpNGrams()
160 …System.out.println(inputFile.getFilename() + ": " + ngrams.getUniqueNGrams() + "/" + ngrams.getTot… in dumpNGrams()
166 NGramList stats = new NGramList(inputFile); in dumpNGrams()
193 String filename = inputFile.getPath(); in writeStatistics()
195 String outputFileName = filename.substring(0, extension) + "-" + inputFile.getEncoding() + in writeStatistics()
234 char[] unicodes = inputFile.decode(allBytes); in writeStatistics()
255 byte[] byteMap = inputFile.encode(unicodes); in writeStatistics()
276 inputFile = file; in collectStatistics()
[all …]
/external/jacoco/jacoco-maven-plugin/src/org/jacoco/maven/
DMergeMojo.java92 final File inputFile = new File(fileSet.getDirectory(), in load() local
94 if (inputFile.isDirectory()) { in load()
100 + inputFile.getAbsolutePath()); in load()
101 loader.load(inputFile); in load()
104 + inputFile.getAbsolutePath(), e); in load()
/external/llvm-project/flang/unittests/Frontend/
DPrintPreprocessedTest.cpp21 std::string inputFile = "test-file.f"; in TEST() local
28 new llvm::raw_fd_ostream(inputFile, ec, llvm::sys::fs::OF_None)}; in TEST()
46 testFilePath += "/" + inputFile; in TEST()
76 llvm::sys::fs::remove(inputFile); in TEST()
DInputOutputTest.cpp22 std::string inputFile = "io-file-test.f"; in TEST() local
29 new llvm::raw_fd_ostream(inputFile, ec, llvm::sys::fs::OF_None)}; in TEST()
42 testFilePath += "/" + inputFile; in TEST()
70 ec = llvm::sys::fs::remove(inputFile); in TEST()
DCompilerInstanceTest.cpp23 std::string inputFile = "buffer-file-test.f"; in TEST() local
30 new llvm::raw_fd_ostream(inputFile, ec, llvm::sys::fs::OF_None)}; in TEST()
43 testFilePath += "/" + inputFile; in TEST()
61 ec = llvm::sys::fs::remove(inputFile); in TEST()
/external/angle/third_party/vulkan-deps/glslang/src/StandAlone/
Dspirv-remap.cpp158 void execute(const std::vector<std::string>& inputFile, const std::string& outputDir, in execute() argument
161 for (auto it = inputFile.cbegin(); it != inputFile.cend(); ++it) { in execute()
173 std::cout << "Done: " << inputFile.size() << " file(s) processed" << std::endl; in execute()
177 void parseCmdLine(int argc, char** argv, std::vector<std::string>& inputFile, in parseCmdLine() argument
235 inputFile.push_back(argv[a]); in parseCmdLine()
316 std::vector<std::string> inputFile; in main() local
332 parseCmdLine(argc, argv, inputFile, outputDir, opts, verbosity); in main()
338 execute(inputFile, outputDir, opts, verbosity); in main()
/external/deqp-deps/glslang/StandAlone/
Dspirv-remap.cpp158 void execute(const std::vector<std::string>& inputFile, const std::string& outputDir, in execute() argument
161 for (auto it = inputFile.cbegin(); it != inputFile.cend(); ++it) { in execute()
173 std::cout << "Done: " << inputFile.size() << " file(s) processed" << std::endl; in execute()
177 void parseCmdLine(int argc, char** argv, std::vector<std::string>& inputFile, in parseCmdLine() argument
235 inputFile.push_back(argv[a]); in parseCmdLine()
316 std::vector<std::string> inputFile; in main() local
332 parseCmdLine(argc, argv, inputFile, outputDir, opts, verbosity); in main()
338 execute(inputFile, outputDir, opts, verbosity); in main()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/ar/
DArArchiveEntry.java114 public ArArchiveEntry(final File inputFile, final String entryName) { in ArArchiveEntry() argument
116 this(entryName, inputFile.isFile() ? inputFile.length() : 0, in ArArchiveEntry()
117 0, 0, DEFAULT_MODE, inputFile.lastModified() / 1000); in ArArchiveEntry()
/external/llvm-project/polly/utils/
Djscop2cloog.py62 inputFile = args.inputFile
63 scop = json.load(inputFile)
/external/llvm-project/polly/utils/pyscop/
Djscop2iscc.py54 inputFile = args.inputFile
55 scop = json.load(inputFile)
/external/antlr/tool/src/test/java/org/antlr/test/
DBaseTest.java402 String inputFile = new File(tmpdir, "input").getAbsolutePath(); in execClass() local
403 StreamVacuum stdoutVacuum = new StreamVacuum(stdoutIn, inputFile); in execClass()
404 StreamVacuum stderrVacuum = new StreamVacuum(stderrIn, inputFile); in execClass()
414 mainMethod.invoke(null, (Object)new String[] { inputFile }); in execClass()
456 String inputFile = new File(tmpdir, "input").getAbsolutePath(); in execClass() local
459 className, inputFile in execClass()
465 StreamVacuum stdoutVacuum = new StreamVacuum(process.getInputStream(), inputFile); in execClass()
466 StreamVacuum stderrVacuum = new StreamVacuum(process.getErrorStream(), inputFile); in execClass()
594 String inputFile; field in BaseTest.StreamVacuum
595 public StreamVacuum(InputStream in, String inputFile) { in StreamVacuum() argument
[all …]
/external/bcc/src/cc/frontends/p4/compiler/
Dp4toEbpf.py76 def compileP4(inputFile, gen_file, isRouter, preprocessor_args): argument
77 h = HLIR(inputFile)
85 basename = os.path.basename(inputFile)
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/output/
DBasicOutputSourceFileGenerator.java36 public File generate(CompilationUnit cu, File inputFile) { in generate() argument
37 String sourceFileName = inputFile.getName(); in generate()
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/
DMain.java90 for (File inputFile : inputFileGenerator.generate()) { in execute()
91 System.out.println("Processing: " + inputFile); in execute()
93 String source = readSource(inputFile); in execute()
95 inputFile, parser, source, new PrintWriter(reportWriter), compilerOptions in execute()
99 List<Rule> ruleList = ruleSet.getRuleList(inputFile); in execute()
107 compilationUnitHandler.getCompilationUnit(), inputFile); in execute()
/external/zstd/contrib/pzstd/
DPzstd.cpp51 const std::string &inputFile, in handleOneInput() argument
56 auto inputSize = fileSizeOrZero(inputFile); in handleOneInput()
92 std::string inputFileName = inputFile == "-" ? "stdin" : inputFile; in handleOneInput()
109 static FILE *openInputFile(const std::string &inputFile, in openInputFile() argument
111 if (inputFile == "-") { in openInputFile()
118 if (is_directory(inputFile, ec)) { in openInputFile()
123 auto inputFd = std::fopen(inputFile.c_str(), "rb"); in openInputFile()
DOptions.cpp408 std::string Options::getOutputFile(const std::string &inputFile) const { in getOutputFile()
414 int stemSize = inputFile.size() - kZstdExtension.size(); in getOutputFile()
415 if (stemSize > 0 && inputFile.substr(stemSize) == kZstdExtension) { in getOutputFile()
416 return inputFile.substr(0, stemSize); in getOutputFile()
421 return inputFile + kZstdExtension; in getOutputFile()
/external/clang/www/demo/
Dindex.cgi347 my $inputFile = writeIntoFile( $extension, $source );
359 "stkrc $stats -o $bytecodeFile $inputFile > $outputFile 2>&1",
366 "llvm-gcc -emit-llvm -W -Wall -O2 $stats -o $bytecodeFile -c $inputFile > $outputFile 2>&1",
441 chomp( $lines = `wc -l < $inputFile` );
456 unlink( $inputFile, $bytecodeFile, $outputFile, $disassemblyFile );

123