Home
last modified time | relevance | path

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

/cts/tests/app/DownloadManagerInstallerTest/src/android/app/cts/
DDownloadManagerInstallerTest.java52 File destFile = new File(destPath, "test.obb"); in testSetDestinationUri_otherAppObbDir() local
53 deleteFromShell(destFile); in testSetDestinationUri_otherAppObbDir()
61 requestPublic.setDestinationUri(Uri.fromFile(destFile)); in testSetDestinationUri_otherAppObbDir()
68 assertSuccessfulDownload(id, destFile); in testSetDestinationUri_otherAppObbDir()
/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/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/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.java315 File destFile = new File(DIR_CAMERA, "renamed_" + HEVC_FILE_NAME); in testRenameTranscodedFile_FilePath() local
321 assertTrue(modernFile.renameTo(destFile)); in testRenameTranscodedFile_FilePath()
322 assertTrue(destFile.exists()); in testRenameTranscodedFile_FilePath()
327 assertTrue(destFile.exists()); in testRenameTranscodedFile_FilePath()
331 destFile.delete(); in testRenameTranscodedFile_FilePath()
436 File destFile = new File(DIR_CAMERA, "renamed_" + HEVC_FILE_NAME); in testTranscodedCacheReuseAfterRename_FilePath() local
443 assertTrue(modernFile.renameTo(destFile)); in testTranscodedCacheReuseAfterRename_FilePath()
445 assertTranscode(destFile, false); in testTranscodedCacheReuseAfterRename_FilePath()
448 destFile.delete(); in testTranscodedCacheReuseAfterRename_FilePath()