/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/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/modules/Nfc/NfcNci/src/com/android/nfc/cardemulation/util/ |
D | NfcFileUtils.java | 51 Files.move(sourceFile.toPath(), targetFile.toPath(), REPLACE_EXISTING); in moveFiles()
|
/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/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/modules/HealthFitness/service/java/com/android/server/healthconnect/exportimport/ |
D | ExportManager.java | 349 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/ |
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/modules/Nfc/NfcNci/tests/unit/src/com/android/nfc/cardemulation/util/ |
D | NfcFileUtilsTest.java | 82 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/ |
D | MediaBackupAgent.java | 136 copyDirectory(backupDir.toPath(), restoreDir.toPath()); in copyContentsFromBackupToRestoreDirectory()
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | ShapeDelegate.kt | 43 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/ |
D | CellBroadcastDatabaseHelper.java | 196 copy(oldDb.toPath(), newDb.toPath()); in tryToMigrateV13()
|
/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/providers/MediaProvider/pdf/framework/java/android/graphics/pdf/component/ |
D | PdfPagePathObject.java | 59 public Path toPath() { in toPath() method in PdfPagePathObject
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/vendor/ |
D | OnDevicePersonalizationLocalDataDao.java | 215 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/ |
D | OnDevicePersonalizationMaintenanceJobServiceTest.java | 321 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()
|
D | OnDevicePersonalizationMaintenanceJobTest.java | 362 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/ |
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 | 70 FileChannel fileChannel = FileChannel.open(mFile.toPath(), StandardOpenOption.READ); in close()
|
/packages/modules/Virtualization/tests/testapk/src/java/com/android/microdroid/test/ |
D | MicrodroidTests.java | 976 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/ |
D | FlRunnerWrapperTest.java | 166 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/ |
D | GeoDataFileManagerImpl.java | 83 Files.copy(resourceStream, targetPath.toPath(), StandardCopyOption.REPLACE_EXISTING); in copyResource()
|