From b73f3d66e5a080952b8775098c19571ed8b47ebc Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 9 Oct 2009 14:20:04 -0700 Subject: Fix adt-tests: remove UpdaterLogicTest Also reverts UpdaterLogic as package-private and adds some javadoc to it. SDK BUG 2179267 Change-Id: I19644cc4c99ac70598f3cbcfface2f19d9999931 --- .../sdkuilib/internal/repository/UpdaterLogic.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'sdkmanager/libs') 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. + *

+ * 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 computeUpdates( Collection selectedArchives, RepoSources sources, -- cgit v1.1