/frameworks/testing/uiautomator/utils/SleepUtils/WakeLoopService/src/android/test/wakeuploop/ |
FileUtil.java | 44 FileOutputStream fos = new FileOutputStream(file); local 45 fos.write(sDateFormat.format(new Date()).getBytes()); 46 fos.write('\n'); 47 fos.flush(); 48 fos.close();
|
/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);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/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.getAbsolutePath()); local 36 FileDescriptor fd = fos.getFD(); 37 fos.close();
|
FileDescriptorTest.java | 34 FileOutputStream fos = null; local 39 fos = new FileOutputStream(f.getAbsolutePath()); 40 fos.write("Test String".getBytes(StandardCharsets.US_ASCII)); 43 FileDescriptor fd = fos.getFD(); 58 if (fos != null) { 59 fos.close(); 76 FileOutputStream fos = null; local 78 fos = new FileOutputStream(f.getAbsolutePath()); 79 FileDescriptor fd = fos.getFD(); 81 fos.close() [all...] |
FilterInputStreamTest.java | 101 OutputStream fos = new FileOutputStream(temp.getAbsolutePath()); local 102 fos.write(INPUT.getBytes(StandardCharsets.US_ASCII)); 103 fos.close();
|
FileOutputStreamTest.java | 31 private FileOutputStream fos; field in class:FileOutputStreamTest 58 if (fos != null) { 59 fos.close(); 68 fos = new FileOutputStream(f); 77 fos = new FileOutputStream(fileName); 78 fos.write('l'); 79 fos.close(); 81 fos = new FileOutputStream(fis.getFD()); 82 fos.close(); 92 fos = new FileOutputStream(fileName) 286 FileOutputStream fos = new FileOutputStream(tmpfile); local 298 FileOutputStream fos = new FileOutputStream(tmpfile, true); local 319 FileOutputStream fos = new FileOutputStream(tmpfile, false); local 340 FileOutputStream fos = new FileOutputStream(tmpfile, false); local 354 FileOutputStream fos = new FileOutputStream(tmpfile, false); local 369 FileOutputStream fos = new FileOutputStream(tmpfile, true); local 383 FileOutputStream fos = new FileOutputStream(tmpfile, true); local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
GenericSignatureFormatErrorTest.java | 62 OutputStream fos = new FileOutputStream(tf); local 63 copy(is, fos); 64 fos.flush(); 65 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();
|
/cts/tests/tests/uidisolation/src/android/uidisolation/cts/ |
IsolatedServiceTest.java | 47 FileOutputStream fos = mActivity.openFileOutput(PermissionTestService.FILE_NAME, 0); local 49 fos.write(content, 0, content.length); 50 fos.close();
|
PermissionTestService.java | 189 FileOutputStream fos = null; local 191 fos = getApplication().openFileOutput("writeable_file", 0); 193 fos.write(content, 0, content.length); 201 if (fos != null) { 203 fos.close();
|
/frameworks/base/keystore/java/android/security/ |
SystemKeyStore.java | 92 FileOutputStream fos = new FileOutputStream(keyFile); local 93 fos.write(retKey); 94 fos.flush(); 95 FileUtils.sync(fos); 96 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();
|
/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/android/util/ |
AtomicFile.java | 162 FileOutputStream fos = new FileOutputStream(mBaseName); local 163 FileUtils.sync(fos); 164 fos.close();
|
/frameworks/base/services/core/java/com/android/server/ |
DiskStatsService.java | 53 FileOutputStream fos = null; local 58 fos = new FileOutputStream(tmp); 59 fos.write(junk); 63 try { if (fos != null) fos.close(); } catch (IOException e) {}
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
JarOutputStreamTest.java | 43 FileOutputStream fos = new FileOutputStream(fooJar); local 51 fos.close(); 53 new JarOutputStream(fos, man); 60 new JarOutputStream(fos, null); 70 FileOutputStream fos = new FileOutputStream(fooJar); local 74 JarOutputStream joutFoo = new JarOutputStream(fos); 81 fos.close(); 84 JarOutputStream joutFoo = new JarOutputStream(fos);
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
FileChannelTest.java | 102 FileOutputStream fos = new FileOutputStream(tmp, true); local 103 FileChannel fc = fos.getChannel(); 111 fos.close(); 220 FileOutputStream fos = new FileOutputStream(tmp, true); local 221 FileChannel fc = fos.getChannel();
|
/libcore/luni/src/test/java/libcore/util/ |
ZoneInfoDBTest.java | 113 FileOutputStream fos = new FileOutputStream(f); local 114 fos.write(content); 115 fos.close();
|
/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 | 140 FileOutputStream fos = null; local 145 fos = new FileOutputStream(tempJar); 149 fos.write(buf, 0, nbytes); 151 fos.close(); 156 if (fos != null) { 158 fos.close();
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
OldZipFileTest.java | 149 FileOutputStream fos = new FileOutputStream(tempFile); local 151 fos.write(rbuf, 0, rbuf.length); 153 fos.close();
|
/cts/tests/tests/content/src/android/content/cts/ |
SharedPreferencesTest.java | 302 FileOutputStream fos = new FileOutputStream(prefsFileClone); local 307 fos.write(buf, 0, n); 310 fos.close();
|
/external/chromium_org/media/base/android/java/src/org/chromium/media/ |
MediaPlayerBridge.java | 210 FileOutputStream fos = null; local 213 fos = new FileOutputStream(mTempFile); 219 fos.write(buffer, 0, len); 227 if (fos != null) fos.close();
|