RemoteAndroidTestRunner.StatusReporterMode
public
static
final
enum
RemoteAndroidTestRunner.StatusReporterMode
extends Enum<RemoteAndroidTestRunner.StatusReporterMode>
| java.lang.Object | ||
| ↳ | java.lang.Enum<com.android.ddmlib.testrunner.RemoteAndroidTestRunner.StatusReporterMode> | |
| ↳ | com.android.ddmlib.testrunner.RemoteAndroidTestRunner.StatusReporterMode | |
Represents a status reporter mode in am instrument command options.
Summary
Enum values | |
|---|---|
RemoteAndroidTestRunner.StatusReporterMode |
PROTO_STD
Use instrumentationData protobuf status reporter to receive status from am instrument command. |
RemoteAndroidTestRunner.StatusReporterMode |
RAW_TEXT
This field is deprecated.
Use |
Public methods | |
|---|---|
IInstrumentationResultParser
|
createInstrumentationResultParser(String runName, Collection<ITestRunListener> listeners)
Create the |
String
|
getAmInstrumentCommandArg()
Returns a command line arg for am instrument command to specify this status reporter mode. |
int
|
getMinimumApiLevel()
Returns the minimum Android API level which supports this instrumentation status report type. |
static
RemoteAndroidTestRunner.StatusReporterMode
|
valueOf(String name)
|
static
final
StatusReporterMode[]
|
values()
|
Enum values
PROTO_STD
public static final RemoteAndroidTestRunner.StatusReporterMode PROTO_STD
Use instrumentationData protobuf status reporter to receive status from am instrument command.
RAW_TEXT
public static final RemoteAndroidTestRunner.StatusReporterMode RAW_TEXT
This field is deprecated.
Use PROTO_STD for API level 26 and above.
Use raw text message to receive status from am instrument command.
Public methods
createInstrumentationResultParser
public IInstrumentationResultParser createInstrumentationResultParser (String runName, Collection<ITestRunListener> listeners)
Create the InstrumentationResultParser that can be used to parse the
instrumentation output.
| Parameters | |
|---|---|
runName |
String: The name of the run to use. |
listeners |
Collection: The listeners where to report the results. |
| Returns | |
|---|---|
IInstrumentationResultParser |
An instance of InstrumentationResultParser. |
getAmInstrumentCommandArg
public String getAmInstrumentCommandArg ()
Returns a command line arg for am instrument command to specify this status reporter mode.
| Returns | |
|---|---|
String |
|
getMinimumApiLevel
public int getMinimumApiLevel ()
Returns the minimum Android API level which supports this instrumentation status report type.
| Returns | |
|---|---|
int |
|
valueOf
public static RemoteAndroidTestRunner.StatusReporterMode valueOf (String name)
| Parameters | |
|---|---|
name |
String |
| Returns | |
|---|---|
RemoteAndroidTestRunner.StatusReporterMode |
|
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 2026-06-22 UTC.