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.
BuildInfoRecorder
public
class
BuildInfoRecorder
extends BaseTargetPreparer
An ITargetPreparer
that writes build info meta data into a specified file.
The file is written in simple key-value pair format; each line of the file has:
key=value
where key
is a meta data field from IBuildInfo
Currently, only build id is written.
Summary
Public constructors
BuildInfoRecorder
public BuildInfoRecorder ()
Public methods
public void setUp (TestInformation testInfo)
Parameters |
testInfo |
TestInformation |
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,["# BuildInfoRecorder\n=================\n\n\n`\npublic\n\n\nclass\nBuildInfoRecorder\n`\n\n\n`\n\n\n`\n\n`\n\nextends `[BaseTargetPreparer](../../../../../../reference/tradefed/com/android/tradefed/targetprep/BaseTargetPreparer.html)`\n\n\n`\n\n`\n\n\n`\n\n|---|---|---------------------------------------------------|\n| java.lang.Object |||\n| ↳ | [com.android.tradefed.targetprep.BaseTargetPreparer](../../../../../../reference/tradefed/com/android/tradefed/targetprep/BaseTargetPreparer.html) ||\n| | ↳ | com.android.tradefed.targetprep.BuildInfoRecorder |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn [ITargetPreparer](../../../../../../reference/tradefed/com/android/tradefed/targetprep/ITargetPreparer.html) that writes build info meta data into a specified file.\n\nThe file is written in simple key-value pair format; each line of the file has: \n\n`key=value` \n\nwhere `key` is a meta data field from [IBuildInfo](../../../../../../reference/tradefed/com/android/tradefed/build/IBuildInfo.html)\n\nCurrently, only build id is written.\n\nSummary\n-------\n\n| ### Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[BuildInfoRecorder](../../../../../../reference/tradefed/com/android/tradefed/targetprep/BuildInfoRecorder.html#BuildInfoRecorder())`() ` |\n\n| ### Public methods ||\n|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` void` | ` `[setUp](../../../../../../reference/tradefed/com/android/tradefed/targetprep/BuildInfoRecorder.html#setUp(com.android.tradefed.invoker.TestInformation))`(`[TestInformation](../../../../../../reference/tradefed/com/android/tradefed/invoker/TestInformation.html)` testInfo) ` |\n\nPublic constructors\n-------------------\n\n### BuildInfoRecorder\n\n```\npublic BuildInfoRecorder ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### setUp\n\n```\npublic void setUp (TestInformation testInfo)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|--------------------------|\n| `testInfo` | `TestInformation` \u003cbr /\u003e |\n\n| Throws ||\n|----------------------------------------------------------------------------------------------------------------------------------|---|\n| [BuildError](../../../../../../reference/tradefed/com/android/tradefed/targetprep/BuildError.html) | |\n| [DeviceNotAvailableException](../../../../../../reference/tradefed/com/android/tradefed/device/DeviceNotAvailableException.html) | |\n| [TargetSetupError](../../../../../../reference/tradefed/com/android/tradefed/targetprep/TargetSetupError.html) | |"]]