Home
last modified time | relevance | path

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

123

/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.java36 private final Path RED = new File("red").toPath();
37 private final Path GREEN = new File("../green").toPath();
38 private final Path BLUE = new File("path/to/blue").toPath();
39 private final Path YELLOW = new File("/root/yellow").toPath();
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/exportimport/
DImportManagerTest.java123 Files.copy(originalDb.toPath(), dbToImport.toPath(), StandardCopyOption.REPLACE_EXISTING); in copiesAllData()
161 Files.copy(originalDb.toPath(), dbToImport.toPath(), StandardCopyOption.REPLACE_EXISTING); in skipsMissingTables()
201 Files.copy(originalDb.toPath(), dbToImport.toPath(), StandardCopyOption.REPLACE_EXISTING); in deletesTheDatabase()
231 Files.copy(originalDb.toPath(), dbToImport.toPath(), StandardCopyOption.REPLACE_EXISTING); in runImport_versionMismatch_setsVersionMismatchError()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/exportimport/
DExportManager.java160 TransactionManager.getInitialisedInstance().getDatabasePath().toPath(), in exportLocally()
161 destination.toPath(), in exportLocally()
164 Slog.i(TAG, "Local export completed: " + destination.toPath().toAbsolutePath()); in exportLocally()
174 Files.copy(source.toPath(), outputStream); in exportToUri()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/util/
DIoUtilsTest.java64 Files.write(mTestFile.toPath(), "test".getBytes(StandardCharsets.UTF_8)); in testReadBundle_invalidBundle_shouldThrowException()
148 Files.write(file.toPath(), byteArrayOutputStream.toByteArray()); in writeBundleToFile()
163 byte[] bytes = Files.readAllBytes(file.toPath()); in readMetricsConfigFromFile()
169 byte[] bytes = Files.readAllBytes(file.toPath()); in readTelemetryErrorFromFile()
/packages/services/Car/libs/car-test-lib/src/android/car/test/util/
DTemporaryFile.java55 Files.delete(mFile.toPath()); in close()
87 return mFile.toPath(); in getPath()
/packages/apps/ManagedProvisioning/studio-dev/ManagedProvisioningGradleProject/buildSrc/src/main/java/
DRoboJarFetcherTask.kt138 return out.toPath() in downloadAndroidJarFromServer()
150 return if (buildNumber == buildId) targetFile.toPath() else null in cachedJar()
161 return targetFile.toPath() in cachedJar()
171 return targetFile.toPath() in cachedJar()
DSymbolicLinksTask.kt47 project.file("$outputDirectory/$relativePath").toPath() in <lambda>()
50 Files.createSymbolicLink(symbolicLinkPath, file.toPath()) in <lambda>()
/packages/apps/ManagedProvisioning/studio-dev/ManagedProvisioningGradleProject/buildSrc/src/main/groovy/
DFilterCopyTask.groovy43 … Files.copy(changedFile.toPath(), targetFile.toPath(), StandardCopyOption.REPLACE_EXISTING)
DFilterResourcesTask.groovy64 … Files.copy(changedFile.toPath(), targetFile.toPath(), StandardCopyOption.REPLACE_EXISTING)
/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/modules/GeoTZ/common/host/main/java/com/android/timezone/location/common/
DLicenseSupport.java99 Files.copy(licenseFileInput.toPath(), licenseOutputFile.toPath()); in copyLicenseFile()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/
DResultStoreTest.java207 Files.write(new File(mTestMetricsReportDir, metricsConfigName).toPath(), in testGetMetricsReports_whenDataCorrupt_shouldReceiveNull()
294 Files.write(new File(mTestMetricsReportDir, "my_metrics_config").toPath(), in testGetAllMetricsReports_whenDataCorrupt_shouldReceiveEmptyMap()
375 Files.readAllBytes(reportListFile.toPath())); in testPutMetricsReport_whenLastReport_shouldBuildCorrectReportContainer()
523 Files.write(new File(mTestErrorResultDir, fileName).toPath(), error.toByteArray()); in writeErrorToFile()
539 Files.write(file.toPath(), byteArrayOutputStream.toByteArray()); in writeBundleToFile()
DMetricsConfigStoreTest.java124 Files.write(file.toPath(), config.toByteArray()); in writeConfigToDisk()
129 byte[] bytes = Files.readAllBytes(new File(mTestMetricsConfigDir, fileName).toPath()); in readConfigFromFile()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastDatabaseHelper.java196 copy(oldDb.toPath(), newDb.toPath()); in tryToMigrateV13()
/packages/apps/ManagedProvisioning/studio-dev/ManagedProvisioningGradleProject/RobolectricLib/src/com/google/android/sysui/
DToTSdkProvider.java36 return f.toPath(); in findTargetJar()
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/msrp/
DMsrpSession.java233 MsrpChunkHeader toPath = chunk.header(MsrpConstants.HEADER_TO_PATH); in sendResponse() local
241 .addHeader(MsrpConstants.HEADER_FROM_PATH, toPath.value()) in sendResponse()
/packages/modules/Virtualization/tests/testapk/src/java/com/android/microdroid/test/
DMicrodroidTests.java963 Files.delete(f.toPath()); in deleteVmFiles()
1135 vmInstanceBackup.toPath(), in createUncachedVmWithName()
1136 getVmFile(vmName, "instance.img").toPath(), in createUncachedVmWithName()
1141 vmIdBackup.toPath(), in createUncachedVmWithName()
1142 getVmFile(vmName, "instance_id").toPath(), in createUncachedVmWithName()
1174 Files.copy(vmInstance.toPath(), vmInstanceBackup.toPath(), REPLACE_EXISTING); in changeDebugLevel()
1178 Files.copy(vmId.toPath(), vmIdBackup.toPath(), REPLACE_EXISTING); in changeDebugLevel()
1710 Files.copy(storageImgOrig.toPath(), storageImgNew.toPath(), REPLACE_EXISTING); in encryptedStorageIsInaccessibleToDifferentVm()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/maintenance/
DOnDevicePersonalizationMaintenanceJobServiceTest.java328 Files.write(new File(vendorDir, "randomFile.txt").toPath(), new byte[10]); in testVendorDataCleanupExtraDirs()
329 Files.write(new File(vendorDir + "/randomDirectory", "randomFile.txt").toPath(), in testVendorDataCleanupExtraDirs()
331 Files.write(new File(localDir, "randomFile.txt").toPath(), new byte[10]); in testVendorDataCleanupExtraDirs()
DOnDevicePersonalizationMaintenanceJobTest.java357 Files.write(new File(vendorDir, fileName).toPath(), new byte[10]); in testVendorDataCleanupExtraDirs()
358 Files.write(new File(vendorDir + "/" + directoryName1, fileName).toPath(), new byte[10]); in testVendorDataCleanupExtraDirs()
359 Files.write(new File(localDir, fileName).toPath(), new byte[10]); in testVendorDataCleanupExtraDirs()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/vendor/
DOnDevicePersonalizationLocalDataDao.java212 return Files.readAllBytes(file.toPath()); in readSingleLocalDataRow()
236 Files.write(file.toPath(), localData.getData()); in updateOrInsertLocalData()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/
DMemoryPublisherTest.java135 Files.write(mTempFile.toPath(), FAKE_MEMINFO.getBytes(StandardCharsets.UTF_8)); in setUp()
160 mPublisher = createPublisher(mTempFile.toPath()); in setUp()
468 mPublisher = createPublisher(mTempFile.toPath()); in testReadMeminfo_whenPreviousStateExists_shouldContinueFromPrevious()
/packages/modules/GeoTZ/data_pipeline/src/main/java/com/android/timezone/location/data_pipeline/steps/
DMergeTzS2Ranges.java133 Files.copy(combinedFile.toPath(), mOutputFile.toPath(), in execute()
/packages/services/Telephony/utils/satellite/s2storage/src/write/java/com/android/telephony/sats2range/write/
DHeaderBlockWriter.java68 FileChannel fileChannel = FileChannel.open(mFile.toPath(), StandardOpenOption.READ); in close()
/packages/apps/ManagedProvisioning/studio-dev/ManagedProvisioningGradleProject/buildSrc/src/main/java/task/
DSymlinkSourcesTask.kt64 Files.createSymbolicLink(symbolicLinkPath, file.toPath()) in <lambda>()

123