Home
last modified time | relevance | path

Searched refs:downloadedFile (Results 1 – 4 of 4) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/config/remote/
DHttpRemoteFileResolver.java46 File downloadedFile = null; in resolveRemoteFile() local
48 downloadedFile = in resolveRemoteFile()
53 new FileOutputStream(downloadedFile)); in resolveRemoteFile()
55 DynamicRemoteFileResolver.unzipIfRequired(downloadedFile, args.getQueryArgs())); in resolveRemoteFile()
57 FileUtil.deleteFile(downloadedFile); in resolveRemoteFile()
/tools/tradefederation/core/javatests/com/android/tradefed/config/
DDynamicRemoteFileResolverTest.java138 Set<File> downloadedFile = setter.validateRemoteFilePath(mResolver); in testResolve() local
142 assertThat(downloadedFile) in testResolve()
167 Set<File> downloadedFile = setter.validateRemoteFilePath(mResolver); in testResolveWithQuery() local
168 assertEquals(1, downloadedFile.size()); in testResolveWithQuery()
169 File downloaded = downloadedFile.iterator().next(); in testResolveWithQuery()
193 Set<File> downloadedFile = setter.validateRemoteFilePath(mResolver); in testResolveOptional() local
194 assertEquals(0, downloadedFile.size()); in testResolveOptional()
213 Set<File> downloadedFile = setter.validateRemoteFilePath(mResolver); in testResolve_remoteFileList() local
214 assertEquals(1, downloadedFile.size()); in testResolve_remoteFileList()
215 File downloaded = downloadedFile.iterator().next(); in testResolve_remoteFileList()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/config/
DDynamicRemoteFileResolver.java208 File downloadedFile = resolvedFile.getResolvedFile(); in validateRemoteFilePath() local
210 downloadedFiles.add(downloadedFile); in validateRemoteFilePath()
214 field.set(obj, downloadedFile); in validateRemoteFilePath()
235 File downloadedFile = resolvedFile.getResolvedFile(); in validateRemoteFilePath() local
237 downloadedFiles.add(downloadedFile); in validateRemoteFilePath()
241 c.add(downloadedFile); in validateRemoteFilePath()
406 public static final File unzipIfRequired(File downloadedFile, Map<String, String> query) in unzipIfRequired() argument
410 if (downloadedFile.isDirectory()) { in unzipIfRequired()
411 return downloadedFile; in unzipIfRequired()
415 new CloseableTraceScope("unzip " + downloadedFile.getName())) { in unzipIfRequired()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/config/remote/
DGcsRemoteFileResolverTest.java205 File downloadedFile = null; in testResolve_notZip_parallel() local
224 downloadedFile = resolvedFile.getResolvedFile(); in testResolve_notZip_parallel()
225 if (downloadedFile instanceof ExtendedFile) { in testResolve_notZip_parallel()
226 ((ExtendedFile) downloadedFile).waitForDownload(); in testResolve_notZip_parallel()
234 FileUtil.recursiveDelete(downloadedFile); in testResolve_notZip_parallel()