aboutsummaryrefslogtreecommitdiffstats
path: root/sdkmanager
diff options
context:
space:
mode:
authorRaphael <raphael@google.com>2009-10-09 14:20:04 -0700
committerRaphael <raphael@google.com>2009-10-09 14:32:48 -0700
commitb73f3d66e5a080952b8775098c19571ed8b47ebc (patch)
tree2ca9b03fd8a0c6b3323b788aa41b33d63d038c24 /sdkmanager
parent0820b9f3932c5fda5943f603407e731c9a8768f6 (diff)
downloadsdk-b73f3d66e5a080952b8775098c19571ed8b47ebc.zip
sdk-b73f3d66e5a080952b8775098c19571ed8b47ebc.tar.gz
sdk-b73f3d66e5a080952b8775098c19571ed8b47ebc.tar.bz2
Fix adt-tests: remove UpdaterLogicTest
Also reverts UpdaterLogic as package-private and adds some javadoc to it. SDK BUG 2179267 Change-Id: I19644cc4c99ac70598f3cbcfface2f19d9999931
Diffstat (limited to 'sdkmanager')
-rwxr-xr-xsdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdaterLogic.java16
1 files changed, 15 insertions, 1 deletions
diff --git a/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdaterLogic.java b/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdaterLogic.java
index ff4b9c5..9bdd2a7 100755
--- a/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdaterLogic.java
+++ b/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdaterLogic.java
@@ -29,10 +29,24 @@ import com.android.sdklib.internal.repository.Package.UpdateInfo;
import java.util.ArrayList;
import java.util.Collection;
-public /* public for continuous tests */ class UpdaterLogic {
+/**
+ * The logic to compute which packages to install, based on the choices
+ * made by the user. This adds dependent packages as needed.
+ * <p/>
+ * When the user doesn't provide a selection, looks at local package to find
+ * those that can be updated and compute dependencies too.
+ */
+class UpdaterLogic {
private RepoSources mSources;
+ /**
+ * Compute which packages to install by taking the user selection
+ * and adding dependent packages as needed.
+ *
+ * When the user doesn't provide a selection, looks at local package to find
+ * those that can be updated and compute dependencies too.
+ */
public ArrayList<ArchiveInfo> computeUpdates(
Collection<Archive> selectedArchives,
RepoSources sources,