com.android.sdklib.repository.local
Class LocalSysImgPkgInfo
java.lang.Object
com.android.sdklib.repository.local.LocalPkgInfo
com.android.sdklib.repository.local.LocalSysImgPkgInfo
- All Implemented Interfaces:
- com.android.sdklib.internal.repository.IDescription, com.android.sdklib.internal.repository.IListDescription, java.lang.Comparable<LocalPkgInfo>
public class LocalSysImgPkgInfo
- extends LocalPkgInfo
Local system-image package, for a given platform's AndroidVersion
and given ABI.
The package itself has a major revision.
There should be only one for a given android platform version & ABI.
Methods inherited from class com.android.sdklib.repository.local.LocalPkgInfo |
compareTo, equals, getListDescription, getLoadError, getLocalDir, getLocalSdk, getLongDescription, getPackage, getShortDescription, getSourceProperties, getUpdate, hashCode, hasLoadError, hasUpdate, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
LocalSysImgPkgInfo
public LocalSysImgPkgInfo(@NonNull
LocalSdk localSdk,
@NonNull
java.io.File localDir,
@NonNull
java.util.Properties sourceProps,
@NonNull
AndroidVersion version,
@Nullable
IdDisplay tag,
@NonNull
java.lang.String abi,
@NonNull
MajorRevision revision)
getDesc
@NonNull
public IPkgDesc getDesc()
- Description copied from class:
LocalPkgInfo
- Returns the
IPkgDesc
describing this package.
- Specified by:
getDesc
in class LocalPkgInfo
extractTagFromProps
@NonNull
public static IdDisplay extractTagFromProps(java.util.Properties props)
- Extracts the tag id & display from the properties.
If missing, uses the "default" tag id.
tagIdToDisplay
@NonNull
public static java.lang.String tagIdToDisplay(@NonNull
java.lang.String tagId)
- Computes a display-friendly tag string based on the tag id.
This is typically used when there's no tag-display attribute.
- Parameters:
tagId
- A non-null tag id to sanitize for display.
- Returns:
- The tag id with all non-alphanum symbols replaced by spaces and trimmed.