/libcore/luni/src/test/java/libcore/java/io/ |
FileOutputStreamTest.java | 63 FileOutputStream fos = new FileOutputStream(File.createTempFile("FileOutputStreamTest", "tmp")); local 66 fos.close(); 67 fos.close(); 69 fos.flush(); 74 fos.write(bytes); 79 fos.write(bytes, 0, 2); 84 fos.write(42); 90 fos.write(new byte[0], 0, 0);
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
OpenRandomFileTest.java | 40 FileOutputStream fos = new FileOutputStream(file); local 41 fos.write(new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }); 42 fos.close();
|
SyncFailedExceptionTest.java | 35 FileOutputStream fos = new FileOutputStream(f.getPath()); local 36 FileDescriptor fd = fos.getFD(); 37 fos.close();
|
FileDescriptorTest.java | 35 FileOutputStream fos; field in class:FileDescriptorTest 58 fos = new FileOutputStream(f.getPath()); 59 fos.write("Test String".getBytes()); 61 FileDescriptor fd = fos.getFD(); 85 os = new BufferedOutputStream(fos = new FileOutputStream(f.getPath()), 87 FileDescriptor fd = fos.getFD(); 107 fos.close();
|
FilterInputStreamTest.java | 148 java.io.OutputStream fos = new java.io.FileOutputStream(fileName); local 149 fos.write(fileString.getBytes("UTF-8")); 150 fos.close();
|
FileOutputStreamTest.java | 33 FileOutputStream fos; field in class:FileOutputStreamTest 49 f = new File(fileName = System.getProperty("user.home"), "fos.tst"); 50 fos = new FileOutputStream(f); 57 f = new File(fileName = System.getProperty("user.home"), "fos.tst"); 59 fos = new FileOutputStream(fileName); 60 fos.write('l'); 61 fos.close(); 63 fos = new FileOutputStream(fis.getFD()); 64 fos.close(); 72 f = new File(fileName = System.getProperty("user.home"), "fos.tst") 268 FileOutputStream fos = new FileOutputStream(tmpfile); local 280 FileOutputStream fos = new FileOutputStream(tmpfile, true); local 301 FileOutputStream fos = new FileOutputStream(tmpfile, false); local 322 FileOutputStream fos = new FileOutputStream(tmpfile, false); local 336 FileOutputStream fos = new FileOutputStream(tmpfile, false); local 351 FileOutputStream fos = new FileOutputStream(tmpfile, true); local 365 FileOutputStream fos = new FileOutputStream(tmpfile, true); local [all...] |
/libcore/luni/src/test/java/tests/api/java/lang/reflect/ |
GenericSignatureFormatErrorTest.java | 63 OutputStream fos = new FileOutputStream(tf); local 64 copy(is, fos); 65 fos.flush(); 66 fos.close();
|
/sdk/common/src/com/android/io/ |
FileWrapper.java | 99 FileOutputStream fos = null; local 101 fos = new FileOutputStream(this); 106 fos.write(buffer, 0, count); 111 if (fos != null) { 113 fos.close();
|
/libcore/support/src/test/java/tests/util/ |
FieldTestFileGenerator.java | 42 FileOutputStream fos = null; local 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 = new FileOutputStream("testFieldsDefaulted.ser") [all...] |
/cts/tests/tests/os/src/android/os/cts/ |
RecoverySystemTest.java | 47 FileOutputStream fos = mContext.openFileOutput(name, 0); local 52 fos.write(b, 0, read); 55 fos.close();
|
/frameworks/base/keystore/java/android/security/ |
SystemKeyStore.java | 94 FileOutputStream fos = new FileOutputStream(keyFile); local 95 fos.write(retKey); 96 fos.flush(); 97 FileUtils.sync(fos); 98 fos.close();
|
/packages/apps/Mms/tests/SmsAutoReply/src/com/android/smsautoreply/ |
AutoReplyActivity.java | 84 FileOutputStream fos = new FileOutputStream(logFile, true); local 85 fos.write(logMsg.getBytes()); 86 fos.flush(); 87 fos.close();
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
FileChannelTest.java | 100 FileOutputStream fos = new FileOutputStream(tmp, true); local 101 FileChannel fc = fos.getChannel(); 109 fos.close();
|
/sdk/ddms/libs/ddmuilib/src/com/android/ddmuilib/handler/ |
BaseFileHandler.java | 174 FileOutputStream fos = null; local 176 fos = new FileOutputStream(output); 177 fos.write(data); 179 if (fos != null) { 180 fos.close();
|
/packages/apps/VideoEditor/src/com/android/videoeditor/util/ |
FileUtils.java | 104 FileOutputStream fos = null; local 113 fos = context.openFileOutput(filename, Context.MODE_WORLD_READABLE); 114 if (!bitmap.compress(CompressFormat.JPEG, 100, fos)) { 126 if (fos != null) { 127 fos.flush(); 128 fos.close(); 195 FileOutputStream fos = null; local 199 fos = context.openFileOutput(filename, Context.MODE_WORLD_READABLE); 203 fos.write(buffer, 0, bytesRead); 210 if (fos != null) [all...] |
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/misc/ |
Stats.java | 175 FileOutputStream fos = new FileOutputStream(f, true); // append local 176 BufferedOutputStream bos = new BufferedOutputStream(fos); 181 fos.close();
|
/frameworks/base/core/java/com/android/internal/os/ |
AtomicFile.java | 124 FileOutputStream fos = new FileOutputStream(mBaseName); local 125 FileUtils.sync(fos); 126 fos.close();
|
/frameworks/base/services/java/com/android/server/ |
DiskStatsService.java | 54 FileOutputStream fos = null; local 59 fos = new FileOutputStream(tmp); 60 fos.write(junk); 64 try { if (fos != null) fos.close(); } catch (IOException e) {}
|
/libcore/luni/src/test/java/libcore/java/util/jar/ |
OldManifestTest.java | 123 FileOutputStream fos = new FileOutputStream(f); local 124 fos.close(); 126 manifest1.write(fos);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
TestUtils.java | 96 FileOutputStream fos = new FileOutputStream(file); local 97 fos.write(data); 98 fos.close();
|
/libcore/luni/src/main/java/libcore/net/url/ |
JarURLConnectionImpl.java | 144 FileOutputStream fos = null; local 149 fos = new FileOutputStream(tempJar); 153 fos.write(buf, 0, nbytes); 155 fos.close(); 160 if (fos != null) { 162 fos.close();
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
OldZipFileTest.java | 165 FileOutputStream fos = new FileOutputStream(f); local 167 fos.write(rbuf, 0, rbuf.length); 169 fos.close();
|
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/internal/build/ |
BuildConfigGenerator.java | 117 FileOutputStream fos = null; local 119 fos = new FileOutputStream(file); 125 fos.write(buffer, 0, count); 128 if (fos != null) { 129 fos.close();
|
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/io/ |
FileOp.java | 193 FileOutputStream fos = null;
local 196 fos = new FileOutputStream(dest);
200 fos.write(buffer, 0, read);
211 if (fos != null) {
213 fos.close();
|
/cts/tests/tests/content/src/android/content/cts/ |
SharedPreferencesTest.java | 294 FileOutputStream fos = new FileOutputStream(prefsFileClone); local 299 fos.write(buf, 0, n); 302 fos.close();
|