Searched refs:isFresh (Results 1 – 7 of 7) sorted by relevance
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | GCSFileDownloaderFuncTest.java | 274 Assert.assertTrue(mDownloader.isFresh(localFile, remotePath)); in testCheckFreshness() 280 Assert.assertFalse(mDownloader.isFresh(new File("/not/exist"), remotePath)); in testCheckFreshness_notExist() 286 Assert.assertFalse(mDownloader.isFresh(new File("/not/exist"), remotePath)); in testCheckFreshness_folderNotExist() 294 Assert.assertFalse(mDownloader.isFresh(localFile, remoteNotExistPath)); in testCheckFreshness_remoteNotExist() 302 Assert.assertFalse(mDownloader.isFresh(localFolder, remoteNotExistPath)); in testCheckFreshness_remoteFolderNotExist() 311 Assert.assertFalse(mDownloader.isFresh(localFile, remotePath)); in testCheckFreshness_notFresh() 318 Assert.assertTrue(mDownloader.isFresh(localFolder, remotePath)); in testCheckFreshness_folder() 333 Assert.assertFalse(mDownloader.isFresh(localFolder, remotePath)); in testCheckFreshness_folder_addFile() 343 Assert.assertFalse(mDownloader.isFresh(localFolder, remotePath)); in testCheckFreshness_folder_removeFile() 351 Assert.assertFalse(mDownloader.isFresh(localFolder, remotePath)); in testCheckFreshness_folder_changeFile()
|
/tools/tradefederation/core/src/com/android/tradefed/build/ |
D | FileDownloadCacheWrapper.java | 54 public boolean isFresh(File localFile, String remoteFilePath) throws BuildRetrievalError { in isFresh() method in FileDownloadCacheWrapper 55 return mDelegateDownloader.isFresh(localFile, remoteFilePath); in isFresh()
|
D | IFileDownloader.java | 56 public default boolean isFresh(File localFile, String remoteFilePath) in isFresh() method
|
D | FileDownloadCache.java | 264 && !downloader.isFresh(cachedFile, remotePath)) { in fetchRemoteFile()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/build/ |
D | FileDownloadCacheFuncTest.java | 95 EasyMock.expect(mMockDownloader.isFresh(EasyMock.anyObject(), EasyMock.eq(REMOTE_PATH))) in testFetchRemoteFile_concurrent() 227 EasyMock.expect(mMockDownloader.isFresh(EasyMock.anyObject(), EasyMock.eq(REMOTE_PATH))) in testFetchRemoteFile_concurrentFail()
|
D | FileDownloadCacheTest.java | 380 mMockDownloader.isFresh( in setFreshnessExpections()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | GCSFileDownloader.java | 144 public boolean isFresh(File localFile, String remotePath) throws BuildRetrievalError { in isFresh() method in GCSFileDownloader
|