Home
last modified time | relevance | path

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

12

/frameworks/support/tests/java/android/support/v4/content/
DFileProviderTest.java62 strat.addRoot("tag", mContext.getFilesDir()); in testStrategyUriSimple()
64 File file = buildPath(mContext.getFilesDir(), "file.test"); in testStrategyUriSimple()
68 file = buildPath(mContext.getFilesDir(), "subdir", "file.test"); in testStrategyUriSimple()
82 strat.addRoot("tag", mContext.getFilesDir()); in testStrategyUriJumpOutside()
84 File file = buildPath(mContext.getFilesDir(), "..", "file.test"); in testStrategyUriJumpOutside()
94 strat.addRoot("tag1", mContext.getFilesDir()); in testStrategyUriShortestRoot()
97 File file = buildPath(mContext.getFilesDir(), "file.test"); in testStrategyUriShortestRoot()
103 strat.addRoot("tag2", mContext.getFilesDir()); in testStrategyUriShortestRoot()
105 file = buildPath(mContext.getFilesDir(), "file.test"); in testStrategyUriShortestRoot()
112 strat.addRoot("tag", mContext.getFilesDir()); in testStrategyFileSimple()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageManagerSettingsTests.java56 writeFile(new File(getContext().getFilesDir(), "system/packages.xml"), in writePackagesXml()
96 writeFile(new File(getContext().getFilesDir(), "system/packages-stopped.xml"), in writeStoppedPackagesXml()
106 writeFile(new File(getContext().getFilesDir(), "system/packages.list"), in writePackagesList()
134 Settings settings = new Settings(getContext(), getContext().getFilesDir()); in testSettingsReadOld()
152 Settings settings = new Settings(getContext(), getContext().getFilesDir()); in testNewPackageRestrictionsFile()
156 settings = new Settings(getContext(), getContext().getFilesDir()); in testNewPackageRestrictionsFile()
167 Settings settings = new Settings(getContext(), getContext().getFilesDir()); in testEnableDisable()
/frameworks/base/core/java/android/app/backup/
DFileBackupHelper.java57 mFilesDir = context.getFilesDir(); in FileBackupHelper()
77 File base = mContext.getFilesDir(); in performBackup()
DBackupAgent.java284 String filesDir = getFilesDir().getCanonicalPath(); in onFullBackup()
365 filesDir = getFilesDir().getCanonicalPath(); in fullBackupFile()
528 basePath = getFilesDir().getCanonicalPath(); in onRestoreFile()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsCollectionTest.java63 final File testFile = new File(getContext().getFilesDir(), TEST_FILE); in testReadLegacyNetwork()
89 final File testFile = new File(getContext().getFilesDir(), TEST_FILE); in testReadLegacyUid()
115 final File testFile = new File(getContext().getFilesDir(), TEST_FILE); in testReadLegacyUidTags()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobStoreTest.java35 Log.d(TAG, "Saving tasks to '" + mTestContext.getFilesDir() + "'"); in setUp()
37 JobStore.initAndGetForTesting(mTestContext, mTestContext.getFilesDir()); in setUp()
/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/packages/ExternalStorageProvider/tests/src/com/android/externalstorage/
DExternalStorageProviderTest.java36 mTarget = getContext().getFilesDir(); 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/core/tests/coretests/src/android/database/
DDatabaseLockTest.java45 File parentDir = getContext().getFilesDir(); in setUp()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DTelephonyTester.java134 File packageFile = new File(context.getFilesDir(), fileName); in handleTestConferenceEventPackage()
/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.java189 public File getFilesDir() { in getFilesDir() method in IsolatedContext
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DSyncStorageEngineTest.java65 return new File(new File(getContext().getFilesDir(), "system"), "sync"); in getSyncDir()
774 File syncDir = new File(new File(testContext.getFilesDir(), "system"), "sync"); in testAuthorityRenaming()
814 File syncDir = new File(new File(testContext.getFilesDir(), "system"), "sync"); in testSyncableMigration()
903 public File getFilesDir() { in getFilesDir() method in TestContext
904 return mRealContext.getFilesDir(); in getFilesDir()
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DFileRotatorTest.java69 mBasePath = getContext().getFilesDir(); in setUp()
374 String dirPath = getContext().getFilesDir() + File.separator + "inaccessible"; in testFileSystemInaccessible()
/frameworks/base/core/tests/coretests/src/com/android/internal/net/
DNetworkStatsFactoryTest.java53 mTestProc = new File(getContext().getFilesDir(), "proc"); in setUp()
/frameworks/base/core/java/android/content/
DContextWrapper.java201 public File getFilesDir() { in getFilesDir() method in ContextWrapper
202 return mBase.getFilesDir(); in getFilesDir()
/frameworks/base/services/tests/servicestests/src/com/android/server/updates/
DCertPinInstallReceiverTest.java157 return mContext.getFilesDir() + "/content.txt"; in makeTemporaryContentFile()
/frameworks/base/core/java/android/app/
DNativeActivity.java177 getAbsolutePath(getFilesDir()), getAbsolutePath(getObbDir()), in onCreate()
DContextImpl.java960 File f = makeFilename(getFilesDir(), name); in openFileInput()
968 File f = makeFilename(getFilesDir(), name); in openFileOutput()
989 File f = makeFilename(getFilesDir(), name); in deleteFile()
1013 public File getFilesDir() { in getFilesDir() method in ContextImpl
1126 return makeFilename(getFilesDir(), name); in getFileStreamPath()
1131 final String[] list = getFilesDir().list(); in fileList()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPrintSpoolerService.java150 File[] files = getFilesDir().listFiles(); in dump()
327 File[] files = getFilesDir().listFiles(); in handleReadPrintJobsLocked()
432 return new File(context.getFilesDir(), PRINT_JOB_FILE_PREFIX in generateFileForPrintJob()
726 mStatePersistFile = new AtomicFile(new File(getFilesDir(), in PersistenceManager()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DMountServiceTests.java116 final File filesDir = mContext.getFilesDir(); in getFilePath()
DLockSettingsStorageTests.java42 mStorageDir = new File(getContext().getFilesDir(), "locksettings"); in setUp()

12