Starting March 27, 2025, we recommend using android-latest-release instead of aosp-main to build and contribute to AOSP. For more information, see Changes to AOSP.
         
       
     
  
  
  
  
  
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
  
  
    
    
  
  
TestInfo
  public
  
  
  
  class
  TestInfo
  
    extends Object
  
  
  
  
  
  
  
    
    | java.lang.Object | 
  
  
    
      | ↳ | com.android.tradefed.util.testmapping.TestInfo | 
  
  
    
  Stores the test information set in a TEST_MAPPING file.
Summary
| Public constructors | 
|---|
  
  
  
    | 
      TestInfo(String name, String source, boolean hostOnly)
       | 
  
  
  
  
    | 
      TestInfo(String name, String source, boolean hostOnly,  keywords)
       | 
  
Public constructors
    TestInfo
    
public TestInfo (String name, 
                String source, 
                boolean hostOnly)
    
    
    
  
    
    | Parameters | 
|---|
      
        | name | String | 
      
        | source | String | 
      
        | hostOnly | boolean | 
    
 
    TestInfo
    
public TestInfo (String name, 
                String source, 
                boolean hostOnly, 
                 keywords)
    
    
    
  
    
    | Parameters | 
|---|
      
        | name | String | 
      
        | source | String | 
      
        | hostOnly | boolean | 
      
        | keywords |  | 
    
 
Public methods
    addImportPaths
    
public void addImportPaths ( paths)
    
    
    
  
    
 
    addOption
    
public void addOption (TestOption option)
    
    
    
  
    
    | Parameters | 
|---|
      
        | option | TestOption | 
    
 
    addSources
    
public void addSources ( sources)
    
    
    
  
    
 
    equals
    
public boolean equals (Object o)
    
    
    
  
    
    
 
    getHostOnly
    
public boolean getHostOnly ()
    
    
    
  
    
 
    getImportPaths
    
public  getImportPaths ()
    
    
    
  
    
 
    getKeywords
    
public  getKeywords ( ignoreKeywords)
    
    
    
  Get a ERROR(/Set) of the keywords supported by the test.
    
    | Parameters | 
|---|
      
        | ignoreKeywords | : A set ofStringof keywords to be ignored. | 
    
    
 
    getKeywords
    
public  getKeywords ()
    
    
    
  Get a ERROR(/Set) of the keywords supported by the test.
    
 
    getName
    
public String getName ()
    
    
    
  
    
 
    getNameAndHostOnly
    
public String getNameAndHostOnly ()
    
    
    
  Get a String represent the test name and its host setting. This allows TestInfos to
 be grouped by name the requirement on device.
    
 
    getNameOption
    
public String getNameOption ()
    
    
    
  Get a String represent the test name and its options.
    
 
    getOptions
    
public  getOptions ()
    
    
    
  
    
 
    getSources
    
public  getSources ()
    
    
    
  
    
 
    hashCode
    
public int hashCode ()
    
    
    
  
    
 
    merge
    
public void merge (TestInfo test)
    
    
    
  Merge with another test.
 
Update test options so the test has the best possible coverage of both tests.
 
TODO(b/113616538): Implement a more robust option merging mechanism.
    
    | Parameters | 
|---|
      
        | test | TestInfo:TestInfoobject to be merged with. | 
    
 
    toString
    
public String toString ()
    
    
    
  
    
 
 
 
  
  
 
  
    
    
      
    
    
  
       
    
    
  
  
  Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2023-10-14 UTC.
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-14 UTC."],[],[]]