HomeSort by relevance Sort by last modified time
    Searched defs:fos (Results 1 - 25 of 214) sorted by null

1 2 3 4 5 6 7 8 9

  /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();
  /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 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();
  /libcore/luni/src/test/java/libcore/util/
ZoneInfoDBTest.java 88 FileOutputStream fos = new FileOutputStream(f); local
89 fos.write(content);
90 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/android/util/
AtomicFile.java 162 FileOutputStream fos = new FileOutputStream(mBaseName); local
163 FileUtils.sync(fos);
164 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) {}
  /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 165 FileOutputStream fos = new FileOutputStream(f); local
167 fos.write(rbuf, 0, rbuf.length);
169 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();
  /external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/
ZipEntryTest.java 463 java.io.FileOutputStream fos = new java.io.FileOutputStream(f); local
465 fos.write(rbuf, 0, rbuf.length);
467 fos.close();

Completed in 2153 milliseconds

1 2 3 4 5 6 7 8 9