Zdalny AndroidTestRunner.Tryb raportowania stanu

public static final enum RemoteAndroidTestRunner.StatusReporterMode
extends Enum<RemoteAndroidTestRunner.StatusReporterMode>

java.lang.Object
   ↳ java.lang.Enum<com.android.tradefed.result.ddmlib.RemoteAndroidTestRunner.StatusReporterMode>
     ↳ com.android.tradefed.result.ddmlib.RemoteAndroidTestRunner.StatusReporterMode


Reprezentuje tryb raportowania stanu w opcjach poleceń instrumentu.

Podsumowanie

Wartości typu wyliczeniowego

RemoteAndroidTestRunner.StatusReporterMode  PROTO_STD

Użyj narzędzia do raportowania stanu protobuf instrumentationData, aby uzyskać stan za pomocą polecenia am instrument. 

RemoteAndroidTestRunner.StatusReporterMode  RAW_TEXT

To pole zostało wycofane. W przypadku interfejsu API na poziomie 26 lub wyższym użyj PROTO_STD. 

Metody publiczne

IInstrumentationResultParser createInstrumentationResultParser(String runName, listeners)

Utwórz InstrumentationResultParser, który może służyć do analizowania danych z wyjścia narzędzia do pomiaru wydajności.

String getAmInstrumentCommandArg()

Zwraca argument wiersza poleceń dla polecenia am instrument, aby określić tryb raportowania stanu.

int getMinimumApiLevel()

Zwraca minimalny poziom interfejsu API Androida, który obsługuje ten typ raportu o stanie instrumentacji.

static RemoteAndroidTestRunner.StatusReporterMode valueOf(String name)
static final StatusReporterMode[] values()

Wartości typu wyliczeniowego

PROTO_STD

public static final RemoteAndroidTestRunner.StatusReporterMode PROTO_STD

Raportujący stan protokołu instrumentationData do otrzymywania stanu z polecenia instrumentu am.

RAW_TEXT

public static final RemoteAndroidTestRunner.StatusReporterMode RAW_TEXT

To pole zostało wycofane.
Użyj PROTO_STD w przypadku interfejsu API na poziomie 26 lub wyższym.

Użyj czystego tekstu, aby uzyskać stan z polecenia instrumentu.

Metody publiczne

createInstrumentationResultParser

public IInstrumentationResultParser createInstrumentationResultParser (String runName, 
                 listeners)

Utwórz InstrumentationResultParser, który można wykorzystać do analizowania danych z instrumentacji.

Parametry
runName String: nazwa sesji, której chcesz użyć.

listeners : detektory, które mają raportować wyniki.

Zwroty
IInstrumentationResultParser Wystąpienie właściwości InstrumentationResultParser.

getAmInstrumentCommandArg

public String getAmInstrumentCommandArg ()

Zwraca argument wiersza poleceń dla polecenia am instrument, aby określić tryb raportowania stanu.

Zwroty
String

getMinimumApiLevel

public int getMinimumApiLevel ()

Zwraca minimalny poziom interfejsu Android API, który obsługuje ten typ raportu o stanie pomiarów.

Zwroty
int

wartość

public static RemoteAndroidTestRunner.StatusReporterMode valueOf (String name)

Parametry
name String

Zwroty
RemoteAndroidTestRunner.StatusReporterMode

wartości

public static final StatusReporterMode[] values ()

Zwroty
StatusReporterMode[]