Home
last modified time | relevance | path

Searched refs:toFile (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/
DEntropyMixer.java122 RandomBlock.fromFile(entropyFile).toFile(randomDevice, false); in loadInitialEntropy()
133 RandomBlock.fromFile(randomDevice).toFile(entropyFile, true); in writeEntropy()
DRandomBlock.java65 void toFile(String filename, boolean sync) throws IOException { in toFile() method in RandomBlock
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java440 updateMediaStore(mContext, obj.getPath().toFile()); in endSendObject()
574 boolean success = oldPath.toFile().renameTo(newPath.toFile()); in renameFile()
589 updateMediaStore(mContext, oldPath.toFile()); in renameFile()
590 updateMediaStore(mContext, newPath.toFile()); in renameFile()
627 updateMediaStore(mContext, oldPath.toFile()); in endMoveObject()
628 updateMediaStore(mContext, path.toFile()); in endMoveObject()
652 updateMediaStore(mContext, obj.getPath().toFile()); in endCopyObject()
978 updateMediaStore(mContext, path.toFile()); in deleteFromMedia()
DMtpStorageManager.java190 return getPath().toFile().lastModified() / 1000; in getModifiedTime()
202 return mIsDir ? 0 : getPath().toFile().length(); in getSize()
292 return getPath().toFile().exists(); in exists()
593 file.toFile().isDirectory()); in getChildren()
726 file.toFile().isDirectory()); in handleAddedObject()
/frameworks/base/telephony/java/android/telephony/mbms/
DMbmsDownloadReceiver.java459 Path toFile = appSpecifiedPath.resolve(relativeLocation); in moveToFinalLocation() local
461 if (!Files.isDirectory(toFile.getParent())) { in moveToFinalLocation()
462 Files.createDirectories(toFile.getParent()); in moveToFinalLocation()
464 Path result = Files.move(fromFile, toFile, in moveToFinalLocation()
467 return Uri.fromFile(result.toFile()); in moveToFinalLocation()
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
DShadowEnvironment.java41 return sDataDirectory.toFile(); in getDataDirectory()
/frameworks/base/tools/preload/
DCompile.java71 root.toFile(args[1]); in main()
DWritePreloadedClassFile.java130 root.toFile(rootFile); in main()
DRoot.java134 void toFile(String fileName) throws IOException { in toFile() method in Root
DMemoryUsage.java296 root.toFile(args[0]); in main()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuThreadReaderTest.java108 assertTrue(processPath.toFile().mkdirs()); in setupDirectory()
112 assertTrue(selfThreadsPath.toFile().mkdirs()); in setupDirectory()
122 assertTrue(threadPath.toFile().mkdirs()); in setupDirectory()
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/
DIntegrityFileManagerTest.java64 mTmpDir = Files.createTempDirectory("IntegrityFileManagerTest").toFile(); in setUp()
89 .map(Path::toFile) in tearDown()
/frameworks/base/services/core/java/com/android/server/locksettings/
DPasswordSlotManager.java143 return Paths.get(getSlotMapDir(), "slot_map").toFile(); in getSlotMapFile()
/frameworks/base/services/core/java/com/android/server/security/
DFileIntegrityService.java144 File[] files = path.toFile().listFiles(); in loadCertificatesFromDirectory()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DMockSystem.kt99 Files.createTempDirectory("packageCache").toFile()
101 Files.createTempDirectory("root").toFile()
103 File(Files.createTempDirectory("data").toFile(), "app")
634 val newRoot = Files.createTempDirectory(partition.folder.name).toFile() in redirectScanPartitions()
/frameworks/base/services/core/java/com/android/server/pm/
DBackgroundDexOptService.java324 File path = Paths.get(info.applicationInfo.sourceDir).toFile(); in getPackageSize()
331 path = Paths.get(splitSourceDir).toFile(); in getPackageSize()
DPackageInstallerSession.java3580 final File toFile = new File(toDir, fromFile.getName()); in copyFiles() local
3581 if (LOGD) Slog.d(TAG, "Renaming " + tmpFile + " to " + toFile); in copyFiles()
3582 if (!tmpFile.renameTo(toFile)) { in copyFiles()
3583 throw new IOException("Failed to rename " + tmpFile + " to " + toFile); in copyFiles()
DPackageManagerServiceUtils.java999 currentDir = targetDirPath.subpath(0, i).toFile(); in makeDirRecursive()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/
DDecoderTest.java159 if (!Paths.get(mOutputFilePath).toFile().exists()) { in testDecoder()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DKeyValueBackupTaskTest.java436 verify(mBackupManagerService).resetBackupState(getStateDirectory(mTransport).toFile()); in testRunTask_whenTransportReturnsTransportErrorForPm_resetsBackupState()
540 verify(mBackupManagerService).resetBackupState(getStateDirectory(mTransport).toFile()); in testRunTask_whenOnePackageAndNoPmState_initializesTransportAndResetsState()
576 .resetBackupState(getStateDirectory(mTransport).toFile()); in testRunTask_whenTransportReturnsErrorForInitialization()
595 .resetBackupState(getStateDirectory(mTransport).toFile()); in testRunTask_whenTransportThrowsDuringInitialization()
1311 try (FileInputStream inputStream = new FileInputStream(backupDataPath.toFile())) { in testRunTask_whenAgentWritesData_callsTransportPerformBackupWithAgentData()
1344 try (FileInputStream inputStream = new FileInputStream(backupDataPath.toFile())) { in testRunTask_whenPmAgentWritesData_callsTransportPerformBackupWithAgentData()
1868 try (FileInputStream inputStream = new FileInputStream(incrementalData.toFile())) { in testRunTask_whenIncrementalAndTransportRequestsNonIncremental()
1873 try (FileInputStream inputStream = new FileInputStream(nonIncrementalData.toFile())) { in testRunTask_whenIncrementalAndTransportRequestsNonIncremental()
2052 verify(mBackupManagerService).resetBackupState(getStateDirectory(mTransport).toFile()); in testRunTask_whenPmAgentFails_resetsBackupState()
2068 verify(mBackupManagerService).resetBackupState(getStateDirectory(mTransport).toFile()); in testRunTask_whenMarkCancelDuringPmOnBackup_resetsBackupState()
/frameworks/base/cmds/incident_helper/java/com/android/commands/incident/sections/
DPersistLogSection.java107 try (Stream<File> stream = Files.list(logDirPath).map(Path::toFile) in run()
/frameworks/base/startop/iorap/functional_tests/src/com/google/android/startop/iorap/
DIorapWorkFlowTest.java372 tmp.toFile().setExecutable(true);
/frameworks/base/media/tests/MtpTests/src/android/mtp/
DMtpStorageManagerTest.java581 File toFile = new File(mainStorageDir, "to" + newFile.getName()); in testObjectMoved() local
583 Assert.assertTrue(newFile.renameTo(toFile)); in testObjectMoved()
588 toFile.getPath()); in testObjectMoved()
/frameworks/base/services/tests/servicestests/src/com/android/server/powerstats/
DPowerStatsServiceTest.java103 mDataStorageDir = Files.createTempDirectory(DATA_STORAGE_SUBDIR).toFile();
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
DAppLaunch.java1432 return Paths.get(launchSubDir.getAbsolutePath(), description).toFile(); in getOutputFile()

12