# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Inherited Constants | Fields | Inherited Fields | Ctors | Methods | Inherited Methods

# InstrumentationInfo

`public class InstrumentationInfo`
`` `extends PackageItemInfo` `implements Parcelable`

java.lang.Object
↳ | android.content.pm.PackageItemInfo
| ↳ | android.content.pm.InstrumentationInfo

Information you can retrieve about a particular piece of test instrumentation. This corresponds to information collected from the AndroidManifest.xml's <instrumentation> tag.

## Summary

### Inherited constants
From interface `android.os.Parcelable`
`int` | `CONTENTS_FILE_DESCRIPTOR` Descriptor bit used with `describeContents()`: indicates that the Parcelable object's flattened representation includes a file descriptor.
`int` | `PARCELABLE_WRITE_RETURN_VALUE` Flag for use with `writeToParcel(Parcel, int)`: the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`".

### Fields
`public static final Creator<InstrumentationInfo>` | `CREATOR`
`public String` | `dataDir` Full path to a directory assigned to the package for its persistent data.
`public boolean` | `functionalTest` Specifies whether or not to run this instrumentation as a functional test
`public boolean` | `handleProfiling` Specifies whether or not this instrumentation will handle profiling.
`public String` | `publicSourceDir` Full path to the publicly available parts of `sourceDir`, including resources and manifest.
`public String` | `sourceDir` Full path to the base APK for this application.
`public String[]` | `splitNames` The names of all installed split APKs, ordered lexicographically.
`public String[]` | `splitPublicSourceDirs` Full path to the publicly available parts of `splitSourceDirs`, including resources and manifest.
`public String[]` | `splitSourceDirs` Full paths to zero or more split APKs, indexed by the same order as `splitNames`.
`public String` | `targetPackage` The name of the application package being instrumented.
`public String` | `targetProcesses` Names of the process(es) this instrumentation will run in.

### Inherited fields
From class `android.content.pm.PackageItemInfo`
`public int` | `banner` A drawable resource identifier (in the package's resources) of this component's banner.
`public int` | `icon` A drawable resource identifier (in the package's resources) of this component's icon.
`public int` | `labelRes` A string resource identifier (in the package's resources) of this component's label.
`public int` | `logo` A drawable resource identifier (in the package's resources) of this component's logo.
`public Bundle` | `metaData` Additional meta-data associated with this component.
`public String` | `name` Public name of this item.
`public CharSequence` | `nonLocalizedLabel` The string provided in the AndroidManifest file, if any.
`public String` | `packageName` Name of the package that this item is in.

### Public constructors
`InstrumentationInfo()`
`InstrumentationInfo(InstrumentationInfo orig)`

### Public methods
`int` | `describeContents()` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.
`String` | `toString()` Returns a string representation of the object.
`void` | `writeToParcel(Parcel dest, int parcelableFlags)`

### Inherited methods
From class `android.content.pm.PackageItemInfo`
`void` | `dumpBack(Printer pw, String prefix)`
`void` | `dumpFront(Printer pw, String prefix)`
`Drawable` | `loadBanner(PackageManager pm)` Retrieve the current graphical banner associated with this item.
`Drawable` | `loadIcon(PackageManager pm)` Retrieve the current graphical icon associated with this item.
`CharSequence` | `loadLabel(PackageManager pm)` Retrieve the current textual label associated with this item.
`Drawable` | `loadLogo(PackageManager pm)` Retrieve the current graphical logo associated with this item.
`Drawable` | `loadUnbadgedIcon(PackageManager pm)` Retrieve the current graphical icon associated with this item without the addition of a work badge if applicable.
`XmlResourceParser` | `loadXmlMetaData(PackageManager pm, String name)` Load an XML resource attached to the meta-data of this item.
`void` | `writeToParcel(Parcel dest, int parcelableFlags)`
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.
From interface `android.os.Parcelable`
`abstract int` | `describeContents()` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.
`abstract void` | `writeToParcel(Parcel dest, int flags)` Flatten this object in to a Parcel.

## Fields

### CREATOR

    public static final Creator<InstrumentationInfo> CREATOR

### dataDir

    public String dataDir

Full path to a directory assigned to the package for its persistent data.

### functionalTest

    public boolean functionalTest

Specifies whether or not to run this instrumentation as a functional test

### handleProfiling

    public boolean handleProfiling

Specifies whether or not this instrumentation will handle profiling.

### publicSourceDir

    public String publicSourceDir

Full path to the publicly available parts of `sourceDir`, including resources and manifest. This may be different from `sourceDir` if an application is forward locked.

### sourceDir

    public String sourceDir

Full path to the base APK for this application.

### splitNames

    public String[] splitNames

The names of all installed split APKs, ordered lexicographically.

### splitPublicSourceDirs

    public String[] splitPublicSourceDirs

Full path to the publicly available parts of `splitSourceDirs`, including resources and manifest. This may be different from `splitSourceDirs` if an application is forward locked.

See also:

- `splitSourceDirs`

### splitSourceDirs

    public String[] splitSourceDirs

Full paths to zero or more split APKs, indexed by the same order as `splitNames`.

### targetPackage

    public String targetPackage

The name of the application package being instrumented. From the "package" attribute.

### targetProcesses

    public String targetProcesses

Names of the process(es) this instrumentation will run in. If not specified, only runs in the main process of the targetPackage. Can either be a comma-separated list of process names or '*' for any process that launches to run targetPackage code.

## Public constructors

### InstrumentationInfo

    public InstrumentationInfo ()

### InstrumentationInfo

    public InstrumentationInfo (InstrumentationInfo orig)

Parameters
`orig` | `InstrumentationInfo`

## Public methods

### describeContents

    public int describeContents ()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of `writeToParcel(android.os.Parcel, int)`, the return value of this method must include the `CONTENTS_FILE_DESCRIPTOR` bit.

Returns
`int` | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either `0` or `CONTENTS_FILE_DESCRIPTOR`

### toString

    public String toString ()

Returns a string representation of the object. In general, the `toString` method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The `toString` method for class `Object` returns a string consisting of the name of the class of which the object is an instance, the at-sign character ``@`', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

>      getClass().getName() + '@' + Integer.toHexString(hashCode())

Returns
`String` | a string representation of the object.

### writeToParcel

    public void writeToParcel (Parcel dest,
                    int parcelableFlags)

Parameters
`dest` | `Parcel`
`parcelableFlags` | `int`

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*