Searched refs:getFilesDir (Results 1 – 6 of 6) sorted by relevance
120 assertThat(context.getFilesDir().exists()).isTrue(); in getFilesDir_shouldCreateDirectory()125 assertThat(context.fileList()).isEqualTo(context.getFilesDir().list()); in fileList()157 File file = new File(context.getFilesDir(), "__test__"); in openFileInput_shouldReturnAFileInputStream()181 …try (FileInputStream fileInputStream = new FileInputStream(new File(context.getFilesDir(), file.ge… in openFileOutput_shouldReturnAFileOutputStream()205 …try (FileInputStream fileInputStream = new FileInputStream(new File(context.getFilesDir(), file.ge… in openFileOutput_shouldAppendData()223 …try (FileInputStream fileInputStream = new FileInputStream(new File(context.getFilesDir(), file.ge… in openFileOutput_shouldOverwriteData()232 File filesDir = context.getFilesDir(); in deleteFile_shouldReturnTrue()242 File filesDir = context.getFilesDir(); in deleteFile_shouldReturnFalse()
26 file = new File(ApplicationProvider.getApplicationContext().getFilesDir(), "test"); in setUp()30 new File(ApplicationProvider.getApplicationContext().getFilesDir(), "test_readonly"); in setUp()109 File f = new File(ApplicationProvider.getApplicationContext().getFilesDir(), "outfile"); in testAutoCloseOutputStream()
881 new File(ApplicationProvider.getApplicationContext().getFilesDir(), "test_file"); in openFile()
124 File base = context.getFilesDir(); in backup()144 File base = context.getFilesDir(); in restore()
30 return context.getFilesDir(); in getInterpreterRoot()
139 public File getFilesDir() { in getFilesDir() method in MockContext.MockContext2