Searched refs:fos (Results 1 - 25 of 26) sorted by relevance

12

/dalvik/libcore/support/src/test/java/tests/util/
H A DFieldTestFileGenerator.java42 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 DFileOutputStreamTest.java48 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 DFileDescriptorTest.java37 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 DFileWriterTest.java45 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 DOpenRandomFileTest.java53 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 DFileTest.java340 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 DFileInputStreamTest.java96 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 DOutputStreamWriterTest.java55 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 DBufferedInputStreamTest.java545 OutputStream fos = new FileOutputStream(fileName);
546 fos.write(fileString.getBytes());
547 fos.close();
H A DFilterInputStreamTest.java432 java.io.OutputStream fos = new java.io.FileOutputStream(fileName);
433 fos.write(testString.getBytes());
434 fos.close();
H A DRandomAccessFileTest.java360 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 DDeflaterOutputStreamTest.java106 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 DZipEntryTest.java609 java.io.FileOutputStream fos = new java.io.FileOutputStream(f);
612 fos.write(rbuf, 0, rbuf.length);
614 fos.close();
H A DZipFileTest.java567 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 DGenericSignatureFormatErrorTest.java85 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 DJarOutputStreamTest.java147 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 DManifestTest.java361 FileOutputStream fos = new FileOutputStream(f);
362 fos.close();
364 manifest1.write(fos);
/dalvik/libcore/luni/src/test/java/com/google/coretests/
H A DCoreTestIsolator.java97 FileOutputStream fos = new FileOutputStream(fileName);
98 ObjectOutputStream oos = new ObjectOutputStream(fos);
/dalvik/dx/src/junit/runner/
H A DBaseTestRunner.java43 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 DJarURLConnectionImpl.java157 FileOutputStream fos = new FileOutputStream(
162 fos.write(buf, 0, nbytes);
164 fos.close();
/dalvik/libcore/luni/src/test/java/junit/runner/
H A DBaseTestRunner.java43 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 DKeyStoreBuilderTest.java540 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 DCharsetProviderTest.java114 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 DFileChannelTest.java357 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 DScannerTest.java111 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);

Completed in 441 milliseconds

12