Interface IPkgDesc

  • All Superinterfaces:
    java.lang.Comparable<IPkgDesc>
    All Known Subinterfaces:
    IPkgDescExtra
    All Known Implementing Classes:
    PkgDesc, PkgDescExtra

    @Deprecated
    public interface IPkgDesc
    extends java.lang.Comparable<IPkgDesc>
    Deprecated.
    This is part of the old SDK manager framework. Use AndroidSdkHandler/RepoManager and associated classes instead.
    IPkgDesc keeps information on individual SDK packages (both local or remote packages definitions.)
    Packages have different attributes depending on their type.

    To create a new IPkgDesc, use one of the package-specific constructors provided by PkgDesc.Builder.newXxx().

    To query packages capabilities, rely on getType() and the IPkgDesc.hasXxx() methods provided by IPkgDesc.

    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      com.android.sdklib.AndroidVersion getAndroidVersion()
      Deprecated.
      Returns the package's AndroidVersion or null.
      java.lang.String getBaseInstallId()
      Deprecated.
      Returns a stable string id that can be used to reference this package, which excludes the preview suffix.
      java.nio.file.Path getCanonicalInstallFolder​(java.nio.file.Path sdkLocation)
      Deprecated.
      Returns the canonical location where such a package would be installed.
      java.lang.String getDescriptionShort()
      Deprecated.
       
      java.lang.String getDescriptionUrl()
      Deprecated.
       
      java.lang.String getInstallId()
      Deprecated.
      Returns a stable string id that can be used to reference this package, including a suffix indicating that this package is a preview if it is.
      com.android.repository.api.License getLicense()
      Deprecated.
       
      java.lang.String getListDescription()
      Deprecated.
       
      java.lang.String getListDisplay()
      Deprecated.
      Returns the list-display meta data of this package.
      com.android.repository.Revision getMinPlatformToolsRev()
      Deprecated.
      Returns the package's min-platform-tools-rev or null.
      com.android.repository.Revision getMinToolsRev()
      Deprecated.
      Returns the package's min-tools-rev or null.
      IdDisplay getName()
      Deprecated.
       
      java.lang.String getPath()
      Deprecated.
      Returns the package's path string or null.
      com.android.repository.Revision getRevision()
      Deprecated.
      Returns the package's Revision.
      IdDisplay getTag()
      Deprecated.
      Returns the package's tag id-display tuple or null.
      PkgType getType()
      Deprecated.
      Returns the type of the package.
      IdDisplay getVendor()
      Deprecated.
      Returns the package's vendor-id string or null.
      boolean hasAndroidVersion()
      Deprecated.
       
      boolean hasMinPlatformToolsRev()
      Deprecated.
       
      boolean hasMinToolsRev()
      Deprecated.
       
      boolean hasPath()
      Deprecated.
       
      boolean hasTag()
      Deprecated.
       
      boolean hasVendor()
      Deprecated.
       
      boolean isObsolete()
      Deprecated.
       
      boolean isPreview()
      Deprecated.
       
      boolean isUpdateFor​(IPkgDesc existingDesc)
      Deprecated.
      Indicates whether this package descriptor is an update for the given existing descriptor.
      boolean isUpdateFor​(IPkgDesc existingDesc, com.android.repository.Revision.PreviewComparison previewComparison)
      Deprecated.
      Indicates whether this package descriptor is an update for the given existing descriptor, using the given comparison method.
      • Methods inherited from interface java.lang.Comparable

        compareTo
    • Method Detail

      • getType

        @NonNull
        PkgType getType()
        Deprecated.
        Returns the type of the package.
        Returns:
        Returns one of the PkgType constants.
      • getListDisplay

        @Nullable
        java.lang.String getListDisplay()
        Deprecated.
        Returns the list-display meta data of this package.
        Returns:
        The list-display data, if available, or null.
      • getName

        @Nullable
        IdDisplay getName()
        Deprecated.
      • getDescriptionShort

        @Nullable
        java.lang.String getDescriptionShort()
        Deprecated.
      • getDescriptionUrl

        @Nullable
        java.lang.String getDescriptionUrl()
        Deprecated.
      • getLicense

        @Nullable
        com.android.repository.api.License getLicense()
        Deprecated.
      • isObsolete

        boolean isObsolete()
        Deprecated.
      • getRevision

        @NonNull
        com.android.repository.Revision getRevision()
        Deprecated.
        Returns the package's Revision.
      • getAndroidVersion

        @Nullable
        com.android.sdklib.AndroidVersion getAndroidVersion()
        Deprecated.
        Returns the package's AndroidVersion or null.
        Returns:
        A non-null value if hasAndroidVersion() is true; otherwise a null value.
      • getTag

        @Nullable
        IdDisplay getTag()
        Deprecated.
        Returns the package's tag id-display tuple or null.
        Returns:
        A non-null tag if hasTag() is true; otherwise a null value.
      • getVendor

        @Nullable
        IdDisplay getVendor()
        Deprecated.
        Returns the package's vendor-id string or null.
        Returns:
        A non-null value if hasVendor() is true; otherwise a null value.
      • getMinToolsRev

        @Nullable
        com.android.repository.Revision getMinToolsRev()
        Deprecated.
        Returns the package's min-tools-rev or null.
        Returns:
        A non-null value if hasMinToolsRev() is true; otherwise a null value.
      • getMinPlatformToolsRev

        @Nullable
        com.android.repository.Revision getMinPlatformToolsRev()
        Deprecated.
        Returns the package's min-platform-tools-rev or null.
        Returns:
        A non-null value if hasMinPlatformToolsRev() is true; otherwise null.
      • isUpdateFor

        boolean isUpdateFor​(@NonNull
                            IPkgDesc existingDesc)
        Deprecated.
        Indicates whether this package descriptor is an update for the given existing descriptor. Preview versions are never considered updates for non- previews, and vice versa.
        Parameters:
        existingDesc - A non-null existing descriptor.
        Returns:
        True if this package is an update for the given one.
      • isUpdateFor

        boolean isUpdateFor​(@NonNull
                            IPkgDesc existingDesc,
                            @NonNull
                            com.android.repository.Revision.PreviewComparison previewComparison)
        Deprecated.
        Indicates whether this package descriptor is an update for the given existing descriptor, using the given comparison method.
        Parameters:
        existingDesc - A non-null existing descriptor.
        previewComparison - The Revision.PreviewComparison method to use when comparing the packages.
        Returns:
        True if this package is an update for the given one.
      • getInstallId

        @NonNull
        java.lang.String getInstallId()
        Deprecated.
        Returns a stable string id that can be used to reference this package, including a suffix indicating that this package is a preview if it is.
      • getBaseInstallId

        java.lang.String getBaseInstallId()
        Deprecated.
        Returns a stable string id that can be used to reference this package, which excludes the preview suffix.
      • getCanonicalInstallFolder

        @NonNull
        java.nio.file.Path getCanonicalInstallFolder​(@NonNull
                                                     java.nio.file.Path sdkLocation)
        Deprecated.
        Returns the canonical location where such a package would be installed.
        Parameters:
        sdkLocation - The root of the SDK.
        Returns:
        the canonical location where such a package would be installed.
      • isPreview

        boolean isPreview()
        Deprecated.
        Returns:
        True if the revision of this package is a preview.
      • getListDescription

        java.lang.String getListDescription()
        Deprecated.
      • hasVendor

        boolean hasVendor()
        Deprecated.
      • hasAndroidVersion

        boolean hasAndroidVersion()
        Deprecated.
      • hasPath

        boolean hasPath()
        Deprecated.
      • hasTag

        boolean hasTag()
        Deprecated.
      • hasMinToolsRev

        boolean hasMinToolsRev()
        Deprecated.
      • hasMinPlatformToolsRev

        boolean hasMinPlatformToolsRev()
        Deprecated.