Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/gesture/
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()
/frameworks/native/libs/binder/tests/
DbinderRecordedTransactionTest.cpp46 auto retrievedTransaction = RecordedTransaction::fromFile(fd); in TEST()
84 auto retrievedTransaction = RecordedTransaction::fromFile(fd); in TEST()
121 auto retrievedTransaction = RecordedTransaction::fromFile(fd); in TEST()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageHandler.java158 final Uri originUri = Uri.fromFile(verifyingSession.mOriginInfo.mResolvedFile); in doHandleMessage()
220 final Uri originUri = Uri.fromFile(verifyingSession.mOriginInfo.mResolvedFile); in doHandleMessage()
268 final Uri originUri = Uri.fromFile(params.mOriginInfo.mResolvedFile); in doHandleMessage()
285 final Uri originUri = Uri.fromFile(params.mOriginInfo.mResolvedFile); in doHandleMessage()
DVerificationUtils.java128 final Uri originUri = verifyingSession != null ? Uri.fromFile( in processVerificationResponse()
DVerifyingSession.java290 integrityVerification.setDataAndType(Uri.fromFile(new File(mOriginInfo.mResolvedPath)), in sendIntegrityVerificationRequest()
440 verification.setDataAndType(Uri.fromFile(new File(mOriginInfo.mResolvedPath)), in sendPackageVerificationRequest()
590 requiredIntent.setDataAndType(Uri.fromFile(new File(mOriginInfo.mResolvedPath)), in sendPackageVerificationRequest()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/
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()
/frameworks/native/libs/binder/tests/unit_fuzzers/
DRecordedTransactionFileFuzz.cpp32 auto transaction = android::binder::debug::RecordedTransaction::fromFile(fd); in LLVMFuzzerTestOneInput()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotSoundProvider.kt48 Uri.fromFile(File(context.resources.getString(R.string.config_cameraShutterSound))), in getScreenshotSound()
/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/native/libs/binder/tests/parcel_fuzzer/binder2corpus/
Dbinder2corpus.cpp49 while (auto transaction = RecordedTransaction::fromFile(fd)) { in generateCorpus()
/frameworks/native/libs/binder/include/binder/
DRecordedTransaction.h36 LIBBINDER_EXPORTED static std::optional<RecordedTransaction> fromFile(
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DMediaStoreSaver.java70 final Uri fileUri = Uri.fromFile(file); in MediaStorageScan()
/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.java74 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/sensorprivacy/
DSensorPrivacyStateControllerImpl.java49 mPersistedState = PersistedState.fromFile(SENSOR_PRIVACY_XML_FILE); in SensorPrivacyStateControllerImpl()
/frameworks/base/services/core/java/com/android/server/
DDockObserver.java106 static ExtconStateProvider fromFile(String stateFilePath) { in fromFile() method in DockObserver.ExtconStateProvider
187 setDockStateFromProviderLocked(ExtconStateProvider.fromFile(info.getStatePath())); in DockObserver()
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/
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()

123