/frameworks/base/core/java/com/android/internal/content/om/ |
D | OverlayManagerImpl.java | 116 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/ |
D | MtpDatabase.java | 442 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()
|
D | MtpStorageManager.java | 195 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/ |
D | ShadowEnvironment.java | 41 return sDataDirectory.toFile(); in getDataDirectory()
|
/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/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
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelCpuThreadReaderTest.java | 115 assertTrue(processPath.toFile().mkdirs()); in setupDirectory() 119 assertTrue(selfThreadsPath.toFile().mkdirs()); in setupDirectory() 129 assertTrue(threadPath.toFile().mkdirs()); in setupDirectory()
|
D | MonotonicClockTest.java | 48 File systemDir = Files.createTempDirectory("MonotonicClockTest").toFile(); in setup()
|
D | ProcLocksReaderTest.java | 47 mProcDirectory = Files.createTempDirectory("ProcLocksReaderTest").toFile(); in setUp()
|
D | CpuScalingPolicyReaderTest.java | 39 File testDir = Files.createTempDirectory("CpuScalingPolicyReaderTest").toFile(); in setup()
|
D | ProcTimeInStateReaderTest.java | 52 mProcDirectory = Files.createTempDirectory("ProcTimeInStateReaderTest").toFile(); in setUp()
|
D | BinderfsStatsReaderTest.java | 104 mStatsDirectory = Files.createTempDirectory("BinderfsStatsReaderTest").toFile(); in setUp()
|
D | ProcStatsUtilTest.java | 43 mProcDirectory = Files.createTempDirectory("ProcStatsUtilTest").toFile(); in setUp()
|
D | StoragedUidIoStatsReaderTest.java | 64 mTestDir = Files.createTempDirectory("StoragedUidIoStatsReaderTest").toFile(); in setUp()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageMetrics.java | 205 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/ |
D | IntegrityFileManagerTest.java | 64 mTmpDir = Files.createTempDirectory("IntegrityFileManagerTest").toFile(); in setUp() 89 .map(Path::toFile) in tearDown()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | BrailleDisplayConnectionTest.java | 103 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/ |
D | PasswordSlotManager.java | 137 return Paths.get(getSlotMapDir(), "slot_map").toFile(); in getSlotMapFile()
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | PowerStatsStoreTest.java | 58 mStoreDirectory = Files.createTempDirectory("PowerStatsStoreTest").toFile(); in setup()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | FileRotatorTest.java | 73 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/ |
D | BrailleDisplayConnection.java | 204 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/ |
D | MockSystem.kt | 114 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/ |
D | SatelliteConfig.java | 238 return targetSatS2FilePath.toFile(); in copySatS2FileToPhoneDirectory()
|