Home
last modified time | relevance | path

Searched refs:fout (Results 1 – 25 of 110) sorted by relevance

12345

/external/python/cpython2/Lib/test/
Dtest_aifc.py145 fout = aifc.open(io.BytesIO(), 'wb')
146 self.assertEqual(fout.getmarkers(), None)
147 fout.setmark(1, 0, 'foo1')
148 fout.setmark(1, 1, 'foo2')
149 self.assertEqual(fout.getmark(1), (1, 1, 'foo2'))
150 self.assertEqual(fout.getmarkers(), [(1, 1, 'foo2')])
151 fout.initfp(None)
154 fout = self.fout = aifc.open(TESTFN, 'wb')
155 fout.aiff()
156 fout.setparams((1, 1, 1, 1, 'NONE', ''))
[all …]
Daudiotests.py42 self.f = self.fout = None
47 if self.fout is not None:
48 self.fout.close()
72 f = self.fout = self.module.open(testfile, 'wb')
159 self.fout = None
220 fout = self.fout = self.module.open(testfile, 'wb')
223 fout.close()
225 fout.close() # do nothing
253 fout = self.fout = self.module.open(TESTFN, 'wb')
254 fout.setparams(f.getparams())
[all …]
/external/python/cpython3/Lib/test/
Dtest_aifc.py167 self.fout = aifc.open(TESTFN, 'wb')
186 fout = aifc.open(io.BytesIO(), 'wb')
187 fout.setnchannels(1)
188 fout.setframerate(1)
189 fout.setcomptype(comptype, b'')
190 fout.close()
191 self.assertEqual(fout.getsampwidth(), 2)
192 fout.initfp(None)
195 fout = aifc.open(io.BytesIO(), 'wb')
196 self.assertEqual(fout.getmarkers(), None)
[all …]
/external/tensorflow/tensorflow/lite/tools/
Dgen_op_registration_main.cc65 std::ofstream fout(filename); in GenerateFileContent() local
69 fout << "#include \"" << tflite_path in GenerateFileContent()
72 fout << "#include \"" << tflite_path in GenerateFileContent()
76 fout << "#include \"" << tflite_path in GenerateFileContent()
79 fout << "#include \"" << tflite_path << "/model.h\"\n"; in GenerateFileContent()
80 fout << "#include \"" << tflite_path << "/op_resolver.h\"\n"; in GenerateFileContent()
84 fout << "namespace tflite {\n"; in GenerateFileContent()
85 fout << "namespace ops {\n"; in GenerateFileContent()
86 fout << "namespace custom {\n"; in GenerateFileContent()
87 fout << "// Forward-declarations for the custom ops.\n"; in GenerateFileContent()
[all …]
/external/virglrenderer/src/gallium/auxiliary/os/
Dos_misc.c56 static FILE *fout = NULL; in os_log_message() local
58 if (!fout) { in os_log_message()
62 fout = fopen(filename, "w"); in os_log_message()
63 if (!fout) in os_log_message()
64 fout = stderr; in os_log_message()
71 fputs(message, fout); in os_log_message()
72 fflush(fout); in os_log_message()
74 else if (fout != stderr) { in os_log_message()
75 fputs(message, fout); in os_log_message()
76 fflush(fout); in os_log_message()
[all …]
/external/perfetto/tools/ftrace_proto_gen/
Dftrace_descriptor_gen.cc23 std::ostream* fout) { in GenerateFtraceDescriptors() argument
34 *fout << R"(/* in GenerateFtraceDescriptors()
51 *fout << "// Autogenerated by:\n"; in GenerateFtraceDescriptors()
52 *fout << std::string("// ") + __FILE__ + "\n"; in GenerateFtraceDescriptors()
53 *fout << "// Do not edit.\n"; in GenerateFtraceDescriptors()
54 *fout << R"( in GenerateFtraceDescriptors()
63 *fout << std::to_string(max_id + 1) + "> descriptors{{"; in GenerateFtraceDescriptors()
71 *fout << "{nullptr, 0, {}},"; in GenerateFtraceDescriptors()
83 *fout << "{\"" + event->name() + "\", " << max_field_id << ", " in GenerateFtraceDescriptors()
91 *fout << "{},"; in GenerateFtraceDescriptors()
[all …]
Dftrace_proto_gen.cc121 std::ostream* fout) { in GenerateFtraceEventProto() argument
122 *fout << kCopyrightHeader; in GenerateFtraceEventProto()
123 *fout << "// Autogenerated by:\n"; in GenerateFtraceEventProto()
124 *fout << std::string("// ") + __FILE__ + "\n"; in GenerateFtraceEventProto()
125 *fout << "// Do not edit.\n\n"; in GenerateFtraceEventProto()
126 *fout << R"(syntax = "proto2";)" in GenerateFtraceEventProto()
130 *fout << R"(import "protos/perfetto/trace/ftrace/)" << group in GenerateFtraceEventProto()
134 *fout << "import \"protos/perfetto/trace/ftrace/generic.proto\";\n"; in GenerateFtraceEventProto()
135 *fout << "\n"; in GenerateFtraceEventProto()
136 *fout << "package perfetto.protos;\n\n"; in GenerateFtraceEventProto()
[all …]
/external/angle/third_party/jsoncpp/source/test/
Dpyjsontestrunner.py25 def valueTreeToString(fout, value, path = '.'): argument
28 fout.write('%s={}\n' % path)
33 valueTreeToString(fout, value[name], path + suffix + name)
35 fout.write('%s=[]\n' % path)
37 valueTreeToString(fout, childValue, path + '[%d]' % index)
39 fout.write('%s="%s"\n' % (path,value))
41 fout.write('%s=%d\n' % (path,value))
43 fout.write('%s=%.16g\n' % (path,value))
45 fout.write('%s=true\n' % path)
47 fout.write('%s=false\n' % path)
[all …]
/external/jsoncpp/test/
Dpyjsontestrunner.py18 def valueTreeToString( fout, value, path = '.' ): argument
21 fout.write( '%s={}\n' % path )
26 valueTreeToString( fout, value[name], path + suffix + name )
28 fout.write( '%s=[]\n' % path )
30 valueTreeToString( fout, childValue, path + '[%d]' % index )
32 fout.write( '%s="%s"\n' % (path,value) )
34 fout.write( '%s=%d\n' % (path,value) )
36 fout.write( '%s=%.16g\n' % (path,value) )
38 fout.write( '%s=true\n' % path )
40 fout.write( '%s=false\n' % path )
[all …]
/external/mesa3d/src/util/
Dos_misc.c81 static FILE *fout = NULL; in os_log_message() local
83 if (!fout) { in os_log_message()
96 fout = fopen(filename, mode); in os_log_message()
99 if (!fout) in os_log_message()
100 fout = stderr; in os_log_message()
107 fputs(message, fout); in os_log_message()
108 fflush(fout); in os_log_message()
110 else if (fout != stderr) { in os_log_message()
111 fputs(message, fout); in os_log_message()
112 fflush(fout); in os_log_message()
[all …]
/external/arm-trusted-firmware/tools/amlogic/
Ddoimage.c46 int fin, fout, ret = -1; in main() local
62 fout = open(argv[2], O_WRONLY | O_CREAT, 0660); in main()
63 if (fout < 0) { in main()
69 if (fdwrite(fout, (uint8_t *)&data, sizeof(data)) < 0) in main()
72 lseek(fout, 8, SEEK_SET); in main()
74 if (fdwrite(fout, (uint8_t *)&data, sizeof(data)) < 0) in main()
77 lseek(fout, 0x200, SEEK_SET); in main()
79 if (fdwrite(fout, buf, len) < 0) in main()
89 close(fout); in main()
/external/u-boot/drivers/clk/
Dics8n3qv01.c78 static int ics8n3qv01_calc_parameters(uint fout, uint *_mint, uint *_mfrac, in ics8n3qv01_calc_parameters() argument
84 n = (2215000000U + fout / 2) / fout; in ics8n3qv01_calc_parameters()
85 if (fout < 417000000U) in ics8n3qv01_calc_parameters()
86 n = 2 * ((2215000000U / 2 + fout / 2) / fout); in ics8n3qv01_calc_parameters()
88 n = (2215000000U + fout / 2) / fout; in ics8n3qv01_calc_parameters()
93 foutiic = fout - (fout / 10000); in ics8n3qv01_calc_parameters()
110 static ulong ics8n3qv01_set_rate(struct clk *clk, ulong fout) in ics8n3qv01_set_rate() argument
122 priv->rate = fout; in ics8n3qv01_set_rate()
135 fout_prog = (u64)fout * (u64)fout_calc in ics8n3qv01_set_rate()
/external/brotli/research/
Dbrotli_decoder.c17 FILE* fout; member
25 ctx->fout = 0; in init()
35 if (ctx->fout) fclose(ctx->fout); in cleanup()
55 ctx.fout = fdopen(STDOUT_FILENO, "wb"); in main()
56 if (!ctx.fout) fail(&ctx, "can't open output file"); in main()
73 fwrite(ctx.output_buffer, 1, BUFFER_SIZE, ctx.fout); in main()
74 if (ferror(ctx.fout)) break; in main()
84 fwrite(ctx.output_buffer, 1, next_out - ctx.output_buffer, ctx.fout); in main()
86 if ((result == BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT) || ferror(ctx.fout)) { in main()
/external/libgav1/libgav1/examples/
Dgav1_decode.cc66 void PrintHelp(FILE* const fout) { in PrintHelp() argument
67 fprintf(fout, in PrintHelp()
70 fprintf(fout, "\n"); in PrintHelp()
71 fprintf(fout, "Options:\n"); in PrintHelp()
72 fprintf(fout, " -h, --help This help message.\n"); in PrintHelp()
73 fprintf(fout, " --threads <positive integer> (Default 1).\n"); in PrintHelp()
74 fprintf(fout, " --frame_parallel.\n"); in PrintHelp()
75 fprintf(fout, in PrintHelp()
77 fprintf(fout, " --skip <integer> Skip initial N frames (Default 0).\n"); in PrintHelp()
78 fprintf(fout, " --version.\n"); in PrintHelp()
[all …]
/external/jsoncpp/src/jsontestrunner/
Dmain.cpp63 printValueTree(FILE* fout, Json::Value& value, const std::string& path = ".") { in printValueTree() argument
65 fprintf(fout, "%s\n", value.getComment(Json::commentBefore).c_str()); in printValueTree()
69 fprintf(fout, "%s=null\n", path.c_str()); in printValueTree()
72 fprintf(fout, in printValueTree()
78 fprintf(fout, in printValueTree()
84 fprintf(fout, in printValueTree()
90 fprintf(fout, "%s=\"%s\"\n", path.c_str(), value.asString().c_str()); in printValueTree()
93 fprintf(fout, "%s=%s\n", path.c_str(), value.asBool() ? "true" : "false"); in printValueTree()
96 fprintf(fout, "%s=[]\n", path.c_str()); in printValueTree()
105 printValueTree(fout, value[index], path + buffer); in printValueTree()
[all …]
/external/libopus/src/
Drepacketizer_demo.c61 FILE *fin, *fout; in main() local
105 fout = fopen(argv[argc-1], "w"); in main()
106 if(fout==NULL) in main()
133 fclose(fout); in main()
164 if(fwrite(int_field, 1, 4, fout)!=4){ in main()
169 if (fwrite(int_field, 1, 4, fout)!=4) { in main()
173 if (fwrite(output_packet, 1, err, fout)!=(unsigned)err) { in main()
189 if (fwrite(int_field, 1, 4, fout)!=4) { in main()
197 if (fwrite(int_field, 1, 4, fout)!=4) { in main()
201 if (fwrite(output_packet, 1, err, fout)!=(unsigned)err) { in main()
[all …]
/external/angle/third_party/jsoncpp/source/src/jsontestrunner/
Dmain.cpp72 printValueTree(FILE* fout, Json::Value& value, const Json::String& path = ".") { in printValueTree() argument
74 fprintf(fout, "%s\n", value.getComment(Json::commentBefore).c_str()); in printValueTree()
78 fprintf(fout, "%s=null\n", path.c_str()); in printValueTree()
81 fprintf(fout, "%s=%s\n", path.c_str(), in printValueTree()
85 fprintf(fout, "%s=%s\n", path.c_str(), in printValueTree()
89 fprintf(fout, "%s=%s\n", path.c_str(), in printValueTree()
93 fprintf(fout, "%s=\"%s\"\n", path.c_str(), value.asString().c_str()); in printValueTree()
96 fprintf(fout, "%s=%s\n", path.c_str(), value.asBool() ? "true" : "false"); in printValueTree()
99 fprintf(fout, "%s=[]\n", path.c_str()); in printValueTree()
104 printValueTree(fout, value[index], path + buffer); in printValueTree()
[all …]
/external/angle/third_party/glslang/src/Test/
Dspv.intOps.vert20 out vec4 fout;
26 fout = vec4(0.0);
45 fout.xyz += frexp(v3, i3out);
48 fout.x += frexp(v1, i1out);
51 fout.xy += ldexp(v2, i2);
52 fout.x += ldexp(v1, i1);
70 fout += unpackUnorm4x8(u1);
71 fout += unpackSnorm4x8(u1);
/external/deqp-deps/glslang/Test/
Dspv.intOps.vert20 out vec4 fout;
26 fout = vec4(0.0);
45 fout.xyz += frexp(v3, i3out);
48 fout.x += frexp(v1, i1out);
51 fout.xy += ldexp(v2, i2);
52 fout.x += ldexp(v1, i1);
70 fout += unpackUnorm4x8(u1);
71 fout += unpackSnorm4x8(u1);
/external/libopus/celt/arm/
Dcelt_fft_ne10.c113 kiss_fft_cpx *fout) in opus_fft_neon() argument
123 opus_fft_c(st, fin, fout); in opus_fft_neon()
131 NE10_FFT_C2C_1D_TYPE_NEON((NE10_FFT_CPX_TYPE_T *)fout, in opus_fft_neon()
135 NE10_FFT_C2C_1D_TYPE_NEON((NE10_FFT_CPX_TYPE_T *)fout, in opus_fft_neon()
145 kiss_fft_cpx *fout) in opus_ifft_neon() argument
155 opus_ifft_c(st, fin, fout); in opus_ifft_neon()
163 NE10_FFT_C2C_1D_TYPE_NEON((NE10_FFT_CPX_TYPE_T *)fout, in opus_ifft_neon()
167 NE10_FFT_C2C_1D_TYPE_NEON((NE10_FFT_CPX_TYPE_T *)fout, in opus_ifft_neon()
/external/u-boot/board/gdsys/common/
Dosd.c81 static void mpc92469ac_calc_parameters(unsigned int fout, in mpc92469ac_calc_parameters() argument
89 if (fout < 50169600) in mpc92469ac_calc_parameters()
91 else if (fout < 100339199) in mpc92469ac_calc_parameters()
93 else if (fout < 200678399) in mpc92469ac_calc_parameters()
98 a = fout * n + (b / 2); /* add b/2 for proper rounding */ in mpc92469ac_calc_parameters()
106 static void mpc92469ac_set(unsigned screen, unsigned int fout) in mpc92469ac_set() argument
111 mpc92469ac_calc_parameters(fout, &n, &m); in mpc92469ac_set()
168 static void ics8n3qv01_calc_parameters(unsigned int fout, in ics8n3qv01_calc_parameters() argument
178 n = (2215000000U + fout / 2) / fout; in ics8n3qv01_calc_parameters()
182 foutiic = fout - (fout / 10000); in ics8n3qv01_calc_parameters()
[all …]
/external/speex/libspeexdsp/
Dtestresample.c49 float *fin, *fout; in main() local
58 fout = malloc(2*NN*sizeof(float)); in main()
72 speex_resampler_process_float(st, 0, fin, &in_len, fout, &out_len); in main()
74 out[i]=floor(.5+fout[i]); in main()
83 free(fout); in main()
/external/toolchain-utils/android_bench_suite/
Dgen_json.py62 with open(outfile, 'w') as fout:
64 json.dump(obj_null, fout)
87 with get_outfile(outfile, bench) as fout:
88 obj = json.load(fout)
91 with open(outfile, 'w') as fout:
92 json.dump(obj, fout)
/external/angle/third_party/glslang/src/Test/baseResults/
Dspv.intOps.vert.out14 Name 21 "fout"
58 21(fout): 20(ptr) Variable Output
120 Store 21(fout) 23
188 109: 19(fvec4) Load 21(fout)
191 112: 19(fvec4) Load 21(fout)
193 Store 21(fout) 113
206 130: 129(ptr) AccessChain 21(fout) 16
209 133: 129(ptr) AccessChain 21(fout) 16
220 149: 19(fvec4) Load 21(fout)
223 152: 19(fvec4) Load 21(fout)
[all …]
/external/deqp-deps/glslang/Test/baseResults/
Dspv.intOps.vert.out14 Name 21 "fout"
58 21(fout): 20(ptr) Variable Output
120 Store 21(fout) 23
188 109: 19(fvec4) Load 21(fout)
191 112: 19(fvec4) Load 21(fout)
193 Store 21(fout) 113
206 130: 129(ptr) AccessChain 21(fout) 16
209 133: 129(ptr) AccessChain 21(fout) 16
220 149: 19(fvec4) Load 21(fout)
223 152: 19(fvec4) Load 21(fout)
[all …]

12345