Home
last modified time | relevance | path

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

123

/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DHelpersTest.java36 IoUtils.deleteContents(getContext().getFilesDir()); in tearDown()
43 final File expected = new File(getContext().getFilesDir(), "file.mp4"); in testGenerateSaveFile()
51 final File expected1 = new File(getContext().getFilesDir(), "file.txt"); in testGenerateSaveFileDupes()
55 final File expected2 = new File(getContext().getFilesDir(), "file-1.txt"); in testGenerateSaveFileDupes()
64 final File expected = new File(getContext().getFilesDir(), "file.mp4"); in testGenerateSaveFileNoExtension()
72 final File expected = new File(getContext().getFilesDir(), "meow"); in testGenerateSaveFileHint()
82 final File expected = new File(getContext().getFilesDir(), "real.mp4"); in testGenerateSaveFileDisposition()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
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()
/packages/apps/Email/tests/src/com/android/emailcommon/utility/
DUtilityTest.java106 new IsolatedContext(new MockContentResolver(), getContext()).getFilesDir();
132 new IsolatedContext(new MockContentResolver(), getContext()).getFilesDir();
146 new IsolatedContext(new MockContentResolver(), getContext()).getFilesDir();
184 new IsolatedContext(new MockContentResolver(), getContext()).getFilesDir();
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
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()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
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()
/packages/services/Telephony/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/
DDownloadCompletionReceiver.java52 .getPath(context.getFilesDir().getPath(), "images/animals/", fileName) in getDestinationFile()
60 .getPath(context.getFilesDir().getPath(), "images/image.png") in getDestinationFile()
DEmbmsTestDownloadApp.java228 File downloadDir = new File(EmbmsTestDownloadApp.this.getFilesDir(), in onCreate()
450 File baseDir = mIsTempDirExternal ? getExternalFilesDir(null) : getFilesDir(); in getDestination()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
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()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/
DDeviceAdminIconParserTest.java68 TEST_FILE_DIR = new File(targetContext.getFilesDir(), TEST_FILE_DIRNAME); in setUpClass()
83 when(mContext.getFilesDir()).thenReturn(TEST_FILE_DIR); in setUp()
DDisclaimersParserTest.java86 TEST_FILE_DIR = new File(targetContext.getFilesDir(), TEST_FILE_DIRNAME); in setUpClass()
103 when(mContext.getFilesDir()).thenReturn(TEST_FILE_DIR); in setUp()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/nonrequiredapps/
DSystemAppsSnapshotTest.java65 when(mContext.getFilesDir()) in setUp()
66 .thenReturn(InstrumentationRegistry.getTargetContext().getFilesDir()); in setUp()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/nonrequiredapps/
DSystemAppsSnapshot.java164 return new File(context.getFilesDir(), FOLDER_NAME); in getFolder()
168 return new File(context.getFilesDir(), LEGACY_FOLDER_NAME); in getLegacyFolder()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DDeleteNonRequiredAppsTaskTest.java77 when(mTestContext.getFilesDir()).thenReturn(InstrumentationRegistry.getTargetContext() in setUp()
78 .getFilesDir()); in setUp()
DMigrateSystemAppsSnapshotTaskTest.java90 when(mContext.getFilesDir()) in setup()
92 new File(InstrumentationRegistry.getTargetContext().getFilesDir(), "test")); in setup()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
DEncryptionControllerTest.java75 when(mContext.getFilesDir()).thenReturn(getContext().getFilesDir()); in setUp()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/storagelifetime/
DStorageLifetimeFragment.java120 Path filePath = new File(mActivity.getFilesDir(), FILE_NAME).toPath(); in getFilePath()
184 mStatFs = new StatFs(mActivity.getFilesDir().getAbsolutePath()); in reloadInfo()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/
DFinalizationControllerTest.java84 when(mContext.getFilesDir()).thenReturn(getContext().getFilesDir()); in setUp()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DConstants.java36 return new File(context.getFilesDir(), "deferred_metrics"); in getDeferredMetricsFile()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DUtilsTest.java339 final String fileLocation = getContext().getFilesDir().toString() + "/" + TEST_FILE_NAME; in testComputeHashOfFile()
360 final String fileLocation = getContext().getFilesDir().toString() + "/" + TEST_FILE_NAME; in testComputeHashOfFile_NotPresent()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherBackupAgent.java17 FileLog.setDir(getFilesDir()); in onCreate()
DMainProcessInitializer.java38 FileLog.setDir(context.getApplicationContext().getFilesDir()); in init()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/
DDeviceAdminIconParser.java38 mFileIcon = new File(new File(mContext.getFilesDir(), DIR_PROVISIONING_PARAMS_FILE_CACHE), in DeviceAdminIconParser()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DTestUtil.java39 getFilesDir().getPath() + "/dummy_app.apk"; in installDummyApp()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/
DFailureWatcher.java43 getFilesDir().getPath() + "/TaplTestScreenshot" + sScreenshotCount++ + ".png"; in failed()
/packages/services/Telephony/src/com/android/phone/
DCarrierConfigLoader.java743 new File(mContext.getFilesDir(), in saveConfigToXml()
805 new File(mContext.getFilesDir(), in restoreConfigFromXml()
850 File dir = mContext.getFilesDir(); in clearCachedConfigForPackage()

123