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 | 
|---|
| Fields | |
|---|---|
| 
    public
    static
    final
    Creator<InstrumentationInfo> | CREATOR
 | 
| 
    public
    
    
    String | dataDirFull path to a directory assigned to the package for its persistent data. | 
| 
    public
    
    
    boolean | functionalTestSpecifies whether or not to run this instrumentation as a functional test | 
| 
    public
    
    
    boolean | handleProfilingSpecifies whether or not this instrumentation will handle profiling. | 
| 
    public
    
    
    String | publicSourceDirFull path to the publicly available parts of  | 
| 
    public
    
    
    String | sourceDirFull path to the base APK for this application. | 
| 
    public
    
    
    String[] | splitNamesThe names of all installed split APKs, ordered lexicographically. | 
| 
    public
    
    
    String[] | splitPublicSourceDirsFull path to the publicly available parts of  | 
| 
    public
    
    
    String[] | splitSourceDirsFull paths to zero or more split APKs, indexed by the same order as  | 
| 
    public
    
    
    String | targetPackageThe name of the application package being instrumented. | 
| 
    public
    
    
    String | targetProcessesNames of the process(es) this instrumentation will run in. | 
| Inherited fields | 
|---|
| 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 | |
|---|---|
Fields
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
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 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 0orCONTENTS_FILE_DESCRIPTOR | 
toString
public String toString ()
Returns a string representation of the object.
| Returns | |
|---|---|
| String | a string representation of the object. | 
writeToParcel
public void writeToParcel (Parcel dest, int parcelableFlags)
| Parameters | |
|---|---|
| dest | Parcel | 
| parcelableFlags | int | 
