Home
last modified time | relevance | path

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

12345678

/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
H A 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()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/app/
H A DGameManagerServiceSettingsTests.java62 writeFile(new File(InstrumentationRegistry.getContext().getFilesDir(), in writeGameServiceXml()
76 File systemFolder = new File(InstrumentationRegistry.getContext().getFilesDir(), "system"); in deleteSystemFolder()
103 deleteFolder(InstrumentationRegistry.getTargetContext().getFilesDir()); in tearDown()
112 GameManagerSettings settings = new GameManagerSettings(context.getFilesDir()); in testReadGameServiceSettings()
123 GameManagerSettings settings = new GameManagerSettings(context.getFilesDir()); in testWriteGameServiceSettings()
/aosp12/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
H A DSavedWallpaperImages.java85 File file = new File(mContext.getFilesDir(), filename); in loadThumbnailsAndImageIdList()
90 new File(mContext.getFilesDir(), c.getString(2)), in loadThumbnailsAndImageIdList()
111 new File(mContext.getFilesDir(), result.getString(0)).delete(); in deleteImage()
112 new File(mContext.getFilesDir(), result.getString(1)).delete(); in deleteImage()
125 File imageFile = File.createTempFile("wallpaper", "", mContext.getFilesDir()); in writeImage()
131 File thumbFile = File.createTempFile("wallpaperthumb", "", mContext.getFilesDir()); in writeImage()
/aosp12/frameworks/base/core/tests/coretests/src/android/app/backup/
H A 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 …]
/aosp12/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
H A DDefaultWallpaperInfo.java200 return new File(context.getFilesDir(), Build.VERSION.SDK_INT in getDefaultThumbFile()
206 new File(c.getFilesDir(), WallpaperFiles.DEFAULT_WALLPAPER_THUMBNAIL_OLD).delete(); in saveDefaultWallpaperThumb()
207 new File(c.getFilesDir(), WallpaperFiles.DEFAULT_WALLPAPER_THUMBNAIL).delete(); in saveDefaultWallpaperThumb()
210 … new File(c.getFilesDir(), i + "_" + WallpaperFiles.DEFAULT_WALLPAPER_THUMBNAIL).delete(); in saveDefaultWallpaperThumb()
/aosp12/frameworks/base/core/java/android/app/backup/
H A DFileBackupHelper.java57 mFilesDir = context.getFilesDir(); in FileBackupHelper()
77 File base = mContext.getFilesDir(); in performBackup()
/aosp12/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DHelpersTest.java83 FsHelper.deleteContents(getContext().getFilesDir()); in tearDown()
90 final File expected = new File(getContext().getFilesDir(), "file.mp4"); in testGenerateSaveFile()
98 final File expected1 = new File(getContext().getFilesDir(), "file.txt"); in testGenerateSaveFileDupes()
102 final File expected2 = new File(getContext().getFilesDir(), "file-1.txt"); in testGenerateSaveFileDupes()
111 final File expected = new File(getContext().getFilesDir(), "file.mp4"); in testGenerateSaveFileNoExtension()
119 final File expected = new File(getContext().getFilesDir(), "meow"); in testGenerateSaveFileHint()
129 final File expected = new File(getContext().getFilesDir(), "real.mp4"); in testGenerateSaveFileDisposition()
/aosp12/packages/services/Telephony/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/
H A DDownloadCompletionReceiver.java52 .getPath(context.getFilesDir().getPath(), "images/animals/", fileName) in getDestinationFile()
60 .getPath(context.getFilesDir().getPath(), "images/image.png") in getDestinationFile()
/aosp12/packages/modules/Connectivity/services/tests/servicestests/src/com/android/server/net/
H A 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()
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
H A DDiskBasedLogger.java144 File logs = new File(context.getFilesDir(), LOGS_FILE_PATH); in e()
181 File logsFile = new File(context.getFilesDir(), LOGS_FILE_PATH); in clearOldLogs()
201 File tempLogsFile = new File(context.getFilesDir(), TEMP_LOGS_FILE_PATH); in clearOldLogs()
/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/nonrequiredapps/
H A DSystemAppsSnapshotTest.java65 when(mContext.getFilesDir()) in setUp()
66 .thenReturn(InstrumentationRegistry.getTargetContext().getFilesDir()); in setUp()
/aosp12/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
H A DWearPackageUtil.java43 File newFileDir = new File(context.getFilesDir(), "tmp"); in getTemporaryFile()
56 File newFileDir = new File(context.getFilesDir(), "images/icons"); in getIconFile()
/aosp12/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/chunking/
H A DProtoStore.java59 new File(context.getFilesDir().getAbsoluteFile(), CHUNK_LISTING_FOLDER)); in createChunkListingStore()
67 new File(context.getFilesDir().getAbsoluteFile(), KEY_VALUE_LISTING_FOLDER)); in createKeyValueListingStore()
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/
H A DFailureWatcher.java64 new File(nexusLauncherContext.getFilesDir(), "launcher_trace.pb"); in apply()
91 return new File(getInstrumentation().getTargetContext().getFilesDir(),
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DPackageManagerSettingsTests.java544 new File(InstrumentationRegistry.getContext().getFilesDir(), "com.android.bar-1");
546 new File(InstrumentationRegistry.getContext().getFilesDir(), "com.android.bar-2");
1032 … writeFile(new File(InstrumentationRegistry.getContext().getFilesDir(), "system/packages.xml"), in writePackagesXml()
1101 writeFile(new File(InstrumentationRegistry.getContext().getFilesDir(), "system/users/" in writePackageRestrictions_noSuspendingPackageXml()
1116 writeFile(new File(InstrumentationRegistry.getContext().getFilesDir(), "system/users/" in writePackageRestrictions_noSuspendParamsMapXml()
1140 …writeFile(new File(InstrumentationRegistry.getContext().getFilesDir(), "system/packages-stopped.xm… in writeStoppedPackagesXml()
1150 … writeFile(new File(InstrumentationRegistry.getContext().getFilesDir(), "system/packages.list"), in writePackagesList()
1158 File systemFolder = new File(InstrumentationRegistry.getContext().getFilesDir(), "system"); in deleteSystemFolder()
1195 deleteFolder(InstrumentationRegistry.getTargetContext().getFilesDir()); in tearDown()
1199 return new Settings(InstrumentationRegistry.getContext().getFilesDir(), in makeSettings()
/aosp12/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/finalization/
H A DProvisioningParamsUtils.java36 return new File(context.getFilesDir(), PROVISIONING_PARAMS_FILE_NAME); in getProvisioningParamsFile()
/aosp12/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/nonrequiredapps/
H A DSystemAppsSnapshot.java164 return new File(context.getFilesDir(), FOLDER_NAME); in getFolder()
168 return new File(context.getFilesDir(), LEGACY_FOLDER_NAME); in getLegacyFolder()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/
H A DWatchlistLoggingHandlerTests.java144 String fileDir = InstrumentationRegistry.getContext().getFilesDir().getAbsolutePath(); in setUp()
160 String fileDir = InstrumentationRegistry.getContext().getFilesDir().getAbsolutePath(); in tearDown()
/aosp12/frameworks/base/packages/Shell/src/com/android/shell/
H A 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()
/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
H A DDeleteNonRequiredAppsTaskTest.java77 when(mTestContext.getFilesDir()).thenReturn(InstrumentationRegistry.getTargetContext() in setUp()
78 .getFilesDir()); in setUp()
H A DMigrateSystemAppsSnapshotTaskTest.java90 when(mContext.getFilesDir()) in setup()
92 new File(InstrumentationRegistry.getTargetContext().getFilesDir(), "test")); in setup()
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DDictionaryInfoUtils.java160 return context.getFilesDir() + File.separator + "dicts"; in getWordListCacheDirectory()
167 return context.getFilesDir() + File.separator + "staging"; in getWordListStagingDirectory()
174 return context.getFilesDir() + File.separator + "tmp"; in getWordListTempDirectory()
212 return context.getFilesDir().listFiles(new FilenameFilter() { in getUnusedDictionaryList()
/aosp12/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
H A DSoundTriggerTestService.java94 getFilesDir().mkdir(); in onCreate()
438 for (File file : getFilesDir().listFiles()) { in loadModelsInDataDir()
494 getFilesDir().getPath() + "/" + properties.getProperty("triggerAudio"))); in createModelInfo()
503 getFilesDir().getPath() + "/" in createModelInfo()
611 getFilesDir() + File.separator in run()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/
H A DLauncherBackupAgent.java17 FileLog.setDir(getFilesDir()); in onCreate()
/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
H A DEncryptionControllerTest.java75 when(mContext.getFilesDir()).thenReturn(getContext().getFilesDir()); in setUp()

12345678