/frameworks/base/tests/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();
|
/prebuilts/jdk/jdk8/darwin-x86/sample/nio/server/ |
URLDumper.java | 65 FileOutputStream fos = new FileOutputStream(file); local 74 fos.write(bytes, 0, read); 78 fos.close();
|
/prebuilts/jdk/jdk8/linux-x86/sample/nio/server/ |
URLDumper.java | 65 FileOutputStream fos = new FileOutputStream(file); local 74 fos.write(bytes, 0, read); 78 fos.close();
|
/cts/tests/tests/os/src/android/os/cts/ |
CustomClassLoaderTest.java | 49 OutputStream fos = new FileOutputStream(tf); local 53 fos.write(buffer, 0, len); 56 fos.flush(); 57 fos.close();
|
RecoverySystemTest.java | 47 FileOutputStream fos = mContext.openFileOutput(name, 0); local 52 fos.write(b, 0, read); 55 fos.close();
|
/libcore/luni/src/test/java/libcore/java/io/ |
FileOutputStreamTest.java | 69 FileOutputStream fos = new FileOutputStream(File.createTempFile("FileOutputStreamTest", "tmp")); local 72 fos.close(); 73 fos.close(); 75 fos.flush(); 80 fos.write(bytes); 85 fos.write(bytes, 0, 2); 90 fos.write(42); 96 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 | 37 private FileOutputStream fos; field in class:FileOutputStreamTest 64 if (fos != null) { 65 fos.close(); 74 fos = new FileOutputStream(f); 83 fos = new FileOutputStream(fileName); 84 fos.write('l'); 85 fos.close(); 87 fos = new FileOutputStream(fis.getFD()); 88 fos.close(); 98 fos = new FileOutputStream(fileName) 305 FileOutputStream fos = new FileOutputStream(tmpfile, true); local 326 FileOutputStream fos = new FileOutputStream(tmpfile, false); local 347 FileOutputStream fos = new FileOutputStream(tmpfile, false); local 361 FileOutputStream fos = new FileOutputStream(tmpfile, false); local 375 FileOutputStream fos = new FileOutputStream(tmpfile, true); local 389 FileOutputStream fos = new FileOutputStream(tmpfile, true); local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
GenericSignatureFormatErrorTest.java | 59 OutputStream fos = new FileOutputStream(tf); local 60 copy(is, fos); 61 fos.flush(); 62 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/uidisolation/src/android/uidisolation/cts/ |
IsolatedServiceTest.java | 48 FileOutputStream fos = mActivity.openFileOutput(PermissionTestService.FILE_NAME, 0); local 50 fos.write(content, 0, content.length); 51 fos.close();
|
PermissionTestService.java | 191 FileOutputStream fos = null; local 193 fos = getApplication().openFileOutput("writeable_file", 0); 195 fos.write(content, 0, content.length); 203 if (fos != null) { 205 fos.close();
|
/external/slf4j/slf4j-migrator/src/main/java/org/slf4j/migrator/ |
InplaceFileConverter.java | 81 FileOutputStream fos = new FileOutputStream(file); local 82 fos.write(convertedBytes); 83 fos.flush(); 84 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();
|
/external/annotation-tools/scene-lib/src/annotations/io/classfile/ |
ClassFileWriter.java | 183 OutputStream fos = new FileOutputStream(fileName); local 184 fos.write(cw.toByteArray()); 185 fos.close(); 244 OutputStream fos = new FileOutputStream(outputFileName); local 245 fos.write(cw.toByteArray()); 246 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/packages/SystemUI/tests/src/com/android/systemui/util/leak/ |
LeakDetectorTest.java | 111 FileOutputStream fos = new FileOutputStream("/dev/null"); local 112 mLeakDetector.dump(fos.getFD(), new PrintWriter(fos), new String[0]); 127 FileOutputStream fos = new FileOutputStream("/dev/null"); local 128 mLeakDetector.dump(fos.getFD(), new PrintWriter(fos), new String[0]);
|
/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);
|
/cts/tests/tests/content/src/android/content/cts/ |
SyncStorageEngineTest.java | 59 FileOutputStream fos = accountInfoFile.startWrite(); local 60 fos.write(accountsFileData); 61 accountInfoFile.finishWrite(fos);
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
ApkNdkApiReport.java | 151 FileOutputStream fos = new FileOutputStream(tempFile); local 156 fos.write(bytes, 0, length); 159 fos.close();
|
/developers/build/prebuilts/gradle/ContentProviderPaging/app/src/main/java/com/example/android/contentproviderpaging/ |
ImageProvider.java | 217 FileOutputStream fos = context.openFileOutput(filename, Context.MODE_PRIVATE); local 219 fos.write(buffer, 0, size); 222 fos.write(buffer); 223 fos.close();
|
/developers/samples/android/content/documentsUi/ContentProviderPaging/app/src/main/java/com/example/android/contentproviderpaging/ |
ImageProvider.java | 217 FileOutputStream fos = context.openFileOutput(filename, Context.MODE_PRIVATE); local 219 fos.write(buffer, 0, size); 222 fos.write(buffer); 223 fos.close();
|