Searched refs:in_file (Results 1 - 25 of 51) sorted by relevance

123

/external/python/cpython2/Lib/distutils/tests/
H A 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
[all...]
/external/python/cpython3/Lib/distutils/tests/
H A 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
[all...]
/external/python/cpython2/Lib/
H A Duu.py29 encode(in_file, out_file [,name, mode])
30 decode(in_file [, out_file, mode])
42 def encode(in_file, out_file, name=None, mode=None):
45 # If in_file is a pathname open it and change defaults
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
[all...]
/external/python/cpython3/Lib/
H A Duu.py29 encode(in_file, out_file [,name, mode])
30 decode(in_file [, out_file, mode])
42 def encode(in_file, out_file, name=None, mode=None):
45 # If in_file is a pathname open it and change defaults
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
[all...]
/external/webrtc/webrtc/modules/audio_processing/beamformer/
H A Dnonlinear_beamformer_test.cc45 WavReader in_file(FLAGS_i);
46 WavWriter out_file(FLAGS_o, in_file.sample_rate(), 1);
48 const size_t num_mics = in_file.num_channels();
54 bf.Initialize(kChunkSizeMs, in_file.sample_rate());
57 FLAGS_i.c_str(), in_file.num_channels(), in_file.sample_rate());
62 rtc::CheckedDivExact(in_file.sample_rate(), kChunksPerSecond),
63 in_file.num_channels());
69 while (in_file.ReadSamples(interleaved.size(),
/external/brotli/python/tests/
H A 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))
H A Dcompressor_test.py26 with open(temp_compressed, 'rb') as in_file:
27 out_file.write(brotli.decompress(in_file.read()))
34 with open(test_data, 'rb') as in_file:
35 out_file.write(self.compressor.process(in_file.read()))
43 with open(test_data, 'rb') as in_file:
44 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
54 with open(test_data, 'rb') as in_file:
55 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
H A Ddecompress_test.py27 with open(test_data, 'rb') as in_file:
28 out_file.write(brotli.decompress(in_file.read()))
H A 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)
H A Ddecompressor_test.py33 with open(test_data, 'rb') as in_file:
34 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
/external/webrtc/webrtc/modules/audio_processing/agc/
H A Dhistogram_unittest.cc50 FILE* in_file = fopen(filename, "rb"); local
51 ASSERT_TRUE(in_file != NULL);
54 EXPECT_EQ(fread(&buffer_size, sizeof(buffer_size), 1, in_file), 1u);
64 while (fread(&io, sizeof(InputOutput), 1, in_file) == 1) {
72 if (fread(&io, sizeof(InputOutput), 1, in_file) != 1)
89 fclose(in_file);
/external/tensorflow/tensorflow/contrib/lite/models/
H A Dspeech_test.cc34 std::ifstream* in_file) {
36 in_file->open(string(kDataPath) + in_file_name, std::ifstream::in);
37 return in_file->is_open();
57 std::ifstream in_file(in_file_name);
58 if (!in_file.is_open()) {
71 while (std::getline(in_file, in_values, '\n')) {
155 std::ifstream in_file; local
157 ASSERT_TRUE(Init("speech_asr_lm_model.test_spec", &test_driver, &in_file));
158 ASSERT_TRUE(testing::ParseAndRunTests(&in_file, &test_driver))
33 Init(const string& in_file_name, testing::TfLiteDriver* driver, std::ifstream* in_file) argument
/external/webrtc/webrtc/modules/audio_coding/neteq/test/
H A DRTPjitter.cc100 FILE* in_file=fopen(argv[1],"rb"); local
101 CHECK_NOT_NULL(in_file);
132 rtp_vec = (unsigned char *) malloc(sizeof(unsigned char)*filelen(in_file));
139 EXPECT_TRUE(fgets(firstline, FIRSTLINELEN, in_file) != NULL);
142 in_file));
151 len=(uint16_t) fread(&rtp_vec[rtp_len], sizeof(unsigned char), 2, in_file);
156 len-2, in_file)!=(unsigned) (len-2)) {
164 len=(uint16_t) fread(&rtp_vec[rtp_len], sizeof(unsigned char), 2, in_file);
212 fclose(in_file);
H A DRTPchange.cc27 FILE* in_file = fopen(argv[1], "rb"); local
28 if (!in_file) {
73 if (fgets(first_line, FIRSTLINELEN, in_file) == NULL) {
80 if (fread(first_line, 1, kRtpDumpHeaderSize, in_file)
100 if (new_packet->readFromFile(in_file) < 0) {
129 fclose(in_file);
H A Daudio_classifier_test.cc59 FILE* in_file = fopen(input_filename.c_str(), "rb"); local
60 if (!in_file) {
75 data_size, in_file) == (size_t) data_size) {
102 fclose(in_file);
/external/ltp/testcases/kernel/syscalls/sendfile/
H A Dsendfile03.c65 char in_file[100], out_file[100]; variable
144 sprintf(in_file, "in.%d", getpid());
145 if ((in_fd = creat(in_file, 00700)) < 0) {
154 if ((in_fd = open(in_file, O_RDONLY)) < 0) {
H A Dsendfile07.c66 char in_file[100]; variable
127 sprintf(in_file, "in.%d", getpid());
128 if ((in_fd = creat(in_file, 00700)) < 0) {
137 if ((in_fd = open(in_file, O_RDONLY)) < 0) {
H A Dsendfile08.c48 static char *in_file = "sendfile08.in"; variable
102 in_fd = SAFE_CREAT(cleanup, in_file, 0700);
106 tst_brkm(TBROK | TERRNO, cleanup, "Write %s failed", in_file);
109 in_fd = SAFE_OPEN(cleanup, in_file, O_RDONLY);
H A Dsendfile02.c69 char in_file[100]; variable
108 if ((in_fd = open(in_file, O_RDONLY)) < 0) {
111 SAFE_STAT(cleanup, in_file, &sb);
185 sprintf(in_file, "in.%d", getpid());
186 if ((fd = creat(in_file, 00700)) < 0) {
H A Dsendfile04.c68 char in_file[100]; variable
115 if ((in_fd = open(in_file, O_RDONLY)) < 0) {
118 SAFE_STAT(cleanup, in_file, &sb);
182 sprintf(in_file, "in.%d", getpid());
183 if ((fd = creat(in_file, 00700)) < 0) {
H A Dsendfile05.c63 char in_file[100]; variable
89 if ((in_fd = open(in_file, O_RDONLY)) < 0) {
92 SAFE_STAT(cleanup, in_file, &sb);
147 sprintf(in_file, "in.%d", getpid());
148 if ((fd = creat(in_file, 00700)) < 0) {
H A Dsendfile09.c61 static char *in_file = "in"; variable
92 in_fd = SAFE_OPEN(cleanup, in_file, O_RDONLY);
143 fd = SAFE_CREAT(cleanup, in_file, 00700);
/external/e2fsprogs/contrib/android/
H A Dext2simg.c30 char *in_file; member in struct:__anon5646
74 if (sparse_file_add_file(s, params.in_file, offset, len, chunk_start) < 0)
109 static struct sparse_file *ext_to_sparse(const char *in_file) argument
117 retval = ext2fs_open(in_file, 0, 0, 0, unix_io_manager, &fs);
119 ext2fs_fatal(retval, "while reading %s", in_file);
123 ext2fs_fatal(retval, "while reading block bitmap of %s", in_file);
204 params.in_file = strdup(argv[optind++]);
206 params.overwrite_input = same_file(params.in_file, params.out_file);
208 s = ext_to_sparse(params.in_file);
218 free(params.in_file);
[all...]
H A De2fsdroid.c17 static char *in_file; variable
136 if (asprintf(&in_file, "(%s)", argv[optind]) == -1) {
142 in_file = strdup(argv[optind]);
144 retval = ext2fs_open(in_file, flags, 0, 0, io_mgr, &fs);
146 com_err(prog_name, retval, "while opening file %s\n", in_file);
/external/webrtc/webrtc/modules/audio_coding/test/
H A DTestVADDTX.cc87 PCMFile in_file; local
88 in_file.Open(in_filename, frequency, "rb");
89 in_file.ReadStereo(channels > 1);
91 in_file.SetNum10MsBlocksToRead(100);
94 in_file.FastForward(50);
103 uint16_t frame_size_samples = in_file.PayloadLength10Ms();
106 while (!in_file.EndOfFile()) {
107 in_file.Read10MsData(audio_frame);
115 in_file.Close();

Completed in 1094 milliseconds

123