summaryrefslogtreecommitdiffstats
path: root/tools/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
commit31d0121f684fbd5eba4c9ad612b850732b659f40 (patch)
tree8a9799475e9055c3e4833602b7a69997a5bc50b8 /tools/sdkmanager
parent4d59d18abaf5546ab1c2cccd11655073df937c18 (diff)
downloadandroid_development-31d0121f684fbd5eba4c9ad612b850732b659f40.tar.gz
android_development-31d0121f684fbd5eba4c9ad612b850732b659f40.tar.bz2
android_development-31d0121f684fbd5eba4c9ad612b850732b659f40.zip
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 'tools/sdkmanager')
-rwxr-xr-xtools/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdaterLogic.java16
1 files changed, 15 insertions, 1 deletions
diff --git a/tools/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdaterLogic.java b/tools/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdaterLogic.java
index ff4b9c5a1..9bdd2a726 100755
--- a/tools/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdaterLogic.java
+++ b/tools/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,