/frameworks/support/core-utils/tests/java/android/support/v4/content/ |
D | FileProviderTest.java | 60 strat.addRoot("tag", mContext.getFilesDir()); in testStrategyUriSimple() 62 File file = buildPath(mContext.getFilesDir(), "file.test"); in testStrategyUriSimple() 66 file = buildPath(mContext.getFilesDir(), "subdir", "file.test"); in testStrategyUriSimple() 80 strat.addRoot("tag", mContext.getFilesDir()); in testStrategyUriJumpOutside() 82 File file = buildPath(mContext.getFilesDir(), "..", "file.test"); in testStrategyUriJumpOutside() 92 strat.addRoot("tag1", mContext.getFilesDir()); in testStrategyUriShortestRoot() 95 File file = buildPath(mContext.getFilesDir(), "file.test"); in testStrategyUriShortestRoot() 101 strat.addRoot("tag2", mContext.getFilesDir()); in testStrategyUriShortestRoot() 103 file = buildPath(mContext.getFilesDir(), "file.test"); in testStrategyUriShortestRoot() 110 strat.addRoot("tag", mContext.getFilesDir()); in testStrategyFileSimple() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageManagerSettingsTests.java | 72 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/ |
D | FullBackupTest.java | 72 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/support/samples/Support4Demos/src/com/example/android/supportv4/app/ |
D | SharingSupport.java | 75 FileWriter fw = new FileWriter(getFilesDir() + "/foo.txt"); in onShareFileClick() 94 FileWriter fw = new FileWriter(getFilesDir() + "/foo.txt"); in onShareMultipleFileClick() 98 fw = new FileWriter(getFilesDir() + "/bar.txt"); in onShareMultipleFileClick()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/content/ |
D | SyncStorageEngineTest.java | 63 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/ |
D | FileBackupHelper.java | 57 mFilesDir = context.getFilesDir(); in FileBackupHelper() 77 File base = mContext.getFilesDir(); in performBackup()
|
D | BackupAgent.java | 315 final String filesDir = ceContext.getFilesDir().getCanonicalPath(); in onFullBackup() 326 final String deviceFilesDir = deContext.getFilesDir().getCanonicalPath(); in onFullBackup() 531 filesDir = ceContext.getFilesDir().getCanonicalPath(); in fullBackupFile() 540 deviceFilesDir = deContext.getFilesDir().getCanonicalPath(); in fullBackupFile()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkStatsCollectionTest.java | 69 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/ |
D | SoundTriggerTestService.java | 94 getFilesDir().mkdir(); in onCreate() 425 for (File file : getFilesDir().listFiles()) { in loadModelsInDataDir() 480 getFilesDir().getPath() + "/" + properties.getProperty("triggerAudio"))); in createModelInfo() 489 getFilesDir().getPath() + "/" + properties.getProperty("dataFile")); in createModelInfo() 596 getFilesDir() + File.separator + mModelInfo.name.replace(' ', '_') + in run()
|
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/ |
D | WallpaperBackupAgent.java | 98 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/backup/src/com/android/backuptest/ |
D | BackupTestActivity.java | 138 new File(getFilesDir(), "state"), 162 new File(getFilesDir(), "restore_state"),
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/content/ |
D | SharingSupportProvider.java | 81 new File(getContext().getFilesDir() + path), in openFile()
|
D | FileProviderExample.java | 48 final File thumbsDir = new File(getFilesDir(), "thumbs"); in onShareFileClick()
|
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests/src/com/android/framework/multidexlegacytestservices/test/ |
D | ServicesTests.java | 38 File targetFilesDir = getInstrumentation().getTargetContext().getFilesDir(); in testStressConcurentFirstLaunch()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | TaskPersisterTest.java | 43 mTaskPersister = new TaskPersister(getContext().getFilesDir()); in setUp()
|
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/ |
D | AbstractService.java | 57 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/usage/ |
D | AppIdleHistoryTests.java | 34 mStorageDir = new File(getContext().getFilesDir(), "appidle"); in setUp()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesLocaleTest.java | 37 File path = new File(getContext().getFilesDir(), resources.getResourceEntryName(id)); in extractApkAndGetPath()
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | DatabaseLockTest.java | 45 File parentDir = getContext().getFilesDir(); in setUp()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
D | JobStoreTest.java | 37 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/ |
D | HugeBackupActivity.java | 79 mDataFile = new File(getFilesDir(), HugeBackupActivity.DATA_FILE_NAME); in onCreate()
|
D | HugeAgent.java | 68 mDataFile = new File(getFilesDir(), HugeBackupActivity.DATA_FILE_NAME); in onCreate()
|
/frameworks/base/test-runner/src/android/test/ |
D | IsolatedContext.java | 193 public File getFilesDir() { in getFilesDir() method in IsolatedContext
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | FileRotatorTest.java | 69 mBasePath = getContext().getFilesDir(); in setUp() 374 String dirPath = getContext().getFilesDir() + File.separator + "inaccessible"; in testFileSystemInaccessible()
|
/frameworks/base/docs/html-intl/intl/ja/training/basics/data-storage/ |
D | files.jd | 138 <dt>{@link android.content.Context#getFilesDir}</dt> 153 File file = new File(context.getFilesDir(), filename);
|