|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.sdklib.SystemImage
public class SystemImage
Describes a system image as used by an IAndroidTarget
.
A system image has an installation path, a location type, a tag and an ABI type.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.android.sdklib.ISystemImage |
---|
ISystemImage.LocationType |
Field Summary | |
---|---|
static IdDisplay |
DEFAULT_TAG
|
Constructor Summary | |
---|---|
SystemImage(java.io.File location,
ISystemImage.LocationType locationType,
IdDisplay tagName,
IdDisplay addonVendor,
java.lang.String abiType,
java.io.File[] skins,
com.android.repository.Revision revision)
Creates a SystemImage description for an existing system image folder,
for either platform or add-on. |
|
SystemImage(java.io.File location,
ISystemImage.LocationType locationType,
IdDisplay tag,
java.lang.String abiType,
java.io.File[] skins,
com.android.repository.Revision revision)
Creates a SystemImage description for an existing platform system image folder. |
|
SystemImage(SdkManager sdkManager,
IAndroidTarget target,
ISystemImage.LocationType locationType,
IdDisplay tag,
IdDisplay addonVendor,
java.lang.String abiType,
java.io.File[] skins,
com.android.repository.Revision revision)
Creates a SystemImage description for a non-existing system image folder,
for either platform or add-on. |
|
SystemImage(SdkManager sdkManager,
IAndroidTarget target,
ISystemImage.LocationType locationType,
IdDisplay tag,
java.lang.String abiType,
java.io.File[] skins,
com.android.repository.Revision revision)
Creates a SystemImage description for a non-existing platform system image folder. |
Method Summary | |
---|---|
int |
compareTo(ISystemImage other)
Sort by tag & ABI name, then arbitrarily (but consistently). |
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. |
java.io.File |
getLocation()
Returns the actual location of an installed system image. |
ISystemImage.LocationType |
getLocationType()
Deprecated. |
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()
|
java.lang.String |
toString()
Generates a string representation suitable for debug purposes. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final IdDisplay DEFAULT_TAG
Constructor Detail |
---|
public SystemImage(@NonNull java.io.File location, @NonNull ISystemImage.LocationType locationType, @NonNull IdDisplay tag, @NonNull java.lang.String abiType, @NonNull java.io.File[] skins, @NonNull com.android.repository.Revision revision)
SystemImage
description for an existing platform system image folder.
location
- The location of an installed system image.locationType
- Where the system image folder is located for this ABI.tag
- The tag of the system-image. Use DEFAULT_TAG
for backward compatibility.abiType
- The ABI type. For example, one of SdkConstants.ABI_ARMEABI
,
SdkConstants.ABI_ARMEABI_V7A
, SdkConstants.ABI_INTEL_ATOM
or
SdkConstants.ABI_MIPS
.skins
- A non-null, possibly empty list of skins specific to this system image.revision
- The revision of this image.public SystemImage(@NonNull java.io.File location, @NonNull ISystemImage.LocationType locationType, @NonNull IdDisplay tagName, @Nullable IdDisplay addonVendor, @NonNull java.lang.String abiType, @NonNull java.io.File[] skins, @NonNull com.android.repository.Revision revision)
SystemImage
description for an existing system image folder,
for either platform or add-on.
location
- The location of an installed system image.locationType
- Where the system image folder is located for this ABI.tagName
- The tag of the system-image.
For an add-on, the tag-id must match the add-on's name-id.addonVendor
- Non-null add-on vendor name. Null for platforms.abiType
- The ABI type. For example, one of SdkConstants.ABI_ARMEABI
,
SdkConstants.ABI_ARMEABI_V7A
, SdkConstants.ABI_INTEL_ATOM
or
SdkConstants.ABI_MIPS
.skins
- A non-null, possibly empty list of skins specific to this system image.revision
- The revision of this image.public SystemImage(@NonNull SdkManager sdkManager, @NonNull IAndroidTarget target, @NonNull ISystemImage.LocationType locationType, @NonNull IdDisplay tag, @NonNull java.lang.String abiType, @NonNull java.io.File[] skins, @NonNull com.android.repository.Revision revision)
SystemImage
description for a non-existing platform system image folder.
The actual location is computed based on the locationType
.
sdkManager
- The current SDK manager.locationType
- Where the system image folder is located for this ABI.tag
- The tag of the system-image. Use DEFAULT_TAG
for backward compatibility.abiType
- The ABI type. For example, one of SdkConstants.ABI_ARMEABI
,
SdkConstants.ABI_ARMEABI_V7A
, SdkConstants.ABI_INTEL_ATOM
or
SdkConstants.ABI_MIPS
.skins
- A non-null, possibly empty list of skins specific to this system image.revision
- The revision of this image.
java.lang.IllegalArgumentException
- if the target
used for
ISystemImage.LocationType.IN_SYSTEM_IMAGE
is not a PlatformTarget
.public SystemImage(@NonNull SdkManager sdkManager, @NonNull IAndroidTarget target, @NonNull ISystemImage.LocationType locationType, @NonNull IdDisplay tag, @Nullable IdDisplay addonVendor, @NonNull java.lang.String abiType, @NonNull java.io.File[] skins, @NonNull com.android.repository.Revision revision)
SystemImage
description for a non-existing system image folder,
for either platform or add-on.
The actual location is computed based on the locationType
.
sdkManager
- The current SDK manager.locationType
- Where the system image folder is located for this ABI.tag
- The tag of the system-image. Use DEFAULT_TAG
for backward compatibility.addonVendor
- Non-null add-on vendor name. Null for platforms.abiType
- The ABI type. For example, one of SdkConstants.ABI_ARMEABI
,
SdkConstants.ABI_ARMEABI_V7A
, SdkConstants.ABI_INTEL_ATOM
or
SdkConstants.ABI_MIPS
.skins
- A non-null, possibly empty list of skins specific to this system image.revision
- The revision of this image.
java.lang.IllegalArgumentException
- if the target
used for
ISystemImage.LocationType.IN_SYSTEM_IMAGE
is not a PlatformTarget
.Method Detail |
---|
@NonNull public java.io.File getLocation()
getLocation
in interface ISystemImage
@NonNull @Deprecated public ISystemImage.LocationType getLocationType()
getLocationType
in interface ISystemImage
@NonNull public IdDisplay getTag()
getTag
in interface ISystemImage
@Nullable public IdDisplay getAddonVendor()
getAddonVendor
in interface ISystemImage
@NonNull public java.lang.String getAbiType()
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.repository.Revision getRevision()
ISystemImage
getRevision
in interface ISystemImage
public int compareTo(ISystemImage other)
compareTo
in interface java.lang.Comparable<ISystemImage>
@NonNull public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |