Home
last modified time | relevance | path

Searched refs:getCacheDir (Results 1 – 25 of 81) sorted by relevance

1234

/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
H A DSlicePermissionManagerTest.java56 File sliceDir = new File(mContext.getCacheDir(), "testGrantSlices"); in testGrant()
74 File sliceDir = new File(mContext.getCacheDir(), "testBackupSlices"); in testBackup()
118 File sliceDir = new File(mContext.getCacheDir(), "testInvalidSlices"); in testInvalid()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
H A DAvatarPhotoController.java69 File getCacheDir(); in getCacheDir() method
106 mImagesDir = new File(mContextInjector.getCacheDir(), IMAGES_DIR); in AvatarPhotoController()
358 public File getCacheDir() { in getCacheDir() method in AvatarPhotoController.ContextInjectorImpl
359 return mContext.getCacheDir(); in getCacheDir()
H A DEditUserPhotoController.java70 mImagesDir = new File(activity.getCacheDir(), IMAGES_DIR); in EditUserPhotoController()
/aosp14/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/
H A DBaseTest.java26 System.setProperty("dexmaker.dexcache", mContext.getCacheDir().getPath()); in setUp()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/restore/
H A DPerformUnifiedRestoreTaskTest.java221 mRestoreTask.setStateDirForTesting(mContext.getCacheDir()); in testFailedKeyValueRestore_continueAfterFeatureEnabled_nextStateIsRunningQueue()
243 mRestoreTask.setStateDirForTesting(mContext.getCacheDir()); in testFailedKeyValueRestore_continueAfterFeatureDisabled_nextStateIsFinal()
261 when(mBackupManagerService.getDataDir()).thenReturn(mContext.getCacheDir()); in setupForRestoreKeyValueState()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/settings/
H A DFakeLocationSettings.java33 return ApplicationProvider.getApplicationContext().getCacheDir(); in getUserSettingsDir()
/aosp14/frameworks/base/test-runner/src/android/test/
H A DRenamingDelegatingContext.java235 public File getCacheDir() { in getCacheDir() method in RenamingDelegatingContext
238 mCacheDir = new File(mFileContext.getCacheDir(), renamedFileName("cache")); in getCacheDir()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/am/
H A DCoreSettingsObserverTest.java100 when(mContext.getCacheDir()).thenReturn(originalContext.getCacheDir()); in setUp()
H A DBatteryStatsServiceTest.java53 context.getCacheDir(), new Handler(mBgThread.getLooper())); in setUp()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
H A DScreenMediaRecorder.java123 File cacheDir = mContext.getCacheDir(); in prepare()
191 mContext.getCacheDir()); in prepare()
345 mContext.getCacheDir()); in save()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/license/
H A DLicenseHtmlLoaderCompat.java91 return new File(context.getCacheDir(), NOTICE_HTML_FILE_NAME); in getCachedHtmlFile()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/inputmethod/
H A DAdditionalSubtypeUtilsTest.java62 new File(InstrumentationRegistry.getContext().getCacheDir(), "subtypes.xml")); in testSaveAndLoad()
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
H A DUserDataPreparerTest.java76 FileUtils.deleteContents(ctx.getCacheDir()); in setup()
80 ctx.getCacheDir()); in setup()
/aosp14/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
H A DSettingsStateTest.java60 mSettingsFile = new File(getContext().getCacheDir(), "setting.xml"); in setUp()
137 final File file = new File(getContext().getCacheDir(), "setting.xml"); in testReadWrite()
167 final File file = new File(getContext().getCacheDir(), "setting.xml"); in testUpgrade()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
H A DLeakReporterTest.java60 mLeakDir = new File(mContext.getCacheDir(), LeakReporter.LEAK_DIR); in setup()
/aosp14/frameworks/base/core/tests/coretests/src/android/provider/
H A DTestFontsProvider.java129 final File file = new File(getContext().getCacheDir(), "font.ttf"); in createFontFile()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
H A DAccountsDbTest.java82 preNDb = new File(context.getCacheDir(), PREN_DB); in setUp()
83 ceDb = new File(context.getCacheDir(), CE_DB); in setUp()
84 deDb = new File(context.getCacheDir(), DE_DB); in setUp()
/aosp14/frameworks/base/core/tests/coretests/src/android/text/
H A DFontFallbackSetup.java52 final File cacheDir = new File(targetCtx.getCacheDir(), testSubDir); in FontFallbackSetup()
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DImageReaderTest.java54 System.setProperty("dexmaker.dexcache", getContext().getCacheDir().toString()); in setUp()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
H A DAggregateEventHistoryImplTest.java69 File testDir = new File(ctx.getCacheDir(), "testdir"); in setUp()
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/app/
H A DResourcesManagerPerfTest.java66 File file = File.createTempFile(fileName, null, sContext.getCacheDir()); in copyApkToTemp()
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
H A DTypefaceCreatePerfTest.java115 outFile = File.createTempFile("example", "ttf", context.getCacheDir()); in testCreate_fromFile()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
H A DDumpTruck.java70 final File dumpDir = new File(context.getCacheDir(), FILEPROVIDER_PATH); in captureHeaps()
H A DLeakReporter.java80 File leakDir = new File(mContext.getCacheDir(), LEAK_DIR); in dumpLeak()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DRemovePackageHelper.java129 if (mPm.getCacheDir() == null) { in removeCachedResult()
133 final PackageCacher cacher = new PackageCacher(mPm.getCacheDir()); in removeCachedResult()

1234