Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/com/android/internal/content/om/
DOverlayManagerImpl.java116 if (!file.toFile().delete()) { in cleanExpiredOverlays()
128 if (!dir.toFile().delete()) { in cleanExpiredOverlays()
262 if (!frroPath.toFile().delete()) { in registerFabricatedOverlay()
281 if (!frroPath.toFile().delete()) { in unregisterFabricatedOverlay()
284 if (!idmapPath.toFile().delete()) { in unregisterFabricatedOverlay()
338 final File base = mBasePath.toFile(); in getOverlayInfosForTarget()
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java442 updateMediaStore(mContext, obj.getPath().toFile()); in endSendObject()
576 boolean success = oldPath.toFile().renameTo(newPath.toFile()); in renameFile()
591 updateMediaStore(mContext, oldPath.toFile()); in renameFile()
592 updateMediaStore(mContext, newPath.toFile()); in renameFile()
629 updateMediaStore(mContext, oldPath.toFile()); in endMoveObject()
630 updateMediaStore(mContext, path.toFile()); in endMoveObject()
654 updateMediaStore(mContext, obj.getPath().toFile()); in endCopyObject()
982 updateMediaStore(mContext, path.toFile()); in deleteFromMedia()
DMtpStorageManager.java195 return getPath().toFile().lastModified() / 1000; in getModifiedTime()
207 return mIsDir ? 0 : maybeApplyTranscodeLengthWorkaround(getPath().toFile().length()); in getSize()
328 return getPath().toFile().exists(); in exists()
631 file.toFile().isDirectory()); in getChildren()
764 file.toFile().isDirectory()); in handleAddedObject()
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
DShadowEnvironment.java41 return sDataDirectory.toFile(); in getDataDirectory()
/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/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
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuThreadReaderTest.java115 assertTrue(processPath.toFile().mkdirs()); in setupDirectory()
119 assertTrue(selfThreadsPath.toFile().mkdirs()); in setupDirectory()
129 assertTrue(threadPath.toFile().mkdirs()); in setupDirectory()
DMonotonicClockTest.java48 File systemDir = Files.createTempDirectory("MonotonicClockTest").toFile(); in setup()
DProcLocksReaderTest.java47 mProcDirectory = Files.createTempDirectory("ProcLocksReaderTest").toFile(); in setUp()
DCpuScalingPolicyReaderTest.java39 File testDir = Files.createTempDirectory("CpuScalingPolicyReaderTest").toFile(); in setup()
DProcTimeInStateReaderTest.java52 mProcDirectory = Files.createTempDirectory("ProcTimeInStateReaderTest").toFile(); in setUp()
DBinderfsStatsReaderTest.java104 mStatsDirectory = Files.createTempDirectory("BinderfsStatsReaderTest").toFile(); in setUp()
DProcStatsUtilTest.java43 mProcDirectory = Files.createTempDirectory("ProcStatsUtilTest").toFile(); in setUp()
DStoragedUidIoStatsReaderTest.java64 mTestDir = Files.createTempDirectory("StoragedUidIoStatsReaderTest").toFile(); in setUp()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageMetrics.java205 if (file.toFile().isFile() && ApkLiteParseUtils.isApkFile(file.toFile())) { in getApksSize()
206 apksSize.addAndGet(file.toFile().length()); in getApksSize()
/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/tests/servicestests/src/com/android/server/accessibility/
DBrailleDisplayConnectionTest.java103 assertThat(node.toFile().createNewFile()).isTrue(); in defaultNativeScanner_getHidrawNodePaths_returnsHidrawPaths()
113 node.toFile().delete(); in defaultNativeScanner_getHidrawNodePaths_returnsHidrawPaths()
/frameworks/base/services/core/java/com/android/server/locksettings/
DPasswordSlotManager.java137 return Paths.get(getSlotMapDir(), "slot_map").toFile(); in getSlotMapFile()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DPowerStatsStoreTest.java58 mStoreDirectory = Files.createTempDirectory("PowerStatsStoreTest").toFile(); in setup()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DFileRotatorTest.java73 mBasePath = Files.createTempDirectory(TAG).toFile(); in setUp()
398 File inaccessibleDir = mBasePath.toPath().resolve("does_not_exist").toFile(); in testFileSystemInaccessible()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DBrailleDisplayConnection.java204 result.add(Pair.create(path.toFile(), descriptor)); in connectLocked()
488 try (FileInputStream stream = new FileInputStream(path.toFile())) { in getDefaultNativeScanner()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DMockSystem.kt114 Files.createTempDirectory("packageCache").toFile()
116 Files.createTempDirectory("root").toFile()
118 File(Files.createTempDirectory("data").toFile(), "app")
708 val newRoot = Files.createTempDirectory(partition.folder.name).toFile() in redirectScanPartitions()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/satellite/
DSatelliteConfig.java238 return targetSatS2FilePath.toFile(); in copySatS2FileToPhoneDirectory()

123