public class SystemImage extends java.lang.Object implements ISystemImage
ISystemImage
based on a RepoPackage
(either system image, platform, or addon).ISystemImage.LocationType
Modifier and Type | Field and Description |
---|---|
static IdDisplay |
DEFAULT_TAG
Tag to apply to system images if none other is specified.
|
static IdDisplay |
GLASS_TAG
Tag to apply to system images for Glass.
|
static IdDisplay |
GOOGLE_APIS_TAG
Tag to apply to system images that include Google APIs.
|
static IdDisplay |
GOOGLE_APIS_X86_TAG
A separate tag to apply to system images that include Google APIs on x86 systems.
|
static IdDisplay |
PLAY_STORE_TAG
Tag to apply to system images that have Google Play Store.
|
static IdDisplay |
TV_TAG
Tag to apply to system images for Android TV.
|
static IdDisplay |
WEAR_TAG
Tag to apply to system images for wearables.
|
WEAR_CN_DIRECTORY
Constructor and Description |
---|
SystemImage(java.io.File location,
IdDisplay tag,
IdDisplay vendor,
java.lang.String abi,
java.io.File[] skins,
com.android.repository.api.RepoPackage pkg) |
Modifier and Type | Method and Description |
---|---|
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() |
boolean |
hasPlayStore()
Returns true if this system image supports Google Play Store.
|
boolean |
obsolete()
Returns true if this system image is obsolete.
|
public static final IdDisplay DEFAULT_TAG
public static final IdDisplay WEAR_TAG
public static final IdDisplay TV_TAG
public static final IdDisplay GLASS_TAG
public static final IdDisplay GOOGLE_APIS_TAG
PLAY_STORE_TAG
, WEAR_TAG
, and TV_TAG
each imply the presence of Google APIs.
In addition, there is one system image that uses GOOGLE_APIS_X86_TAG
.public static final IdDisplay PLAY_STORE_TAG
public static final IdDisplay GOOGLE_APIS_X86_TAG
@NonNull public java.io.File getLocation()
ISystemImage
getLocation
in interface ISystemImage
@NonNull public IdDisplay getTag()
ISystemImage
getTag
in interface ISystemImage
@Nullable public IdDisplay getAddonVendor()
ISystemImage
getAddonVendor
in interface ISystemImage
@NonNull public java.lang.String getAbiType()
ISystemImage
Abi
for a full list.
Cannot be null nor empty.getAbiType
in interface ISystemImage
@NonNull public java.io.File[] getSkins()
ISystemImage
ISystemImage.LocationType.IN_SYSTEM_IMAGE
. IAndroidTarget.getSkins()
list.getSkins
in interface ISystemImage
@NonNull public com.android.sdklib.AndroidVersion getAndroidVersion()
ISystemImage
AndroidVersion
of this system image.getAndroidVersion
in interface ISystemImage
@NonNull public com.android.repository.api.RepoPackage getPackage()
public boolean obsolete()
ISystemImage
obsolete
in interface ISystemImage
public boolean hasPlayStore()
ISystemImage
hasPlayStore
in interface ISystemImage
public int compareTo(@NonNull ISystemImage o)
compareTo
in interface java.lang.Comparable<ISystemImage>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
@NonNull public com.android.repository.Revision getRevision()
ISystemImage
getRevision
in interface ISystemImage