/external/mesa3d/src/gallium/auxiliary/os/ |
os_misc.c | 69 static FILE *fout = NULL; local 71 if (!fout) { 84 fout = fopen(filename, mode); 87 if (!fout) 88 fout = stderr; 95 fputs(message, fout); 96 fflush(fout); 98 else if (fout != stderr) { 99 fputs(message, fout); 100 fflush(fout); [all...] |
/system/libufdt/tests/src/ |
util.c | 64 FILE *fout = NULL; local 66 fout = fopen(filename, "wb"); 67 if (!fout) { 71 if (fwrite(buf, 1, buf_size, fout) < 1) { 77 if (fout) fclose(fout);
|
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
FileProvider.java | 139 FileOutputStream fout = new FileOutputStream(output.getFileDescriptor()); local 142 fout.write(buffer, 0, n); 152 fout.close();
|
InstallApk.java | 147 FileOutputStream fout = openFileOutput(tempFilename, fileMode)) { 150 fout.write(buffer, 0, n);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
MmsFileProvider.java | 115 FileOutputStream fout = null; local 120 fout = new FileOutputStream(output.getFileDescriptor()); 124 fout.write(bytes); 141 fout.flush(); 146 fout.close();
|
/external/javassist/sample/evolve/ |
DemoServer.java | 92 FileOutputStream fout
local 97 fout.write(buf, 0, len);
|
/cts/tests/tests/os/src/android/os/cts/ |
FileAccessPermissionTest.java | 159 FileOutputStream fout = null; local 163 fout = new FileOutputStream(file); 164 fout.write(data); 165 fout.flush(); 166 fout.close(); 167 fout = null; 179 if (fout != null) { 181 fout.close();
|
ParcelFileDescriptorTest.java | 485 FileOutputStream fout = null; local 487 fout = con.openFileOutput(fileName, Context.MODE_PRIVATE); 490 fout.write(new byte[] { 0x0, 0x1, 0x2, 0x3 }); 492 fout.close();
|
/external/jline/src/src/main/java/jline/ |
WindowsTerminal.java | 291 OutputStream fout = null; local 293 fout = new BufferedOutputStream( 298 fout.write(bytes, 0, n); 309 if (fout != null) { 311 fout.close();
|
/external/libopus/celt/ |
opus_custom_demo.c | 46 FILE *fin, *fout; local 96 fout = fopen(outFile, "wb+"); 97 if (!fout) 109 fclose(fout); 117 fclose(fout); 185 fwrite(out+skip*channels, sizeof(short), (ret-skip)*channels, fout); 193 fclose(fout);
|
/external/libopus/doc/ |
trivial_example.c | 53 FILE *fout; local 104 fout = fopen(outFile, "w"); 105 if (fout==NULL) 152 fwrite(pcm_bytes, sizeof(short), frame_size*CHANNELS, fout); 158 fclose(fout);
|
/external/libopus/src/ |
repacketizer_demo.c | 61 FILE *fin, *fout; local 105 fout = fopen(argv[argc-1], "w"); 106 if(fout==NULL) 133 fclose(fout); 164 if(fwrite(int_field, 1, 4, fout)!=4){ 169 if (fwrite(int_field, 1, 4, fout)!=4) { 173 if (fwrite(output_packet, 1, err, fout)!=(unsigned)err) { 189 if (fwrite(int_field, 1, 4, fout)!=4) { 197 if (fwrite(int_field, 1, 4, fout)!=4) { 201 if (fwrite(output_packet, 1, err, fout)!=(unsigned)err) [all...] |
/external/libvpx/libvpx/examples/ |
resize_util.c | 48 char *fin, *fout; local 65 fout = argv[4]; 83 fpout = fopen(fout, "wb"); 85 printf("Can't open file %s to write\n", fout);
|
/development/samples/NotePad/src/com/example/android/notepad/ |
NotePadProvider.java | 434 FileOutputStream fout = new FileOutputStream(output.getFileDescriptor()); local 437 pw = new PrintWriter(new OutputStreamWriter(fout, "UTF-8")); 449 fout.close();
|
/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/ |
BluetoothMapEmailProvider.java | 190 FileOutputStream fout = null; local 193 fout = new FileOutputStream(output.getFileDescriptor()); 213 WriteMessageToStream(accountId, messageId, includeAttachments, download, fout); 221 fout.flush(); 226 fout.close();
|
/external/brotli/research/ |
draw_histogram.cc | 158 void DrawPixels(uint8_t** pixel, FILE* fout) { 162 fprintf(fout, "P5\n%d %d\n255\n", width, height); 164 fwrite(pixel[i], 1, width, fout); 179 FILE* fout = fopen(argv[2], "wb"); local 193 DrawPixels(pixel, fout); 194 fclose(fout);
|
find_opt_references.cc | 77 int right_lcp, FILE* fout) { 86 fputc(1, fout); 87 fwrite(&idx, sizeof(int), 1, fout); // Position in input. 88 fwrite(&dist, sizeof(int), 1, fout); // Backward distance. 164 void ProcessEntries(entry_type* entries, size_t size, FILE* fout) { 188 fputc(1, fout); 189 fwrite(&idx, sizeof(int), 1, fout); // Position in input. 190 fwrite(&dist, sizeof(int), 1, fout); // Backward distance. 205 FILE* fout = fopen(argv[2], "w"); local 242 Fn print = std::bind(PrintReference, _1, _2, _3, _4, _5, _6, _7, _8, fout); [all...] |
/external/jsoncpp/src/jsontestrunner/ |
main.cpp | 63 printValueTree(FILE* fout, Json::Value& value, const std::string& path = ".") { 65 fprintf(fout, "%s\n", value.getComment(Json::commentBefore).c_str()); 69 fprintf(fout, "%s=null\n", path.c_str()); 72 fprintf(fout, 78 fprintf(fout, 84 fprintf(fout, 90 fprintf(fout, "%s=\"%s\"\n", path.c_str(), value.asString().c_str()); 93 fprintf(fout, "%s=%s\n", path.c_str(), value.asBool() ? "true" : "false"); 96 fprintf(fout, "%s=[]\n", path.c_str()); 105 printValueTree(fout, value[index], path + buffer) 163 FILE* fout = fopen(rewritePath.c_str(), "wt"); local [all...] |
/test/vts/utils/native/trace_processor/ |
VtsCoverageProcessor.cpp | 110 ofstream fout; local 111 fout.open(merged_coverage_file); 112 fout << merged_coverage_report.DebugString(); 113 fout.close(); 233 ofstream fout; local 234 fout.open(result_msg_file); 235 fout << result_coverage_report.DebugString(); 236 fout.close();
|
/cts/tests/tests/content/src/android/content/cts/ |
MockContentProvider.java | 390 FileOutputStream fout = new FileOutputStream(output.getFileDescriptor()); local 393 pw = new PrintWriter(new OutputStreamWriter(fout, "UTF-8")); 402 fout.close();
|
/development/apps/WidgetPreview/src/com/android/widgetpreview/ |
WidgetPreviewActivity.java | 258 FileOutputStream fout = null; local 260 fout = new FileOutputStream(pic); 261 if (!bmp.compress(CompressFormat.PNG, 100, fout)) { 270 if (fout != null) { 271 fout.close();
|
/external/javassist/src/main/javassist/ |
ClassPoolTail.java | 419 public static void copyStream(InputStream fin, OutputStream fout) 432 fout.write(buf, 0, size); 436 fout.write(buf);
|
/frameworks/base/cmds/idmap/ |
scan.cpp | 43 FILE* fout = fopen(filename, "a"); local 44 if (fout == NULL) { 48 if (TEMP_FAILURE_RETRY(flock(fileno(fout), LOCK_EX)) != 0) { 49 fclose(fout); 53 if (TEMP_FAILURE_RETRY(ftruncate(fileno(fout), 0)) != 0) { 54 TEMP_FAILURE_RETRY(flock(fileno(fout), LOCK_UN)); 55 fclose(fout); 61 fprintf(fout, "%s %s\n", overlay.apk_path.string(), overlay.idmap_path.string()); 64 TEMP_FAILURE_RETRY(fflush(fout)); 65 TEMP_FAILURE_RETRY(flock(fileno(fout), LOCK_UN)) [all...] |
/frameworks/base/cmds/incidentd/src/ |
IncidentService.cpp | 277 FILE* fout = fdopen(out, "w"); local 280 if (fin == NULL || fout == NULL || ferr == NULL) { 283 err = command(fin, fout, ferr, args); 291 if (fout != NULL) { 292 fflush(fout); 293 fclose(fout); 295 if (fout != NULL) {
|
/frameworks/rs/cpu_ref/ |
rsCpuIntrinsicBlur.cpp | 325 float4 *fout = (float4 *)buf; local 329 OneVFU4(fout, pi, stride, cp->mFp, cp->mIradius * 2 + 1, 0, info->dim.x); 333 OneVU4(info, fout, x1, y, pin, stride, cp->mFp, cp->mIradius); 334 fout++; 391 float *fout = (float *)buf; local 395 OneVFU1(fout, pi, stride, cp->mFp, cp->mIradius * 2 + 1, 0, info->dim.x); 399 OneVU1(info, fout, x1, y, pin, stride, cp->mFp, cp->mIradius); 400 fout++;
|