/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | SpecialFormatDetectorTest.java | 72 final Uri filesUri = MediaStore.Files.getContentUri(MediaStore.VOLUME_EXTERNAL, in testDetect_gif() 76 new String[]{MediaStore.Files.FileColumns.MIME_TYPE, in testDetect_gif() 77 MediaStore.Files.FileColumns._SPECIAL_FORMAT}, null, null, null)) { in testDetect_gif() 82 MediaStore.Files.FileColumns._SPECIAL_FORMAT_GIF); in testDetect_gif() 98 final Uri filesUri = MediaStore.Files.getContentUri(MediaStore.VOLUME_EXTERNAL, in testDetect_motionPhoto() 102 new String[]{MediaStore.Files.FileColumns.MIME_TYPE, in testDetect_motionPhoto() 103 MediaStore.Files.FileColumns._SPECIAL_FORMAT}, null, null, null)) { in testDetect_motionPhoto() 108 MediaStore.Files.FileColumns._SPECIAL_FORMAT_MOTION_PHOTO); in testDetect_motionPhoto() 124 final Uri filesUri = MediaStore.Files.getContentUri(MediaStore.VOLUME_EXTERNAL, in testDetect_animatedWebp() 128 new String[]{MediaStore.Files.FileColumns.MIME_TYPE, in testDetect_animatedWebp() [all …]
|
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxStorageHostTest/codeprovider/src/com/android/tests/codeprovider/storagetest_1/ |
D | StorageTestSdk1ApiImpl.java | 22 import java.nio.file.Files; 38 String input = Files.readAllLines(Paths.get(sharedPath, "readme.txt")).get(0); in verifySharedStorageIsUsable() 41 Files.createDirectory(Paths.get(sharedPath, "dir")); in verifySharedStorageIsUsable() 44 Files.createFile(filepath); in verifySharedStorageIsUsable() 45 Files.write(filepath, input.getBytes()); in verifySharedStorageIsUsable() 56 String input = Files.readAllLines(Paths.get(sdkDataPath, "readme.txt")).get(0); in verifyPerSdkStorageIsUsable() 59 Files.createDirectory(Paths.get(sdkDataPath, "dir")); in verifyPerSdkStorageIsUsable() 62 Files.createFile(filepath); in verifyPerSdkStorageIsUsable() 63 Files.write(filepath, input.getBytes()); in verifyPerSdkStorageIsUsable() 86 Files.createDirectory(Paths.get(path, "attribution")); in createFilesinStorage() [all …]
|
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/ |
D | TestSupport.java | 27 import java.nio.file.Files; 45 Files.createDirectories(targetDir); in copyTestResource() 54 Files.createDirectories(targetDir); in copyTestResourceWithoutLicense() 82 Files.copy(inputStream, targetResourceFile, StandardCopyOption.REPLACE_EXISTING); in copyResource() 88 return Files.createTempDirectory(testClass.getSimpleName()); in createTempDir() 92 Files.walkFileTree(dir, new SimpleFileVisitor<>() { in deleteDirectory() 96 Files.deleteIfExists(path); in deleteDirectory() 102 Files.delete(path); in deleteDirectory() 106 assertFalse(Files.exists(dir)); in deleteDirectory()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | PersistentIntTest.kt | 30 import java.nio.file.Files 47 tempDir = Files.createTempDirectory("tmp.PersistentIntTest.") in setUp() 53 Files.setPosixFilePermissions(tempDir, permissions) in tearDown() 56 Files.deleteIfExists(file) in tearDown() 58 Files.delete(tempDir) in tearDown() 101 val permissions = Files.getPosixFilePermissions(p) in addOrRemovePermission() 107 Files.setPosixFilePermissions(p, permissions) in addOrRemovePermission()
|
/packages/services/Telephony/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/ |
D | DownloadCompletionReceiver.java | 28 import java.nio.file.Files; 54 if (!Files.isDirectory(destination.getParent())) { in getDestinationFile() 55 Files.createDirectory(destination.getParent()); in getDestinationFile() 62 if (!Files.isDirectory(destination.getParent())) { in getDestinationFile() 63 Files.createDirectory(destination.getParent()); in getDestinationFile()
|
/packages/services/Car/tests/common_utils/src/com/android/car/test/utils/ |
D | TemporaryDirectory.java | 24 import java.nio.file.Files; 44 Files.delete(path); in consume() 64 mDirectory = Files.createDirectory(directory); in TemporaryDirectory() 73 mDirectory = Files.createTempDirectory(prefix); in TemporaryDirectory() 78 Files.walkFileTree(mDirectory, DELETE); in close()
|
/packages/services/Telephony/utils/satellite/s2storage/src/testutils/java/com/android/telephony/sats2range/testutils/ |
D | TestUtils.java | 30 import java.nio.file.Files; 82 return Files.createTempDirectory(testClass.getSimpleName()); in createTempDir() 87 Files.walkFileTree(dir, new SimpleFileVisitor<>() { in deleteDirectory() 91 Files.deleteIfExists(path); in deleteDirectory() 97 Files.delete(path); in deleteDirectory() 101 assertFalse(Files.exists(dir)); in deleteDirectory()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | ResolvePlaylistTest.java | 113 MediaStore.Files.getContentUri(MediaStore.VOLUME_EXTERNAL), in doPlaylist() 114 new String[] { MediaStore.Files.FileColumns._ID }, in doPlaylist() 115 MediaStore.Files.FileColumns.MEDIA_TYPE + "=" in doPlaylist() 116 + MediaStore.Files.FileColumns.MEDIA_TYPE_PLAYLIST, null, null)) { in doPlaylist() 192 MediaStore.Files.getContentUri(MediaStore.VOLUME_EXTERNAL), in testBrokenPlaylistM3u() 193 new String[] { MediaStore.Files.FileColumns._ID }, in testBrokenPlaylistM3u() 194 MediaStore.Files.FileColumns.MEDIA_TYPE + "=" in testBrokenPlaylistM3u() 195 + MediaStore.Files.FileColumns.MEDIA_TYPE_PLAYLIST, null, null)) { in testBrokenPlaylistM3u() 225 new String[] { MediaStore.Files.FileColumns._ID }, null, null)) { in testPlaylistDeletion() 259 new String[] { MediaStore.Files.FileColumns._ID }, null, null)) { in testPlaylistMembersDeletion()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | DatabaseBackupAndRecovery.java | 127 MediaStore.Files.FileColumns._ID, 128 MediaStore.Files.FileColumns.DATA, 129 MediaStore.Files.FileColumns.IS_FAVORITE, 130 MediaStore.Files.FileColumns.IS_PENDING, 131 MediaStore.Files.FileColumns.IS_TRASHED, 132 MediaStore.Files.FileColumns.MEDIA_TYPE, 133 MediaStore.Files.FileColumns._USER_ID, 134 MediaStore.Files.FileColumns.DATE_EXPIRES, 135 MediaStore.Files.FileColumns.OWNER_PACKAGE_NAME, 136 MediaStore.Files.FileColumns.GENERATION_MODIFIED, [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/util/ |
D | IoUtilsTest.java | 37 import java.nio.file.Files; 47 mTestDir = Files.createTempDirectory("car_telemetry_test").toFile(); in setUp() 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/Telephony/utils/satellite/tools/src/test/java/com/android/telephony/tools/sats2/ |
D | CreateSatS2FileTest.java | 31 import java.nio.file.Files; 66 Files.createDirectory(inputDirPath); in testCreateSatS2FileWithInvalidInput() 70 Files.createDirectory(outputDirPath); in testCreateSatS2FileWithInvalidInput() 98 Files.createDirectory(inputDirPath); in testCreateSatS2FileWithValidInput() 102 Files.createDirectory(outputDirPath); in testCreateSatS2FileWithValidInput()
|
/packages/modules/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/ |
D | FileUtilUnitTest.java | 32 import java.nio.file.Files; 62 Files.createDirectories(Paths.get(filePath)); in testGetStorageInformationForPaths_withFiles() 74 Files.createFile(filePath); in createFile() 76 Files.write(filePath, buffer); in createFile()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/bluetoothKeystore/ |
D | BluetoothKeystoreServiceTest.java | 36 import java.nio.file.Files; 104 mConfigData = Files.readAllLines(Paths.get(CONFIG_FILE_PATH)); in setUp() 119 Files.write(Paths.get(CONFIG_FILE_PATH), mConfigData); in tearDown() 135 Files.write(Paths.get(CONFIG_FILE_PATH), data); in overwriteConfigFile() 269 Assert.assertFalse(Files.exists(Paths.get(CONFIG_CHECKSUM_ENCRYPTION_PATH))); in testParserFileAfterDisableCommonCriteriaMode() 270 Assert.assertFalse(Files.exists(Paths.get(CONFIG_FILE_ENCRYPTION_PATH))); in testParserFileAfterDisableCommonCriteriaMode()
|
/packages/modules/adb/client/ |
D | incremental.h | 28 using Files = std::vector<std::string>; variable 31 bool can_install(const Files& files); 32 std::optional<Process> install(const Files& files, const Args& passthrough_args, bool silent);
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/bluetoothKeystore/ |
D | BluetoothKeystoreService.java | 32 import java.nio.file.Files; 214 if (Files.exists(Paths.get(CONFIG_CHECKSUM_ENCRYPTION_PATH))) { in loadConfigData() 314 Files.deleteIfExists(Paths.get(CONFIG_CHECKSUM_ENCRYPTION_PATH)); in cleanupFile() 315 Files.deleteIfExists(Paths.get(CONFIG_FILE_ENCRYPTION_PATH)); in cleanupFile() 378 Files.write(Paths.get(CONFIG_CHECKSUM_ENCRYPTION_PATH), configEncryptedLines); in saveEncryptedKey() 381 Files.write(Paths.get(CONFIG_FILE_ENCRYPTION_PATH), keyEncryptedLines); in saveEncryptedKey() 419 if (!Files.exists(Paths.get(hashFilePathString))) { in compareFileHash() 460 InputStream fileStream = Files.newInputStream(Paths.get(filePathString)); in readHashFile() 495 if (!Files.exists(Paths.get(filePathString))) { in parseConfigFile() 498 List<String> allLinesString = Files.readAllLines(Paths.get(filePathString)); in parseConfigFile() [all …]
|
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/rollback/ |
D | RollbackHandlingDatastoreLocationHelper.java | 22 import java.nio.file.Files; 39 if (!Files.exists(packageDir)) { in getRollbackHandlingDataStoreDirAndCreateDir() 40 Files.createDirectories(packageDir); in getRollbackHandlingDataStoreDirAndCreateDir()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/ |
D | GalleryCursorLoader.java | 21 import android.provider.MediaStore.Files; 22 import android.provider.MediaStore.Files.FileColumns; 32 private static final Uri STORAGE_URI = Files.getContentUri(MEDIA_SCANNER_VOLUME_EXTERNAL);
|
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/consent/ |
D | ConsentDatastoreLocationHelper.java | 24 import java.nio.file.Files; 44 if (!Files.exists(packageDir)) { in getConsentDataStoreDirAndCreateDir() 45 Files.createDirectories(packageDir); in getConsentDataStoreDirAndCreateDir()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/model/ |
D | ModelTestUtils.java | 19 import static android.provider.MediaStore.Files.FileColumns._SPECIAL_FORMAT_NONE; 38 MediaStore.Files.getContentUri(MediaStore.VOLUME_EXTERNAL, Long.parseLong(id)), in generateItem() 56 MediaStore.Files.getContentUri(MediaStore.VOLUME_EXTERNAL, Long.parseLong(id)), in generateSpecialFormatItem()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | GalleryBoundCursorLoader.java | 21 import android.provider.MediaStore.Files; 22 import android.provider.MediaStore.Files.FileColumns; 34 private static final Uri STORAGE_URI = Files.getContentUri(MEDIA_SCANNER_VOLUME_EXTERNAL);
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/ |
D | MetricsConfigStoreTest.java | 32 import java.nio.file.Files; 50 mTestRootDir = Files.createTempDirectory("car_telemetry_test").toFile(); in setUp() 124 Files.write(file.toPath(), config.toByteArray()); in writeConfigToDisk() 129 byte[] bytes = Files.readAllBytes(new File(mTestMetricsConfigDir, fileName).toPath()); in readConfigFromFile()
|
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/common/ |
D | FileHelper.java | 25 import java.nio.file.Files; 44 Files.createFile(filePath); in writeFile() 49 Files.write(filePath, bytes); in writeFile()
|
/packages/modules/AdServices/sdksandbox/tests/testutils/src/android/app/sdksandbox/testutils/ |
D | SdkSandboxStorageManagerUtility.java | 23 import java.nio.file.Files; 130 Files.createDirectories(ceSdkStoragePath); in createFilesFromList() 133 Files.createDirectories(deSdkStoragePath); in createFilesFromList() 142 Files.createDirectories(Paths.get(packageDir)); in createPackagePath()
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/ |
D | ArchiveFileTestRule.java | 34 import java.nio.file.Files; 67 mTemporaryPath = Files.createTempDirectory( in starting() 105 Path filePath = Files.createTempFile(mTemporaryPath, mMethodName, suffix, attr); in generateFile() 124 Files.copy(inputStream, destinationPath, StandardCopyOption.REPLACE_EXISTING); in dumpAssetFile()
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | Logging.java | 34 import java.nio.file.Files; 95 sWriter = Files.newBufferedWriter(path, CREATE, APPEND); in logPersistent() 146 try (Stream<Path> stream = Files.list(persistentDir)) { in dumpPersistent() 158 try (Stream<String> stream = Files.lines(path)) { in dumpPersistentFile()
|