/external/python/cpython2/Lib/distutils/tests/ |
D | test_text_file.py | 62 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/ |
D | test_text_file.py | 62 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/ |
D | uu.py | 42 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/ |
D | uu.py | 42 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/ |
D | run-large-elf-file.sh | 64 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 …]
|
D | run-copyadd-sections.sh | 22 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}
|
D | run-reverse-sections.sh | 22 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}
|
D | run-reverse-sections-self.sh | 22 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}
|
D | run-copymany-sections.sh | 27 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/webrtc/webrtc/modules/audio_processing/beamformer/ |
D | nonlinear_beamformer_test.cc | 45 WavReader in_file(FLAGS_i); in main() local 46 WavWriter out_file(FLAGS_o, in_file.sample_rate(), 1); in main() 48 const size_t num_mics = in_file.num_channels(); in main() 54 bf.Initialize(kChunkSizeMs, in_file.sample_rate()); in main() 57 FLAGS_i.c_str(), in_file.num_channels(), in_file.sample_rate()); in main() 62 rtc::CheckedDivExact(in_file.sample_rate(), kChunksPerSecond), in main() 63 in_file.num_channels()); in main() 69 while (in_file.ReadSamples(interleaved.size(), in main()
|
/external/brotli/python/tests/ |
D | compressor_test.py | 29 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)
|
D | compress_test.py | 23 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/ |
D | ext2simg.c | 30 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/webrtc/modules/audio_coding/neteq/test/ |
D | RTPjitter.cc | 100 FILE* in_file=fopen(argv[1],"rb"); in main() local 101 CHECK_NOT_NULL(in_file); in main() 132 rtp_vec = (unsigned char *) malloc(sizeof(unsigned char)*filelen(in_file)); in main() 139 EXPECT_TRUE(fgets(firstline, FIRSTLINELEN, in_file) != NULL); in main() 142 in_file)); in main() 151 len=(uint16_t) fread(&rtp_vec[rtp_len], sizeof(unsigned char), 2, in_file); in main() 156 len-2, in_file)!=(unsigned) (len-2)) { in main() 164 len=(uint16_t) fread(&rtp_vec[rtp_len], sizeof(unsigned char), 2, in_file); in main() 212 fclose(in_file); in main()
|
D | RTPchange.cc | 27 FILE* in_file = fopen(argv[1], "rb"); in main() local 28 if (!in_file) { in main() 73 if (fgets(first_line, FIRSTLINELEN, in_file) == NULL) { in main() 80 if (fread(first_line, 1, kRtpDumpHeaderSize, in_file) in main() 100 if (new_packet->readFromFile(in_file) < 0) { in main() 129 fclose(in_file); in main()
|
/external/webrtc/webrtc/modules/audio_processing/agc/ |
D | histogram_unittest.cc | 50 FILE* in_file = fopen(filename, "rb"); in RunTest() local 51 ASSERT_TRUE(in_file != NULL); in RunTest() 54 EXPECT_EQ(fread(&buffer_size, sizeof(buffer_size), 1, in_file), 1u); in RunTest() 64 while (fread(&io, sizeof(InputOutput), 1, in_file) == 1) { in RunTest() 72 if (fread(&io, sizeof(InputOutput), 1, in_file) != 1) in RunTest() 89 fclose(in_file); in RunTest()
|
/external/webrtc/webrtc/modules/audio_coding/test/ |
D | TestVADDTX.cc | 87 PCMFile in_file; in Run() local 88 in_file.Open(in_filename, frequency, "rb"); in Run() 89 in_file.ReadStereo(channels > 1); in Run() 91 in_file.SetNum10MsBlocksToRead(100); in Run() 94 in_file.FastForward(50); in Run() 103 uint16_t frame_size_samples = in_file.PayloadLength10Ms(); in Run() 106 while (!in_file.EndOfFile()) { in Run() 107 in_file.Read10MsData(audio_frame); in Run() 115 in_file.Close(); in Run()
|
/external/angle/third_party/spirv-tools/src/tools/opt/ |
D | opt.cpp | 598 spvtools::Optimizer* optimizer, const char** in_file, 611 spvtools::Optimizer* optimizer, const char** in_file, in ParseOconfigFlag() argument 638 ParseFlags(static_cast<int>(flags.size()), new_argv, optimizer, in_file, in ParseOconfigFlag() 693 spvtools::Optimizer* optimizer, const char** in_file, in ParseFlags() argument 720 if (!*in_file) { in ParseFlags() 721 *in_file = cur_arg; in ParseFlags() 729 ParseOconfigFlag(argv[0], cur_arg, optimizer, in_file, out_file, in ParseFlags() 837 if (!*in_file) { in ParseFlags() 838 *in_file = cur_arg; in ParseFlags() 857 const char* in_file = nullptr; in main() local [all …]
|
/external/deqp-deps/SPIRV-Tools/tools/opt/ |
D | opt.cpp | 598 spvtools::Optimizer* optimizer, const char** in_file, 611 spvtools::Optimizer* optimizer, const char** in_file, in ParseOconfigFlag() argument 638 ParseFlags(static_cast<int>(flags.size()), new_argv, optimizer, in_file, in ParseOconfigFlag() 693 spvtools::Optimizer* optimizer, const char** in_file, in ParseFlags() argument 720 if (!*in_file) { in ParseFlags() 721 *in_file = cur_arg; in ParseFlags() 729 ParseOconfigFlag(argv[0], cur_arg, optimizer, in_file, out_file, in ParseFlags() 837 if (!*in_file) { in ParseFlags() 838 *in_file = cur_arg; in ParseFlags() 857 const char* in_file = nullptr; in main() local [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/tools/opt/ |
D | opt.cpp | 598 spvtools::Optimizer* optimizer, const char** in_file, 611 spvtools::Optimizer* optimizer, const char** in_file, in ParseOconfigFlag() argument 638 ParseFlags(static_cast<int>(flags.size()), new_argv, optimizer, in_file, in ParseOconfigFlag() 693 spvtools::Optimizer* optimizer, const char** in_file, in ParseFlags() argument 720 if (!*in_file) { in ParseFlags() 721 *in_file = cur_arg; in ParseFlags() 729 ParseOconfigFlag(argv[0], cur_arg, optimizer, in_file, out_file, in ParseFlags() 837 if (!*in_file) { in ParseFlags() 838 *in_file = cur_arg; in ParseFlags() 857 const char* in_file = nullptr; in main() local [all …]
|
/external/ltp/testcases/kernel/syscalls/sendfile/ |
D | sendfile05.c | 63 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()
|
D | sendfile08.c | 48 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()
|
D | sendfile07.c | 66 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()
|
/external/webrtc/webrtc/modules/audio_processing/transient/ |
D | transient_suppression_test.cc | 77 bool ReadBuffers(FILE* in_file, in ReadBuffers() argument 95 in_file) != num_channels * audio_buffer_size) { in ReadBuffers() 148 FILE* in_file = fopen(FLAGS_in_file_name.c_str(), "rb"); in void_main() local 149 ASSERT_TRUE(in_file != NULL); in void_main() 197 while (ReadBuffers(in_file, in void_main() 233 fclose(in_file); in void_main()
|
/external/oss-fuzz/projects/hoextdown/ |
D | build.sh | 35 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"
|