Home
last modified time | relevance | path

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

/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DGCSFileDownloaderFuncTest.java155 mDownloader.downloadFile(BUCKET_NAME, mRemoteRoot + "/" + FILE_NAME1); in testDownloadFile_streamOutput()
164 mDownloader.downloadFile(BUCKET_NAME, mRemoteRoot + "/" + "non_exist_file"); in testDownloadFile_streamOutput_notExist()
198 mDownloader.downloadFile( in testDownloadFile()
207 mDownloader.downloadFile( in testDownloadFile_nonExist()
218 mDownloader.downloadFile( in testDownloadFile_folder()
226 mDownloader.downloadFile( in testDownloadFile_folderNotsanitize()
262 mDownloader.downloadFile( in testDownloadFile_folder_nonExist()
273 File localFile = mDownloader.downloadFile(remotePath); in testCheckFreshness()
293 File localFile = mDownloader.downloadFile(remotePath); in testCheckFreshness_remoteNotExist()
301 File localFolder = mDownloader.downloadFile(remotePath); in testCheckFreshness_remoteFolderNotExist()
[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()
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DFileDownloadCacheFuncTest.java93 mMockDownloader.downloadFile(EasyMock.eq(REMOTE_PATH), EasyMock.<File>anyObject()); in testFetchRemoteFile_concurrent()
154 .downloadFile(Mockito.eq(remotePath1), Mockito.any()); in testFetchRemoteFile_multiConcurrent()
157 .downloadFile(Mockito.eq(remotePath2), Mockito.any()); in testFetchRemoteFile_multiConcurrent()
160 .downloadFile(Mockito.eq(remotePath3), Mockito.any()); in testFetchRemoteFile_multiConcurrent()
192 Mockito.verify(mockDownloader1).downloadFile(Mockito.eq(remotePath1), Mockito.any()); in testFetchRemoteFile_multiConcurrent()
193 Mockito.verify(mockDownloader2).downloadFile(Mockito.eq(remotePath2), Mockito.any()); in testFetchRemoteFile_multiConcurrent()
194 Mockito.verify(mockDownloader3).downloadFile(Mockito.eq(remotePath3), Mockito.any()); in testFetchRemoteFile_multiConcurrent()
225 mMockDownloader.downloadFile(EasyMock.eq(REMOTE_PATH), EasyMock.<File>anyObject()); in testFetchRemoteFile_concurrentFail()
DFileDownloadCacheTest.java145 mMockDownloader.downloadFile(EasyMock.eq(REMOTE_PATH), in testFetchRemoteFile_downloadFailed()
165 mMockDownloader.downloadFile(EasyMock.eq(REMOTE_PATH), (File) EasyMock.anyObject()); in testFetchRemoteFile_downloadFailed_Runtime()
372 mMockDownloader.downloadFile(EasyMock.eq(remotePath), in setDownloadExpections()
/tools/tradefederation/core/src/com/android/tradefed/util/
DGCSFileDownloader.java70 public InputStream downloadFile(String bucketName, String filename) throws IOException { in downloadFile() method in GCSFileDownloader
113 public File downloadFile(String remoteFilePath) throws BuildRetrievalError { in downloadFile() method in GCSFileDownloader
116 downloadFile(remoteFilePath, destFile); in downloadFile()
125 public void downloadFile(String remotePath, File destFile) throws BuildRetrievalError { in downloadFile() method in GCSFileDownloader
127 downloadFile(pathParts[0], pathParts[1], destFile); in downloadFile()
273 void downloadFile(String bucketName, String remoteFilename, File localFile) in downloadFile() method in GCSFileDownloader
/tools/tradefederation/core/tests/src/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/config/gcs/
DGCSConfigurationServer.java190 return getFileDownloader().downloadFile(mBucketName, name); in downloadFileToInputStream()
196 protected File downloadFile(String name) throws ConfigurationException { in downloadFile() method in GCSConfigurationServer
198 return getFileDownloader().downloadFile(String.format("gs://%s/%s", mBucketName, name)); in downloadFile()
/tools/tradefederation/core/src/com/android/tradefed/build/
DIFileDownloader.java33 public File downloadFile(String remoteFilePath) throws BuildRetrievalError; in downloadFile() method
44 public void downloadFile(String relativeRemotePath, File destFile) throws BuildRetrievalError; in downloadFile() method
DFileDownloadCacheWrapper.java40 public File downloadFile(String remoteFilePath) throws BuildRetrievalError { in downloadFile() method in FileDownloadCacheWrapper
48 public void downloadFile(String remotePath, File destFile) throws BuildRetrievalError { in downloadFile() method in FileDownloadCacheWrapper
DFileDownloadCache.java275 downloadFile(downloader, remotePath, cachedFile); in fetchRemoteFile()
301 private void downloadFile(IFileDownloader downloader, String remotePath, File cachedFile) in downloadFile() method in FileDownloadCache
304 downloader.downloadFile(remotePath, cachedFile); in downloadFile()
/tools/tradefederation/core/src/com/android/tradefed/build/gcs/
DGCSDownloaderHelper.java40 return getGCSFileDownloader().downloadFile(gsPath); in fetchTestResource()
/tools/tradefederation/core/src/com/android/tradefed/host/gcs/
DGCSHostResourceManager.java49 return getGCSFileDownloader().downloadFile(value); in fetchHostResource()