Home
last modified time | relevance | path

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

123

/frameworks/support/tests/java/android/support/v4/content/
DFileProviderTest.java61 strat.addRoot("tag", mContext.getFilesDir()); in testStrategyUriSimple()
63 File file = buildPath(mContext.getFilesDir(), "file.test"); in testStrategyUriSimple()
67 file = buildPath(mContext.getFilesDir(), "subdir", "file.test"); in testStrategyUriSimple()
81 strat.addRoot("tag", mContext.getFilesDir()); in testStrategyUriJumpOutside()
83 File file = buildPath(mContext.getFilesDir(), "..", "file.test"); in testStrategyUriJumpOutside()
93 strat.addRoot("tag1", mContext.getFilesDir()); in testStrategyUriShortestRoot()
96 File file = buildPath(mContext.getFilesDir(), "file.test"); in testStrategyUriShortestRoot()
102 strat.addRoot("tag2", mContext.getFilesDir()); in testStrategyUriShortestRoot()
104 file = buildPath(mContext.getFilesDir(), "file.test"); in testStrategyUriShortestRoot()
111 strat.addRoot("tag", mContext.getFilesDir()); in testStrategyFileSimple()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageManagerSettingsTests.java72 writeFile(new File(getContext().getFilesDir(), "system/packages.xml"), in writePackagesXml()
142 writeFile(new File(getContext().getFilesDir(), "system/packages-stopped.xml"), in writeStoppedPackagesXml()
152 writeFile(new File(getContext().getFilesDir(), "system/packages.list"), in writePackagesList()
160 File systemFolder = new File(getContext().getFilesDir(), "system"); in deleteSystemFolder()
192 new Object(), new Object(), getContext().getFilesDir(), in createUserManagerServiceRef()
193 new File(getContext().getFilesDir(), "user")); in createUserManagerServiceRef()
258 Settings settings = new Settings(getContext().getFilesDir(), new Object()); in testReadKeySetSettings()
270 Settings settings = new Settings(getContext().getFilesDir(), new Object()); in testWriteKeySetSettings()
282 Settings settings = new Settings(getContext().getFilesDir(), new Object()); in testSettingsReadOld()
302 Settings settings = new Settings(getContext().getFilesDir(), new Object()); in testNewPackageRestrictionsFile()
[all …]
/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.java63 return new File(new File(getContext().getFilesDir(), "system"), "sync"); in getSyncDir()
198 File syncDir = new File(new File(testContext.getFilesDir(), "system"), "sync"); in testAuthorityRenaming()
238 File syncDir = new File(new File(testContext.getFilesDir(), "system"), "sync"); in testSyncableMigration()
327 public File getFilesDir() { in getFilesDir() method in TestContext
328 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.java313 final String filesDir = ceContext.getFilesDir().getCanonicalPath(); in onFullBackup()
324 final String deviceFilesDir = deContext.getFilesDir().getCanonicalPath(); in onFullBackup()
529 filesDir = ceContext.getFilesDir().getCanonicalPath(); in fullBackupFile()
538 deviceFilesDir = deContext.getFilesDir().getCanonicalPath(); in fullBackupFile()
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/
DWallpaperBackupAgent.java77 final File filesDir = getFilesDir(); in onFullBackup()
127 final File infoStage = new File(getFilesDir(), INFO_STAGE); in onRestoreFinished()
128 final File imageStage = new File (getFilesDir(), IMAGE_STAGE); in onRestoreFinished()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsCollectionTest.java69 final File testFile = new File(getContext().getFilesDir(), TEST_FILE); in testReadLegacyNetwork()
95 final File testFile = new File(getContext().getFilesDir(), TEST_FILE); in testReadLegacyUid()
121 final File testFile = new File(getContext().getFilesDir(), TEST_FILE); in testReadLegacyUidTags()
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
DTestSoundTriggerActivity.java92 for (File file : getFilesDir().listFiles()) { in onCreate()
139 getFilesDir().getPath() + "/" + properties.getProperty("triggerAudio"))); in createModelInfoAndWidget()
144 getFilesDir().getPath() + "/" + properties.getProperty("dataFile")); in createModelInfoAndWidget()
/frameworks/base/tests/backup/src/com/android/backuptest/
DBackupTestActivity.java138 new File(getFilesDir(), "state"),
162 new File(getFilesDir(), "restore_state"),
/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/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/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/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/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/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.java193 public File getFilesDir() { in getFilesDir() method in IsolatedContext
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DFileRotatorTest.java69 mBasePath = getContext().getFilesDir(); in setUp()
374 String dirPath = getContext().getFilesDir() + File.separator + "inaccessible"; in testFileSystemInaccessible()
/frameworks/base/docs/html-intl/intl/zh-cn/training/basics/data-storage/
Dfiles.jd138 <dt>{@link android.content.Context#getFilesDir}</dt>
153 File file = new File(context.getFilesDir(), filename);
/frameworks/base/docs/html-intl/intl/zh-tw/training/basics/data-storage/
Dfiles.jd138 <dt>{@link android.content.Context#getFilesDir}</dt>
153 File file = new File(context.getFilesDir(), filename);
/frameworks/base/docs/html-intl/intl/ko/training/basics/data-storage/
Dfiles.jd138 <dt>{@link android.content.Context#getFilesDir}</dt>
153 File file = new File(context.getFilesDir(), filename);
/frameworks/base/docs/html-intl/intl/ru/training/basics/data-storage/
Dfiles.jd138 <dt>{@link android.content.Context#getFilesDir}</dt>
153 File file = new File(context.getFilesDir(), filename);

123