|
|||||||||
| 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 and an ABI type.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.android.sdklib.ISystemImage |
|---|
ISystemImage.LocationType |
| Field Summary | |
|---|---|
static java.lang.String |
ANDROID_PREFIX
|
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ANDROID_PREFIX
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||