Home
last modified time | relevance | path

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

123

/frameworks/support/core-utils/tests/java/android/support/v4/content/
DFileProviderTest.java72 strat.addRoot("tag", mContext.getFilesDir()); in testStrategyUriSimple()
74 File file = buildPath(mContext.getFilesDir(), "file.test"); in testStrategyUriSimple()
78 file = buildPath(mContext.getFilesDir(), "subdir", "file.test"); in testStrategyUriSimple()
93 strat.addRoot("tag", mContext.getFilesDir()); in testStrategyUriJumpOutside()
95 File file = buildPath(mContext.getFilesDir(), "..", "file.test"); in testStrategyUriJumpOutside()
106 strat.addRoot("tag1", mContext.getFilesDir()); in testStrategyUriShortestRoot()
109 File file = buildPath(mContext.getFilesDir(), "file.test"); in testStrategyUriShortestRoot()
115 strat.addRoot("tag2", mContext.getFilesDir()); in testStrategyUriShortestRoot()
117 file = buildPath(mContext.getFilesDir(), "file.test"); in testStrategyUriShortestRoot()
125 strat.addRoot("tag", mContext.getFilesDir()); in testStrategyFileSimple()
[all …]
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/
DSharingSupport.java74 FileWriter fw = new FileWriter(getFilesDir() + "/foo.txt"); in onShareFileClick()
93 FileWriter fw = new FileWriter(getFilesDir() + "/foo.txt"); in onShareMultipleFileClick()
97 fw = new FileWriter(getFilesDir() + "/bar.txt"); in onShareMultipleFileClick()
/frameworks/base/core/tests/coretests/src/android/app/backup/
DFullBackupTest.java72 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_onlyInclude()
88 new File(mContext.getFilesDir(), "onlyExclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_onlyExclude()
105 new File(mContext.getFilesDir(), "include.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_includeAndExclude()
110 new File(mContext.getFilesDir(), "exclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_includeAndExclude()
134 new File(mContext.getFilesDir(), "include1.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_lotsOfIncludesAndExcludes()
197 new File(mContext.getFilesDir(), "exclude1.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_lotsOfIncludesAndExcludes()
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DSyncStorageEngineTest.java66 return new File(new File(getContext().getFilesDir(), "system"), "sync"); in getSyncDir()
201 File syncDir = new File(new File(testContext.getFilesDir(), "system"), "sync"); in testAuthorityRenaming()
241 File syncDir = new File(new File(testContext.getFilesDir(), "system"), "sync"); in testSyncableMigration()
330 public File getFilesDir() { in getFilesDir() method in TestContext
331 return mRealContext.getFilesDir(); in getFilesDir()
/frameworks/base/core/java/android/app/backup/
DFileBackupHelper.java57 mFilesDir = context.getFilesDir(); in FileBackupHelper()
77 File base = mContext.getFilesDir(); in performBackup()
DBackupAgent.java327 final String filesDir = ceContext.getFilesDir().getCanonicalPath(); in onFullBackup()
338 final String deviceFilesDir = deContext.getFilesDir().getCanonicalPath(); in onFullBackup()
543 filesDir = ceContext.getFilesDir().getCanonicalPath(); in fullBackupFile()
552 deviceFilesDir = deContext.getFilesDir().getCanonicalPath(); in fullBackupFile()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageManagerSettingsTests.java83 new Settings(InstrumentationRegistry.getContext().getFilesDir(), new Object()); in testReadKeySetSettings()
95 new Settings(InstrumentationRegistry.getContext().getFilesDir(), new Object()); in testWriteKeySetSettings()
109 new Settings(InstrumentationRegistry.getContext().getFilesDir(), new Object()); in testSettingsReadOld()
129 new Settings(InstrumentationRegistry.getContext().getFilesDir(), new Object()); in testNewPackageRestrictionsFile()
134 settings = new Settings(InstrumentationRegistry.getContext().getFilesDir(), new Object()); in testNewPackageRestrictionsFile()
147 new Settings(InstrumentationRegistry.getContext().getFilesDir(), new Object()); in testEnableDisable()
186 new File(InstrumentationRegistry.getContext().getFilesDir(), "com.android.bar-1");
188 new File(InstrumentationRegistry.getContext().getFilesDir(), "com.android.bar-2");
546 new Settings(InstrumentationRegistry.getContext().getFilesDir(), new Object()); in testInsertPackageSetting()
706 … writeFile(new File(InstrumentationRegistry.getContext().getFilesDir(), "system/packages.xml"), in writePackagesXml()
[all …]
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/
DWallpaperBackupAgent.java98 mQuotaFile = new File(getFilesDir(), QUOTA_SENTINEL); in onCreate()
108 final File filesDir = getFilesDir(); in onFullBackup()
209 final File filesDir = getFilesDir(); in onRestoreFinished()
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
DSoundTriggerTestService.java94 getFilesDir().mkdir(); in onCreate()
433 for (File file : getFilesDir().listFiles()) { in loadModelsInDataDir()
488 getFilesDir().getPath() + "/" + properties.getProperty("triggerAudio"))); in createModelInfo()
497 getFilesDir().getPath() + "/" + properties.getProperty("dataFile")); in createModelInfo()
604 getFilesDir() + File.separator + mModelInfo.name.replace(' ', '_') + in run()
/frameworks/base/tests/backup/src/com/android/backuptest/
DBackupTestActivity.java138 new File(getFilesDir(), "state"),
162 new File(getFilesDir(), "restore_state"),
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/content/
DSharingSupportProvider.java81 new File(getContext().getFilesDir() + path), in openFile()
DFileProviderExample.java48 final File thumbsDir = new File(getFilesDir(), "thumbs"); in onShareFileClick()
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests/src/com/android/framework/multidexlegacytestservices/test/
DServicesTests.java38 File targetFilesDir = getInstrumentation().getTargetContext().getFilesDir(); in testStressConcurentFirstLaunch()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DTaskPersisterTest.java43 mTaskPersister = new TaskPersister(getContext().getFilesDir()); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppIdleHistoryTests.java34 mStorageDir = new File(getContext().getFilesDir(), "appidle"); in setUp()
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/
DAbstractService.java57 File resultFile = new File(applicationContext.getFilesDir(), getId()); in run()
86 …RandomAccessFile raf = new RandomAccessFile(new File(applicationContext.getFilesDir(), getId() + "… in run()
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DTaskSnapshotPersisterTestBase.java52 sFilesDir = InstrumentationRegistry.getContext().getFilesDir(); in setUpUser()
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesLocaleTest.java37 File path = new File(getContext().getFilesDir(), resources.getResourceEntryName(id)); in extractApkAndGetPath()
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseLockTest.java45 File parentDir = getContext().getFilesDir(); in setUp()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsCollectionTest.java102 final File testFile = new File(getContext().getFilesDir(), TEST_FILE); in testReadLegacyNetwork()
128 final File testFile = new File(getContext().getFilesDir(), TEST_FILE); in testReadLegacyUid()
154 final File testFile = new File(getContext().getFilesDir(), TEST_FILE); in testReadLegacyUidTags()
254 final File testFile = new File(getContext().getFilesDir(), TEST_FILE); in testAugmentPlan()
/frameworks/base/tests/HugeBackup/src/com/android/hugebackup/
DHugeBackupActivity.java79 mDataFile = new File(getFilesDir(), HugeBackupActivity.DATA_FILE_NAME); in onCreate()
DHugeAgent.java68 mDataFile = new File(getFilesDir(), HugeBackupActivity.DATA_FILE_NAME); in onCreate()
/frameworks/base/test-runner/src/android/test/
DIsolatedContext.java192 public File getFilesDir() { in getFilesDir() method in IsolatedContext
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobStoreTest.java37 Log.d(TAG, "Saving tasks to '" + mTestContext.getFilesDir() + "'"); in setUp()
39 JobStore.initAndGetForTesting(mTestContext, mTestContext.getFilesDir()); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsStorageTests.java63 mStorageDir = new File(getContext().getFilesDir(), "locksettings"); in setUp()
80 new File(getContext().getFilesDir(), "locksettings")); in setUp()

123