to top
Android APIs
public class

InstrumentationInfo

extends PackageItemInfo
implements Parcelable
java.lang.Object
   ↳ android.content.pm.PackageItemInfo
     ↳ android.content.pm.InstrumentationInfo

Class Overview

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

Summary

[Expand]
Inherited Constants
From interface android.os.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 location of the publicly available parts of this package (i.e.
public String sourceDir Full path to the location of this package.
public String targetPackage The name of the application package being instrumented.
[Expand]
Inherited Fields
From class android.content.pm.PackageItemInfo
Public Constructors
InstrumentationInfo()
InstrumentationInfo(InstrumentationInfo orig)
Public Methods
int describeContents()
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
String toString()
Returns a string containing a concise, human-readable description of this object.
void writeToParcel(Parcel dest, int parcelableFlags)
[Expand]
Inherited Methods
From class android.content.pm.PackageItemInfo
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<InstrumentationInfo> CREATOR

Added in API level 1

public String dataDir

Added in API level 1

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

public boolean functionalTest

Added in API level 1

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

public boolean handleProfiling

Added in API level 1

Specifies whether or not this instrumentation will handle profiling.

public String publicSourceDir

Added in API level 1

Full path to the location of the publicly available parts of this package (i.e. the resources and manifest). For non-forward-locked apps this will be the same as {@link #sourceDir).

public String sourceDir

Added in API level 1

Full path to the location of this package.

public String targetPackage

Added in API level 1

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

Public Constructors

public InstrumentationInfo ()

Added in API level 1

public InstrumentationInfo (InstrumentationInfo orig)

Added in API level 1

Public Methods

public int describeContents ()

Added in API level 1

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Returns
  • a bitmask indicating the set of special object types marshalled by the Parcelable.

public String toString ()

Added in API level 1

Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:

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

See Writing a useful toString method if you intend implementing your own toString method.

Returns
  • a printable representation of this object.

public void writeToParcel (Parcel dest, int parcelableFlags)

Added in API level 1