|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.sdklib.repositoryv2.targets.AddonTarget
public class AddonTarget
Represents an add-on target in the SDK. An add-on extends a standard PlatformTarget
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.android.sdklib.IAndroidTarget |
---|
IAndroidTarget.OptionalLibrary |
Field Summary |
---|
Fields inherited from interface com.android.sdklib.IAndroidTarget |
---|
ACTIONS_ACTIVITY, ACTIONS_BROADCAST, ACTIONS_SERVICE, ANDROID_AIDL, ANDROID_JAR, ANT, ATTRIBUTES, CATEGORIES, DATA, DOCS, FONTS, LAYOUT_LIB, MANIFEST_ATTRIBUTES, RESOURCES, SAMPLES, SKINS, SOURCES, TEMPLATES, UI_AUTOMATOR_JAR, WIDGETS |
Constructor Summary | |
---|---|
AddonTarget(com.android.repository.api.LocalPackage p,
IAndroidTarget baseTarget,
SystemImageManager sysImgMgr,
com.android.repository.api.ProgressIndicator progress,
com.android.repository.io.FileOp fop)
Construct a new AddonTarget . |
Method Summary | |
---|---|
boolean |
canRunOn(IAndroidTarget target)
Returns whether the given target is compatible with the receiver. |
int |
compareTo(IAndroidTarget target)
|
java.util.List<IAndroidTarget.OptionalLibrary> |
getAdditionalLibraries()
Returns the additional libraries for this target. |
java.util.List<java.lang.String> |
getBootClasspath()
Returns the boot classpath for this target. |
BuildToolInfo |
getBuildToolInfo()
Returns a BuildToolInfo for backward compatibility. |
java.lang.String |
getClasspathName()
Returns the name to be displayed when representing all the libraries this target contains. |
java.io.File |
getDefaultSkin()
Returns the default skin folder for this target. |
java.lang.String |
getDescription()
Returns the description of the target. |
java.io.File |
getFile(int pathId)
Returns the path of a platform component. |
java.lang.String |
getFullName()
Returns the full name of the target, possibly including vendor name. |
java.lang.String |
getLocation()
Returns the target location. |
java.lang.String |
getName()
Returns the name of the target. |
java.util.List<IAndroidTarget.OptionalLibrary> |
getOptionalLibraries()
Returns a list of optional libraries for this target. |
IAndroidTarget |
getParent()
Returns the parent target. |
java.lang.String |
getPath(int pathId)
Returns the path of a platform component. |
java.lang.String[] |
getPlatformLibraries()
Returns the list of libraries available for a given platform. |
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Returns all the properties associated with this target. |
java.lang.String |
getProperty(java.lang.String name)
Return the value of a given property for this target. |
int |
getRevision()
Returns the revision number for the target. |
java.lang.String |
getShortClasspathName()
Returns the name to be displayed when representing all the libraries this target contains. |
java.io.File[] |
getSkins()
Returns the available skin folders for this target. |
ISystemImage |
getSystemImage(IdDisplay tag,
java.lang.String abiType)
Returns the system image information for the given tag and abiType . |
ISystemImage[] |
getSystemImages()
Returns an array of system images for this target. |
java.lang.String |
getVendor()
Returns the name of the vendor of the target. |
com.android.sdklib.AndroidVersion |
getVersion()
Returns the version of the target. |
java.lang.String |
getVersionName()
Returns the platform version as a readable string. |
java.lang.String |
hashString()
Returns a string able to uniquely identify a target. |
boolean |
hasRenderingLibrary()
Returns whether the target is able to render layouts. |
boolean |
isPlatform()
Returns true if the target is a standard Android platform. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AddonTarget(@NonNull com.android.repository.api.LocalPackage p, @NonNull IAndroidTarget baseTarget, @NonNull SystemImageManager sysImgMgr, @NonNull com.android.repository.api.ProgressIndicator progress, @NonNull com.android.repository.io.FileOp fop)
AddonTarget
.
p
- The LocalPackage
containing this target.baseTarget
- The IAndroidTarget
on which this addon is based.sysImgMgr
- A SystemImageManager
, used to find ISystemImage
s associated
associated with this target.progress
- fop
- FileOp
to use for file operations. For normal use should be FileOpUtils.create()
.Method Detail |
---|
public java.lang.String getLocation()
IAndroidTarget
getLocation
in interface IAndroidTarget
public java.lang.String getVendor()
IAndroidTarget
getVendor
in interface IAndroidTarget
public java.lang.String getName()
IAndroidTarget
getName
in interface IAndroidTarget
public java.lang.String getFullName()
IAndroidTarget
getFullName
in interface IAndroidTarget
public java.lang.String getClasspathName()
IAndroidTarget
getClasspathName
in interface IAndroidTarget
public java.lang.String getShortClasspathName()
IAndroidTarget
getShortClasspathName
in interface IAndroidTarget
public java.lang.String getDescription()
IAndroidTarget
getDescription
in interface IAndroidTarget
@NonNull public com.android.sdklib.AndroidVersion getVersion()
IAndroidTarget
getVersion
in interface IAndroidTarget
public java.lang.String getVersionName()
IAndroidTarget
getVersionName
in interface IAndroidTarget
public int getRevision()
IAndroidTarget
getRevision
in interface IAndroidTarget
public boolean isPlatform()
IAndroidTarget
isPlatform
in interface IAndroidTarget
public IAndroidTarget getParent()
IAndroidTarget
null
if
IAndroidTarget.isPlatform()
returns false
getParent
in interface IAndroidTarget
public java.lang.String getPath(int pathId)
IAndroidTarget
getPath
in interface IAndroidTarget
pathId
- the id representing the path to return.
Any of the constants defined in the IAndroidTarget
interface can be used.public java.io.File getFile(int pathId)
IAndroidTarget
IAndroidTarget.getPath(int)
method except it returns a File
.
getFile
in interface IAndroidTarget
pathId
- the id representing the path to return.
Any of the constants defined in the IAndroidTarget
interface can be used.public BuildToolInfo getBuildToolInfo()
IAndroidTarget
getBuildToolInfo
in interface IAndroidTarget
@NonNull public java.util.List<java.lang.String> getBootClasspath()
IAndroidTarget
IAndroidTarget.getPath(int)
with
IAndroidTarget.ANDROID_JAR
.
getBootClasspath
in interface IAndroidTarget
@NonNull public java.util.List<IAndroidTarget.OptionalLibrary> getOptionalLibraries()
IAndroidTarget
uses-library
entry in the manifest.
getOptionalLibraries
in interface IAndroidTarget
IAndroidTarget.OptionalLibrary.getName()
@NonNull public java.util.List<IAndroidTarget.OptionalLibrary> getAdditionalLibraries()
IAndroidTarget
uses-library
entry in the manifest.
getAdditionalLibraries
in interface IAndroidTarget
IAndroidTarget.OptionalLibrary.getName()
public boolean hasRenderingLibrary()
IAndroidTarget
hasRenderingLibrary
in interface IAndroidTarget
@NonNull public java.io.File[] getSkins()
IAndroidTarget
File.getName()
. sdk/platforms/N/skins/name
)sdk/addons/name/skins/name
)sdk/system-images/platform-N/tag/abi/skins/name
.)
getSkins
in interface IAndroidTarget
@Nullable public java.io.File getDefaultSkin()
IAndroidTarget
File.getName()
.
getDefaultSkin
in interface IAndroidTarget
public java.lang.String[] getPlatformLibraries()
IAndroidTarget
getPlatformLibraries
in interface IAndroidTarget
null
if there is none.public java.lang.String getProperty(java.lang.String name)
IAndroidTarget
getProperty
in interface IAndroidTarget
null
if it was not found.public java.util.Map<java.lang.String,java.lang.String> getProperties()
IAndroidTarget
getProperties
in interface IAndroidTarget
public ISystemImage[] getSystemImages()
IAndroidTarget
getSystemImages
in interface IAndroidTarget
@Nullable public ISystemImage getSystemImage(@NonNull IdDisplay tag, @NonNull java.lang.String abiType)
IAndroidTarget
tag
and abiType
.
getSystemImage
in interface IAndroidTarget
tag
- A tag id-display.abiType
- An ABI type string.
ISystemImage
for the requested abiType
or null if none exists for this type.public boolean canRunOn(IAndroidTarget target)
IAndroidTarget
CupcakeTarget.canRunOn(DonutTarget) == true.
canRunOn
in interface IAndroidTarget
target
- the IAndroidTarget to test.public java.lang.String hashString()
IAndroidTarget
AndroidTargetHash
for helper methods to manipulate hash strings.
hashString
in interface IAndroidTarget
public int compareTo(@NonNull IAndroidTarget target)
compareTo
in interface java.lang.Comparable<IAndroidTarget>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |