Home
last modified time | relevance | path

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

/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DGCSFileDownloaderFuncTest.java157 mDownloader.downloadFile(BUCKET_NAME, mRemoteRoot + "/" + FILE_NAME1); in testDownloadFile_streamOutput()
166 mDownloader.downloadFile(BUCKET_NAME, mRemoteRoot + "/" + "non_exist_file"); in testDownloadFile_streamOutput_notExist()
200 mDownloader.downloadFile( in testDownloadFile()
209 mDownloader.downloadFile( in testDownloadFile_nonExist()
220 mDownloader.downloadFile( in testDownloadFile_folder()
228 mDownloader.downloadFile( in testDownloadFile_folderNotsanitize()
267 mDownloader.downloadFile( in testDownloadFile_folder_nonExist()
278 File localFile = mDownloader.downloadFile(remotePath); in testCheckFreshness()
298 File localFile = mDownloader.downloadFile(remotePath); in testCheckFreshness_remoteNotExist()
306 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()
DRemoteZipTest.java75 .downloadFile( in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DFileDownloadCacheFuncTest.java94 mMockDownloader.downloadFile(EasyMock.eq(REMOTE_PATH), EasyMock.<File>anyObject()); in testFetchRemoteFile_concurrent()
155 .downloadFile(Mockito.eq(remotePath1), Mockito.any()); in testFetchRemoteFile_multiConcurrent()
158 .downloadFile(Mockito.eq(remotePath2), Mockito.any()); in testFetchRemoteFile_multiConcurrent()
161 .downloadFile(Mockito.eq(remotePath3), Mockito.any()); in testFetchRemoteFile_multiConcurrent()
193 Mockito.verify(mockDownloader1).downloadFile(Mockito.eq(remotePath1), Mockito.any()); in testFetchRemoteFile_multiConcurrent()
194 Mockito.verify(mockDownloader2).downloadFile(Mockito.eq(remotePath2), Mockito.any()); in testFetchRemoteFile_multiConcurrent()
195 Mockito.verify(mockDownloader3).downloadFile(Mockito.eq(remotePath3), Mockito.any()); in testFetchRemoteFile_multiConcurrent()
227 mMockDownloader.downloadFile(EasyMock.eq(REMOTE_PATH), EasyMock.<File>anyObject()); in testFetchRemoteFile_concurrentFail()
DFileDownloadCacheTest.java174 mMockDownloader.downloadFile(EasyMock.eq(REMOTE_PATH), in testFetchRemoteFile_downloadFailed()
197 mMockDownloader.downloadFile(EasyMock.eq(REMOTE_PATH), (File) EasyMock.anyObject()); in testFetchRemoteFile_downloadFailed_Runtime()
422 mMockDownloader.downloadFile(EasyMock.eq(remotePath), in setDownloadExpections()
/tools/tradefederation/core/src/com/android/tradefed/util/
DGCSFileDownloader.java73 public InputStream downloadFile(String bucketName, String filename) throws IOException { in downloadFile() method in GCSFileDownloader
116 public File downloadFile(String remoteFilePath) throws BuildRetrievalError { in downloadFile() method in GCSFileDownloader
119 downloadFile(remoteFilePath, destFile); in downloadFile()
128 public void downloadFile(String remotePath, File destFile) throws BuildRetrievalError { in downloadFile() method in GCSFileDownloader
130 downloadFile(pathParts[0], pathParts[1], destFile); in downloadFile()
282 void downloadFile(String bucketName, String remoteFilename, File localFile) in downloadFile() method in GCSFileDownloader
DRemoteZip.java115 mDownloader.downloadFile(mRemoteFilePath, partialZipFile, startOffset, size); in getZipEntries()
121 mDownloader.downloadFile( in getZipEntries()
173 mDownloader.downloadFile( in downloadFiles()
/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
DFileDownloadCache.java370 downloadFile(downloader, remotePath, cachedFile); in internalfetchRemoteFile()
396 private void downloadFile(IFileDownloader downloader, String remotePath, File cachedFile) in downloadFile() method in FileDownloadCache
399 downloader.downloadFile(remotePath, cachedFile); in downloadFile()
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
/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/global_configuration/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/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()