Searched refs:getFilesDir (Results 1 - 25 of 84) sorted by relevance

1234

/frameworks/support/compat/src/androidTest/java/androidx/core/content/
H A DFileProviderTest.java74 strat.addRoot("tag", mContext.getFilesDir());
76 File file = buildPath(mContext.getFilesDir(), "file.test");
80 file = buildPath(mContext.getFilesDir(), "subdir", "file.test");
95 strat.addRoot("tag", mContext.getFilesDir());
97 File file = buildPath(mContext.getFilesDir(), "..", "file.test");
108 strat.addRoot("tag1", mContext.getFilesDir());
111 File file = buildPath(mContext.getFilesDir(), "file.test");
117 strat.addRoot("tag2", mContext.getFilesDir());
119 file = buildPath(mContext.getFilesDir(), "file.test");
127 strat.addRoot("tag", mContext.getFilesDir());
[all...]
/frameworks/support/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/app/
H A DSharingSupport.java75 FileWriter fw = new FileWriter(getFilesDir() + "/foo.txt");
94 FileWriter fw = new FileWriter(getFilesDir() + "/foo.txt");
98 fw = new FileWriter(getFilesDir() + "/bar.txt");
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/app/
H A DSharingSupport.java75 FileWriter fw = new FileWriter(getFilesDir() + "/foo.txt");
94 FileWriter fw = new FileWriter(getFilesDir() + "/foo.txt");
98 fw = new FileWriter(getFilesDir() + "/bar.txt");
/frameworks/base/core/java/android/app/backup/
H A DFileBackupHelper.java57 mFilesDir = context.getFilesDir();
77 File base = mContext.getFilesDir();
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
H A DRecoverySnapshotStorageTest.java72 mRecoverySnapshotStorage = new RecoverySnapshotStorage(mContext.getFilesDir());
77 File file = new File(mContext.getFilesDir(), SNAPSHOT_TOP_LEVEL_DIRECTORY);
96 RecoverySnapshotStorage storage = new RecoverySnapshotStorage(mContext.getFilesDir());
103 File folder = new File(mContext.getFilesDir(), SNAPSHOT_DIRECTORY);
123 KeyChainSnapshot snapshot = new RecoverySnapshotStorage(mContext.getFilesDir())
130 File evilFile = new File(mContext.getFilesDir(), "recoverablekeystore");
135 assertNull(new RecoverySnapshotStorage(mContext.getFilesDir()).get(TEST_UID));
150 new RecoverySnapshotStorage(mContext.getFilesDir()).remove(TEST_UID);
152 assertNull(new RecoverySnapshotStorage(mContext.getFilesDir()).get(TEST_UID));
/frameworks/base/core/tests/coretests/src/android/app/backup/
H A DFullBackupTest.java73 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(),
95 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(),
117 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(),
141 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(),
166 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(),
192 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(),
226 new File(mContext.getFilesDir(), "onlyExclude.txt").getCanonicalPath(),
243 new File(mContext.getFilesDir(), "include.txt").getCanonicalPath(),
248 new File(mContext.getFilesDir(), "exclude.txt").getCanonicalPath(),
271 new File(mContext.getFilesDir(), "include
[all...]
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests/src/com/android/framework/multidexlegacytestservices/test/
H A DServicesTests.java38 File targetFilesDir = getInstrumentation().getTargetContext().getFilesDir();
/frameworks/support/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/content/
H A DSharingSupportProvider.java81 new File(getContext().getFilesDir() + path),
H A DFileProviderExample.java50 final File thumbsDir = new File(getFilesDir(), "thumbs");
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/content/
H A DSharingSupportProvider.java81 new File(getContext().getFilesDir() + path),
H A DFileProviderExample.java50 final File thumbsDir = new File(getFilesDir(), "thumbs");
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DPackageManagerSettingsTests.java90 new Settings(context.getFilesDir(), pmInt.getPermissionSettings(), lock);
105 new Settings(context.getFilesDir(), pmInt.getPermissionSettings(), lock);
122 new Settings(context.getFilesDir(), pmInt.getPermissionSettings(), lock);
145 new Settings(context.getFilesDir(), pmInt.getPermissionSettings(), lock);
151 new Settings(context.getFilesDir(), pmInt.getPermissionSettings(), lock);
174 final Settings settingsUnderTest = new Settings(context.getFilesDir(), null, lock);
193 final Settings settingsUnderTest = new Settings(context.getFilesDir(), null, new Object());
259 new Settings(context.getFilesDir(), pmInt.getPermissionSettings(), lock);
298 new File(InstrumentationRegistry.getContext().getFilesDir(), "com.android.bar-1");
300 new File(InstrumentationRegistry.getContext().getFilesDir(), "co
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
H A DTaskPersisterTest.java46 mTaskPersister = new TaskPersister(getContext().getFilesDir());
/frameworks/base/test-runner/src/android/test/
H A DIsolatedContext.java119 public File getFilesDir() { method in class:IsolatedContext
/frameworks/base/core/tests/coretests/src/android/content/res/
H A DResourcesLocaleTest.java37 File path = new File(getContext().getFilesDir(), resources.getResourceEntryName(id));
/frameworks/base/core/tests/coretests/src/android/database/
H A DDatabaseLockTest.java45 File parentDir = getContext().getFilesDir();
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/
H A DReportEncoderTests.java60 mTestXmlFile = new File(mContext.getFilesDir(), "test_watchlist_config.xml");
H A DWatchlistLoggingHandlerTests.java146 String fileDir = InstrumentationRegistry.getContext().getFilesDir().getAbsolutePath();
162 String fileDir = InstrumentationRegistry.getContext().getFilesDir().getAbsolutePath();
H A DWatchlistSettingsTests.java58 mTestXmlFile = new File(mContext.getFilesDir(), "test_settings_config.xml");
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
H A DTaskSnapshotPersisterTestBase.java53 sFilesDir = InstrumentationRegistry.getContext().getFilesDir();
/frameworks/support/slices/view/src/androidTest/java/androidx/slice/render/
H A DRenderTest.java64 String path = new File(mContext.getFilesDir(), SCREENSHOT_DIR).getAbsolutePath();
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/
H A DAbstractService.java57 File resultFile = new File(applicationContext.getFilesDir(), getId());
90 new File(applicationContext.getFilesDir(), getId() + ".complete"), "rw");
/frameworks/base/tests/backup/src/com/android/backuptest/
H A DBackupTestActivity.java138 new File(getFilesDir(), "state"),
162 new File(getFilesDir(), "restore_state"),
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/
H A DWallpaperBackupAgent.java98 mQuotaFile = new File(getFilesDir(), QUOTA_SENTINEL);
108 final File filesDir = getFilesDir();
209 final File filesDir = getFilesDir();
/frameworks/base/packages/Shell/src/com/android/shell/
H A DBugreportStorageProvider.java54 mRoot = new File(getContext().getFilesDir(), "bugreports");

Completed in 3540 milliseconds

1234