Searched refs:fileInputStream (Results 1 – 2 of 2) sorted by relevance
164 FileInputStream fileInputStream = null; in openFileInput_shouldReturnAFileInputStream() local166 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() local181 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 …]
159 try (FileInputStream fileInputStream = context.openFileInput("__test__")) { in openFileInput_shouldReturnAFileInputStream() argument161 fileInputStream.read(bytes); in openFileInput_shouldReturnAFileInputStream()168 … try (FileInputStream fileInputStream = context.openFileInput("data" + File.separator + "test")) {} in openFileInput_shouldNotAcceptPathsWithSeparatorCharacters() argument178 …try (FileInputStream fileInputStream = new FileInputStream(new File(context.getFilesDir(), file.ge… in openFileOutput_shouldReturnAFileOutputStream() argument180 fileInputStream.read(readBuffer); in openFileOutput_shouldReturnAFileOutputStream()202 …try (FileInputStream fileInputStream = new FileInputStream(new File(context.getFilesDir(), file.ge… in openFileOutput_shouldAppendData() argument204 fileInputStream.read(readBuffer); in openFileOutput_shouldAppendData()220 …try (FileInputStream fileInputStream = new FileInputStream(new File(context.getFilesDir(), file.ge… in openFileOutput_shouldOverwriteData() argument222 fileInputStream.read(readBuffer); in openFileOutput_shouldOverwriteData()