Home
last modified time | relevance | path

Searched refs:fromFile (Results 1 – 25 of 41) sorted by relevance

12

/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DIsoInterfaceTest.java54 final IsoInterface mp4 = IsoInterface.fromFile(file); in testRepeated()
67 final IsoInterface mp4 = IsoInterface.fromFile(file); in testGps()
78 final IsoInterface mp4 = IsoInterface.fromFile(file); in testGpsInIlst()
91 final IsoInterface mp4 = IsoInterface.fromFile(file); in testXmp()
109 assertThrows(IOException.class, () -> IsoInterface.fromFile(file)); in testFileWithTooManyBoxesDoesNotRunOutOfMemory()
114 final IsoInterface isoMeta = IsoInterface.fromFile(stageMp4File(R.raw.test_video_xmp)); in testIsoMeta()
125 final IsoInterface qtMeta = IsoInterface.fromFile(stageMp4File(R.raw.testvideo_meta)); in testQtMeta()
DXmpDataParserTest.java111 final IsoInterface mp4 = IsoInterface.fromFile(file); in testContainer_IsoRedactionRanges()
131 final IsoInterface mp4 = IsoInterface.fromFile(file); in testContainer_IsoRedactionRanges_BadTagValue()
143 final IsoInterface mp4 = IsoInterface.fromFile(file); in testContainer_IsoRedactionRanges_MalformedXml()
158 final IsoInterface mp4 = IsoInterface.fromFile(file); in testRedaction_IsoRedactionRanges_MalformedXml()
/packages/apps/Camera2/tests/src/com/android/camera/functional/
DVideoCaptureIntentTest.java97 Uri uri = Uri.fromFile(mFile); in testExtraOutput()
136 Uri uri = Uri.fromFile(mFile); in testExtraSizeLimit()
158 Uri uri = Uri.fromFile(mFile); in testExtraDurationLimit()
180 Uri uri = Uri.fromFile(mFile);
192 uri = Uri.fromFile(mFile2);
DImageCaptureIntentTest.java76 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(file)); in testExtraOutput()
/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
DVideoCaptureIntentTest.java97 Uri uri = Uri.fromFile(mFile); in testExtraOutput()
152 Uri uri = Uri.fromFile(mFile); in testExtraSizeLimit()
174 Uri uri = Uri.fromFile(mFile); in testExtraDurationLimit()
196 Uri uri = Uri.fromFile(mFile);
208 uri = Uri.fromFile(mFile2);
DImageCaptureIntentTest.java77 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(file)); in testExtraOutput()
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DFileUtils.java57 public static boolean renameTo(final File fromFile, final File toFile) { in renameTo() argument
59 return fromFile.renameTo(toFile); in renameTo()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/exportimport/
DImportManagerTest.java130 mImportManager.runImport(mContext.getUser(), Uri.fromFile(zipToImport)); in copiesAllData()
179 mImportManager.runImport(mContext.getUser(), Uri.fromFile(zipToImport)); in skipsMissingTables()
203 mImportManager.runImport(mContext.getUser(), Uri.fromFile(dbToImport)); in deletesTheDatabase()
220 mImportManager.runImport(mContext.getUser(), Uri.fromFile(zipToImport)); in runImport_importNotADatabase_setsWrongFileError()
241 mImportManager.runImport(mContext.getUser(), Uri.fromFile(zipToImport)); in runImport_versionMismatch_setsVersionMismatchError()
DExportManagerTest.java185 ScheduledExportSettings.withUri(Uri.fromFile(new File("inaccessible")))); in runExport_destinationUriDoesNotExist_exportFails()
209 ScheduledExportSettings.withUri(Uri.fromFile(new File("inaccessible")))); in runExport_updatesLastSuccessfulExport_onSuccessOnly()
219 Uri.fromFile( in configureExportUri()
/packages/apps/LegacyCamera/src/com/android/camera/
DThumbnail.java73 public void setFromFile(boolean fromFile) { in setFromFile() argument
74 mFromFile = fromFile; in setFromFile()
77 public boolean fromFile() { in fromFile() method in Thumbnail
/packages/apps/Settings/src/com/android/settings/
DManualDisplayActivity.java55 intent.setDataAndType(Uri.fromFile(file), "text/html"); in onCreate()
DSettingsLicenseActivity.java54 showHtmlFromUri(Uri.fromFile(file)); in onCreate()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DUriBitmap.java71 return Uri.fromFile(tempFile); in bitmapToUri()
/packages/apps/Messaging/src/com/android/messaging/util/
DUriUtil.java68 return TextUtils.isEmpty(path) ? null : Uri.fromFile(new File(path)); in getUriForResourceFile()
272 final Uri targetUri = Uri.fromFile(FileUtil.getNewFile(outputDir, contentType)); in persistContent()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DHelpersTest.java120 final String hint = Uri.fromFile(expected).toString(); in testGenerateSaveFileHint()
130 final String hint = Uri.fromFile(fileWithInvalidName).toString(); in testGenerateSaveFileHintWithInvalidChars()
141 final String hint = Uri.fromFile(fileWithInvalidName).toString(); in testGenerateSaveFileHintWithInvalidCharsOnly()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/
DGalleryGridItemData.java69 return TextUtils.isEmpty(filePath) ? null : Uri.fromFile(new File(filePath)); in getFileUri()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/about/
DLicenseActivity.java107 showHtmlFromUri(Uri.fromFile(file)); in showSelectedFile()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DThirdPartyLicensesActivity.java92 showHtmlFromUri(Uri.fromFile(file)); in showSelectedFile()
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/server/sdksandbox/
DSdkSandboxVerifierReceiverUnitTest.java55 new Intent().setData(Uri.fromFile(new File("sdk.apk")));
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarDebugActivity.java202 intent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file)); in emailFile()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DUriTest.java267 Uri uri = Uri.fromFile(f); in testFromFile()
270 Uri.fromFile(null); in testFromFile()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DDownloadPackageTask.java139 request.setDestinationUri(Uri.fromFile(downloadedFile)); in run()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaService.java181 broadcastUri = Uri.fromFile(volume.getPath()); in onScanVolume()
/packages/modules/Virtualization/authfs/tests/common/src/java/com/android/fs/common/
DAuthFsTestRule.java129 MicrodroidBuilder.fromFile( in startMicrodroid()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DIsoInterface.java280 public static @NonNull IsoInterface fromFile(@NonNull File file) in fromFile() method in IsoInterface

12