Home
last modified time | relevance | path

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

1234

/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/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/modules/Nfc/NfcNci/src/com/android/nfc/cardemulation/util/
DNfcFileUtils.java51 Files.move(sourceFile.toPath(), targetFile.toPath(), REPLACE_EXISTING); in moveFiles()
/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/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/modules/HealthFitness/service/java/com/android/server/healthconnect/exportimport/
DExportManager.java349 mTransactionManager.getDatabasePath().toPath(), in exportLocally()
350 destination.toPath(), in exportLocally()
353 Slog.i(TAG, "Local export completed: " + destination.toPath().toAbsolutePath()); in exportLocally()
364 Files.copy(source.toPath(), outputStream); in exportToUri()
/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/modules/Nfc/NfcNci/tests/unit/src/com/android/nfc/cardemulation/util/
DNfcFileUtilsTest.java82 when(sourceDir.toPath()).thenReturn(mock(Path.class)); in testMoveFiles()
103 when(sourceDir.toPath()).thenReturn(mock(Path.class)); in testMoveFileWithMigrationFailure()
/packages/providers/MediaProvider/src/com/android/providers/media/backupandrestore/
DMediaBackupAgent.java136 copyDirectory(backupDir.toPath(), restoreDir.toPath()); in copyContentsFromBackupToRestoreDirectory()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DShapeDelegate.kt43 import androidx.graphics.shapes.toPath in <lambda>()
163 Morph(poly, createRoundedRect(0f, 0f, 100f, 100f, 25f)).toPath(0f, this) in <lambda>()
227 return ClipAnimBuilder(target, morph::toPath).toAnim(isReversed) in <lambda>()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastDatabaseHelper.java196 copy(oldDb.toPath(), newDb.toPath()); in tryToMigrateV13()
/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/providers/MediaProvider/pdf/framework/java/android/graphics/pdf/component/
DPdfPagePathObject.java59 public Path toPath() { in toPath() method in PdfPagePathObject
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/vendor/
DOnDevicePersonalizationLocalDataDao.java215 return Files.readAllBytes(file.toPath()); in readSingleLocalDataRow()
239 Files.write(file.toPath(), localData.getData()); in updateOrInsertLocalData()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/maintenance/
DOnDevicePersonalizationMaintenanceJobServiceTest.java321 Files.write(new File(vendorDir, "randomFile.txt").toPath(), new byte[10]); in testVendorDataCleanupExtraDirs()
322 Files.write(new File(vendorDir + "/randomDirectory", "randomFile.txt").toPath(), in testVendorDataCleanupExtraDirs()
324 Files.write(new File(localDir, "randomFile.txt").toPath(), new byte[10]); in testVendorDataCleanupExtraDirs()
DOnDevicePersonalizationMaintenanceJobTest.java362 Files.write(new File(vendorDir, fileName).toPath(), new byte[10]); in testVendorDataCleanupExtraDirs()
363 Files.write(new File(vendorDir + "/" + directoryName1, fileName).toPath(), new byte[10]); in testVendorDataCleanupExtraDirs()
364 Files.write(new File(localDir, fileName).toPath(), new byte[10]); in testVendorDataCleanupExtraDirs()
/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.java70 FileChannel fileChannel = FileChannel.open(mFile.toPath(), StandardOpenOption.READ); in close()
/packages/modules/Virtualization/tests/testapk/src/java/com/android/microdroid/test/
DMicrodroidTests.java976 Files.delete(f.toPath()); in deleteVmFiles()
1144 vmInstanceBackup.toPath(), in createUncachedVmWithName()
1145 getVmFile(vmName, "instance.img").toPath(), in createUncachedVmWithName()
1150 vmIdBackup.toPath(), in createUncachedVmWithName()
1151 getVmFile(vmName, "instance_id").toPath(), in createUncachedVmWithName()
1183 Files.copy(vmInstance.toPath(), vmInstanceBackup.toPath(), REPLACE_EXISTING); in changeDebugLevel()
1187 Files.copy(vmId.toPath(), vmIdBackup.toPath(), REPLACE_EXISTING); in changeDebugLevel()
1752 Files.copy(storageImgOrig.toPath(), storageImgNew.toPath(), REPLACE_EXISTING); in encryptedStorageIsInaccessibleToDifferentVm()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/training/jni/
DFlRunnerWrapperTest.java166 byte[] content = Files.readAllBytes(outputCheckpointFile.toPath()); in testRunFederatedAnalytics_returnSuccess()
263 Files.copy(in, inputCheckpointFile.toPath(), REPLACE_EXISTING); in testRunFederatedLearning_returnsSuccess()
/packages/modules/GeoTZ/app/src/main/java/com/android/geotz/app/
DGeoDataFileManagerImpl.java83 Files.copy(resourceStream, targetPath.toPath(), StandardCopyOption.REPLACE_EXISTING); in copyResource()

1234