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 ISystemImages in the sdk, either using a RepoManager or (until adoption of RepoManager is complete), a LocalSdk.


Constructor Summary
SystemImageManager(LocalSdk sdk)
          Create a new SystemImageManager using the given (legacy) LocalSdk.
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<ISystemImage,com.android.repository.api.LocalPackage> getImageMap(com.android.repository.api.ProgressIndicator progress)
          Gets a map from all our ISystemImages to their containing LocalPackages.
 java.util.Collection<ISystemImage> getImages(com.android.repository.api.ProgressIndicator progress)
          Gets all the ISystemImages.
 java.util.Collection<ISystemImage> lookup(IdDisplay tag, AndroidVersion version, IdDisplay vendor, com.android.repository.api.ProgressIndicator progress)
          Lookup all the ISystemImage 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
                          LocalSdk sdk)
Create a new SystemImageManager using the given (legacy) LocalSdk. This should be removed once adoption of RepoManager is complete.


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<ISystemImage> getImages(@NonNull
                                                            com.android.repository.api.ProgressIndicator progress)
Gets all the ISystemImages.


getImageMap

@NonNull
public java.util.Map<ISystemImage,com.android.repository.api.LocalPackage> getImageMap(@NonNull
                                                                                               com.android.repository.api.ProgressIndicator progress)
Gets a map from all our ISystemImages to their containing LocalPackages.


lookup

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