public class SystemImage extends java.lang.Object implements ISystemImage
IAndroidTarget.
A system image has an installation path, a location type and an ABI type.ISystemImage.LocationType| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ANDROID_PREFIX |
| Constructor and Description |
|---|
SystemImage(java.io.File location,
ISystemImage.LocationType locationType,
java.lang.String abiType)
Creates a
SystemImage description for an existing system image folder. |
SystemImage(SdkManager sdkManager,
IAndroidTarget target,
ISystemImage.LocationType locationType,
java.lang.String abiType)
Creates a
SystemImage description for a non-existing system image folder. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ISystemImage other) |
java.lang.String |
getAbiType()
Returns the ABI type.
|
static java.io.File |
getCanonicalFolder(java.lang.String sdkOsPath,
AndroidVersion platformVersion,
java.lang.String abiType)
Static helper method that returns the canonical path for a system-image that uses
the
ISystemImage.LocationType.IN_SYSTEM_IMAGE location type. |
java.io.File |
getLocation()
Returns the actual location of an installed system image.
|
ISystemImage.LocationType |
getLocationType()
Indicates the location strategy for this system image in the SDK.
|
java.lang.String |
toString()
Generates a string representation suitable for debug purposes.
|
public static final java.lang.String ANDROID_PREFIX
public SystemImage(java.io.File location,
ISystemImage.LocationType locationType,
java.lang.String abiType)
SystemImage description for an existing system image folder.location - The location of an installed system image.locationType - Where the system image folder is located for this ABI.abiType - The ABI type. For example, one of SdkConstants.ABI_ARMEABI,
SdkConstants.ABI_ARMEABI_V7A, SdkConstants.ABI_INTEL_ATOM or
SdkConstants.ABI_MIPS.public SystemImage(SdkManager sdkManager, IAndroidTarget target, ISystemImage.LocationType locationType, java.lang.String abiType)
SystemImage description for a non-existing 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.abiType - The ABI type. For example, one of SdkConstants.ABI_ARMEABI,
SdkConstants.ABI_ARMEABI_V7A, SdkConstants.ABI_INTEL_ATOM or
SdkConstants.ABI_MIPS.java.lang.IllegalArgumentException - if the target used for
ISystemImage.LocationType.IN_SYSTEM_IMAGE is not a PlatformTarget.public static java.io.File getCanonicalFolder(java.lang.String sdkOsPath,
AndroidVersion platformVersion,
java.lang.String abiType)
ISystemImage.LocationType.IN_SYSTEM_IMAGE location type.
Such an image is located in SDK/system-images/android-N/abiType.
For this reason this method requires the root SDK as well as the platform and the ABI type.sdkOsPath - The OS path to the SDK.platformVersion - The platform version.abiType - An optional ABI type. If null, the parent directory is returned.public java.io.File getLocation()
getLocation in interface ISystemImagepublic ISystemImage.LocationType getLocationType()
getLocationType in interface ISystemImagepublic java.lang.String getAbiType()
SdkConstants.ABI_ARMEABI,
SdkConstants.ABI_ARMEABI_V7A, SdkConstants.ABI_INTEL_ATOM or
SdkConstants.ABI_MIPS.
Cannot be null nor empty.getAbiType in interface ISystemImagepublic int compareTo(ISystemImage other)
compareTo in interface java.lang.Comparable<ISystemImage>public java.lang.String toString()
toString in class java.lang.Object