/packages/providers/MediaProvider/tests/src/com/android/providers/media/playlist/ |
D | PlaylistPersisterTest.java | 47 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());
|
D | PlaylistTest.java | 36 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/ |
D | ImportManagerTest.java | 123 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/ |
D | ExportManager.java | 160 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/ |
D | IoUtilsTest.java | 64 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/ |
D | TemporaryFile.java | 55 Files.delete(mFile.toPath()); in close() 87 return mFile.toPath(); in getPath()
|
/packages/apps/ManagedProvisioning/studio-dev/ManagedProvisioningGradleProject/buildSrc/src/main/java/ |
D | RoboJarFetcherTask.kt | 138 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()
|
D | SymbolicLinksTask.kt | 47 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/ |
D | FilterCopyTask.groovy | 43 … Files.copy(changedFile.toPath(), targetFile.toPath(), StandardCopyOption.REPLACE_EXISTING)
|
D | FilterResourcesTask.groovy | 64 … Files.copy(changedFile.toPath(), targetFile.toPath(), StandardCopyOption.REPLACE_EXISTING)
|
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/ |
D | P2pDiscovery.java | 44 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/ |
D | LicenseSupport.java | 99 Files.copy(licenseFileInput.toPath(), licenseOutputFile.toPath()); in copyLicenseFile()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/ |
D | ResultStoreTest.java | 207 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()
|
D | MetricsConfigStoreTest.java | 124 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/ |
D | CellBroadcastDatabaseHelper.java | 196 copy(oldDb.toPath(), newDb.toPath()); in tryToMigrateV13()
|
/packages/apps/ManagedProvisioning/studio-dev/ManagedProvisioningGradleProject/RobolectricLib/src/com/google/android/sysui/ |
D | ToTSdkProvider.java | 36 return f.toPath(); in findTargetJar()
|
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/msrp/ |
D | MsrpSession.java | 233 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/ |
D | MicrodroidTests.java | 963 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/ |
D | OnDevicePersonalizationMaintenanceJobServiceTest.java | 328 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()
|
D | OnDevicePersonalizationMaintenanceJobTest.java | 357 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/ |
D | OnDevicePersonalizationLocalDataDao.java | 212 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/ |
D | MemoryPublisherTest.java | 135 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/ |
D | MergeTzS2Ranges.java | 133 Files.copy(combinedFile.toPath(), mOutputFile.toPath(), in execute()
|
/packages/services/Telephony/utils/satellite/s2storage/src/write/java/com/android/telephony/sats2range/write/ |
D | HeaderBlockWriter.java | 68 FileChannel fileChannel = FileChannel.open(mFile.toPath(), StandardOpenOption.READ); in close()
|
/packages/apps/ManagedProvisioning/studio-dev/ManagedProvisioningGradleProject/buildSrc/src/main/java/task/ |
D | SymlinkSourcesTask.kt | 64 Files.createSymbolicLink(symbolicLinkPath, file.toPath()) in <lambda>()
|