Class SystemImage

    • 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.
      • 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.
    • Constructor Detail

      • SystemImage

        public SystemImage​(@NonNull
                           java.nio.file.Path location,
                           @Nullable
                           IdDisplay tag,
                           @Nullable
                           IdDisplay vendor,
                           @NonNull
                           java.lang.String abi,
                           @NonNull
                           java.nio.file.Path[] skins,
                           @NonNull
                           com.android.repository.api.RepoPackage pkg)
    • Method Detail

      • getLocation

        @NonNull
        public java.nio.file.Path getLocation()
        Description copied from interface: ISystemImage
        Returns the actual location of an installed system image.
        Specified by:
        getLocation in interface ISystemImage
      • getAddonVendor

        @Nullable
        public IdDisplay getAddonVendor()
        Description copied from interface: ISystemImage
        Returns the vendor for an add-on's system image, or null for a platform system-image.
        Specified by:
        getAddonVendor in interface ISystemImage
      • getAbiType

        @NonNull
        public java.lang.String getAbiType()
        Description copied from interface: ISystemImage
        Returns the ABI type. See Abi for a full list. Cannot be null nor empty.
        Specified by:
        getAbiType in interface ISystemImage
      • getAndroidVersion

        @NonNull
        public com.android.sdklib.AndroidVersion getAndroidVersion()
        Description copied from interface: ISystemImage
        Returns the AndroidVersion of this system image.
        Specified by:
        getAndroidVersion in interface ISystemImage
      • getPackage

        @NonNull
        public com.android.repository.api.RepoPackage getPackage()
      • obsolete

        public boolean obsolete()
        Description copied from interface: ISystemImage
        Returns true if this system image is obsolete.
        Specified by:
        obsolete in interface ISystemImage
      • hasPlayStore

        public boolean hasPlayStore()
        Description copied from interface: ISystemImage
        Returns true if this system image supports Google Play Store.
        Specified by:
        hasPlayStore in interface ISystemImage
      • compareTo

        public int compareTo​(@NonNull
                             ISystemImage o)
        Specified by:
        compareTo in interface java.lang.Comparable<ISystemImage>
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getRevision

        @NonNull
        public com.android.repository.Revision getRevision()
        Description copied from interface: ISystemImage
        Returns the revision of this system image.
        Specified by:
        getRevision in interface ISystemImage