Home
last modified time | relevance | path

Searched refs:in_file (Results 1 – 25 of 64) sorted by relevance

123

/third_party/python/Lib/distutils/tests/
Dtest_text_file.py62 in_file = TextFile(filename, strip_comments=0, skip_blanks=0,
65 test_input(1, "no processing", in_file, result1)
67 in_file.close()
69 in_file = TextFile(filename, strip_comments=1, skip_blanks=0,
72 test_input(2, "strip comments", in_file, result2)
74 in_file.close()
76 in_file = TextFile(filename, strip_comments=0, skip_blanks=1,
79 test_input(3, "strip blanks", in_file, result3)
81 in_file.close()
83 in_file = TextFile(filename)
[all …]
/third_party/python/Lib/
Duu.py42 def encode(in_file, out_file, name=None, mode=None, *, backtick=False): argument
49 if in_file == '-':
50 in_file = sys.stdin.buffer
51 elif isinstance(in_file, str):
53 name = os.path.basename(in_file)
56 mode = os.stat(in_file).st_mode
59 in_file = open(in_file, 'rb')
60 opened_files.append(in_file)
87 data = in_file.read(45)
90 data = in_file.read(45)
[all …]
/third_party/elfutils/tests/
Drun-large-elf-file.sh75 in_file="$1"
76 readelf_out="${in_file}.readelf.out"
77 out_file_strip="${in_file}.strip"
78 out_file_debug="${in_file}.debug"
80 testfiles ${in_file}
84 echo "addsections 2 ${in_file} 2147483648"
85 testrun ${abs_builddir}/addsections 2 ${in_file} 2147483648
86 testrun ${abs_top_builddir}/src/readelf -S ${in_file} > ${readelf_out}
94 echo "strip -o ${out_file_strip} -f ${out_file_debug} ${in_file}"
96 -f ${out_file_debug} ${in_file}
[all …]
Drun-copyadd-sections.sh22 in_file="$1"
23 out_file="${in_file}.copy"
26 testfiles ${in_file}
30 testrun ${abs_builddir}/elfcopy ${in_file} ${out_file}
31 testrun ${abs_top_builddir}/src/elfcmp ${in_file} ${out_file}
44 testrun ${abs_builddir}/elfcopy --mmap ${in_file} ${out_file_mmap}
45 testrun ${abs_top_builddir}/src/elfcmp ${in_file} ${out_file_mmap}
Drun-reverse-sections.sh22 in_file="$1"
23 out_file="${in_file}.rev"
26 testfiles ${in_file}
30 testrun ${abs_builddir}/elfcopy --reverse-offs ${in_file} ${out_file}
31 testrun ${abs_top_builddir}/src/elfcmp ${in_file} ${out_file}
35 testrun ${abs_top_builddir}/src/elfcmp ${in_file} ${out_file}
Drun-copymany-sections.sh27 in_file="$1"
28 out_file="${in_file}.copy"
34 testrun ${abs_builddir}/elfcopy ${in_file} ${out_file}
35 testrun ${abs_top_builddir}/src/elfcmp ${in_file} ${out_file}
49 testrun ${abs_builddir}/elfcopy --mmap ${in_file} ${out_file_mmap}
50 testrun ${abs_top_builddir}/src/elfcmp ${in_file} ${out_file_mmap}
Drun-reverse-sections-self.sh22 in_file="$1"
23 base_name="$(basename ${in_file})"
30 testrun ${abs_builddir}/elfcopy --reverse-offs ${in_file} ${out_file}
31 testrun ${abs_top_builddir}/src/elfcmp ${in_file} ${out_file}
35 testrun ${abs_top_builddir}/src/elfcmp ${in_file} ${out_file}
/third_party/icu/tools/unicode/py/
Dpreparseucd.py358 def ReadUCDLines(in_file, want_ranges=True, want_other=False, argument
364 for line in in_file:
430 def ParsePropertyAliases(in_file): argument
440 for data in ReadUCDLines(in_file, want_ranges=False,
540 def ParsePropertyValueAliases(in_file): argument
542 for data in ReadUCDLines(in_file, want_ranges=False,
603 def ParseBlocks(in_file): argument
604 for data in ReadUCDLines(in_file, want_missing=True):
626 def ParseUnicodeData(in_file): argument
630 for data in ReadUCDLines(in_file, want_missing=True):
[all …]
/third_party/skia/third_party/externals/brotli/python/tests/
Dcompressor_test.py29 with open(temp_compressed, 'rb') as in_file:
30 out_file.write(brotli.decompress(in_file.read()))
37 with open(test_data, 'rb') as in_file:
38 out_file.write(self.compressor.process(in_file.read()))
46 with open(test_data, 'rb') as in_file:
47 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
57 with open(test_data, 'rb') as in_file:
58 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
Dcompress_test.py23 with open(temp_compressed, 'rb') as in_file:
24 out_file.write(brotli.decompress(in_file.read(), **kwargs))
30 with open(test_data, 'rb') as in_file:
31 out_file.write(brotli.compress(in_file.read(), **kwargs))
Dbro_test.py37 with open(test_data, 'rb') as in_file:
39 args, stdin=in_file, stdout=out_file, env=TEST_ENV)
85 with open(test_data, 'rb') as in_file:
87 args, stdin=in_file, stdout=out_file, env=TEST_ENV)
/third_party/skia/third_party/externals/spirv-tools/tools/lint/
Dlint.cpp39 LintStatus ParseFlags(int argc, const char** argv, const char** in_file) { in ParseFlags() argument
47 *in_file = argv[1]; in ParseFlags()
54 const char* in_file = nullptr; in main() local
61 LintStatus status = ParseFlags(argc, argv, &in_file); in main()
68 if (!ReadBinaryFile(in_file, &binary)) { in main()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/tools/lint/
Dlint.cpp39 LintStatus ParseFlags(int argc, const char** argv, const char** in_file) { in ParseFlags() argument
47 *in_file = argv[1]; in ParseFlags()
54 const char* in_file = nullptr; in main() local
61 LintStatus status = ParseFlags(argc, argv, &in_file); in main()
68 if (!ReadBinaryFile(in_file, &binary)) { in main()
/third_party/spirv-tools/tools/lint/
Dlint.cpp39 LintStatus ParseFlags(int argc, const char** argv, const char** in_file) { in ParseFlags() argument
47 *in_file = argv[1]; in ParseFlags()
54 const char* in_file = nullptr; in main() local
61 LintStatus status = ParseFlags(argc, argv, &in_file); in main()
68 if (!ReadBinaryFile(in_file, &binary)) { in main()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/tools/opt/
Dopt.cpp588 spvtools::Optimizer* optimizer, const char** in_file,
601 spvtools::Optimizer* optimizer, const char** in_file, in ParseOconfigFlag() argument
628 ParseFlags(static_cast<int>(flags.size()), new_argv, optimizer, in_file, in ParseOconfigFlag()
683 spvtools::Optimizer* optimizer, const char** in_file, in ParseFlags() argument
707 if (!*in_file) { in ParseFlags()
708 *in_file = cur_arg; in ParseFlags()
716 ParseOconfigFlag(argv[0], cur_arg, optimizer, in_file, out_file, in ParseFlags()
789 if (!*in_file) { in ParseFlags()
790 *in_file = cur_arg; in ParseFlags()
809 const char* in_file = nullptr; in main() local
[all …]
/third_party/skia/third_party/externals/spirv-tools/tools/opt/
Dopt.cpp588 spvtools::Optimizer* optimizer, const char** in_file,
601 spvtools::Optimizer* optimizer, const char** in_file, in ParseOconfigFlag() argument
628 ParseFlags(static_cast<int>(flags.size()), new_argv, optimizer, in_file, in ParseOconfigFlag()
683 spvtools::Optimizer* optimizer, const char** in_file, in ParseFlags() argument
707 if (!*in_file) { in ParseFlags()
708 *in_file = cur_arg; in ParseFlags()
716 ParseOconfigFlag(argv[0], cur_arg, optimizer, in_file, out_file, in ParseFlags()
789 if (!*in_file) { in ParseFlags()
790 *in_file = cur_arg; in ParseFlags()
809 const char* in_file = nullptr; in main() local
[all …]
/third_party/spirv-tools/tools/opt/
Dopt.cpp600 spvtools::Optimizer* optimizer, const char** in_file,
613 spvtools::Optimizer* optimizer, const char** in_file, in ParseOconfigFlag() argument
640 ParseFlags(static_cast<int>(flags.size()), new_argv, optimizer, in_file, in ParseOconfigFlag()
695 spvtools::Optimizer* optimizer, const char** in_file, in ParseFlags() argument
719 if (!*in_file) { in ParseFlags()
720 *in_file = cur_arg; in ParseFlags()
728 ParseOconfigFlag(argv[0], cur_arg, optimizer, in_file, out_file, in ParseFlags()
801 if (!*in_file) { in ParseFlags()
802 *in_file = cur_arg; in ParseFlags()
821 const char* in_file = nullptr; in main() local
[all …]
/third_party/flutter/skia/third_party/externals/spirv-tools/tools/opt/
Dopt.cpp81 const char* in_file = nullptr; in main() local
164 if (!in_file) { in main()
165 in_file = cur_arg; in main()
175 if (!in_file) { in main()
176 in_file = cur_arg; in main()
190 if (!ReadFile<uint32_t>(in_file, "rb", &binary)) return 1; in main()
/third_party/skia/third_party/externals/tint/fuzzers/
Dgenerate_wgsl_corpus.py52 for in_file in list_wgsl_files(input_dir):
53 if in_file.endswith(".expected.wgsl"):
55 out_file = in_file[len(input_dir) + 1:].replace(os.sep, '_')
56 shutil.copy(in_file, corpus_dir + os.sep + out_file)
Dgenerate_spirv_corpus.py65 for in_file in list_spvasm_files(input_dir):
66 if in_file.endswith(".expected.spvasm"):
69 in_file[len(input_dir) + 1:]
74 in_file,
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
Dgenanchorlinks.py11 def genAnchorLinks(in_file, out_file): argument
13 with open(in_file, 'r', encoding='utf8') as f: data = f.read()
15 print('Error: File %s does not exist.' % in_file)
/third_party/python/Doc/library/
Duu.rst31 .. function:: encode(in_file, out_file, name=None, mode=None, *, backtick=False)
33 Uuencode file *in_file* into file *out_file*. The uuencoded file will have
35 decoding the file. The default defaults are taken from *in_file*, or ``'-'``
43 .. function:: decode(in_file, out_file=None, mode=None, quiet=False)
45 This call decodes uuencoded file *in_file* placing the result on file
/third_party/skia/third_party/externals/libwebp/examples/
Ddwebp.c182 const char* in_file = NULL; in main() local
291 if (c < argc - 1) in_file = (const char*)GET_WARGV(argv, ++c); in main()
298 in_file = (const char*)GET_WARGV(argv, c); in main()
307 if (in_file == NULL) { in main()
318 if (!LoadWebP(in_file, &data, &data_size, bitstream)) { in main()
389 PrintWebPError(in_file, status); in main()
396 WFPRINTF(stderr, "Decoded %s.", (const W_CHAR*)in_file); in main()
405 WFPRINTF(stderr, "File %s can be decoded ", (const W_CHAR*)in_file); in main()
/third_party/flutter/skia/third_party/externals/libwebp/examples/
Ddwebp.c181 const char *in_file = NULL; in main() local
290 if (c < argc - 1) in_file = (const char*)GET_WARGV(argv, ++c); in main()
297 in_file = (const char*)GET_WARGV(argv, c); in main()
306 if (in_file == NULL) { in main()
317 if (!LoadWebP(in_file, &data, &data_size, bitstream)) { in main()
388 PrintWebPError(in_file, status); in main()
395 WFPRINTF(stderr, "Decoded %s.", (const W_CHAR*)in_file); in main()
404 WFPRINTF(stderr, "File %s can be decoded ", (const W_CHAR*)in_file); in main()
/third_party/mesa3d/bin/
Dgen_vs_module_defs.py38 def gen_vs_module_def(in_file: str, out_file: str, compiler_id: str, cpu_family: str) -> None:
40 with open(in_file, 'r', encoding='utf-8') as f:
98 gen_vs_module_def(args.in_file, args.out_file, args.compiler_id, args.cpu_family)

123