/development/samples/ApiDemos/src/com/example/android/apis/content/ |
InstallApk.java | 152 FileOutputStream fout = null; local 155 fout = openFileOutput("tmp.apk", Context.MODE_WORLD_READABLE); 158 fout.write(buffer, 0, n); 170 if (fout != null) { 171 fout.close();
|
FileProvider.java | 139 FileOutputStream fout = new FileOutputStream(output.getFileDescriptor()); local 142 fout.write(buffer, 0, n); 152 fout.close();
|
/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);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
MmsFileProvider.java | 112 FileOutputStream fout = null; local 117 fout = new FileOutputStream(output.getFileDescriptor()); 121 fout.write(bytes); 136 fout.flush(); 141 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 | 396 FileOutputStream fout = null; local 398 fout = con.openFileOutput(fileName, Context.MODE_PRIVATE); 401 fout.write(new byte[] { 0x0, 0x1, 0x2, 0x3 }); 403 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 | 186 FileOutputStream fout = null; local 189 fout = new FileOutputStream(output.getFileDescriptor()); 208 WriteMessageToStream(accountId, messageId, includeAttachments, download, fout); 216 fout.flush(); 221 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...] |
/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/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++;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
FileLockTest.java | 175 FileOutputStream fout = new FileOutputStream(file); local 176 FileChannel fileChannel = fout.getChannel(); 187 fout = new FileOutputStream(file); 188 fileChannel = fout.getChannel();
|
/external/brotli/tools/ |
bro.c | 315 static int Decompress(FILE* fin, FILE* fout, const char* dictionary_path) { 354 fwrite(output, 1, kFileBufferSize, fout); 355 if (ferror(fout)) { 367 fwrite(output, 1, (size_t)(next_out - output), fout); 370 if ((result == BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT) || ferror(fout)) { 385 static int Compress(int quality, int lgwin, FILE* fin, FILE* fout, 429 fwrite(output, 1, out_size, fout); 430 if (ferror(fout)) break; 446 } else if (ferror(fout)) { 474 FILE* fout = OpenOutputFile(output_path, force || (repeat > 1)) local [all...] |