Home
last modified time | relevance | path

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

12345

/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/services/tests/servicestests/src/com/android/server/app/
DGameManagerServiceSettingsTests.java71 writeFile(new File(InstrumentationRegistry.getContext().getFilesDir(), in writeGameServiceXml()
95 File systemFolder = new File(InstrumentationRegistry.getContext().getFilesDir(), "system"); in deleteSystemFolder()
116 deleteFolder(InstrumentationRegistry.getTargetContext().getFilesDir()); in tearDown()
123 GameManagerSettings settings = new GameManagerSettings(context.getFilesDir()); in testReadGameServiceSettings()
166 writeFile(new File(InstrumentationRegistry.getContext().getFilesDir(), in testReadGameServiceSettings_invalidConfigAttributes()
177 GameManagerSettings settings = new GameManagerSettings(context.getFilesDir()); in testReadGameServiceSettings_invalidConfigAttributes()
194 writeFile(new File(InstrumentationRegistry.getContext().getFilesDir(), in testReadGameServiceSettings_invalidTags()
215 GameManagerSettings settings = new GameManagerSettings(context.getFilesDir()); in testReadGameServiceSettings_invalidTags()
233 GameManagerSettings settings = new GameManagerSettings(context.getFilesDir()); in testWriteGameServiceSettings()
/frameworks/base/core/tests/coretests/src/android/app/backup/
DFullBackupTest.java76 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_onlyInclude()
98 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_onlyIncludeRequireEncryptionFlag()
120 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(), in testParseBackupSchemeFromXml_onlyIncludeRequireFakeEncryptionFlag()
144 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_onlyIncludeRequireD2DFlag()
169 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_onlyIncludeRequireEncryptionAndD2DFlags()
195 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_onlyIncludeRequireD2DFlagAndIngoreGarbage()
229 new File(mContext.getFilesDir(), "onlyExclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_onlyExclude()
246 new File(mContext.getFilesDir(), "include.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_includeAndExclude()
251 new File(mContext.getFilesDir(), "exclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_includeAndExclude()
274 new File(mContext.getFilesDir(), "include1.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_lotsOfIncludesAndExcludes()
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DPackageManagerSettingsDeviceTests.java109 File filesDir = InstrumentationRegistry.getContext().getFilesDir(); in testWriteBinaryXmlSettings()
132 File filesDir = InstrumentationRegistry.getContext().getFilesDir(); in testWriteTextXmlSettings()
144 assumeTrue(new File(InstrumentationRegistry.getContext().getFilesDir(), in testReadSettings()
152 return new Settings(InstrumentationRegistry.getContext().getFilesDir(), in makeSettings()
DPackageManagerSettingsTests.java177 deleteFolder(InstrumentationRegistry.getContext().getFilesDir()); in tearDown()
340 File filesDir = InstrumentationRegistry.getContext().getFilesDir(); in testWriteCorruptReadKeySetSettings()
1140 new File(InstrumentationRegistry.getContext().getFilesDir(), "com.android.bar-1");
1142 new File(InstrumentationRegistry.getContext().getFilesDir(), "com.android.bar-2");
1144 new File(InstrumentationRegistry.getContext().getFilesDir(), "com.android.bar-3");
2050 … writeFile(new File(InstrumentationRegistry.getContext().getFilesDir(), "system/packages.xml"), in writeCorruptedPackagesXml()
2060 writeFile(new File(InstrumentationRegistry.getContext().getFilesDir(), fileName), in writePackagesXml()
2129 writeFile(new File(InstrumentationRegistry.getContext().getFilesDir(), "system/users/" in writePackageRestrictions_noSuspendingPackageXml()
2144 writeFile(new File(InstrumentationRegistry.getContext().getFilesDir(), "system/users/" in writePackageRestrictions_noSuspendParamsMapXml()
2168 writeFile(new File(InstrumentationRegistry.getContext().getFilesDir(), "system/users/" in writeCorruptedPackageRestrictions()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLetterboxConfigurationPersisterTest.java74 mConfigFolder = mContext.getFilesDir(); in setUp()
145 mContext.getFilesDir(), firstPersisterQueue, mQueueState, in test_whenUpdatedWithNewValues_valuesAreReadAfterRestart()
158 mContext.getFilesDir(), secondPersisterQueue, mQueueState, in test_whenUpdatedWithNewValues_valuesAreReadAfterRestart()
180 mContext.getFilesDir(), firstPersisterQueue, mQueueState, in test_whenUpdatedWithNewValuesAndDeleted_valuesAreDefaults()
204 mContext.getFilesDir(), secondPersisterQueue, mQueueState, in test_whenUpdatedWithNewValuesAndDeleted_valuesAreDefaults()
DTaskPersisterTest.java54 mTaskPersister = new TaskPersister(context.getFilesDir()); in setUp()
/frameworks/base/core/java/android/app/backup/
DFileBackupHelper.java57 mFilesDir = context.getFilesDir(); in FileBackupHelper()
77 File base = mContext.getFilesDir(); in performBackup()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobStoreTest.java84 Log.d(TAG, "Saving tasks to '" + mTestContext.getFilesDir() + "'"); in setUp()
86 JobStore.initAndGetForTesting(mTestContext, mTestContext.getFilesDir()); in setUp()
238 final File rootDir = new File(mTestContext.getFilesDir(), "system/job"); in testSkipExtraFiles()
283 File file = new File(mTestContext.getFilesDir(), "randomName"); in testExtractUidFromJobFileName()
286 file = new File(mTestContext.getFilesDir(), "jobs.xml"); in testExtractUidFromJobFileName()
289 file = new File(mTestContext.getFilesDir(), ".xml"); in testExtractUidFromJobFileName()
292 file = new File(mTestContext.getFilesDir(), "1000.xml"); in testExtractUidFromJobFileName()
295 file = new File(mTestContext.getFilesDir(), "10000"); in testExtractUidFromJobFileName()
298 file = new File(mTestContext.getFilesDir(), JOB_FILE_SPLIT_PREFIX); in testExtractUidFromJobFileName()
301 file = new File(mTestContext.getFilesDir(), JOB_FILE_SPLIT_PREFIX + "text.xml"); in testExtractUidFromJobFileName()
[all …]
/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()
/frameworks/base/tests/AppResourcesLoaders/src/com/android/example/loaders/
DLoadersApplication.java48 final File apkFile = new File(getFilesDir(), fileName); in copyResource()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/
DMemoryTrackingTestCase.java53 sFilesDir = mContext.getFilesDir(); in grabFilesDir()
/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/backup/src/com/android/backuptest/
DBackupTestActivity.java138 new File(getFilesDir(), "state"),
162 new File(getFilesDir(), "restore_state"),
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
DSoundTriggerTestService.java99 getFilesDir().mkdir(); in onCreate()
456 for (File file : getFilesDir().listFiles()) { in loadModelsInDataDir()
512 getFilesDir().getPath() + "/" + properties.getProperty("triggerAudio"))); in createModelInfo()
521 getFilesDir().getPath() + "/" in createModelInfo()
640 getFilesDir() + File.separator in run()
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/
DWallpaperBackupAgent.java146 mQuotaFile = new File(getFilesDir(), QUOTA_SENTINEL); in onCreate()
164 final File empty = new File(getFilesDir(), EMPTY_SENTINEL); in onFullBackup()
218 final File deviceInfoStage = new File(getFilesDir(), WALLPAPER_BACKUP_DEVICE_INFO_STAGE); in backupDeviceInfoFile()
277 final File infoStage = new File(getFilesDir(), WALLPAPER_INFO_STAGE); in backupWallpaperInfoFile()
315 final File imageStage = new File(getFilesDir(), SYSTEM_WALLPAPER_STAGE); in backupSystemWallpaperFile()
337 final File lockImageStage = new File(getFilesDir(), LOCK_WALLPAPER_STAGE); in backupLockWallpaperFileIfItExists()
438 final File filesDir = getFilesDir(); in onRestoreFinished()
/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/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/base/test-runner/src/android/test/
DIsolatedContext.java143 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/packages/WallpaperBackup/test/src/com/android/wallpaperbackup/
DWallpaperBackupAgentTest.java142 FileUtils.deleteContents(mContext.getFilesDir()); in tearDown()
318 assertThat(new File(mContext.getFilesDir(), LOCK_WALLPAPER_STAGE).exists()).isFalse(); in testOnFullBackup_existingLockStage_lockWallpaperRemovedByUser_deletesExistingStage()
910 File wallpaperFile = new File(mContext.getFilesDir(), location); in mockStagedWallpaperFile()
915 File wallpaperFile = new File(mContext.getFilesDir(), WALLPAPER_INFO_STAGE); in mockRestoredLiveWallpaperFile()
931 File wallpaperFile = new File(mContext.getFilesDir(), WALLPAPER_INFO_STAGE); in mockRestoredStaticWallpaperFile()
971 File quotaFile = new File(mContext.getFilesDir(), WallpaperBackupAgent.QUOTA_SENTINEL); in markAgentAsOverQuota()

12345