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.
TestSuiteInfo
public
class
TestSuiteInfo
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.testtype.suite.TestSuiteInfo
|
A class that resolves loading of build related metadata for test suite
To properly expose related info, a test suite must include a
test-suite-info.properties
file in its jar resources
Summary
Public methods |
boolean
|
didLoadFromProperties()
Returns true if the values were loaded from a property file, false otherwise.
|
String
|
get(String name)
Retrieves test information keyed with the provided name.
|
String
|
getBuildNumber()
Gets the build number of the test suite
|
String
|
getFullName()
Gets the full name of the test suite
|
static
TestSuiteInfo
|
getInstance()
Retrieves the singleton instance, which also triggers loading of the related test suite info
from embedded resource files
|
String
|
getName()
Gets the short name of the test suite
|
|
getTargetArchs()
Gets the target archs supported by the test suite
|
String
|
getVersion()
Gets the version name of the test suite
|
Protected methods |
Properties
|
loadSuiteInfo(InputStream is)
Performs the actual loading of properties
|
Public methods
didLoadFromProperties
public boolean didLoadFromProperties ()
Returns true if the values were loaded from a property file, false otherwise.
get
public String get (String name)
Retrieves test information keyed with the provided name. Or null if not property associated.
getBuildNumber
public String getBuildNumber ()
Gets the build number of the test suite
getFullName
public String getFullName ()
Gets the full name of the test suite
getInstance
public static TestSuiteInfo getInstance ()
Retrieves the singleton instance, which also triggers loading of the related test suite info
from embedded resource files
getName
public String getName ()
Gets the short name of the test suite
getTargetArchs
public getTargetArchs ()
Gets the target archs supported by the test suite
getVersion
public String getVersion ()
Gets the version name of the test suite
Protected methods
protected Properties loadSuiteInfo (InputStream is)
Performs the actual loading of properties
Parameters |
is |
InputStream |
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-03-08 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-03-08 UTC."],[],[],null,["# TestSuiteInfo\n=============\n\n\n`\npublic\n\n\nclass\nTestSuiteInfo\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|---------------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.android.tradefed.testtype.suite.TestSuiteInfo |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA class that resolves loading of build related metadata for test suite\n\n\nTo properly expose related info, a test suite must include a\n`test-suite-info.properties` file in its jar resources\n\nSummary\n-------\n\n| ### Public methods ||\n|---------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` boolean` | ` `[didLoadFromProperties](../../../../../../../reference/tradefed/com/android/tradefed/testtype/suite/TestSuiteInfo.html#didLoadFromProperties())`() ` Returns true if the values were loaded from a property file, false otherwise. |\n| ` String` | ` `[get](../../../../../../../reference/tradefed/com/android/tradefed/testtype/suite/TestSuiteInfo.html#get(java.lang.String))`(String name) ` Retrieves test information keyed with the provided name. |\n| ` String` | ` `[getBuildNumber](../../../../../../../reference/tradefed/com/android/tradefed/testtype/suite/TestSuiteInfo.html#getBuildNumber())`() ` Gets the build number of the test suite |\n| ` String` | ` `[getFullName](../../../../../../../reference/tradefed/com/android/tradefed/testtype/suite/TestSuiteInfo.html#getFullName())`() ` Gets the full name of the test suite |\n| ` static `[TestSuiteInfo](../../../../../../../reference/tradefed/com/android/tradefed/testtype/suite/TestSuiteInfo.html) | ` `[getInstance](../../../../../../../reference/tradefed/com/android/tradefed/testtype/suite/TestSuiteInfo.html#getInstance())`() ` Retrieves the singleton instance, which also triggers loading of the related test suite info from embedded resource files |\n| ` String` | ` `[getName](../../../../../../../reference/tradefed/com/android/tradefed/testtype/suite/TestSuiteInfo.html#getName())`() ` Gets the short name of the test suite |\n| ` ` | ` `[getTargetArchs](../../../../../../../reference/tradefed/com/android/tradefed/testtype/suite/TestSuiteInfo.html#getTargetArchs())`() ` Gets the target archs supported by the test suite |\n| ` String` | ` `[getVersion](../../../../../../../reference/tradefed/com/android/tradefed/testtype/suite/TestSuiteInfo.html#getVersion())`() ` Gets the version name of the test suite |\n\n| ### Protected methods ||\n|---------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` Properties` | ` `[loadSuiteInfo](../../../../../../../reference/tradefed/com/android/tradefed/testtype/suite/TestSuiteInfo.html#loadSuiteInfo(InputStream))`(InputStream is) ` Performs the actual loading of properties |\n\nPublic methods\n--------------\n\n### didLoadFromProperties\n\n```\npublic boolean didLoadFromProperties ()\n```\n\nReturns true if the values were loaded from a property file, false otherwise.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-----------|--------|\n| `boolean` | \u003cbr /\u003e |\n\n### get\n\n```\npublic String get (String name)\n```\n\nRetrieves test information keyed with the provided name. Or null if not property associated.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------|-----------------|\n| `name` | `String` \u003cbr /\u003e |\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\n### getBuildNumber\n\n```\npublic String getBuildNumber ()\n```\n\nGets the build number of the test suite\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\n### getFullName\n\n```\npublic String getFullName ()\n```\n\nGets the full name of the test suite\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\n### getInstance\n\n```\npublic static TestSuiteInfo getInstance ()\n```\n\nRetrieves the singleton instance, which also triggers loading of the related test suite info\nfrom embedded resource files\n\n\u003cbr /\u003e\n\n| Returns ||\n|-----------------------------------------------------------------------------------------------------------------|--------|\n| [TestSuiteInfo](../../../../../../../reference/tradefed/com/android/tradefed/testtype/suite/TestSuiteInfo.html) | \u003cbr /\u003e |\n\n### getName\n\n```\npublic String getName ()\n```\n\nGets the short name of the test suite\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\n### getTargetArchs\n\n```\npublic getTargetArchs ()\n```\n\nGets the target archs supported by the test suite\n\n\u003cbr /\u003e\n\n| Returns ||\n|---|--------|\n| | \u003cbr /\u003e |\n\n### getVersion\n\n```\npublic String getVersion ()\n```\n\nGets the version name of the test suite\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\nProtected methods\n-----------------\n\n### loadSuiteInfo\n\n```\nprotected Properties loadSuiteInfo (InputStream is)\n```\n\nPerforms the actual loading of properties\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------|----------------------|\n| `is` | `InputStream` \u003cbr /\u003e |\n\n| Returns ||\n|--------------|--------|\n| `Properties` | \u003cbr /\u003e |"]]