/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/ |
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/distutils/tests/ |
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/ |
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...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/distutils/tests/ |
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...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/distutils/tests/ |
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...] |
/cts/tests/tests/security/tools/ |
format_cert.sh | 25 in_file="$1" 35 subject_hash=$("$OPENSSL" x509 -in "$in_file" -inform $in_form -subject_hash_old \ 39 subject_hash=$("$OPENSSL" x509 -in "$in_file" -inform $in_form -subject_hash_old \ 54 "$OPENSSL" x509 -in "$in_file" -inform $in_form -outform pem > "$out_file" && \ 55 "$OPENSSL" x509 -in "$in_file" -inform $in_form -noout -text -fingerprint \
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
uu.py | 29 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 = open(in_file, 'rb') [all...] |
/external/python/cpython2/Lib/ |
uu.py | 29 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 = open(in_file, 'rb' [all...] |
/external/python/cpython3/Lib/ |
uu.py | 29 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 = open(in_file, 'rb' [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
uu.py | 29 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 = open(in_file, 'rb' [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/ |
uu.py | 29 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 = open(in_file, 'rb' [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
uu.py | 29 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 = open(in_file, 'rb' [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
uu.py | 29 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 = open(in_file, 'rb' [all...] |
/external/webrtc/webrtc/modules/audio_processing/beamformer/ |
nonlinear_beamformer_test.cc | 45 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/webrtc/webrtc/modules/audio_processing/agc/ |
histogram_unittest.cc | 50 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/brotli/python/tests/ |
compressor_test.py | 26 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)
|
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))
|
decompress_test.py | 27 with open(test_data, 'rb') as in_file: 28 out_file.write(brotli.decompress(in_file.read()))
|
/external/tensorflow/tensorflow/contrib/lite/models/ |
speech_test.cc | 34 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))
|
/external/webrtc/webrtc/modules/audio_coding/neteq/test/ |
RTPjitter.cc | 100 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);
|
RTPchange.cc | 27 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);
|
/external/ltp/testcases/kernel/syscalls/sendfile/ |
sendfile03.c | 65 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) {
|
sendfile07.c | 66 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) {
|
sendfile08.c | 48 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);
|
/external/e2fsprogs/contrib/android/ |
ext2simg.c | 30 char *in_file; member in struct:__anon19011 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) 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...] |