Home
last modified time | relevance | path

Searched refs:getFilesDir (Results 1 – 25 of 38) sorted by relevance

12

/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowContextTest.java140 assertThat(context.getFilesDir().exists()).isTrue(); in getFilesDir_shouldCreateDirectory()
145 assertThat(context.fileList()).isEqualTo(context.getFilesDir().list()); in fileList()
177 File file = new File(context.getFilesDir(), "__test__"); in openFileInput_shouldReturnAFileInputStream()
203 …try (FileInputStream fileInputStream = new FileInputStream(new File(context.getFilesDir(), file.ge… in openFileOutput_shouldReturnAFileOutputStream()
231 …try (FileInputStream fileInputStream = new FileInputStream(new File(context.getFilesDir(), file.ge… in openFileOutput_shouldAppendData()
249 …try (FileInputStream fileInputStream = new FileInputStream(new File(context.getFilesDir(), file.ge… in openFileOutput_shouldOverwriteData()
258 File filesDir = context.getFilesDir(); in deleteFile_shouldReturnTrue()
268 File filesDir = context.getFilesDir(); in deleteFile_shouldReturnFalse()
DShadowParcelFileDescriptorTest.java46 file = new File(ApplicationProvider.getApplicationContext().getFilesDir(), "test"); in setUp()
50 new File(ApplicationProvider.getApplicationContext().getFilesDir(), "test_readonly"); in setUp()
293 File f = new File(ApplicationProvider.getApplicationContext().getFilesDir(), "outfile"); in testAutoCloseOutputStream()
DShadowBugreportManagerTest.java302 File f = new File(context.getFilesDir(), fileName); in createWriteFile()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowContextTest.java120 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()
DShadowParcelFileDescriptorTest.java26 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()
/external/libchrome/base/test/android/javatests/src/org/chromium/base/test/
DBaseChromiumRunnerCommon.java46 public File getFilesDir() { in getFilesDir() method in BaseChromiumRunnerCommon.MultiDexContextWrapper
47 return mAppContext.getFilesDir(); in getFilesDir()
/external/cronet/base/test/android/javatests/src/org/chromium/base/test/
DBaseChromiumRunnerCommon.java47 public File getFilesDir() { in getFilesDir() method in BaseChromiumRunnerCommon.MultiDexContextWrapper
48 return mAppContext.getFilesDir(); in getFilesDir()
/external/libbackup/src/com/google/android/libraries/backup/shadow/
DFileBackupHelperSimulator.java124 File base = context.getFilesDir(); in backup()
144 File base = context.getFilesDir(); in restore()
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/backends/
DAndroidFileEnvironment.java201 File filesDir = context.getFilesDir(); in getFilesDirWithPreNWorkaround()
207 filesDir = context.getFilesDir(); in getFilesDirWithPreNWorkaround()
DAndroidUriAdapter.java76 rootLocation = context.createDeviceProtectedStorageContext().getFilesDir(); in toFile()
/external/sl4a/Utils/src/com/googlecode/android_scripting/interpreter/
DInterpreterUtils.java30 return context.getFilesDir(); in getInterpreterRoot()
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/backends/
DAndroidFileBackendTest.java156 context.createDeviceProtectedStorageContext().getFilesDir(), in openForRead_directBootFilesOnNShouldUseDeviceProtectedStorageContext()
158 File filesFile = new File(context.getFilesDir(), "testboot/shared/inDirectBoot.txt"); in openForRead_directBootFilesOnNShouldUseDeviceProtectedStorageContext()
284 File file = new File(context.getFilesDir(), "managed/common/123/file"); in managedUris_isSerializedAsIntegerOnDisk()
/external/tflite-support/tensorflow_lite_support/java/src/javatests/org/tensorflow/lite/task/core/
DTestUtils.java25 File target = new File(context.getFilesDir(), fileName); in loadFile()
/external/cronet/components/cronet/android/test/javaperftests/src/org/chromium/net/
DCronetPerfTestActivity.java245 getFilesDir().getPath() + "/" + mName + ".json", false); in startLogging()
248 Debug.startMethodTracing(getFilesDir().getPath() + "/" + mName + ".trace"); in startLogging()
251 getFilesDir().getPath() + "/" + mName + ".trace", 8000000, 10); in startLogging()
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/internal/util/
DFileGroupsMetadataUtil.java93 return new File(context.getFilesDir(), fileName); in getGarbageCollectorFile()
/external/robolectric/integration_tests/ctesque/src/sharedTest/java/android/content/res/
DAssetManagerTest.java80 getTargetContext().getFilesDir() in open_shouldProvideFileDescriptor()
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/common/testing/
DShadowUtils.java135 public File getFilesDir() { in getFilesDir() method in ShadowUtils.ShadowContextImpl
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/demos/main/src/main/java/com/google/android/exoplayer2/demo/
DDemoUtil.java174 downloadDirectory = context.getFilesDir(); in getDownloadDirectory()
/external/oboe/tests/UnitTestRunner/app/src/main/java/com/google/oboe/tests/unittestrunner/
DMainActivity.java111 String filesDir = getFilesDir().getPath(); in getExecutablePathFromAssets()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/demos/main/src/main/java/com/google/android/exoplayer2/demo/
DDemoUtil.java206 downloadDirectory = context.getFilesDir(); in getDownloadDirectory()
/external/downloader/src/example/java/com/google/android/downloader/example/
DDownloaderTestActivity.java85 targetDirectory = getFilesDir(); in onCreate()
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/
DMockContext.java139 public File getFilesDir() { in getFilesDir() method in MockContext.MockContext2
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/downloader/
DModelDownloadManagerTest.java107 ApplicationProvider.getApplicationContext().getFilesDir()); in tearDown()
/external/libtextclassifier/java/src/com/android/textclassifier/downloader/
DDownloadedModelManagerImpl.java78 File modelDownloaderDir = new File(context.getFilesDir(), DOWNLOAD_SUB_DIR_NAME); in getInstance()
/external/robolectric/integration_tests/nativegraphics/src/test/java/org/robolectric/integrationtests/nativegraphics/
DShadowNativeTypefaceTest.java210 File dir = context.getFilesDir(); in obtainPath()

12