Home
last modified time | relevance | path

Searched refs:out_file (Results 1 – 25 of 165) sorted by relevance

1234567

/external/python/cpython3/Lib/
Duu.py42 def encode(in_file, out_file, name=None, mode=None, *, backtick=False): argument
64 if out_file == '-':
65 out_file = sys.stdout.buffer
66 elif isinstance(out_file, str):
67 out_file = open(out_file, 'wb')
68 opened_files.append(out_file)
86 out_file.write(('begin %o %s\n' % ((mode & 0o777), name)).encode("ascii"))
89 out_file.write(binascii.b2a_uu(data, backtick=backtick))
92 out_file.write(b'`\nend\n')
94 out_file.write(b' \nend\n')
[all …]
/external/python/cpython2/Lib/
Duu.py42 def encode(in_file, out_file, name=None, mode=None): argument
64 if out_file == '-':
65 out_file = sys.stdout
66 elif isinstance(out_file, basestring):
67 out_file = open(out_file, 'wb')
68 opened_files.append(out_file)
79 out_file.write('begin %o %s\n' % ((mode&0777),name))
82 out_file.write(binascii.b2a_uu(data))
84 out_file.write(' \nend\n')
90 def decode(in_file, out_file=None, mode=None, quiet=0): argument
[all …]
/external/e2fsprogs/debugfs/
Dlogdump.c81 FILE *out_file; in do_logdump() local
180 out_file = stdout; in do_logdump()
183 out_file = fopen(out_fn, "w"); in do_logdump()
184 if (!out_file) { in do_logdump()
258 fprintf(out_file, "Using external journal found at %s\n", in do_logdump()
265 dump_journal(argv[0], out_file, &journal_source); in do_logdump()
273 if (out_file && (out_file != stdout)) in do_logdump()
274 fclose(out_file); in do_logdump()
343 static void dump_journal(char *cmdname, FILE *out_file, in dump_journal() argument
375 fprintf(out_file, "Ext2 superblock header found.\n"); in dump_journal()
[all …]
/external/pigweed/pw_kvs/
Dflash_partition_with_stats.cc39 std::FILE* out_file = std::fopen(file_name, "a+"); in SaveStorageStats() local
40 if (out_file == nullptr) { in SaveStorageStats()
46 std::fseek(out_file, 0, SEEK_END); in SaveStorageStats()
47 if (std::ftell(out_file) == 0) { in SaveStorageStats()
48 std::fprintf(out_file, in SaveStorageStats()
52 std::fprintf(out_file, ",Sector %zu", i); in SaveStorageStats()
54 std::fprintf(out_file, "\n"); in SaveStorageStats()
57 std::fprintf(out_file, "\"%s\",%zu", label, total_erase_count()); in SaveStorageStats()
58 std::fprintf(out_file, in SaveStorageStats()
65 std::fprintf(out_file, ",%zu", counter); in SaveStorageStats()
[all …]
/external/angle/src/libANGLE/renderer/metal/shaders/
Dgen_mtl_internal_shaders.py101 with open('format_autogen.h', 'wt') as out_file:
102 out_file.write(shader_autogen_header)
103 out_file.close()
128 with open('mtl_default_shaders_src_autogen.inc', 'wt') as out_file:
129 out_file.write(boilerplate_code)
130 out_file.write('\n')
131 out_file.write('// C++ string version of combined Metal default shaders.\n\n')
132 out_file.write('\n\nstatic char gDefaultMetallibSrc[] = R"(\n')
133 out_file.write(final_combined_src_string.decode("utf-8"))
134 out_file.write('\n')
[all …]
/external/elfutils/tests/
Drun-reverse-sections-self.sh24 out_file="${base_name}.rev"
25 out_file_mmap="${out_file}.mmap"
27 tempfiles ${out_file} ${out_file_mmap}
30 testrun ${abs_builddir}/elfcopy --reverse-offs ${in_file} ${out_file}
31 testrun ${abs_top_builddir}/src/elfcmp ${in_file} ${out_file}
32 testrun ${abs_top_builddir}/src/elflint --gnu ${out_file}
34 testrun ${abs_builddir}/elfrdwrnop ${out_file}
35 testrun ${abs_top_builddir}/src/elfcmp ${in_file} ${out_file}
36 testrun ${abs_top_builddir}/src/elflint --gnu ${out_file}
Drun-reverse-sections.sh23 out_file="${in_file}.rev"
24 out_file_mmap="${out_file}.mmap"
27 tempfiles ${out_file} ${out_file_mmap}
30 testrun ${abs_builddir}/elfcopy --reverse-offs ${in_file} ${out_file}
31 testrun ${abs_top_builddir}/src/elfcmp ${in_file} ${out_file}
32 testrun ${abs_top_builddir}/src/elflint --gnu ${out_file}
34 testrun ${abs_builddir}/elfrdwrnop ${out_file}
35 testrun ${abs_top_builddir}/src/elfcmp ${in_file} ${out_file}
36 testrun ${abs_top_builddir}/src/elflint --gnu ${out_file}
Drun-copyadd-sections.sh23 out_file="${in_file}.copy"
24 out_file_mmap="${out_file}.mmap"
27 tempfiles ${out_file} ${out_file_mmap} readelf.out
30 testrun ${abs_builddir}/elfcopy ${in_file} ${out_file}
31 testrun ${abs_top_builddir}/src/elfcmp ${in_file} ${out_file}
34 testrun ${abs_builddir}/addsections 3 ${out_file}
35 testrun ${abs_top_builddir}/src/readelf -S ${out_file} > readelf.out
39 testrun ${abs_top_builddir}/src/readelf -S ${out_file}
Drun-copymany-sections.sh28 out_file="${in_file}.copy"
29 out_file_mmap="${out_file}.mmap"
31 tempfiles ${out_file} ${out_file_mmap} readelf.out
34 testrun ${abs_builddir}/elfcopy ${in_file} ${out_file}
35 testrun ${abs_top_builddir}/src/elfcmp ${in_file} ${out_file}
38 testrun ${abs_builddir}/addsections 65535 ${out_file}
39 testrun ${abs_top_builddir}/src/readelf -S ${out_file} > readelf.out
44 testrun ${abs_top_builddir}/src/readelf -S ${out_file}
/external/webrtc/modules/audio_coding/neteq/tools/
Drtp_analyze.cc75 FILE* out_file; in main() local
77 out_file = fopen(args[2], "wt"); in main()
78 if (!out_file) { in main()
84 out_file = stdout; in main()
88 fprintf(out_file, "SeqNo TimeStamp SendTime Size PT M SSRC"); in main()
90 fprintf(out_file, " AuLvl (V)"); in main()
93 fprintf(out_file, " AbsSendTime"); in main()
95 fprintf(out_file, "\n"); in main()
108 fprintf(out_file, "%5u %10u %10u %5i %5i %2i %#08X", in main()
115 fprintf(out_file, " %5u (%1i)", packet->header().extension.audioLevel, in main()
[all …]
Drtp_jitter.cc95 FILE* out_file = fopen(argv[3], "wb"); in RunRtpJitter() local
96 RTC_CHECK(out_file) << "Could not open file " << argv[2] << " for writing"; in RunRtpJitter()
101 fprintf(out_file, "%s", header_string); in RunRtpJitter()
104 RTC_CHECK_EQ(fwrite(file_header, sizeof(file_header), 1, out_file), 1); in RunRtpJitter()
134 WritePacket(p, out_file); in RunRtpJitter()
138 fclose(out_file); in RunRtpJitter()
/external/brotli/python/tests/
Dcompressor_test.py28 with open(temp_uncompressed, 'wb') as out_file:
30 out_file.write(brotli.decompress(in_file.read()))
36 with open(temp_compressed, 'wb') as out_file:
38 out_file.write(self.compressor.process(in_file.read()))
39 out_file.write(self.compressor.finish())
45 with open(temp_compressed, 'wb') as out_file:
49 out_file.write(self.compressor.process(data))
50 out_file.write(self.compressor.finish())
56 with open(temp_compressed, 'wb') as out_file:
60 out_file.write(self.compressor.process(data))
[all …]
Dcompress_test.py22 with open(temp_uncompressed, 'wb') as out_file:
24 out_file.write(brotli.decompress(in_file.read(), **kwargs))
29 with open(temp_compressed, 'wb') as out_file:
31 out_file.write(brotli.compress(in_file.read(), **kwargs))
/external/wpa_supplicant_8/src/utils/
Dwpa_debug.c35 static FILE *out_file = NULL; variable
79 if (out_file) in wpa_debug_print_timestamp()
80 fprintf(out_file, "%ld.%06u: ", (long) tv.sec, in wpa_debug_print_timestamp()
83 if (!out_file && !wpa_debug_syslog) in wpa_debug_print_timestamp()
229 if (out_file) { in wpa_printf()
231 vfprintf(out_file, fmt, ap); in wpa_printf()
232 fprintf(out_file, "\n"); in wpa_printf()
236 if (!wpa_debug_syslog && !out_file) { in wpa_printf()
356 if (out_file) { in _wpa_hexdump()
357 fprintf(out_file, "%s - hexdump(len=%lu):", in _wpa_hexdump()
[all …]
/external/autotest/client/cros/audio/
Dpack_audio_quality.py53 def pack_files(out_file): argument
63 command.append(out_file)
71 def check_packed_file(out_file): argument
77 command = ['python', out_file, '--help']
113 def append_name_with_git_hash(out_file): argument
122 basename, ext = os.path.splitext(out_file)
141 out_file = append_name_with_git_hash(args.out) variable
145 pack_files(out_file)
146 check_packed_file(out_file)
151 logging.info('Packed file: %s', out_file)
/external/angle/scripts/
Dgen_proc_table.py189 with open(out_file_name_gles, 'w') as out_file:
198 out_file.write(output_cpp)
199 out_file.close()
232 with open(out_file_name_gl, 'w') as out_file:
241 out_file.write(output_cpp)
242 out_file.close()
267 with open(out_file_name_cl, 'w') as out_file:
275 out_file.write(output_cpp)
276 out_file.close()
278 with open(out_file_name_cl_map, 'w') as out_file:
[all …]
/external/toolchain-utils/binary_search_tool/cros_pkg/
Dcreate_cleanup_script.py90 with open(out_filename, 'w', encoding='utf-8') as out_file:
91 out_file.write('#!/bin/bash\n\n')
93 out_file.write('sudo rm /build/%s\n' % options.board)
98 out_file.write('sudo mv /build/%s.save /build/%s\n' % (options.board,
108 out_file.write(
110 out_file.write('\n')
112 out_file.write('rm common/common.sh\n')
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dbtf_dump.c50 char test_file[256], out_file[256], diff_cmd[1024]; in test_btf_dump_case() local
65 snprintf(out_file, sizeof(out_file), "/tmp/%s.output.XXXXXX", t->file); in test_btf_dump_case()
66 fd = mkstemp(out_file); in test_btf_dump_case()
105 test_file, out_file); in test_btf_dump_case()
109 out_file, err, diff_cmd)) in test_btf_dump_case()
112 remove(out_file); in test_btf_dump_case()
/external/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/
Dvad.cc58 std::ofstream out_file(output_file, std::ofstream::binary); in main() local
60 out_file.write(&audio_frame_length_ms, 1); // Header. in main()
79 out_file.write(&buff, 1); // Flush. in main()
89 out_file.write(&buff, 1); // Flush. in main()
91 out_file.write(&extra_bits, 1); in main()
92 out_file.close(); in main()
/external/arm-trusted-firmware/tools/sptool/
Dsp_mk_generator.py69 with open(gen_file, 'w') as out_file:
100 out_file.write("FDT_SOURCES += " + dts + "\n")
107 out_file.write("SPTOOL_ARGS += -i " + ":".join(src) + " -o " + dst + "\n")
130 out_file.write("FIP_ARGS += --blob uuid=" + uuid_std + ",file=" + dst + "\n")
136 out_file.write("CRT_ARGS += --sp-pkg" + str(pkg_num) + " " + dst + "\n")
137 out_file.write("\n")
/external/chromium-trace/catapult/systrace/atrace_helper/jni/
Dmain.cc55 char out_file[PATH_MAX] = {}; in main() local
91 strncpy(out_file, optarg, sizeof(out_file)); in main()
110 unlink(out_file); in main()
111 sprintf(tmp_file, "%s.tmp", out_file); in main()
133 rename(tmp_file, out_file); in main()
/external/webrtc/modules/video_coding/utility/
Divf_file_writer_unittest.cc118 FileWrapper out_file = FileWrapper::OpenReadOnly(file_name_); in RunBasicFileStructureTest() local
119 VerifyIvfHeader(&out_file, fourcc, kWidth, kHeight, kNumFrames, in RunBasicFileStructureTest()
121 VerifyDummyTestFrames(&out_file, kNumFrames); in RunBasicFileStructureTest()
123 out_file.Close(); in RunBasicFileStructureTest()
177 FileWrapper out_file = FileWrapper::OpenReadOnly(file_name_); in TEST_F() local
178 VerifyIvfHeader(&out_file, fourcc, kWidth, kHeight, kNumFramesToFit, true); in TEST_F()
179 VerifyDummyTestFrames(&out_file, kNumFramesToFit); in TEST_F()
181 out_file.Close(); in TEST_F()
/external/angle/src/tests/restricted_traces/
Dgen_restricted_traces.py196 with open(gni_file, "w") as out_file:
197 out_file.write(gni_data)
258 with open(header_file, "w") as out_file:
259 out_file.write(header_data)
265 with open(source_file, "w") as out_file:
266 out_file.write(source_data)
272 with open('.gitignore', 'w') as out_file:
273 out_file.write('\n'.join(sorted(ignores)))
/external/skia/build/fuchsia/skqp/
Dappend_assets_to_manifest43 out_file = open(manifest, 'w') variable
48 out_file.write(base_line)
67 out_file.write('data%s=' % dest)
68 out_file.write('%s\n' % source)
72 out_file.close()
/external/libvpx/libvpx/build/make/
Dversion.sh23 out_file=${2}
73 if [ -n "$out_file" ]; then
74 diff $$.tmp ${out_file} >/dev/null 2>&1 || cat $$.tmp > ${out_file}

1234567