com.android.sdklib.repositoryv2.targets
Class SystemImage

java.lang.Object
  extended by com.android.sdklib.repositoryv2.targets.SystemImage
All Implemented Interfaces:
ISystemImage, java.lang.Comparable<ISystemImage>

public class SystemImage
extends java.lang.Object
implements ISystemImage

ISystemImage based on a RepoPackage (either system image, platform, or addon).


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.android.sdklib.ISystemImage
ISystemImage.LocationType
 
Field Summary
static IdDisplay DEFAULT_TAG
          Tag to apply to system images if none other is specified.
 
Constructor Summary
SystemImage(java.io.File location, IdDisplay tag, IdDisplay vendor, java.lang.String abi, java.io.File[] skins, com.android.repository.api.RepoPackage pkg)
           
 
Method Summary
 int compareTo(ISystemImage o)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getAbiType()
          Returns the ABI type.
 IdDisplay getAddonVendor()
          Returns the vendor for an add-on's system image, or null for a platform system-image.
 com.android.sdklib.AndroidVersion getAndroidVersion()
          Returns the AndroidVersion of this system image.
 java.io.File getLocation()
          Returns the actual location of an installed system image.
 com.android.repository.api.RepoPackage getPackage()
           
 com.android.repository.Revision getRevision()
          Returns the revision of this system image.
 java.io.File[] getSkins()
          Returns the skins embedded in the system image.
 IdDisplay getTag()
          Returns the tag of the system image.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TAG

public static final IdDisplay DEFAULT_TAG
Tag to apply to system images if none other is specified.

Constructor Detail

SystemImage

public SystemImage(@NonNull
                   java.io.File location,
                   @Nullable
                   IdDisplay tag,
                   @Nullable
                   IdDisplay vendor,
                   @NonNull
                   java.lang.String abi,
                   @NonNull
                   java.io.File[] skins,
                   @NonNull
                   com.android.repository.api.RepoPackage pkg)
Method Detail

getLocation

@NonNull
public java.io.File getLocation()
Description copied from interface: ISystemImage
Returns the actual location of an installed system image.

Specified by:
getLocation in interface ISystemImage

getTag

@NonNull
public IdDisplay getTag()
Description copied from interface: ISystemImage
Returns the tag of the system image.

Specified by:
getTag in interface ISystemImage

getAddonVendor

@Nullable
public IdDisplay getAddonVendor()
Description copied from interface: ISystemImage
Returns the vendor for an add-on's system image, or null for a platform system-image.

Specified by:
getAddonVendor in interface ISystemImage

getAbiType

@NonNull
public java.lang.String getAbiType()
Description copied from interface: ISystemImage
Returns the ABI type. See Abi for a full list. Cannot be null nor empty.

Specified by:
getAbiType in interface ISystemImage

getSkins

@NonNull
public java.io.File[] getSkins()
Description copied from interface: ISystemImage
Returns the skins embedded in the system image.
Only supported by system images using ISystemImage.LocationType.IN_SYSTEM_IMAGE.
The skins listed here are merged in the IAndroidTarget.getSkins() list.

Specified by:
getSkins in interface ISystemImage
Returns:
A non-null skin list, possibly empty.

getAndroidVersion

@NonNull
public com.android.sdklib.AndroidVersion getAndroidVersion()
Description copied from interface: ISystemImage
Returns the AndroidVersion of this system image.

Specified by:
getAndroidVersion in interface ISystemImage

getPackage

@NonNull
public com.android.repository.api.RepoPackage getPackage()

compareTo

public int compareTo(ISystemImage o)
Specified by:
compareTo in interface java.lang.Comparable<ISystemImage>

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getRevision

@NonNull
public com.android.repository.Revision getRevision()
Description copied from interface: ISystemImage
Returns the revision of this system image.

Specified by:
getRevision in interface ISystemImage