Home
last modified time | relevance | path

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

/cts/common/device-side/util/src/com/android/compatibility/common/util/
DFileUtils.java109 public static boolean copyToFile(InputStream inputStream, File destFile) { in copyToFile() argument
111 if (destFile.exists()) { in copyToFile()
112 destFile.delete(); in copyToFile()
114 FileOutputStream out = new FileOutputStream(destFile); in copyToFile()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DFileUtils.java109 public static boolean copyToFile(InputStream inputStream, File destFile) { in copyToFile() argument
111 if (destFile.exists()) { in copyToFile()
112 destFile.delete(); in copyToFile()
114 FileOutputStream out = new FileOutputStream(destFile); in copyToFile()
/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/JobScheduler/src/android/jobscheduler/cts/
DTriggerContentTest.java148 public static void copyToFileOrThrow(InputStream inputStream, File destFile) in copyToFileOrThrow() argument
150 if (destFile.exists()) { in copyToFileOrThrow()
151 destFile.delete(); in copyToFileOrThrow()
153 destFile.getParentFile().mkdirs(); in copyToFileOrThrow()
154 FileOutputStream out = new FileOutputStream(destFile); in copyToFileOrThrow()
172 public Uri createAndAddImage(File destFile, InputStream image) throws IOException, in createAndAddImage() argument
174 copyToFileOrThrow(image, destFile); in createAndAddImage()
176 boolean success = scanner.scan(getContext(), destFile.toString(), "image/jpeg"); in createAndAddImage()