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 resolveRemoteFiles() local
48 downloadedFile = in resolveRemoteFiles()
52 downloader.doGet(path, new FileOutputStream(downloadedFile)); in resolveRemoteFiles()
53 return DynamicRemoteFileResolver.unzipIfRequired(downloadedFile, queryArgs); in resolveRemoteFiles()
55 FileUtil.deleteFile(downloadedFile); in resolveRemoteFiles()
DGcsRemoteFileResolver.java44 File downloadedFile = getDownloader().fetchTestResource(path); in resolveRemoteFiles() local
46 return DynamicRemoteFileResolver.unzipIfRequired(downloadedFile, query); in resolveRemoteFiles()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DDynamicRemoteFileResolverTest.java134 Set<File> downloadedFile = setter.validateRemoteFilePath(mResolver); in testResolve() local
138 assertThat(downloadedFile) in testResolve()
163 Set<File> downloadedFile = setter.validateRemoteFilePath(mResolver); in testResolveWithQuery() local
164 assertEquals(1, downloadedFile.size()); in testResolveWithQuery()
165 File downloaded = downloadedFile.iterator().next(); in testResolveWithQuery()
191 Set<File> downloadedFile = setter.validateRemoteFilePath(mResolver); in testResolveWithQuery_overrides() local
192 assertEquals(1, downloadedFile.size()); in testResolveWithQuery_overrides()
193 File downloaded = downloadedFile.iterator().next(); in testResolveWithQuery_overrides()
219 Set<File> downloadedFile = setter.validateRemoteFilePath(mResolver); in testResolveOptional() local
220 assertEquals(0, downloadedFile.size()); in testResolveOptional()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/config/
DDynamicRemoteFileResolver.java155 File downloadedFile = resolveRemoteFiles(consideredFile, option); in validateRemoteFilePath() local
156 if (downloadedFile != null) { in validateRemoteFilePath()
157 downloadedFiles.add(downloadedFile); in validateRemoteFilePath()
160 field.set(obj, downloadedFile); in validateRemoteFilePath()
177 File downloadedFile = resolveRemoteFiles(consideredFile, option); in validateRemoteFilePath() local
178 if (downloadedFile != null) { in validateRemoteFilePath()
179 downloadedFiles.add(downloadedFile); in validateRemoteFilePath()
182 c.add(downloadedFile); in validateRemoteFilePath()
325 public static final File unzipIfRequired(File downloadedFile, Map<String, String> query) in unzipIfRequired() argument
330 if (ZipUtil.isZipFileValid(downloadedFile, false)) { in unzipIfRequired()
[all …]