/dalvik/libcore/support/src/test/java/tests/util/ |
H A D | FieldTestFileGenerator.java | 42 FileOutputStream fos = null; 57 fos = new FileOutputStream("testFields.ser"); 58 oos = new ObjectOutputStream(fos); 67 if (fos != null) fos.close(); 72 fos = new FileOutputStream("testFieldsDeprecated.ser"); 73 oos = new ObjectOutputStream(fos); 82 if (fos != null) fos.close(); 87 fos [all...] |
/dalvik/libcore/luni/src/test/java/tests/api/java/io/ |
H A D | FileOutputStreamTest.java | 48 FileOutputStream fos; field in class:FileOutputStreamTest 72 fos = new FileOutputStream(tmpDir); 78 f = new File(fileName = System.getProperty("java.io.tmpdir"), "fos.tst"); 79 fos = new FileOutputStream(f); 93 fos = new FileOutputStream(tmpDir, false); 99 f = new File(tmpDirName, "fos.tst"); 100 fos = new FileOutputStream(f, false); 101 fos.write("FZ1".getBytes(), 0, 3); 102 fos.close(); 104 fos [all...] |
H A D | FileDescriptorTest.java | 37 FileOutputStream fos; field in class:FileDescriptorTest 74 fos = new FileOutputStream(f.getPath()); 75 fos.write("Test String".getBytes()); 77 FileDescriptor fd = fos.getFD(); 108 os = new BufferedOutputStream(fos = new FileOutputStream(f 110 FileDescriptor fd = fos.getFD(); 141 fos.close();
|
H A D | FileWriterTest.java | 45 FileOutputStream fos; field in class:FileWriterTest 60 fos = new FileOutputStream(f.getPath()); 61 fos.write("Test String".getBytes()); 62 fos.close(); 179 fos = new FileOutputStream(f.getPath()); 180 fos.write("Test String".getBytes()); 181 fos.close(); 207 fos = new FileOutputStream(f.getPath()); 208 fos.write("Test String".getBytes()); 209 fos [all...] |
H A D | OpenRandomFileTest.java | 53 FileOutputStream fos = new FileOutputStream(file); 54 fos.write(new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }); 55 fos.close();
|
H A D | FileTest.java | 340 FileOutputStream fos = new FileOutputStream(f); 341 fos.close(); 365 FileOutputStream fos = new FileOutputStream(f); 366 fos.close(); 696 FileOutputStream fos = new FileOutputStream(f); 697 fos.close(); 777 FileOutputStream fos = new FileOutputStream(f); 778 fos.close(); 886 FileOutputStream fos = new FileOutputStream(f); 887 fos [all...] |
H A D | FileInputStreamTest.java | 96 FileOutputStream fos = new FileOutputStream(fileName); 97 FileInputStream fis = new FileInputStream(fos.getFD()); 98 fos.close(); 488 java.io.OutputStream fos = new FileOutputStream(fileName); 489 fos.write(fileString.getBytes()); 490 fos.close();
|
H A D | OutputStreamWriterTest.java | 55 private Support_OutputStream fos; field in class:OutputStreamWriterTest 64 fos = new Support_OutputStream(500); 65 osw = new OutputStreamWriter(fos, "UTF-8"); 135 osw = new OutputStreamWriter(fos, (String) null); 142 osw = new OutputStreamWriter(fos, ""); 149 osw = new OutputStreamWriter(fos, "Bogus"); 156 osw = new OutputStreamWriter(fos, "8859_1"); 250 fos.setThrowsException(true); 268 fos.setThrowsException(false); 341 fos [all...] |
H A D | BufferedInputStreamTest.java | 545 OutputStream fos = new FileOutputStream(fileName); 546 fos.write(fileString.getBytes()); 547 fos.close();
|
H A D | FilterInputStreamTest.java | 432 java.io.OutputStream fos = new java.io.FileOutputStream(fileName); 433 fos.write(testString.getBytes()); 434 fos.close();
|
H A D | RandomAccessFileTest.java | 360 FileOutputStream fos = new java.io.FileOutputStream(fileName); 361 fos.write(testString.getBytes(), 0, testLength); 362 fos.close(); 399 FileOutputStream fos = new java.io.FileOutputStream(fileName); 400 fos.write(testString.getBytes(), 0, testLength); 401 fos.close();
|
/dalvik/libcore/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ |
H A D | DeflaterOutputStreamTest.java | 106 FileOutputStream fos = new FileOutputStream(f1); 111 dos = new MyDeflaterOutputStream(fos, defl); 116 dos = new MyDeflaterOutputStream(fos, defl); 138 FileOutputStream fos = new FileOutputStream(f1); 139 MyDeflaterOutputStream dos = new MyDeflaterOutputStream(fos); 167 FileOutputStream fos = new FileOutputStream(f1); 173 dos = new MyDeflaterOutputStream(fos, defl, buf); 181 dos = new MyDeflaterOutputStream(fos, defl, negBuf); 188 dos = new MyDeflaterOutputStream(fos, defl, zeroBuf); 195 dos = new MyDeflaterOutputStream(fos, def [all...] |
H A D | ZipEntryTest.java | 609 java.io.FileOutputStream fos = new java.io.FileOutputStream(f); 612 fos.write(rbuf, 0, rbuf.length); 614 fos.close();
|
H A D | ZipFileTest.java | 567 FileOutputStream fos = new FileOutputStream(f); 569 fos.write(rbuf, 0, rbuf.length); 571 fos.close();
|
/dalvik/libcore/luni/src/test/java/tests/api/java/lang/reflect/ |
H A D | GenericSignatureFormatErrorTest.java | 85 OutputStream fos = new FileOutputStream(tf); 86 copy(is, fos); 87 fos.flush(); 88 fos.close();
|
/dalvik/libcore/archive/src/test/java/org/apache/harmony/archive/tests/java/util/jar/ |
H A D | JarOutputStreamTest.java | 147 FileOutputStream fos = new FileOutputStream(fooJar); 155 fos.close(); 157 JarOutputStream joutFoo = new JarOutputStream(fos, man); 173 FileOutputStream fos = new FileOutputStream(fooJar); 177 JarOutputStream joutFoo = new JarOutputStream(fos); 184 fos.close(); 187 JarOutputStream joutFoo = new JarOutputStream(fos);
|
H A D | ManifestTest.java | 361 FileOutputStream fos = new FileOutputStream(f); 362 fos.close(); 364 manifest1.write(fos);
|
/dalvik/libcore/luni/src/test/java/com/google/coretests/ |
H A D | CoreTestIsolator.java | 97 FileOutputStream fos = new FileOutputStream(fileName); 98 ObjectOutputStream oos = new ObjectOutputStream(fos);
|
/dalvik/dx/src/junit/runner/ |
H A D | BaseTestRunner.java | 43 FileOutputStream fos= new FileOutputStream(getPreferencesFile()); 45 getPreferences().store(fos, ""); 47 fos.close();
|
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/jar/ |
H A D | JarURLConnectionImpl.java | 157 FileOutputStream fos = new FileOutputStream( 162 fos.write(buf, 0, nbytes); 164 fos.close();
|
/dalvik/libcore/luni/src/test/java/junit/runner/ |
H A D | BaseTestRunner.java | 43 FileOutputStream fos= new FileOutputStream(getPreferencesFile()); 45 getPreferences().store(fos, ""); 47 fos.close();
|
/dalvik/libcore/security/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | KeyStoreBuilderTest.java | 540 FileOutputStream fos = null; 546 fos = new FileOutputStream(ff); 548 ks.store(fos, pass); 550 if (fos != null) { 552 fos.close();
|
/dalvik/libcore/nio_char/src/test/java/tests/api/java/nio/charset/ |
H A D | CharsetProviderTest.java | 114 FileOutputStream fos = new FileOutputStream(path); 115 OutputStreamWriter writer = new OutputStreamWriter(fos);// , "UTF-8");
|
/dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/ |
H A D | FileChannelTest.java | 357 FileOutputStream fos = new FileOutputStream(file); 359 fos.write(CONTENT_AS_BYTES); 361 fos.close(); 375 FileOutputStream fos = new FileOutputStream(file); 380 fos.write(buf); 382 fos.close(); 2466 FileOutputStream fos = new FileOutputStream(tmpfile); 2471 fos.write(b); 2472 fos.flush(); 2473 fos [all...] |
/dalvik/libcore/luni/src/test/java/tests/api/java/util/ |
H A D | ScannerTest.java | 111 FileOutputStream fos = new FileOutputStream(tmpFile); 112 fos.write("test".getBytes()); 409 FileOutputStream fos = new FileOutputStream(tmpFile); 410 FileChannel fc = fos.getChannel(); 414 fos.write(12); 422 fos.write(12);
|