RemoteAndroidTestRunner.StatusReporterMode

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


Biểu thị một chế độ trình báo cáo trạng thái trong các tuỳ chọn lệnh amInstrument.

Tóm tắt

Giá trị enum

RemoteAndroidTestRunner.StatusReporterMode  PROTO_STD

Sử dụng trình báo cáo trạng thái protobuf instrumentationData để nhận trạng thái từ lệnh đo lường. 

RemoteAndroidTestRunner.StatusReporterMode  RAW_TEXT

Trường này không còn được dùng nữa. Sử dụng PROTO_STD cho API cấp 26 trở lên. 

Phương thức công khai

IInstrumentationResultParser createInstrumentationResultParser(String runName, listeners)

Tạo InstrumentationResultParser có thể dùng để phân tích cú pháp đầu ra đo lường.

String getAmInstrumentCommandArg()

Trả về một đối số dòng lệnh cho lệnh đo lường để chỉ định chế độ trình báo cáo trạng thái này.

int getMinimumApiLevel()

Trả về cấp độ API Android tối thiểu hỗ trợ loại báo cáo trạng thái đo lường này.

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

Giá trị enum

Hàm PROTO_STD

public static final RemoteAndroidTestRunner.StatusReporterMode PROTO_STD

Sử dụng trình báo cáo trạng thái protobuf instrumentationData để nhận trạng thái từ lệnh đo lường.

RAW_TEXT

public static final RemoteAndroidTestRunner.StatusReporterMode RAW_TEXT

Trường này không còn được dùng nữa.
Sử dụng PROTO_STD cho API cấp 26 trở lên.

Sử dụng tin nhắn văn bản thô để nhận trạng thái từ lệnh am tools.

Phương thức công khai

createInstrumentationResultParser (Trình phân tích cú pháp)

public IInstrumentationResultParser createInstrumentationResultParser (String runName, 
                 listeners)

Tạo InstrumentationResultParser có thể dùng để phân tích cú pháp đầu ra đo lường.

Tham số
runName String: Tên của lần chạy cần sử dụng.

listeners : Trình nghe báo cáo kết quả.

Giá trị trả về
IInstrumentationResultParser Một bản sao của InstrumentationResultParser.

getAmInstrumentCommandArg

public String getAmInstrumentCommandArg ()

Trả về đối số dòng lệnh cho lệnh am tools để chỉ định trình báo cáo trạng thái này .

Giá trị trả về
String

getMinimumApilevel

public int getMinimumApiLevel ()

Trả về cấp độ API Android tối thiểu hỗ trợ báo cáo trạng thái đo lường này loại.

Giá trị trả về
int

valueOf

public static RemoteAndroidTestRunner.StatusReporterMode valueOf (String name)

Tham số
name String

Giá trị trả về
RemoteAndroidTestRunner.StatusReporterMode

giá trị

public static final StatusReporterMode[] values ()

Giá trị trả về
StatusReporterMode[]