Home
last modified time | relevance | path

Searched refs:toPath (Results 1 – 22 of 22) sorted by relevance

/packages/providers/MediaProvider/tests/src/com/android/providers/media/playlist/
DPlaylistPersisterTest.java47 new File("test.mp3").toPath(),
48 new File("../parent/../test.mp3").toPath(),
49 new File("subdir/test.mp3").toPath(),
50 new File("/root/test.mp3").toPath(),
51 new File("從不喜歡孤單一個 - 蘇永康/吳雨霏.mp3").toPath(),
52 new File("test.mp3").toPath());
DPlaylistTest.java34 private final Path RED = new File("red").toPath();
35 private final Path GREEN = new File("../green").toPath();
36 private final Path BLUE = new File("path/to/blue").toPath();
37 private final Path YELLOW = new File("/root/yellow").toPath();
/packages/services/Car/tests/common_utils/src/com/android/car/test/utils/
DTemporaryFile.java55 Files.delete(mFile.toPath()); in close()
72 public Path getPath() { return mFile.toPath(); } in getPath()
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DP2pDiscovery.java44 Uri path = toPath(device); in toPrinter()
53 public static Uri toPath(WifiP2pDevice device) { in toPath() method in P2pDiscovery
/packages/services/Car/service/src/com/android/car/storagemonitoring/
DUfsWearInformationProvider.java59 lifetimeData = java.nio.file.Files.readAllLines(mFile.toPath()); in load()
DProcfsUidIoStatsProvider.java38 private static Path DEFAULT_STATS_FILE = new File("/proc/uid_io/stats").toPath();
DSysfsLifetimeWriteInfoProvider.java69 datalines = Files.readAllLines(writefile.toPath()); in tryParse()
DWearHistory.java65 JSONObject jsonObject = new JSONObject(new String(Files.readAllBytes(in.toPath()))); in fromJson()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/cluster/
DClusterContentProvider.java71 Files.copy(inputStream, imageFile.toPath(), in openFile()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DFileUtils.java383 Files.write(file.toPath(), value.get().getBytes(StandardCharsets.UTF_8)); in writeString()
395 final String value = new String(Files.readAllBytes(file.toPath()), in readString()
456 walkFileTreeContents(dir.toPath(), (path) -> { in deleteContents()
DLogging.java62 sPersistentDir = persistentDir.toPath(); in initPersistent()
DXmpInterface.java192 return new XmpInterface(Files.readAllBytes(file.toPath()), in fromSidecar()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/
DArchiveFileTestRule.java69 .getTargetContext().getCacheDir().toPath(), in starting()
/packages/services/BuiltInPrintService/src/com/android/bips/p2p/
DP2pPrinterConnection.java193 P2pDiscovery.toPath(mPeer), printer.location); in onCapabilities()
/packages/apps/Settings/src/com/android/settings/deviceinfo/legal/
DModuleLicenseProvider.java101 Files.copy(in, cachedFile.toPath(), StandardCopyOption.REPLACE_EXISTING); in openFile()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/storagelifetime/
DStorageLifetimeFragment.java120 Path filePath = new File(mActivity.getFilesDir(), FILE_NAME).toPath(); in getFilePath()
/packages/services/Car/service/src/com/android/car/
DCarUxRestrictionsManagerService.java303 Path stagedConfig = getFile(CONFIG_FILENAME_STAGED).toPath(); in promoteStagedConfig()
312 Path prod = getFile(CONFIG_FILENAME_PRODUCTION).toPath(); in promoteStagedConfig()
DCarStorageMonitoringService.java460 new String(Files.readAllBytes(mLifetimeWriteFile.toPath()))); in loadLifetimeWrites()
/packages/providers/MediaProvider/src/com/android/providers/media/scan/
DModernMediaScanner.java363 acquireDirectoryLock(mRoot.getParentFile().toPath()); in walkFileTree()
366 Files.walkFileTree(mRoot.toPath(), this); in walkFileTree()
373 releaseDirectoryLock(mRoot.getParentFile().toPath()); in walkFileTree()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarUxRestrictionsManagerServiceTest.java163 assertEquals(readFile(staged.toPath()), expectedConfig); in testSaveConfig_WriteStagedFile()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java839 FileUtils.walkFileTreeContents(dir.toPath(), this::deleteAndInvalidate); in ensureThumbnailsValid()
5449 final Path playlistPath = queryForDataFile(playlistUri, null).toPath();
5517 playlistFile.toPath().getParent().relativize(audioFile.toPath()));
/packages/apps/Nfc/src/com/android/nfc/
DNfcService.java3156 String logs = Files.lines(file.toPath()).collect(Collectors.joining("\n")); in dumpDebug()