Home
last modified time | relevance | path

Searched refs:fileInputStream (Results 1 – 2 of 2) sorted by relevance

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DContextTest.java164 FileInputStream fileInputStream = null; in openFileInput_shouldReturnAFileInputStream() local
166 fileInputStream = context.openFileInput("__test__"); in openFileInput_shouldReturnAFileInputStream()
169 fileInputStream.read(bytes); in openFileInput_shouldReturnAFileInputStream()
172 if (fileInputStream != null) in openFileInput_shouldReturnAFileInputStream()
173 fileInputStream.close(); in openFileInput_shouldReturnAFileInputStream()
179 FileInputStream fileInputStream = null; in openFileInput_shouldNotAcceptPathsWithSeparatorCharacters() local
181 fileInputStream = context.openFileInput("data" + File.separator + "test"); in openFileInput_shouldNotAcceptPathsWithSeparatorCharacters()
183 if (fileInputStream != null) in openFileInput_shouldNotAcceptPathsWithSeparatorCharacters()
184 fileInputStream.close(); in openFileInput_shouldNotAcceptPathsWithSeparatorCharacters()
200 FileInputStream fileInputStream = null; in openFileOutput_shouldReturnAFileOutputStream() local
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowContextTest.java159 try (FileInputStream fileInputStream = context.openFileInput("__test__")) { in openFileInput_shouldReturnAFileInputStream() argument
161 fileInputStream.read(bytes); in openFileInput_shouldReturnAFileInputStream()
168 … try (FileInputStream fileInputStream = context.openFileInput("data" + File.separator + "test")) {} in openFileInput_shouldNotAcceptPathsWithSeparatorCharacters() argument
178 …try (FileInputStream fileInputStream = new FileInputStream(new File(context.getFilesDir(), file.ge… in openFileOutput_shouldReturnAFileOutputStream() argument
180 fileInputStream.read(readBuffer); in openFileOutput_shouldReturnAFileOutputStream()
202 …try (FileInputStream fileInputStream = new FileInputStream(new File(context.getFilesDir(), file.ge… in openFileOutput_shouldAppendData() argument
204 fileInputStream.read(readBuffer); in openFileOutput_shouldAppendData()
220 …try (FileInputStream fileInputStream = new FileInputStream(new File(context.getFilesDir(), file.ge… in openFileOutput_shouldOverwriteData() argument
222 fileInputStream.read(readBuffer); in openFileOutput_shouldOverwriteData()