Home
last modified time | relevance | path

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

1234

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverySnapshotStorageTest.java73 mRecoverySnapshotStorage = new RecoverySnapshotStorage(mContext.getFilesDir()); in setUp()
78 File file = new File(mContext.getFilesDir(), SNAPSHOT_TOP_LEVEL_DIRECTORY); in tearDown()
97 RecoverySnapshotStorage storage = new RecoverySnapshotStorage(mContext.getFilesDir()); in get_readsFromDiskIfNoneInMemory()
104 File folder = new File(mContext.getFilesDir(), SNAPSHOT_DIRECTORY); in get_deletesFileIfItIsInvalidSnapshot()
124 KeyChainSnapshot snapshot = new RecoverySnapshotStorage(mContext.getFilesDir()) in put_overwritesOldFiles()
131 File evilFile = new File(mContext.getFilesDir(), "recoverablekeystore"); in put_doesNotThrowIfCannotCreateFiles()
136 assertNull(new RecoverySnapshotStorage(mContext.getFilesDir()).get(TEST_UID)); in put_doesNotThrowIfCannotCreateFiles()
151 new RecoverySnapshotStorage(mContext.getFilesDir()).remove(TEST_UID); in remove_removesSnapshotsFromDisk()
153 assertNull(new RecoverySnapshotStorage(mContext.getFilesDir()).get(TEST_UID)); in remove_removesSnapshotsFromDisk()
/frameworks/base/core/tests/coretests/src/android/app/backup/
DFullBackupTest.java74 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_onlyInclude()
96 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_onlyIncludeRequireEncryptionFlag()
118 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(), in testParseBackupSchemeFromXml_onlyIncludeRequireFakeEncryptionFlag()
142 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_onlyIncludeRequireD2DFlag()
167 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_onlyIncludeRequireEncryptionAndD2DFlags()
193 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_onlyIncludeRequireD2DFlagAndIngoreGarbage()
227 new File(mContext.getFilesDir(), "onlyExclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_onlyExclude()
244 new File(mContext.getFilesDir(), "include.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_includeAndExclude()
249 new File(mContext.getFilesDir(), "exclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_includeAndExclude()
272 new File(mContext.getFilesDir(), "include1.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_lotsOfIncludesAndExcludes()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageManagerSettingsTests.java93 new Settings(context.getFilesDir(), pmInt.getPermissionSettings(), lock); in testReadKeySetSettings()
108 new Settings(context.getFilesDir(), pmInt.getPermissionSettings(), lock); in testWriteKeySetSettings()
125 new Settings(context.getFilesDir(), pmInt.getPermissionSettings(), lock); in testSettingsReadOld()
148 new Settings(context.getFilesDir(), pmInt.getPermissionSettings(), lock); in testNewPackageRestrictionsFile()
154 new Settings(context.getFilesDir(), pmInt.getPermissionSettings(), lock); in testNewPackageRestrictionsFile()
177 final Settings settingsUnderTest = new Settings(context.getFilesDir(), null, lock); in testReadPackageRestrictions_oldSuspendInfo()
196 final Settings settingsUnderTest = new Settings(context.getFilesDir(), null, new Object()); in testReadWritePackageRestrictions_newSuspendInfo()
265 final Settings settingsUnderTest = new Settings(context.getFilesDir(), null, new Object()); in testReadWritePackageRestrictions_distractionFlags()
318 new Settings(context.getFilesDir(), pmInt.getPermissionSettings(), lock); in testEnableDisable()
357 new File(InstrumentationRegistry.getContext().getFilesDir(), "com.android.bar-1");
[all …]
/frameworks/base/core/java/android/app/backup/
DFileBackupHelper.java57 mFilesDir = context.getFilesDir(); in FileBackupHelper()
77 File base = mContext.getFilesDir(); in performBackup()
DBackupAgent.java390 final String filesDir = ceContext.getFilesDir().getCanonicalPath(); in onFullBackup()
401 final String deviceFilesDir = deContext.getFilesDir().getCanonicalPath(); in onFullBackup()
618 filesDir = ceContext.getFilesDir().getCanonicalPath(); in fullBackupFile()
627 deviceFilesDir = deContext.getFilesDir().getCanonicalPath(); in fullBackupFile()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageUtil.java43 File newFileDir = new File(context.getFilesDir(), "tmp"); in getTemporaryFile()
56 File newFileDir = new File(context.getFilesDir(), "images/icons"); in getIconFile()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DPasswordSlotManagerTestable.java41 final File testDir = InstrumentationRegistry.getContext().getFilesDir(); in getSlotMapDir()
/frameworks/base/packages/Shell/src/com/android/shell/
DHeapDumpReceiver.java103 Log.d(TAG, "Deleting from " + new File(context.getFilesDir(), "heapdumps")); in cleanupOldFiles()
104 FileUtils.deleteOlderFiles(new File(context.getFilesDir(), "heapdumps"), 0, in cleanupOldFiles()
DHeapDumpProvider.java41 mRoot = new File(getContext().createCredentialProtectedStorageContext().getFilesDir(), in onCreate()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/
DWatchlistLoggingHandlerTests.java144 String fileDir = InstrumentationRegistry.getContext().getFilesDir().getAbsolutePath(); in setUp()
160 String fileDir = InstrumentationRegistry.getContext().getFilesDir().getAbsolutePath(); in tearDown()
DReportEncoderTests.java61 mTestXmlFile = new File(mContext.getFilesDir(), "test_watchlist_config.xml"); in setUp()
/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()
211 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()
489 getFilesDir().getPath() + "/" + properties.getProperty("triggerAudio"))); in createModelInfo()
498 getFilesDir().getPath() + "/" + properties.getProperty("dataFile")); in createModelInfo()
605 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/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests/src/com/android/framework/multidexlegacytestservices/test/
DServicesTests.java38 File targetFilesDir = getInstrumentation().getTargetContext().getFilesDir(); in testStressConcurentFirstLaunch()
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DGamePerformanceTest.java61 final String output = (new File(getInstrumentation().getContext().getFilesDir(), in testGraphicBufferMetrics()
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/
DAbstractService.java57 File resultFile = new File(applicationContext.getFilesDir(), getId()); in run()
90 new File(applicationContext.getFilesDir(), getId() + ".complete"), "rw"); in run()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DMuxer.java43 mMuxer = new MediaMuxer(context.getFilesDir().getPath() + "/mux.out.", outputFormat); in setUpMuxer()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskPersisterTest.java56 mTaskPersister = new TaskPersister(context.getFilesDir()); in setUp()
DTaskSnapshotPersisterTestBase.java55 static final File FILES_DIR = getInstrumentation().getTargetContext().getFilesDir();
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesLocaleTest.java38 File path = new File(getContext().getFilesDir(), resources.getResourceEntryName(id)); in extractApkAndGetPath()
/frameworks/base/test-runner/src/android/test/
DIsolatedContext.java132 public File getFilesDir() { in getFilesDir() method in IsolatedContext
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseLockTest.java47 File parentDir = getContext().getFilesDir(); in setUp()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsCollectionTest.java115 new File(InstrumentationRegistry.getContext().getFilesDir(), TEST_FILE); in testReadLegacyNetwork()
143 new File(InstrumentationRegistry.getContext().getFilesDir(), TEST_FILE); in testReadLegacyUid()
171 new File(InstrumentationRegistry.getContext().getFilesDir(), TEST_FILE); in testReadLegacyUidTags()
275 new File(InstrumentationRegistry.getContext().getFilesDir(), TEST_FILE); in testAugmentPlan()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DStoragedUidIoStatsReaderTest.java68 mRoot = getContext().getFilesDir(); in setUp()

1234