com.android.sdklib.repositoryv2.targets
Class SystemImageManager

java.lang.Object
  extended by com.android.sdklib.repositoryv2.targets.SystemImageManager

public class SystemImageManager
extends java.lang.Object

SystemImageManager finds SystemImages in the sdk, using a RepoManager


Constructor Summary
SystemImageManager(com.android.repository.api.RepoManager mgr, SysImgFactory factory, com.android.repository.io.FileOp fop)
          Create a new SystemImageManager using the given RepoManager.
factory is used to enable validation.
 
Method Summary
 java.util.Map<SystemImage,com.android.repository.api.LocalPackage> getImageMap()
          Gets a map from all our SystemImages to their containing LocalPackages.
 java.util.Collection<SystemImage> getImages()
          Gets all the SystemImages.
 java.util.Collection<SystemImage> lookup(IdDisplay tag, com.android.sdklib.AndroidVersion version, IdDisplay vendor)
          Lookup all the SystemImage with the given property values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemImageManager

public SystemImageManager(@NonNull
                          com.android.repository.api.RepoManager mgr,
                          @NonNull
                          SysImgFactory factory,
                          @NonNull
                          com.android.repository.io.FileOp fop)
Create a new SystemImageManager using the given RepoManager.
factory is used to enable validation.

Method Detail

getImages

@NonNull
public java.util.Collection<SystemImage> getImages()
Gets all the SystemImages.


getImageMap

public java.util.Map<SystemImage,com.android.repository.api.LocalPackage> getImageMap()
Gets a map from all our SystemImages to their containing LocalPackages.


lookup

@NonNull
public java.util.Collection<SystemImage> lookup(@NonNull
                                                        IdDisplay tag,
                                                        @NonNull
                                                        com.android.sdklib.AndroidVersion version,
                                                        @Nullable
                                                        IdDisplay vendor)
Lookup all the SystemImage with the given property values.