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.
LocalRunInstructionBuilder
public
class
LocalRunInstructionBuilder
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.util.LocalRunInstructionBuilder
|
Utility to compile the instruction to run test locally.
Summary
Public methods |
static
String
|
getCommand(ConfigurationDescriptor configDescriptor, TestDescription testId, ConfigurationDescriptor.LocalTestRunner runner)
Return a command to run a test locally.
|
static
String
|
getInstruction(ConfigurationDescriptor configDescriptor, ConfigurationDescriptor.LocalTestRunner runner, TestDescription testId)
Compile the instruction to run test locally.
|
static
String
|
getInstruction(ConfigurationDescriptor configDescriptor, ConfigurationDescriptor.LocalTestRunner runner)
Compile the instruction to run test locally.
|
Public constructors
LocalRunInstructionBuilder
public LocalRunInstructionBuilder ()
Public methods
getCommand
public static String getCommand (ConfigurationDescriptor configDescriptor,
TestDescription testId,
ConfigurationDescriptor.LocalTestRunner runner)
Return a command to run a test locally.
Parameters |
configDescriptor |
ConfigurationDescriptor : ERROR(/ConfiguratonDescriptor) configuration for the test run. |
testId |
TestDescription : TestDescription to specify which test to run. |
runner |
ConfigurationDescriptor.LocalTestRunner |
Returns |
String |
String command to run the test locally.
|
getInstruction
public static String getInstruction (ConfigurationDescriptor configDescriptor,
ConfigurationDescriptor.LocalTestRunner runner,
TestDescription testId)
Compile the instruction to run test locally.
Parameters |
configDescriptor |
ConfigurationDescriptor : ConfigurationDescriptor to create instruction for. |
runner |
ConfigurationDescriptor.LocalTestRunner : LocalTestRunner to be used to build instruction. |
testId |
TestDescription : TestDescription of the test to run. It can be null when building local
run instruction for the whole module. |
Returns |
String |
String of the instruction.
|
getInstruction
public static String getInstruction (ConfigurationDescriptor configDescriptor,
ConfigurationDescriptor.LocalTestRunner runner)
Compile the instruction to run test locally.
Parameters |
configDescriptor |
ConfigurationDescriptor : ConfigurationDescriptor to create instruction for. |
runner |
ConfigurationDescriptor.LocalTestRunner : LocalTestRunner to be used to build instruction. |
Returns |
String |
String of the instruction.
|
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 2022-08-03 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 2022-08-03 UTC."],[],[]]