Home
last modified time | relevance | path

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

1234

/external/python/setuptools/setuptools/_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 …]
/external/python/cpython3/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 …]
/external/python/cpython2/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 …]
/external/python/cpython2/Lib/
Duu.py42 def encode(in_file, out_file, name=None, mode=None): argument
49 if in_file == '-':
50 in_file = sys.stdin
51 elif isinstance(in_file, basestring):
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)
80 data = in_file.read(45)
83 data = in_file.read(45)
[all …]
/external/python/cpython3/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 …]
/external/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}
/external/e2fsprogs/contrib/android/
Dext2simg.c30 char *in_file; member
77 if (sparse_file_add_file(s, params.in_file, offset, len, chunk_start) < 0) in add_chunk()
92 ext2fs_fatal(retval, "reading data from %s", params.in_file); in add_chunk()
119 static struct sparse_file *ext_to_sparse(const char *in_file) in ext_to_sparse() argument
127 retval = ext2fs_open(in_file, 0, 0, 0, unix_io_manager, &fs); in ext_to_sparse()
129 ext2fs_fatal(retval, "while reading %s", in_file); in ext_to_sparse()
133 ext2fs_fatal(retval, "while reading block bitmap of %s", in_file); in ext_to_sparse()
227 params.in_file = strdup(argv[optind++]); in main()
229 params.overwrite_input = same_file(params.in_file, params.out_file); in main()
231 s = ext_to_sparse(params.in_file); in main()
[all …]
/external/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))
/external/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()
/external/deqp-deps/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()
/external/webrtc/modules/audio_processing/agc/
Dloudness_histogram_unittest.cc55 FILE* in_file = fopen(std::string(filename).c_str(), "rb"); in RunTest() local
56 ASSERT_TRUE(in_file != NULL); in RunTest()
59 EXPECT_EQ(fread(&buffer_size, sizeof(buffer_size), 1, in_file), 1u); in RunTest()
68 while (fread(&io, sizeof(InputOutput), 1, in_file) == 1) { in RunTest()
75 if (fread(&io, sizeof(InputOutput), 1, in_file) != 1) in RunTest()
92 fclose(in_file); in RunTest()
/external/webrtc/modules/audio_coding/test/
DTestVADDTX.cc122 PCMFile in_file; in Run() local
123 in_file.Open(in_filename, frequency, "rb"); in Run()
124 in_file.ReadStereo(channels > 1); in Run()
126 in_file.SetNum10MsBlocksToRead(100); in Run()
129 in_file.FastForward(50); in Run()
138 uint16_t frame_size_samples = in_file.PayloadLength10Ms(); in Run()
140 while (!in_file.EndOfFile()) { in Run()
141 in_file.Read10MsData(audio_frame); in Run()
151 in_file.Close(); in Run()
/external/rust/crates/libz-sys/src/zlib-ng/test/benchmarks/
Dbenchmark_png_decode.cc86 FILE *in_file = files[i]; in SetUp() local
87 fseek(in_file, 0, SEEK_END); in SetUp()
88 size_t num_bytes = ftell(in_file); in SetUp()
89 rewind(in_file); in SetUp()
99 size_t bytes_read = fread(raw_file, 1, num_bytes, in_file); in SetUp()
105 fclose(in_file); in SetUp()
/external/webrtc/modules/audio_coding/neteq/tools/
Drtp_jitter.cc90 FILE* in_file = fopen(argv[1], "rb"); in RunRtpJitter() local
91 RTC_CHECK(in_file) << "Could not open file " << argv[1] << " for reading"; in RunRtpJitter()
100 RTC_CHECK(fgets(header_string, 30, in_file)); in RunRtpJitter()
103 RTC_CHECK_EQ(fread(file_header, sizeof(file_header), 1, in_file), 1); in RunRtpJitter()
118 auto packet = ReadNextPacket(in_file); in RunRtpJitter()
137 fclose(in_file); in RunRtpJitter()
/external/angle/third_party/vulkan-deps/spirv-tools/src/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 …]
/external/deqp-deps/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 …]
/external/swiftshader/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 …]
/external/gfxstream-protocols/registry/vulkan/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)
/external/webrtc/modules/audio_processing/transient/
Dtransient_suppression_test.cc71 bool ReadBuffers(FILE* in_file, in ReadBuffers() argument
87 in_file) != num_channels * audio_buffer_size) { in ReadBuffers()
140 FILE* in_file = fopen(absl::GetFlag(FLAGS_in_file_name).c_str(), "rb"); in void_main() local
141 ASSERT_TRUE(in_file != NULL); in void_main()
193 in_file, audio_buffer_size, absl::GetFlag(FLAGS_num_channels), in void_main()
214 fclose(in_file); in void_main()
/external/oss-fuzz/projects/hoextdown/
Dbuild.sh35 find $SRC/hoextdown/test -type f -name '*.text' | while read in_file
38 out_file=$(sha1sum "$in_file" | cut -c 1-32)
39 cat "$in_file" >> "corpus/$out_file"

1234