Home
last modified time | relevance | path

Searched refs:fileOutputStream (Results 1 – 5 of 5) sorted by relevance

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/
DAtomicFile.java159 private final FileOutputStream fileOutputStream; field in AtomicFile.AtomicFileOutputStream
163 fileOutputStream = new FileOutputStream(file); in AtomicFileOutputStream()
174 fileOutputStream.getFD().sync(); in close()
178 fileOutputStream.close(); in close()
183 fileOutputStream.flush(); in flush()
188 fileOutputStream.write(b); in write()
193 fileOutputStream.write(b); in write()
198 fileOutputStream.write(b, off, len); in write()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowContextTest.java178 …try (FileOutputStream fileOutputStream = context.openFileOutput("__test__", Context.MODE_PRIVATE))… in openFileOutput_shouldReturnAFileOutputStream() argument
179 fileOutputStream.write(fileContents.getBytes(UTF_8)); in openFileOutput_shouldReturnAFileOutputStream()
199 …try (FileOutputStream fileOutputStream = context.openFileOutput("__test__", Context.MODE_APPEND)) { in openFileOutput_shouldAppendData() argument
200 fileOutputStream.write(initialFileContents.getBytes(UTF_8)); in openFileOutput_shouldAppendData()
202 …try (FileOutputStream fileOutputStream = context.openFileOutput("__test__", Context.MODE_APPEND)) { in openFileOutput_shouldAppendData() argument
203 fileOutputStream.write(appendedFileContents.getBytes(UTF_8)); in openFileOutput_shouldAppendData()
217 try (FileOutputStream fileOutputStream = context.openFileOutput("__test__", 0)) { in openFileOutput_shouldOverwriteData() argument
218 fileOutputStream.write(initialFileContents.getBytes(UTF_8)); in openFileOutput_shouldOverwriteData()
220 try (FileOutputStream fileOutputStream = context.openFileOutput("__test__", 0)) { in openFileOutput_shouldOverwriteData() argument
221 fileOutputStream.write(newFileContents.getBytes(UTF_8)); in openFileOutput_shouldOverwriteData()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/
DFixedLengthBlockOutputStream.java64 FileOutputStream fileOutputStream = (FileOutputStream) os; in FixedLengthBlockOutputStream() local
65 out = fileOutputStream.getChannel(); in FixedLengthBlockOutputStream()
/external/nanohttpd/core/src/main/java/fi/iki/elonen/
DNanoHTTPD.java1095 FileOutputStream fileOutputStream = null; in saveTmpFile() local
1099 fileOutputStream = new FileOutputStream(tempFile.getName()); in saveTmpFile()
1100 FileChannel dest = fileOutputStream.getChannel(); in saveTmpFile()
1107 safeClose(fileOutputStream); in saveTmpFile()
/external/auto/value/src/test/java/com/google/auto/value/processor/
DExtensionTest.java630 FileOutputStream fileOutputStream = new FileOutputStream(badJar); in doTestBadJarDoesntBlowUp() local
631 JarOutputStream jarOutputStream = new JarOutputStream(fileOutputStream); in doTestBadJarDoesntBlowUp()