| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IAndroidTarget
A version of Android that applications can target when building.
| Nested Class Summary | |
|---|---|
| static interface | IAndroidTarget.OptionalLibraryAn optional library provided by an Android Target | 
| Field Summary | |
|---|---|
| static int | ACTIONS_ACTIVITYOS Path to the "data/activity_actions.txt" file. | 
| static int | ACTIONS_BROADCASTOS Path to the "data/broadcast_actions.txt" file. | 
| static int | ACTIONS_SERVICEOS Path to the "data/service_actions.txt" file. | 
| static int | ANDROID_AIDLOS Path to the "framework.aidl" file. | 
| static int | ANDROID_JAROS Path to the "android.jar" file. | 
| static int | ANTOS Path to the "ant" folder which contains the ant build rules (ver 2 and above) | 
| static int | ATTRIBUTESOS Path to the "attrs.xml" file. | 
| static int | CATEGORIESOS Path to the "data/categories.txt" file. | 
| static int | DATAOS Path to the "data" folder which contains data & libraries for the SDK tools. | 
| static int | DOCSOS Path to the target specific docs | 
| static int | FONTSOS Path to the "data/fonts" folder. | 
| static int | LAYOUT_LIBOS Path to the "data/layoutlib.jar" library. | 
| static int | MANIFEST_ATTRIBUTESOS Path to the "attrs_manifest.xml" file. | 
| static int | RESOURCESOS Path to the "data/res" folder. | 
| static int | SAMPLESOS Path to the "samples" folder which contains sample projects. | 
| static int | SKINSOS Path to the "skins" folder which contains the emulator skins. | 
| static int | SOURCESOS Path to the "sources" folder. | 
| static int | TEMPLATESOS Path to the "templates" folder which contains the templates for new projects. | 
| static int | UI_AUTOMATOR_JAROS Path to the "uiautomator.jar" file. | 
| static int | WIDGETSOS Path to the "data/widgets.txt" file. | 
| Method Summary | |
|---|---|
|  boolean | canRunOn(IAndroidTarget target)Returns whether the given target is compatible with the receiver. | 
|  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. | 
|  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 interface java.lang.Comparable | 
|---|
| compareTo | 
| Field Detail | 
|---|
static final int ANDROID_JAR
static final int ANDROID_AIDL
static final int SAMPLES
static final int SKINS
static final int TEMPLATES
static final int DATA
static final int ATTRIBUTES
static final int MANIFEST_ATTRIBUTES
static final int LAYOUT_LIB
static final int RESOURCES
static final int FONTS
static final int WIDGETS
static final int ACTIONS_ACTIVITY
static final int ACTIONS_BROADCAST
static final int ACTIONS_SERVICE
static final int CATEGORIES
static final int SOURCES
static final int DOCS
static final int ANT
static final int UI_AUTOMATOR_JAR
| Method Detail | 
|---|
java.lang.String getLocation()
java.lang.String getVendor()
java.lang.String getName()
java.lang.String getFullName()
java.lang.String getClasspathName()
java.lang.String getShortClasspathName()
java.lang.String getDescription()
@NonNull com.android.sdklib.AndroidVersion getVersion()
java.lang.String getVersionName()
int getRevision()
boolean isPlatform()
IAndroidTarget getParent()
null if
 isPlatform() returns false
java.lang.String getPath(int pathId)
pathId - the id representing the path to return.
        Any of the constants defined in the IAndroidTarget interface can be used.java.io.File getFile(int pathId)
getPath(int) method except it returns a File.
pathId - the id representing the path to return.
        Any of the constants defined in the IAndroidTarget interface can be used.BuildToolInfo getBuildToolInfo()
@NonNull java.util.List<java.lang.String> getBootClasspath()
getPath(int) with
 ANDROID_JAR.
@NonNull java.util.List<IAndroidTarget.OptionalLibrary> getOptionalLibraries()
uses-library entry in the manifest.
IAndroidTarget.OptionalLibrary.getName()@NonNull java.util.List<IAndroidTarget.OptionalLibrary> getAdditionalLibraries()
uses-library entry in the manifest.
IAndroidTarget.OptionalLibrary.getName()boolean hasRenderingLibrary()
@NonNull java.io.File[] getSkins()
File.getName(). sdk/platforms/N/skins/name)sdk/addons/name/skins/name)sdk/system-images/platform-N/tag/abi/skins/name.)
@Nullable java.io.File getDefaultSkin()
File.getName().
java.lang.String[] getPlatformLibraries()
null if there is none.java.lang.String getProperty(java.lang.String name)
null if it was not found.java.util.Map<java.lang.String,java.lang.String> getProperties()
boolean canRunOn(IAndroidTarget target)
CupcakeTarget.canRunOn(DonutTarget) == true.
target - the IAndroidTarget to test.java.lang.String hashString()
AndroidTargetHash for helper methods to manipulate hash strings.
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||