Class LocalAddonPkgInfo
- java.lang.Object
-
- com.android.sdklib.repository.legacy.local.LocalPkgInfo
-
- com.android.sdklib.repository.legacy.local.LocalPlatformPkgInfo
-
- com.android.sdklib.repository.legacy.local.LocalAddonPkgInfo
-
- All Implemented Interfaces:
java.lang.Comparable<LocalPkgInfo>
@Deprecated public class LocalAddonPkgInfo extends LocalPlatformPkgInfo
Deprecated.
-
-
Field Summary
-
Fields inherited from class com.android.sdklib.repository.legacy.local.LocalPlatformPkgInfo
PROP_VERSION_CODENAME, PROP_VERSION_RELEASE, PROP_VERSION_SDK
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description IPkgDescgetDesc()Deprecated.Returns theIPkgDescdescribing this package.java.lang.StringgetTargetHash()Deprecated.The "path" of an add-on is its Target Hash.static java.lang.StringsanitizeDisplayToNameId(java.lang.String displayName)Deprecated.Computes a sanitized name-id based on an addon name-display.-
Methods inherited from class com.android.sdklib.repository.legacy.local.LocalPlatformPkgInfo
getLayoutlibApi
-
Methods inherited from class com.android.sdklib.repository.legacy.local.LocalPkgInfo
compareTo, equals, getListDescription, getLoadError, getLocalDir, getLocalSdk, getSourceProperties, hashCode, toString
-
-
-
-
Method Detail
-
getDesc
@NonNull public IPkgDesc getDesc()
Deprecated.Description copied from class:LocalPkgInfoReturns theIPkgDescdescribing this package.- Overrides:
getDescin classLocalPlatformPkgInfo
-
getTargetHash
@NonNull public java.lang.String getTargetHash()
Deprecated.The "path" of an add-on is its Target Hash.- Overrides:
getTargetHashin classLocalPlatformPkgInfo
-
sanitizeDisplayToNameId
public static java.lang.String sanitizeDisplayToNameId(@NonNull java.lang.String displayName)Deprecated.Computes a sanitized name-id based on an addon name-display. This is used to provide compatibility with older add-ons that lacks the new fields.- Parameters:
displayName- A name-display field or a old-style name field.- Returns:
- A non-null sanitized name-id that fits in the
[a-zA-Z0-9_-]+pattern.
-
-