/aosp14/frameworks/base/core/java/android/gesture/ |
H A D | GestureLibraries.java | 38 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 D | PackageHandler.java | 153 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 D | VerificationUtils.java | 128 final Uri originUri = verifyingSession != null ? Uri.fromFile( in processVerificationResponse()
|
H A D | VerifyingSession.java | 281 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 D | PackageInstallerSession.java | 3774 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 D | SensorPrivacyServiceMockingTest.java | 226 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 D | MbmsDownloadReceiver.java | 359 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 D | DownloadManagerFunctionalTest.java | 164 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 D | DownloadManagerTestApp.java | 281 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 D | EffectsVideoCapture.java | 73 Uri uri = Uri.fromFile(file); in testBackEffectsVideoCapture()
|
/aosp14/frameworks/base/services/core/java/com/android/server/sensorprivacy/ |
H A D | SensorPrivacyStateControllerImpl.java | 45 mPersistedState = PersistedState.fromFile(SENSOR_PRIVACY_XML_FILE); in SensorPrivacyStateControllerImpl()
|
H A D | PersistedState.java | 78 static PersistedState fromFile(String fileName) { in fromFile() method in PersistedState
|
/aosp14/frameworks/base/tools/preload/ |
H A D | PrintCsv.java | 40 Root root = Root.fromFile(args[0]); in main()
|
H A D | WritePreloadedClassFile.java | 49 Root root = Root.fromFile(rootFile); in main()
|
H A D | Root.java | 151 static Root fromFile(String fileName) in fromFile() method in Root
|
H A D | PrintHtmlDiff.java | 36 Root root = Root.fromFile(args[0]); in main()
|
H A D | MemoryUsage.java | 289 Root root = Root.fromFile(args[0]); in main()
|
/aosp14/frameworks/base/services/core/java/com/android/server/ |
H A D | DockObserver.java | 106 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 D | AppIntegrityManagerServiceImplTest.java | 355 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 D | InstallStaging.java | 353 installIntent.setData(Uri.fromFile(new File(sessionInfo.getResolvedBaseApkPath()))); in onPostExecute()
|
/aosp14/frameworks/base/core/java/android/net/ |
H A D | Uri.java | 479 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 D | UriTest.java | 124 Uri.fromFile(null); in testNullFile() 295 Uri uri = Uri.fromFile(f); in testFile()
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | DownloadManager.java | 600 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 D | TextToSpeech.java | 1079 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 D | PackageManagerTests.java | 344 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()
|