Home
last modified time | relevance | path

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

12

/aosp14/frameworks/base/core/java/android/gesture/
H A DGestureLibraries.java38 public static GestureLibrary fromFile(String path) { in fromFile() method in GestureLibraries
39 return fromFile(new File(path)); in fromFile()
42 public static GestureLibrary fromFile(File path) { in fromFile() method in GestureLibraries
52 return fromFile(context.getFileStreamPath(name)); in fromPrivateFile()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageHandler.java153 final Uri originUri = Uri.fromFile(verifyingSession.mOriginInfo.mResolvedFile); in doHandleMessage()
215 final Uri originUri = Uri.fromFile(verifyingSession.mOriginInfo.mResolvedFile); in doHandleMessage()
263 final Uri originUri = Uri.fromFile(params.mOriginInfo.mResolvedFile); in doHandleMessage()
280 final Uri originUri = Uri.fromFile(params.mOriginInfo.mResolvedFile); in doHandleMessage()
H A DVerificationUtils.java128 final Uri originUri = verifyingSession != null ? Uri.fromFile( in processVerificationResponse()
H A DVerifyingSession.java281 integrityVerification.setDataAndType(Uri.fromFile(new File(mOriginInfo.mResolvedPath)), in sendIntegrityVerificationRequest()
425 verification.setDataAndType(Uri.fromFile(new File(mOriginInfo.mResolvedPath)), in sendPackageVerificationRequest()
570 requiredIntent.setDataAndType(Uri.fromFile(new File(mOriginInfo.mResolvedPath)), in sendPackageVerificationRequest()
H A DPackageInstallerSession.java3774 for (File fromFile : fromFiles) {
3775 final StructStat fromStat = Os.stat(fromFile.getAbsolutePath());
3903 for (File fromFile : fromFiles) {
3904 final String relativePath = getRelativePath(fromFile, fromDir);
3922 for (File fromFile : fromFiles) {
3924 if (LOGD) Slog.d(TAG, "Copying " + fromFile + " to " + tmpFile);
3925 if (!FileUtils.copyFile(fromFile, tmpFile)) {
3926 throw new IOException("Failed to copy " + fromFile + " to " + tmpFile);
3933 final File toFile = new File(toDir, fromFile.getName());
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/
H A DSensorPrivacyServiceMockingTest.java226 return PersistedState.fromFile("sensor_privacy_impl.xml"); in migrateFromFile()
278 return PersistedState.fromFile("sensor_privacy_impl.xml"); in getPersistedStateV2()
293 doReturn(persistedState).when(() -> PersistedState.fromFile(any())); in testGetDefaultState()
323 doReturn(persistedState).when(() -> PersistedState.fromFile(any())); in testGetSetState()
351 doReturn(persistedState).when(() -> PersistedState.fromFile(any())); in testSetState()
/aosp14/frameworks/base/telephony/java/android/telephony/mbms/
H A DMbmsDownloadReceiver.java359 Uri fileUri = Uri.fromFile(tempFile); in generateFreshTempFiles()
438 Uri fileInUseUri = Uri.fromFile(canonicalFile); in cleanupTempFiles()
458 Path fromFile = FileSystems.getDefault().getPath(fromPath.getPath()); in moveToFinalLocation() local
464 Path result = Files.move(fromFile, toFile, in moveToFinalLocation()
467 return Uri.fromFile(result.toFile()); in moveToFinalLocation()
/aosp14/frameworks/base/core/tests/coretests/src/android/app/
H A DDownloadManagerFunctionalTest.java164 Uri localUri = Uri.fromFile(existentFile); in testDownloadToExternal_fileExists()
201 Uri localUri = Uri.fromFile(downloadedFile); in testDownloadToExternal()
232 Uri localUri = Uri.fromFile(downloadedFile); in testDownloadToProhibitedDirectory()
/aosp14/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
H A DDownloadManagerTestApp.java281 Uri localUri = Uri.fromFile(downloadedFile); in runDownloadMultipleSwitching()
357 Uri localUri = Uri.fromFile(downloadedFile); in runDownloadMultipleWiFiEnableDisable()
427 Uri localUri = Uri.fromFile(downloadedFile); in runDownloadMultipleAirplaneModeEnableDisable()
/aosp14/frameworks/base/media/mca/tests/src/android/camera/mediaeffects/tests/functional/
H A DEffectsVideoCapture.java73 Uri uri = Uri.fromFile(file); in testBackEffectsVideoCapture()
/aosp14/frameworks/base/services/core/java/com/android/server/sensorprivacy/
H A DSensorPrivacyStateControllerImpl.java45 mPersistedState = PersistedState.fromFile(SENSOR_PRIVACY_XML_FILE); in SensorPrivacyStateControllerImpl()
H A DPersistedState.java78 static PersistedState fromFile(String fileName) { in fromFile() method in PersistedState
/aosp14/frameworks/base/tools/preload/
H A DPrintCsv.java40 Root root = Root.fromFile(args[0]); in main()
H A DWritePreloadedClassFile.java49 Root root = Root.fromFile(rootFile); in main()
H A DRoot.java151 static Root fromFile(String fileName) in fromFile() method in Root
H A DPrintHtmlDiff.java36 Root root = Root.fromFile(args[0]); in main()
H A DMemoryUsage.java289 Root root = Root.fromFile(args[0]); in main()
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DDockObserver.java106 static ExtconStateProvider fromFile(String stateFilePath) { in fromFile() method in DockObserver.ExtconStateProvider
187 setDockStateFromProviderLocked(ExtconStateProvider.fromFile(info.getStatePath())); in DockObserver()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/
H A DAppIntegrityManagerServiceImplTest.java355 intent.setDataAndType(Uri.fromFile(mTestApkTwoCerts), PACKAGE_MIME_TYPE); in handleBroadcast_correctArgs_multipleCerts()
378 intent.setDataAndType(Uri.fromFile(mTestApkSourceStamp), PACKAGE_MIME_TYPE); in handleBroadcast_correctArgs_sourceStamp()
553 intent.setDataAndType(Uri.fromFile(mTestApk), PACKAGE_MIME_TYPE); in makeVerificationIntent()
/aosp14/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
H A DInstallStaging.java353 installIntent.setData(Uri.fromFile(new File(sessionInfo.getResolvedBaseApkPath()))); in onPostExecute()
/aosp14/frameworks/base/core/java/android/net/
H A DUri.java479 public static Uri fromFile(File file) { in fromFile() method in Uri
2386 return Uri.fromFile(new File( in getCanonicalUri()
2392 return Uri.fromFile(new File(canonicalPath)); in getCanonicalUri()
/aosp14/frameworks/base/core/tests/coretests/src/android/net/
H A DUriTest.java124 Uri.fromFile(null); in testNullFile()
295 Uri uri = Uri.fromFile(f); in testFile()
/aosp14/frameworks/base/core/java/android/app/
H A DDownloadManager.java600 mDestinationUri = Uri.withAppendedPath(Uri.fromFile(base), subPath); in setDestinationFromBase()
1744 return Uri.fromFile(new File(localPath)).toString(); in getLocalUri()
/aosp14/frameworks/base/core/java/android/speech/tts/
H A DTextToSpeech.java1079 return addSpeech(text, Uri.fromFile(file)); in addSpeech()
1170 return addEarcon(earcon, Uri.fromFile(file)); in addEarcon()
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
H A DPackageManagerTests.java344 return Uri.fromFile(outFile); in getInstallablePackage()
591 this.packageURI = Uri.fromFile(new File(pkg.getPath())); in InstallParams()
595 this.packageURI = Uri.fromFile(new File(pkg.getPath())); in InstallParams()
2782 invokeInstallPackageFail(Uri.fromFile(invalidFile), 0, retCode); in testInstallNonexistentFile()

12