Home
last modified time | relevance | path

Searched refs:getFilesDir (Results 1 – 25 of 52) 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/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.java64 TEST_FILE_DIR = new File(targetContext.getFilesDir(), TEST_FILE_DIRNAME); in setUpClass()
79 when(mContext.getFilesDir()).thenReturn(TEST_FILE_DIR); in setUp()
DDisclaimersParserTest.java80 TEST_FILE_DIR = new File(targetContext.getFilesDir(), TEST_FILE_DIRNAME); in setUpClass()
97 when(mContext.getFilesDir()).thenReturn(TEST_FILE_DIR); in setUp()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/nonrequiredapps/
DSystemAppsSnapshotTest.java63 when(mContext.getFilesDir()) in setUp()
64 .thenReturn(InstrumentationRegistry.getTargetContext().getFilesDir()); in setUp()
/packages/apps/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()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DDeleteNonRequiredAppsTaskTest.java73 when(mTestContext.getFilesDir()).thenReturn(InstrumentationRegistry.getTargetContext() in setUp()
74 .getFilesDir()); in setUp()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
DEncryptionControllerTest.java74 when(mContext.getFilesDir()).thenReturn(getContext().getFilesDir()); in setUp()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/
DFinalizationControllerTest.java78 when(mContext.getFilesDir()).thenReturn(getContext().getFilesDir()); in setUp()
/packages/services/Telephony/src/com/android/phone/
DCarrierConfigLoader.java500 new File(mContext.getFilesDir(), getFilenameForConfig(packageName, iccid))); in saveConfigToXml()
553 new File(mContext.getFilesDir(), getFilenameForConfig(packageName, iccid))); in restoreConfigFromXml()
597 File dir = mContext.getFilesDir(); in clearCachedConfigForPackage()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DUtilsTest.java338 final String fileLocation = getContext().getFilesDir().toString() + "/" + TEST_FILE_NAME; in testComputeHashOfFile()
364 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()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/
DDeviceAdminIconParser.java38 mFileIcon = new File(new File(mContext.getFilesDir(), DIR_PROVISIONING_PARAMS_FILE_CACHE), in DeviceAdminIconParser()
DDisclaimersParser.java52 mDisclaimerDir = new File(mContext.getFilesDir(), DIR_PROVISIONING_PARAMS_FILE_CACHE); in DisclaimersParser()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DHelpers.java501 if (containsCanonical(context.getFilesDir(), file) in isFilenameValid()
554 return context.getFilesDir(); in getDestinationDirectory()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
DPersonalizationHelper.java82 final File filesDir = context.getFilesDir(); in removeAllUserHistoryDictionaries()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/personalization/
DUserHistoryDictionaryTestsHelper.java62 FileUtils.deleteFilteredFiles(context.getFilesDir(), filenameFilter); in removeAllTestDictFiles()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DLogoUtils.java121 return new File(context.getFilesDir() + File.separator + "organisation_logo"); in getOrganisationLogoFile()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/nonrequiredapps/
DSystemAppsSnapshot.java157 return new File(context.getFilesDir() + File.separator + "system_apps" in getSystemAppsFile()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/
DDataExporter.java67 addDirectory(context, os, context.getFilesDir().getParentFile(), "contacts-files"); in exportData()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DPhoneAccountRegistrarTest.java76 mComponentContextFixture.getTestDouble().getApplicationContext().getFilesDir(), in setUp()
92 mComponentContextFixture.getTestDouble().getApplicationContext().getFilesDir(), in tearDown()
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipProfileDb.java66 mProfilesDirectory = mContext.getFilesDir().getAbsolutePath() + PROFILES_DIR; in setupDatabase()

123