Home
last modified time | relevance | path

Searched refs:destFile (Results 1 – 7 of 7) sorted by relevance

/cts/tools/vm-tests-tf/build/src/util/build/
DSourceBuildStep.java23 SourceBuildStep(File destFile) { in SourceBuildStep() argument
24 super(destFile); in SourceBuildStep()
DJavacBuildStep.java58 File destFile = new File(destPath); in build() local
59 if (!destFile.exists() && !destFile.mkdirs()) in build()
/cts/tests/app/DownloadManagerInstallerTest/src/android/app/cts/
DDownloadManagerInstallerTest.java53 File destFile = new File(destPath, "test.obb"); in testSetDestinationUri_otherAppObbDir() local
54 deleteFromShell(destFile); in testSetDestinationUri_otherAppObbDir()
62 requestPublic.setDestinationUri(Uri.fromFile(destFile)); in testSetDestinationUri_otherAppObbDir()
69 assertSuccessfulDownload(id, destFile); in testSetDestinationUri_otherAppObbDir()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DFileUtils.java119 public static boolean copyToFile(InputStream inputStream, File destFile) { in copyToFile() argument
121 if (destFile.exists()) { in copyToFile()
122 destFile.delete(); in copyToFile()
124 FileOutputStream out = new FileOutputStream(destFile); in copyToFile()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DFileUtils.java123 public static boolean copyToFile(InputStream inputStream, File destFile) { in copyToFile() argument
125 if (destFile.exists()) { in copyToFile()
126 destFile.delete(); in copyToFile()
128 FileOutputStream out = new FileOutputStream(destFile); in copyToFile()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DTriggerContentTest.java146 public static void copyToFileOrThrow(InputStream inputStream, File destFile) in copyToFileOrThrow() argument
148 if (destFile.exists()) { in copyToFileOrThrow()
149 destFile.delete(); in copyToFileOrThrow()
151 destFile.getParentFile().mkdirs(); in copyToFileOrThrow()
152 FileOutputStream out = new FileOutputStream(destFile); in copyToFileOrThrow()
170 public Uri createAndAddImage(File destFile, InputStream image) throws IOException, in createAndAddImage() argument
172 copyToFileOrThrow(image, destFile); in createAndAddImage()
174 boolean success = scanner.scan(getContext(), destFile.toString(), "image/jpeg"); in createAndAddImage()
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/
DTranscodeTest.java312 File destFile = new File(DIR_CAMERA, "renamed_" + HEVC_FILE_NAME); in testRenameTranscodedFile_FilePath() local
318 assertTrue(modernFile.renameTo(destFile)); in testRenameTranscodedFile_FilePath()
319 assertTrue(destFile.exists()); in testRenameTranscodedFile_FilePath()
324 assertTrue(destFile.exists()); in testRenameTranscodedFile_FilePath()
328 destFile.delete(); in testRenameTranscodedFile_FilePath()
433 File destFile = new File(DIR_CAMERA, "renamed_" + HEVC_FILE_NAME); in testTranscodedCacheReuseAfterRename_FilePath() local
440 assertTrue(modernFile.renameTo(destFile)); in testTranscodedCacheReuseAfterRename_FilePath()
442 assertTranscode(destFile, false); in testTranscodedCacheReuseAfterRename_FilePath()
445 destFile.delete(); in testTranscodedCacheReuseAfterRename_FilePath()