Home
last modified time | relevance | path

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

1234

/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/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/
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.sh64 in_file="$1"
65 readelf_out="${in_file}.readelf.out"
66 out_file_strip="${in_file}.strip"
67 out_file_debug="${in_file}.debug"
69 testfiles ${in_file}
73 echo "addsections 2 ${in_file} 2147483648"
74 testrun ${abs_builddir}/addsections 2 ${in_file} 2147483648
75 testrun ${abs_top_builddir}/src/readelf -S ${in_file} > ${readelf_out}
83 echo "strip -o ${out_file_strip} -f ${out_file_debug} ${in_file}"
85 -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-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}
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}
/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/e2fsprogs/contrib/android/
Dext2simg.c30 char *in_file; member
74 if (sparse_file_add_file(s, params.in_file, offset, len, chunk_start) < 0) in add_chunk()
109 static struct sparse_file *ext_to_sparse(const char *in_file) in ext_to_sparse() argument
117 retval = ext2fs_open(in_file, 0, 0, 0, unix_io_manager, &fs); in ext_to_sparse()
119 ext2fs_fatal(retval, "while reading %s", in_file); in ext_to_sparse()
123 ext2fs_fatal(retval, "while reading block bitmap of %s", in_file); in ext_to_sparse()
204 params.in_file = strdup(argv[optind++]); in main()
206 params.overwrite_input = same_file(params.in_file, params.out_file); in main()
208 s = ext_to_sparse(params.in_file); in main()
218 free(params.in_file); in main()
/external/webrtc/modules/audio_processing/agc/
Dloudness_histogram_unittest.cc53 FILE* in_file = fopen(filename, "rb"); in RunTest() local
54 ASSERT_TRUE(in_file != NULL); in RunTest()
57 EXPECT_EQ(fread(&buffer_size, sizeof(buffer_size), 1, in_file), 1u); in RunTest()
67 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/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/webrtc/modules/audio_coding/test/
DTestVADDTX.cc125 PCMFile in_file; in Run() local
126 in_file.Open(in_filename, frequency, "rb"); in Run()
127 in_file.ReadStereo(channels > 1); in Run()
129 in_file.SetNum10MsBlocksToRead(100); in Run()
132 in_file.FastForward(50); in Run()
141 uint16_t frame_size_samples = in_file.PayloadLength10Ms(); in Run()
143 while (!in_file.EndOfFile()) { in Run()
144 in_file.Read10MsData(audio_frame); in Run()
154 in_file.Close(); in Run()
/external/swiftshader/third_party/SPIRV-Tools/tools/opt/
Dopt.cpp561 spvtools::Optimizer* optimizer, const char** in_file,
574 spvtools::Optimizer* optimizer, const char** in_file, in ParseOconfigFlag() argument
601 ParseFlags(static_cast<int>(flags.size()), new_argv, optimizer, in_file, in ParseOconfigFlag()
656 spvtools::Optimizer* optimizer, const char** in_file, in ParseFlags() argument
680 if (!*in_file) { in ParseFlags()
681 *in_file = cur_arg; in ParseFlags()
689 ParseOconfigFlag(argv[0], cur_arg, optimizer, in_file, out_file, in ParseFlags()
760 if (!*in_file) { in ParseFlags()
761 *in_file = cur_arg; in ParseFlags()
780 const char* in_file = nullptr; in main() local
[all …]
/external/deqp-deps/SPIRV-Tools/tools/opt/
Dopt.cpp565 spvtools::Optimizer* optimizer, const char** in_file,
578 spvtools::Optimizer* optimizer, const char** in_file, in ParseOconfigFlag() argument
605 ParseFlags(static_cast<int>(flags.size()), new_argv, optimizer, in_file, in ParseOconfigFlag()
660 spvtools::Optimizer* optimizer, const char** in_file, in ParseFlags() argument
684 if (!*in_file) { in ParseFlags()
685 *in_file = cur_arg; in ParseFlags()
693 ParseOconfigFlag(argv[0], cur_arg, optimizer, in_file, out_file, in ParseFlags()
766 if (!*in_file) { in ParseFlags()
767 *in_file = cur_arg; in ParseFlags()
786 const char* in_file = nullptr; in main() local
[all …]
/external/angle/third_party/vulkan-deps/spirv-tools/src/tools/opt/
Dopt.cpp571 spvtools::Optimizer* optimizer, const char** in_file,
584 spvtools::Optimizer* optimizer, const char** in_file, in ParseOconfigFlag() argument
611 ParseFlags(static_cast<int>(flags.size()), new_argv, optimizer, in_file, in ParseOconfigFlag()
666 spvtools::Optimizer* optimizer, const char** in_file, in ParseFlags() argument
690 if (!*in_file) { in ParseFlags()
691 *in_file = cur_arg; in ParseFlags()
699 ParseOconfigFlag(argv[0], cur_arg, optimizer, in_file, out_file, in ParseFlags()
772 if (!*in_file) { in ParseFlags()
773 *in_file = cur_arg; in ParseFlags()
792 const char* in_file = nullptr; in main() local
[all …]
/external/ltp/testcases/kernel/syscalls/sendfile/
Dsendfile05.c63 char in_file[100]; variable
89 if ((in_fd = open(in_file, O_RDONLY)) < 0) { in do_sendfile()
92 SAFE_STAT(cleanup, in_file, &sb); in do_sendfile()
147 sprintf(in_file, "in.%d", getpid()); in setup()
148 if ((fd = creat(in_file, 00700)) < 0) { in setup()
Dsendfile08.c48 static char *in_file = "sendfile08.in"; variable
102 in_fd = SAFE_CREAT(cleanup, in_file, 0700); in setup()
106 tst_brkm(TBROK | TERRNO, cleanup, "Write %s failed", in_file); in setup()
109 in_fd = SAFE_OPEN(cleanup, in_file, O_RDONLY); in setup()
Dsendfile07.c66 char in_file[100]; variable
127 sprintf(in_file, "in.%d", getpid()); in setup()
128 if ((in_fd = creat(in_file, 00700)) < 0) { in setup()
137 if ((in_fd = open(in_file, O_RDONLY)) < 0) { in setup()
Dsendfile03.c65 char in_file[100], out_file[100]; variable
144 sprintf(in_file, "in.%d", getpid()); in setup()
145 if ((in_fd = creat(in_file, 00700)) < 0) { in setup()
154 if ((in_fd = open(in_file, O_RDONLY)) < 0) { in setup()
/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"
/external/webrtc/modules/audio_processing/transient/
Dtransient_suppression_test.cc70 bool ReadBuffers(FILE* in_file, in ReadBuffers() argument
86 in_file) != num_channels * audio_buffer_size) { in ReadBuffers()
139 FILE* in_file = fopen(absl::GetFlag(FLAGS_in_file_name).c_str(), "rb"); in void_main() local
140 ASSERT_TRUE(in_file != NULL); in void_main()
191 in_file, audio_buffer_size, absl::GetFlag(FLAGS_num_channels), in void_main()
214 fclose(in_file); in void_main()
/external/libprotobuf-mutator/examples/xml/
Dxml_converter.cc45 std::string in_file; member
66 if (i < argc) options->in_file = argv[i++]; in ParseOptions()
86 if (!options.in_file.empty()) { in main()
87 in_file_stream.open(options.in_file); in main()

1234