Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/gesture/
DGestureLibraries.java36 public static GestureLibrary fromFile(String path) { in fromFile() method in GestureLibraries
37 return fromFile(new File(path)); in fromFile()
40 public static GestureLibrary fromFile(File path) { in fromFile() method in GestureLibraries
45 return fromFile(context.getFileStreamPath(name)); in fromPrivateFile()
/frameworks/base/services/core/java/com/android/server/
DEntropyMixer.java136 RandomBlock.fromFile(entropyFile).toFile(randomDevice, false); in loadInitialEntropy()
147 RandomBlock.fromFile(randomDevice).toFile(entropyFile, true); in writeEntropy()
205 RandomBlock.fromFile(hwRandomDevice).toFile(randomDevice, false); in addHwRandomEntropy()
DRandomBlock.java41 static RandomBlock fromFile(String filename) throws IOException { in fromFile() method in RandomBlock
/frameworks/base/telephony/java/android/telephony/mbms/
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()
/frameworks/base/core/tests/coretests/src/android/app/
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()
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
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()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DMediaStoreSaver.java70 final Uri fileUri = Uri.fromFile(file); in MediaStorageScan()
DMainActivity.java260 return Uri.fromFile(f); in getLocalRef()
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
DMediaStoreSaver.java77 final Uri fileUri = Uri.fromFile(file); in MediaStorageScan()
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
DMediaStoreSaver.java77 final Uri fileUri = Uri.fromFile(file); in MediaStorageScan()
/frameworks/base/media/mca/tests/src/android/camera/mediaeffects/tests/functional/
DEffectsVideoCapture.java73 Uri uri = Uri.fromFile(file); in testBackEffectsVideoCapture()
/frameworks/base/tools/preload/
DPrintCsv.java40 Root root = Root.fromFile(args[0]); in main()
DWritePreloadedClassFile.java49 Root root = Root.fromFile(rootFile); in main()
DRoot.java151 static Root fromFile(String fileName) in fromFile() method in Root
DPrintHtmlDiff.java36 Root root = Root.fromFile(args[0]); in main()
DMemoryUsage.java289 Root root = Root.fromFile(args[0]); in main()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerSession.java1834 for (File fromFile : fromFiles) { in isLinkPossible()
1835 final StructStat fromStat = Os.stat(fromFile.getAbsolutePath()); in isLinkPossible()
1908 for (File fromFile : fromFiles) { in linkFiles()
1909 final String relativePath = getRelativePath(fromFile, fromDir); in linkFiles()
1930 for (File fromFile : fromFiles) { in copyFiles()
1932 if (LOGD) Slog.d(TAG, "Copying " + fromFile + " to " + tmpFile); in copyFiles()
1933 if (!FileUtils.copyFile(fromFile, tmpFile)) { in copyFiles()
1934 throw new IOException("Failed to copy " + fromFile + " to " + tmpFile); in copyFiles()
1941 final File toFile = new File(toDir, fromFile.getName()); in copyFiles()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DInstallStaging.java205 installIntent.setData(Uri.fromFile(mStagedFile)); in onPostExecute()
DPackageInstallerActivity.java320 packageUri = Uri.fromFile(new File(info.resolvedBaseCodePath)); in onCreate()
/frameworks/base/core/java/android/net/
DUri.java471 public static Uri fromFile(File file) { in fromFile() method in Uri
2374 return Uri.fromFile(new File( in getCanonicalUri()
2380 return Uri.fromFile(new File(canonicalPath)); in getCanonicalUri()
/frameworks/base/packages/SystemUI/src/com/android/systemui/analytics/
DDataCollector.java205 return Uri.fromFile(touch); in reportRejectedTouch()
/frameworks/base/core/tests/coretests/src/android/net/
DUriTest.java123 Uri.fromFile(null); in testNullFile()
277 Uri uri = Uri.fromFile(f); in testFile()
/frameworks/base/core/java/android/app/
DDownloadManager.java593 mDestinationUri = Uri.withAppendedPath(Uri.fromFile(base), subPath); in setDestinationFromBase()
1653 return Uri.fromFile(new File(localPath)).toString();
/frameworks/base/core/java/android/speech/tts/
DTextToSpeech.java986 mUtterances.put(text, Uri.fromFile(file)); in addSpeech()
1065 mEarcons.put(earcon, Uri.fromFile(file)); in addEarcon()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java327 return Uri.fromFile(outFile); in getInstallablePackage()
573 this.packageURI = Uri.fromFile(new File(pkg.codePath)); in InstallParams()
577 this.packageURI = Uri.fromFile(new File(pkg.codePath)); in InstallParams()
2723 invokeInstallPackageFail(Uri.fromFile(invalidFile), 0, retCode); in testInstallNonexistentFile()

12