Skip to content

Most visited

Recently visited

navigation
Added in API level 1

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

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[] 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 that, when combined with the base APK defined in sourceDir, form a complete application.

public String targetPackage

The name of the application package being instrumented.

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 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
From class java.lang.Object
From interface android.os.Parcelable

Fields

CREATOR

Added in API level 1
Creator<InstrumentationInfo> CREATOR

dataDir

Added in API level 1
String dataDir

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

functionalTest

Added in API level 1
boolean functionalTest

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

handleProfiling

Added in API level 1
boolean handleProfiling

Specifies whether or not this instrumentation will handle profiling.

publicSourceDir

Added in API level 1
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

Added in API level 1
String sourceDir

Full path to the base APK for this application.

splitPublicSourceDirs

Added in API level 21
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.

splitSourceDirs

Added in API level 21
String[] splitSourceDirs

Full paths to zero or more split APKs that, when combined with the base APK defined in sourceDir, form a complete application.

targetPackage

Added in API level 1
String targetPackage

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

Public constructors

InstrumentationInfo

Added in API level 1
InstrumentationInfo ()

InstrumentationInfo

Added in API level 1
InstrumentationInfo (InstrumentationInfo orig)

Parameters
orig InstrumentationInfo

Public methods

describeContents

Added in API level 1
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(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.

toString

Added in API level 1
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

Added in API level 1
void writeToParcel (Parcel dest, 
                int parcelableFlags)

Parameters
dest Parcel
parcelableFlags int
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.