/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | GCSFileDownloaderFuncTest.java | 157 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 …]
|
D | GCSFileDownloaderTest.java | 42 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()
|
D | GCSFileUploaderFuncTest.java | 129 return mDownloader.downloadFile(BUCKET_NAME, gcsFilePath); in pullFileFromGcs()
|
D | RemoteZipTest.java | 75 .downloadFile( in setUp()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/build/ |
D | FileDownloadCacheFuncTest.java | 94 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()
|
D | FileDownloadCacheTest.java | 174 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/ |
D | GCSFileDownloader.java | 73 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
|
D | RemoteZip.java | 115 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/ |
D | IFileDownloader.java | 35 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
|
D | FileDownloadCache.java | 370 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()
|
D | FileDownloadCacheWrapper.java | 42 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/ |
D | GCSHostResourceManagerTest.java | 54 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/ |
D | GCSConfigurationServer.java | 190 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/ |
D | GCSDownloaderHelper.java | 40 return getGCSFileDownloader().downloadFile(gsPath); in fetchTestResource()
|
/tools/tradefederation/core/src/com/android/tradefed/host/gcs/ |
D | GCSHostResourceManager.java | 49 return getGCSFileDownloader().downloadFile(value); in fetchHostResource()
|