Home
last modified time | relevance | path

Searched refs:IRemoteFileResolver (Results 1 – 7 of 7) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/config/
DDynamicRemoteFileResolver.java21 import com.android.tradefed.config.remote.IRemoteFileResolver;
289 IRemoteFileResolver resolver = getResolver(protocol); in resolvePartialDownloadZip()
313 protected IRemoteFileResolver getResolver(String protocol) { in getResolver()
360 IRemoteFileResolver resolver = getResolver(protocol); in resolveRemoteFiles()
419 IRemoteFileResolver load(String scheme, Map<String, String> config); in load()
439 private @Nullable ImmutableMap<String, IRemoteFileResolver> mResolvers;
450 public synchronized IRemoteFileResolver load(String scheme, Map<String, String> config) { in load()
457 Map<String, IRemoteFileResolver> resolvers = new HashMap<>(); in load()
458 ServiceLoader<IRemoteFileResolver> serviceLoader = in load()
459 ServiceLoader.load(IRemoteFileResolver.class, mClassLoaderSupplier.get()); in load()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DDynamicRemoteFileResolverTest.java33 import com.android.tradefed.config.remote.IRemoteFileResolver;
103 private IRemoteFileResolver mMockResolver;
107 mMockResolver = EasyMock.createNiceMock(IRemoteFileResolver.class); in setUp()
111 public IRemoteFileResolver load(String scheme, Map<String, String> config) { in setUp()
589 ServiceLoader<IRemoteFileResolver> serviceLoader = in testServiceLoader()
590 ServiceLoader.load(IRemoteFileResolver.class); in testServiceLoader()
592 List<IRemoteFileResolver> listResolver = new ArrayList<>(); in testServiceLoader()
630 IRemoteFileResolver expected = loader.load(NullFileResolver.PROTOCOL, ImmutableMap.of()); in resolverLoader_multipleCallsReturnTheSameResolver()
632 IRemoteFileResolver actual = loader.load(NullFileResolver.PROTOCOL, ImmutableMap.of()); in resolverLoader_multipleCallsReturnTheSameResolver()
643 IRemoteFileResolver resolver1 = loader1.load(NullFileResolver.PROTOCOL, ImmutableMap.of()); in resolverLoader_differentInstancesReturnDifferentResolvers()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/config/remote/
DIRemoteFileResolver.java31 public interface IRemoteFileResolver { interface
DLocalFileResolver.java26 public class LocalFileResolver implements IRemoteFileResolver {
DGcsRemoteFileResolver.java31 public class GcsRemoteFileResolver implements IRemoteFileResolver {
DHttpRemoteFileResolver.java33 public class HttpRemoteFileResolver implements IRemoteFileResolver {
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DHostTestTest.java27 import com.android.tradefed.config.remote.IRemoteFileResolver;
95 private IRemoteFileResolver mMockResolver;
560 private IRemoteFileResolver mRemoteFileResolver;
566 public TestableHostTest(IRemoteFileResolver remoteFileResolver) { in TestableHostTest()
575 public IRemoteFileResolver load(String scheme, Map<String, String> config) { in createResolver()
591 mMockResolver = Mockito.mock(IRemoteFileResolver.class); in setUp()