|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.sdklib.repository.remote.RemoteSdk
public class RemoteSdk
This class keeps information on the remote SDK repository.
Constructor Summary | |
---|---|
RemoteSdk()
|
Method Summary | |
---|---|
com.google.common.collect.Multimap<PkgType,RemotePkgInfo> |
fetch(com.android.sdklib.internal.repository.sources.SdkSources sources,
com.android.utils.ILogger logger)
Fetches the remote list of packages. |
protected com.android.sdklib.internal.repository.DownloadCache |
getDownloadCache()
Returns the DownloadCache
Extracted so that we can override this in unit tests. |
protected com.android.sdklib.internal.repository.updater.SettingsController |
getSettingsController()
Returns the SettingsController
Extracted so that we can override this in unit tests. |
protected com.android.sdklib.internal.repository.updater.SettingsController |
initSettingsController()
Initializes the SettingsController
Extracted so that we can override this in unit tests. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteSdk()
Method Detail |
---|
public com.google.common.collect.Multimap<PkgType,RemotePkgInfo> fetch(@NonNull com.android.sdklib.internal.repository.sources.SdkSources sources, @NonNull com.android.utils.ILogger logger)
SettingsController
which
dictates whether the DownloadCache
is used and whether HTTP
is enforced over HTTPS.
The call may block on network access. Callers will likely want to invoke this
from a thread and make sure the logger is thread-safe with regard to UI updates.
sources
- The sources to download from.logger
- A logger to report status & progress.
PkgType
to RemotePkgInfo
describing the remote packages available for install/download.protected com.android.sdklib.internal.repository.DownloadCache getDownloadCache()
DownloadCache
Extracted so that we can override this in unit tests.
protected com.android.sdklib.internal.repository.updater.SettingsController getSettingsController()
SettingsController
Extracted so that we can override this in unit tests.
protected com.android.sdklib.internal.repository.updater.SettingsController initSettingsController()
SettingsController
Extracted so that we can override this in unit tests.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |