Home
last modified time | relevance | path

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

12

/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/Launcher3/WallpaperPicker/src/com/android/launcher3/
DSavedWallpaperImages.java122 File file = new File(mContext.getFilesDir(), filename);
143 new File(mContext.getFilesDir(), result.getString(2)),
195 File imageFile = new File(mContext.getFilesDir(), filenames.first);
197 File thumbFile = new File(mContext.getFilesDir(), filenames.second);
224 File imageFile = File.createTempFile("wallpaper", "", mContext.getFilesDir());
235 File thumbFile = File.createTempFile("wallpaperthumb", "", mContext.getFilesDir());
DWallpaperPickerActivity.java1135 return new File(getContext().getFilesDir(), Build.VERSION.SDK_INT
1141 … new File(getContext().getFilesDir(), LauncherFiles.DEFAULT_WALLPAPER_THUMBNAIL_OLD).delete();
1142 new File(getContext().getFilesDir(), LauncherFiles.DEFAULT_WALLPAPER_THUMBNAIL).delete();
1145 new File(getContext().getFilesDir(), i + "_"
/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/Dialer/src/com/android/dialer/database/
DVoicemailArchiveProvider.java79 protected File getFilesDir() { in getFilesDir() method in VoicemailArchiveProvider
80 return getContext().getFilesDir(); in getFilesDir()
117 File directory = new File(getFilesDir(), VOICEMAIL_FOLDER); in insert()
/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/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageUtil.java53 File newFileDir = new File(context.getFilesDir(), "tmp"); in getTemporaryFile()
66 File newFileDir = new File(context.getFilesDir(), "images/icons"); in getIconFile()
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/task/
DDeleteNonRequiredAppsTaskTest.java90 when(mTestContext.getFilesDir()).thenReturn(getContext().getFilesDir()); in setUp()
284 when(mTestContext.getFilesDir()).thenReturn(new File("")); in testWhenNoSystemAppsFileFound()
/packages/services/Telephony/src/com/android/phone/
DCarrierConfigLoader.java488 new File(mContext.getFilesDir(), getFilenameForConfig(packageName, iccid))); in saveConfigToXml()
541 new File(mContext.getFilesDir(), getFilenameForConfig(packageName, iccid))); in restoreConfigFromXml()
585 File dir = mContext.getFilesDir(); in clearCachedConfigForPackage()
/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/
DLogoUtils.java134 return new File(context.getFilesDir() + File.separator + "organisation_logo"); in getOrganisationLogoFile()
DIntentStore.java258 return new File(mContext.getFilesDir(), "intent_store_" + mName + ".xml"); in getFile()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DPhoneAccountRegistrarTest.java69 mComponentContextFixture.getTestDouble().getApplicationContext().getFilesDir(), in setUp()
81 mComponentContextFixture.getTestDouble().getApplicationContext().getFilesDir(), in tearDown()
DComponentContextFixture.java114 public File getFilesDir() { in getFilesDir() method in ComponentContextFixture.FakeApplicationContext
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipProfileDb.java65 mProfilesDirectory = mContext.getFilesDir().getAbsolutePath() + PROFILES_DIR; in setupDatabase()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/
DDataExporter.java67 addDirectory(context, os, context.getFilesDir().getParentFile(), "contacts-files"); in exportData()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadIdleService.java190 fromDisk.addAll(listFilesRecursive(getFilesDir(), null, uid)); in cleanOrphans()
DHelpers.java501 if (containsCanonical(context.getFilesDir(), file) in isFilenameValid()
554 return context.getFilesDir(); in getDestinationDirectory()
/packages/experimental/PrintService2/src/foo/bar/printservice2/
DMyPrintService.java68 final File file = new File(getFilesDir(), info.getLabel() + ".pdf"); in onPrintJobQueued()
/packages/apps/Dialer/tests/src/com/android/dialer/database/
DVoicemailArchiveProviderTest.java290 protected File getFilesDir() { in getFilesDir() method in VoicemailArchiveProviderTest.TestVoicemailArchiveProvider
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/
DConditionManager.java229 mXmlFile = new File(mContext.getFilesDir(), FILE_NAME); in doInBackground()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppLauncherActivity.java318 fileUri = Uri.fromFile(new File(context.getFilesDir(), fileName)); in creatFileForSharedContent()
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DPanoramaActivity.java811 mThumbnail = Thumbnail.loadFrom(new File(getFilesDir(), Thumbnail.LAST_THUMB_FILENAME)); in initThumbnailButton()
831 mThumbnail.saveTo(new File(getFilesDir(), Thumbnail.LAST_THUMB_FILENAME)); in saveThumbnailToFile()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DDeleteNonRequiredAppsTask.java257 return new File(context.getFilesDir() + File.separator + "system_apps" in getSystemAppsFile()

12