/frameworks/base/services/core/java/com/android/server/ |
D | EntropyMixer.java | 122 RandomBlock.fromFile(entropyFile).toFile(randomDevice, false); in loadInitialEntropy() 133 RandomBlock.fromFile(randomDevice).toFile(entropyFile, true); in writeEntropy()
|
D | RandomBlock.java | 65 void toFile(String filename, boolean sync) throws IOException { in toFile() method in RandomBlock
|
/frameworks/base/media/java/android/mtp/ |
D | MtpDatabase.java | 440 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()
|
D | MtpStorageManager.java | 190 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/ |
D | MbmsDownloadReceiver.java | 459 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/ |
D | ShadowEnvironment.java | 41 return sDataDirectory.toFile(); in getDataDirectory()
|
/frameworks/base/tools/preload/ |
D | Compile.java | 71 root.toFile(args[1]); in main()
|
D | WritePreloadedClassFile.java | 130 root.toFile(rootFile); in main()
|
D | Root.java | 134 void toFile(String fileName) throws IOException { in toFile() method in Root
|
D | MemoryUsage.java | 296 root.toFile(args[0]); in main()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelCpuThreadReaderTest.java | 108 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/ |
D | IntegrityFileManagerTest.java | 64 mTmpDir = Files.createTempDirectory("IntegrityFileManagerTest").toFile(); in setUp() 89 .map(Path::toFile) in tearDown()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | PasswordSlotManager.java | 143 return Paths.get(getSlotMapDir(), "slot_map").toFile(); in getSlotMapFile()
|
/frameworks/base/services/core/java/com/android/server/security/ |
D | FileIntegrityService.java | 144 File[] files = path.toFile().listFiles(); in loadCertificatesFromDirectory()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | MockSystem.kt | 99 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/ |
D | BackgroundDexOptService.java | 324 File path = Paths.get(info.applicationInfo.sourceDir).toFile(); in getPackageSize() 331 path = Paths.get(splitSourceDir).toFile(); in getPackageSize()
|
D | PackageInstallerSession.java | 3580 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()
|
D | PackageManagerServiceUtils.java | 999 currentDir = targetDirPath.subpath(0, i).toFile(); in makeDirRecursive()
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/ |
D | DecoderTest.java | 159 if (!Paths.get(mOutputFilePath).toFile().exists()) { in testDecoder()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTaskTest.java | 436 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/ |
D | PersistLogSection.java | 107 try (Stream<File> stream = Files.list(logDirPath).map(Path::toFile) in run()
|
/frameworks/base/startop/iorap/functional_tests/src/com/google/android/startop/iorap/ |
D | IorapWorkFlowTest.java | 372 tmp.toFile().setExecutable(true);
|
/frameworks/base/media/tests/MtpTests/src/android/mtp/ |
D | MtpStorageManagerTest.java | 581 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/ |
D | PowerStatsServiceTest.java | 103 mDataStorageDir = Files.createTempDirectory(DATA_STORAGE_SUBDIR).toFile();
|
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/ |
D | AppLaunch.java | 1432 return Paths.get(launchSubDir.getAbsolutePath(), description).toFile(); in getOutputFile()
|