Home
last modified time | relevance | path

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

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowContextTest.java175 …try (FileOutputStream fileOutputStream = context.openFileOutput("__test__", Context.MODE_PRIVATE))… in openFileOutput_shouldReturnAFileOutputStream() argument
176 fileOutputStream.write(fileContents.getBytes(UTF_8)); in openFileOutput_shouldReturnAFileOutputStream()
196 …try (FileOutputStream fileOutputStream = context.openFileOutput("__test__", Context.MODE_APPEND)) { in openFileOutput_shouldAppendData() argument
197 fileOutputStream.write(initialFileContents.getBytes(UTF_8)); in openFileOutput_shouldAppendData()
199 …try (FileOutputStream fileOutputStream = context.openFileOutput("__test__", Context.MODE_APPEND)) { in openFileOutput_shouldAppendData() argument
200 fileOutputStream.write(appendedFileContents.getBytes(UTF_8)); in openFileOutput_shouldAppendData()
214 try (FileOutputStream fileOutputStream = context.openFileOutput("__test__", 0)) { in openFileOutput_shouldOverwriteData() argument
215 fileOutputStream.write(initialFileContents.getBytes(UTF_8)); in openFileOutput_shouldOverwriteData()
217 try (FileOutputStream fileOutputStream = context.openFileOutput("__test__", 0)) { in openFileOutput_shouldOverwriteData() argument
218 fileOutputStream.write(newFileContents.getBytes(UTF_8)); in openFileOutput_shouldOverwriteData()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DContextTest.java192 FileOutputStream fileOutputStream = null; in openFileOutput_shouldReturnAFileOutputStream() local
194 fileOutputStream = context.openFileOutput("__test__", -1); in openFileOutput_shouldReturnAFileOutputStream()
195 fileOutputStream.write(fileContents.getBytes()); in openFileOutput_shouldReturnAFileOutputStream()
197 if (fileOutputStream != null) in openFileOutput_shouldReturnAFileOutputStream()
198 fileOutputStream.close(); in openFileOutput_shouldReturnAFileOutputStream()
/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()