/development/samples/ApiDemos/src/com/example/android/apis/content/ |
FileProvider.java | 97 FileOutputStream fout = new FileOutputStream(output.getFileDescriptor()); local 100 fout.write(buffer, 0, n); 110 fout.close();
|
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();
|
/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 | 284 FileOutputStream fout = null; local 286 fout = con.openFileOutput(fileName, Context.MODE_WORLD_WRITEABLE); 289 fout.write(new byte[] { 0x0, 0x1, 0x2, 0x3 }); 291 fout.close();
|
/external/webp/examples/ |
dwebp.c | 102 FILE* const fout = fopen(out_file, "wb"); local 103 if (fout) { 106 fprintf(fout, "P6\n%d %d\n255\n", width, height); 107 ok &= (fwrite(out, width * height, 3, fout) == 3); 117 fprintf(fout, "P5\n%d %d\n255\n", out_stride, height + uv_height); 119 ok &= (fwrite(out + y * stride, width, 1, fout) == 1); 120 if (width & 1) fputc(0, fout); // padding byte 123 ok &= (fwrite(u + y * uv_stride, uv_width, 1, fout) == 1); 124 ok &= (fwrite(v + y * uv_stride, uv_width, 1, fout) == 1); 127 fclose(fout); [all...] |
/external/srec/tools/dictTest/ |
dictTest.c | 42 void doGetProns(SR_Vocabulary *vocab, LCHAR* phrase, size_t len, FILE* fout) 51 LFPRINTF(fout,"ERROR: %s\n", ESR_rc2str(rc)); 58 LFPRINTF(fout,"%s : %s\n", phrase, pron); 64 void doInputTestPhonemes(SR_Vocabulary *vocab, PFile* fin, FILE* fout) 84 LFPRINTF(fout, "ERROR: INVALID FORMAT for input line\n"); 96 LFPRINTF(fout,"ERROR: %s\n", ESR_rc2str(rc)); 99 LFPRINTF(fout,"%s|%s|%s|", phrase, expectedPhoneme, phoneme); 102 LFPRINTF(fout,"PASSED\n"); 104 LFPRINTF(fout,"FAILED\n"); 125 FILE* fout = stdout local [all...] |
/development/samples/NotePad/src/com/example/android/notepad/ |
NotePadProvider.java | 467 FileOutputStream fout = new FileOutputStream(output.getFileDescriptor()); local 470 pw = new PrintWriter(new OutputStreamWriter(fout, "UTF-8")); 482 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();
|
/device/samsung/crespo/libs3cjpeg/ |
JpegEncoder.cpp | 289 FILE *fout = NULL; local 291 fout = fopen(file_name, "wb"); 292 if (!fout) 294 size_t nwrite = fwrite(mArgs.out_buf, sizeof(char), param->file_size, fout); 295 fclose(fout); 344 FILE *fout = NULL; local 346 fout = fopen(file_name, "wb"); 347 if (!fout) 349 size_t nwrite = fwrite(mArgs.out_thumb_buf, sizeof(char), param->file_size, fout); 350 fclose(fout); [all...] |
/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/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/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);
|
/external/srec/tools/parseStringTest/ |
parseStringTest.c | 50 ESR_ReturnCode process_single_key_line(SR_Grammar* grammar, PFile* fin, PFile* fout); 51 ESR_ReturnCode process_multi_key_line(SR_Grammar* grammar, const LCHAR* rootrule, PFile* fin, PFile* fout); 79 void display_results(SR_SemanticResult *result, PFile* fout) 94 pfprintf(fout, "{%s : %s}\n", keys[i], value); 96 pfprintf(fout, "Error: %s\n", ESR_rc2str(rc)); 98 pfprintf(fout, "--Done--\n"); 101 pfprintf(fout, "Error: %s\n", ESR_rc2str(rc)); 104 ESR_ReturnCode Parse(SR_Grammar* grammar, LCHAR* trans, PFile* fout, Opts* opts) 124 Parse(grammar, trans, fout, &myopts); 183 pfprintf(fout, "error (%s)\n\n", trans) 283 PFile *fin = NULL, *fout = NULL; local [all...] |
/frameworks/compile/libbcc/helper/ |
sha1.c | 466 FILE *fout = fopen(binary_output_file, "wb"); local 467 if (!fout) { 471 fwrite(digest, 1, HASHSIZE, fout); 472 fclose(fout);
|
/bootable/recovery/ |
recovery.c | 364 FILE* fout = fopen(copy_path, "wb"); local 365 if (fout == NULL) { 371 if (fwrite(buffer, 1, read, fout) != read) { 379 if (fclose(fout) != 0) {
|
/external/bluetooth/glib/gobject/ |
glib-genmarshal.c | 121 static FILE *fout = NULL; variable 134 fputs ("\n", fout); 135 fputs ("#ifdef G_ENABLE_DEBUG\n", fout); 136 fputs ("#define g_marshal_value_peek_boolean(v) g_value_get_boolean (v)\n", fout); 137 fputs ("#define g_marshal_value_peek_char(v) g_value_get_char (v)\n", fout); 138 fputs ("#define g_marshal_value_peek_uchar(v) g_value_get_uchar (v)\n", fout); 139 fputs ("#define g_marshal_value_peek_int(v) g_value_get_int (v)\n", fout); 140 fputs ("#define g_marshal_value_peek_uint(v) g_value_get_uint (v)\n", fout); 141 fputs ("#define g_marshal_value_peek_long(v) g_value_get_long (v)\n", fout); 142 fputs ("#define g_marshal_value_peek_ulong(v) g_value_get_ulong (v)\n", fout); [all...] |
/external/icu4c/tools/tzcode/ |
icuzdump.cpp | 388 ofstream* fout = new ofstream(path.str().c_str(), mode); local 389 if (fout->fail()) { 391 delete fout; 396 dumper.dump(*fout); 397 fout->close(); 398 delete fout;
|
/external/zlib/contrib/minizip/ |
miniunz.c | 309 FILE *fout=NULL; local 398 fout=fopen64(write_filename,"wb"); 401 if ((fout==NULL) && ((*popt_extract_without_path)==0) && 408 fout=fopen64(write_filename,"wb"); 411 if (fout==NULL) 417 if (fout!=NULL) 430 if (fwrite(buf,err,1,fout)!=1) 438 if (fout) 439 fclose(fout); 472 FILE* fout=NULL local [all...] |
/frameworks/base/core/java/android/os/ |
Binder.java | 248 FileOutputStream fout = new FileOutputStream(fd); local 249 PrintWriter pw = new PrintWriter(fout); 262 final FileOutputStream fout = new FileOutputStream(fd); local 263 final PrintWriter pw = new PrintWriter(fout); 280 * @param fout The file to which you should dump your state. This will be 284 protected void dump(FileDescriptor fd, PrintWriter fout, String[] args) {
|
/frameworks/base/core/java/android/view/ |
WindowManagerImpl.java | 478 FileOutputStream fout = new FileOutputStream(fd); local 479 PrintWriter pw = new PrintWriter(fout);
|
/external/libpng/ |
pngrtran.c | 4296 double fin, fout; local [all...] |
/external/qemu/distrib/libpng-1.2.19/ |
pngrtran.c | 4121 double fin, fout; local [all...] |
/external/webrtc/src/modules/audio_processing/ns/main/source/ |
ns_core.c | 833 float fin[BLOCKL_MAX], fout[BLOCKL_MAX]; local [all...] |
/packages/apps/Mms/src/com/android/mms/ui/ |
ComposeMessageActivity.java | 1441 FileOutputStream fout = null; local [all...] |
/libcore/luni/src/main/java/java/util/ |
Formatter.java | 804 FileOutputStream fout = null; local 806 fout = new FileOutputStream(file); 807 out = new BufferedWriter(new OutputStreamWriter(fout, csn)); 809 IoUtils.closeQuietly(fout); 812 IoUtils.closeQuietly(fout); [all...] |