Class SystemImage
- java.lang.Object
-
- com.android.sdklib.repository.targets.SystemImage
-
- All Implemented Interfaces:
ISystemImage,java.lang.Comparable<ISystemImage>
public class SystemImage extends java.lang.Object implements ISystemImage
ISystemImagebased on aRepoPackage(either system image, platform, or addon).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.android.sdklib.ISystemImage
ISystemImage.LocationType
-
-
Field Summary
Fields Modifier and Type Field Description static IdDisplayANDROID_TV_TAGTag to apply to system images for Android TV.static IdDisplayAUTOMOTIVE_PLAY_STORE_TAGTag to apply to system images for Android Automotive that have Google Play Store.static IdDisplayAUTOMOTIVE_TAGTag to apply to system images for Android Automotive.static IdDisplayCHROMEOS_TAGTag to apply to system images for Chrome OS device.static IdDisplayDEFAULT_TAGTag to apply to system images if none other is specified.static IdDisplayGOOGLE_APIS_TAGTag to apply to system images that include Google APIs.static IdDisplayGOOGLE_APIS_X86_TAGA separate tag to apply to system images that include Google APIs on x86 systems.static IdDisplayGOOGLE_TV_TAGTag to apply to system images for Google TV.static IdDisplayPLAY_STORE_TAGTag to apply to system images that have Google Play Store.static IdDisplayWEAR_TAGTag to apply to system images for wearables.-
Fields inherited from interface com.android.sdklib.ISystemImage
WEAR_CN_DIRECTORY
-
-
Constructor Summary
Constructors Constructor Description SystemImage(java.nio.file.Path location, IdDisplay tag, IdDisplay vendor, java.lang.String abi, java.nio.file.Path[] skins, com.android.repository.api.RepoPackage pkg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ISystemImage o)booleanequals(java.lang.Object o)java.lang.StringgetAbiType()Returns the ABI type.IdDisplaygetAddonVendor()Returns the vendor for an add-on's system image, or null for a platform system-image.com.android.sdklib.AndroidVersiongetAndroidVersion()Returns theAndroidVersionof this system image.java.nio.file.PathgetLocation()Returns the actual location of an installed system image.com.android.repository.api.RepoPackagegetPackage()com.android.repository.RevisiongetRevision()Returns the revision of this system image.java.nio.file.Path[]getSkins()Returns the skins embedded in the system image.IdDisplaygetTag()Returns the tag of the system image.inthashCode()booleanhasPlayStore()Returns true if this system image supports Google Play Store.booleanobsolete()Returns true if this system image is obsolete.
-
-
-
Field Detail
-
DEFAULT_TAG
public static final IdDisplay DEFAULT_TAG
Tag to apply to system images if none other is specified.
-
WEAR_TAG
public static final IdDisplay WEAR_TAG
Tag to apply to system images for wearables.
-
ANDROID_TV_TAG
public static final IdDisplay ANDROID_TV_TAG
Tag to apply to system images for Android TV.
-
GOOGLE_TV_TAG
public static final IdDisplay GOOGLE_TV_TAG
Tag to apply to system images for Google TV.
-
AUTOMOTIVE_TAG
public static final IdDisplay AUTOMOTIVE_TAG
Tag to apply to system images for Android Automotive.
-
AUTOMOTIVE_PLAY_STORE_TAG
public static final IdDisplay AUTOMOTIVE_PLAY_STORE_TAG
Tag to apply to system images for Android Automotive that have Google Play Store.
-
CHROMEOS_TAG
public static final IdDisplay CHROMEOS_TAG
Tag to apply to system images for Chrome OS device.
-
GOOGLE_APIS_TAG
public static final IdDisplay GOOGLE_APIS_TAG
Tag to apply to system images that include Google APIs. Note thatPLAY_STORE_TAG,WEAR_TAG, andANDROID_TV_TAGeach imply the presence of Google APIs. In addition, there is one system image that usesGOOGLE_APIS_X86_TAG.
-
PLAY_STORE_TAG
public static final IdDisplay PLAY_STORE_TAG
Tag to apply to system images that have Google Play Store.
-
GOOGLE_APIS_X86_TAG
public static final IdDisplay GOOGLE_APIS_X86_TAG
A separate tag to apply to system images that include Google APIs on x86 systems. Note this tag was used for api 19 and has been used since.
-
-
Method Detail
-
getLocation
@NonNull public java.nio.file.Path getLocation()
Description copied from interface:ISystemImageReturns the actual location of an installed system image.- Specified by:
getLocationin interfaceISystemImage
-
getTag
@NonNull public IdDisplay getTag()
Description copied from interface:ISystemImageReturns the tag of the system image.- Specified by:
getTagin interfaceISystemImage
-
getAddonVendor
@Nullable public IdDisplay getAddonVendor()
Description copied from interface:ISystemImageReturns the vendor for an add-on's system image, or null for a platform system-image.- Specified by:
getAddonVendorin interfaceISystemImage
-
getAbiType
@NonNull public java.lang.String getAbiType()
Description copied from interface:ISystemImageReturns the ABI type. SeeAbifor a full list. Cannot be null nor empty.- Specified by:
getAbiTypein interfaceISystemImage
-
getSkins
@NonNull public java.nio.file.Path[] getSkins()
Description copied from interface:ISystemImageReturns the skins embedded in the system image.
Only supported by system images usingISystemImage.LocationType.IN_SYSTEM_IMAGE.
The skins listed here are merged in theIAndroidTarget.getSkins()list.- Specified by:
getSkinsin interfaceISystemImage- Returns:
- A non-null skin list, possibly empty.
-
getAndroidVersion
@NonNull public com.android.sdklib.AndroidVersion getAndroidVersion()
Description copied from interface:ISystemImageReturns theAndroidVersionof this system image.- Specified by:
getAndroidVersionin interfaceISystemImage
-
getPackage
@NonNull public com.android.repository.api.RepoPackage getPackage()
-
obsolete
public boolean obsolete()
Description copied from interface:ISystemImageReturns true if this system image is obsolete.- Specified by:
obsoletein interfaceISystemImage
-
hasPlayStore
public boolean hasPlayStore()
Description copied from interface:ISystemImageReturns true if this system image supports Google Play Store.- Specified by:
hasPlayStorein interfaceISystemImage
-
compareTo
public int compareTo(@NonNull ISystemImage o)- Specified by:
compareToin interfacejava.lang.Comparable<ISystemImage>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getRevision
@NonNull public com.android.repository.Revision getRevision()
Description copied from interface:ISystemImageReturns the revision of this system image.- Specified by:
getRevisionin interfaceISystemImage
-
-