Home
last modified time | relevance | path

Searched refs:downloadFile (Results 1 – 17 of 17) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/util/
DGCSFileDownloaderFuncTest.java194 mDownloader.downloadFile(BUCKET_NAME, mRemoteRoot + "/" + FILE_NAME1); in testDownloadFile_streamOutput()
203 mDownloader.downloadFile(BUCKET_NAME, mRemoteRoot + "/" + "non_exist_file"); in testDownloadFile_streamOutput_notExist()
237 mDownloader.downloadFile( in testDownloadFile()
246 mDownloader.downloadFile( in testDownloadFile_nonExist()
257 mDownloader.downloadFile( in testDownloadFile_folder()
265 mDownloader.downloadFile( in testDownloadFile_folderNotsanitize()
319 mDownloader.downloadFile( in testDownloadFile_folder_nonExist()
331 mDownloader.downloadFile( in testDownloadFile_size0Folder()
351 mDownloader.downloadFile( in testDownloadFile_folderWithOnlyOneFile()
369 mDownloader.downloadFile( in testDownloadFile_emptyFile()
[all …]
DGCSFileDownloaderTest.java42 void downloadFile(String bucketName, String filename, File localFile) in setUp()
62 localFile = mGCSFileDownloader.downloadFile("gs://bucket/this/is/a/file.txt"); in testDownloadFile()
73 mGCSFileDownloader.downloadFile("/this/is/a/file.txt"); in testDownloadFile_nonGCSFile()
DGCSFileUploaderFuncTest.java129 return mDownloader.downloadFile(BUCKET_NAME, gcsFilePath); in pullFileFromGcs()
DRemoteZipTest.java75 .downloadFile( in setUp()
/tools/tradefederation/core/src/com/android/tradefed/build/
DIFileDownloader.java35 public File downloadFile(String remoteFilePath) throws BuildRetrievalError; in downloadFile() method
46 public void downloadFile(String relativeRemotePath, File destFile) throws BuildRetrievalError; in downloadFile() method
60 public default void downloadFile( in downloadFile() method
DFileDownloadCacheWrapper.java42 public File downloadFile(String remoteFilePath) throws BuildRetrievalError { in downloadFile() method in FileDownloadCacheWrapper
48 public void downloadFile(String remoteFilePath, File destFile) throws BuildRetrievalError { in downloadFile() method in FileDownloadCacheWrapper
DFileDownloadCache.java375 downloadFile(downloader, remotePath, cachedFile); in internalfetchRemoteFile()
401 private void downloadFile(IFileDownloader downloader, String remotePath, File cachedFile) in downloadFile() method in FileDownloadCache
404 downloader.downloadFile(remotePath, cachedFile); in downloadFile()
/tools/tradefederation/core/javatests/com/android/tradefed/build/
DFileDownloadCacheFuncTest.java98 .downloadFile(Mockito.eq(REMOTE_PATH), Mockito.<File>any()); in testFetchRemoteFile_concurrent()
120 inOrder.verify(mMockDownloader).downloadFile(Mockito.eq(REMOTE_PATH), Mockito.<File>any()); in testFetchRemoteFile_concurrent()
159 .downloadFile(Mockito.eq(remotePath1), Mockito.any()); in testFetchRemoteFile_multiConcurrent()
162 .downloadFile(Mockito.eq(remotePath2), Mockito.any()); in testFetchRemoteFile_multiConcurrent()
165 .downloadFile(Mockito.eq(remotePath3), Mockito.any()); in testFetchRemoteFile_multiConcurrent()
197 Mockito.verify(mockDownloader1).downloadFile(Mockito.eq(remotePath1), Mockito.any()); in testFetchRemoteFile_multiConcurrent()
198 Mockito.verify(mockDownloader2).downloadFile(Mockito.eq(remotePath2), Mockito.any()); in testFetchRemoteFile_multiConcurrent()
199 Mockito.verify(mockDownloader3).downloadFile(Mockito.eq(remotePath3), Mockito.any()); in testFetchRemoteFile_multiConcurrent()
230 .downloadFile(Mockito.eq(REMOTE_PATH), Mockito.<File>any()); in testFetchRemoteFile_concurrentFail()
264 .downloadFile(Mockito.eq(REMOTE_PATH), Mockito.<File>any()); in testFetchRemoteFile_concurrentFail()
DFileDownloadCacheTest.java193 .downloadFile(eq(REMOTE_PATH), any(File.class)); in testFetchRemoteFile_downloadFailed()
212 .downloadFile(eq(REMOTE_PATH), any(File.class)); in testFetchRemoteFile_downloadFailed_Runtime()
441 .downloadFile(eq(remotePath), Mockito.<File>any()); in setDownloadExpectations()
/tools/tradefederation/core/javatests/com/android/tradefed/host/gcs/
DGCSHostResourceManagerTest.java54 public void downloadFile(String relativeRemotePath, File destFile) in setUp()
64 public File downloadFile(String remoteFilePath) in setUp()
69 downloadFile(remoteFilePath, destFile); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/build/gcs/
DGCSDownloaderHelper.java43 getGCSFileDownloader().downloadFile(gsPath, destFile); in fetchTestResource()
59 return getGCSFileDownloader().downloadFile(gsPath); in fetchTestResource()
/tools/tradefederation/core/global_configuration/com/android/tradefed/config/gcs/
DGCSConfigurationServer.java193 return getFileDownloader().downloadFile(mBucketName, name); in downloadFileToInputStream()
199 protected File downloadFile(String name) throws ConfigurationException { in downloadFile() method in GCSConfigurationServer
201 return getFileDownloader().downloadFile(String.format("gs://%s/%s", mBucketName, name)); in downloadFile()
/tools/tradefederation/core/src/com/android/tradefed/util/
DGCSFileDownloader.java137 public File downloadFile(String remoteFilePath) throws BuildRetrievalError { in downloadFile() method in GCSFileDownloader
140 downloadFile(remoteFilePath, destFile); in downloadFile()
155 public InputStream downloadFile(String bucketName, String filename) throws IOException { in downloadFile() method in GCSFileDownloader
172 public void downloadFile(String remotePath, File destFile) throws BuildRetrievalError { in downloadFile() method in GCSFileDownloader
174 downloadFile(pathParts[0], pathParts[1], destFile); in downloadFile()
178 void downloadFile(String bucketName, String remoteFilename, File localFile) in downloadFile() method in GCSFileDownloader
DRemoteZip.java139 mDownloader.downloadFile(mRemoteFilePath, partialZipFile, startOffset, size); in getZipEntries()
145 mDownloader.downloadFile( in getZipEntries()
253 mDownloader.downloadFile( in downloadFiles()
/tools/tradefederation/core/src/com/android/tradefed/host/gcs/
DGCSHostResourceManager.java49 return getGCSFileDownloader().downloadFile(value); in fetchHostResource()
/tools/tradefederation/core/javatests/com/android/tradefed/device/cloud/
DOxygenUtilTest.java69 when(downloader.downloadFile(expectedUrl)).thenReturn(tmpDir); in testDownloadLaunchFailureLogs()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DOxygenUtil.java181 localDir = mDownloader.downloadFile(remoteFilePath); in downloadLaunchFailureLogs()