SubprocessEventHelper.TestEndedEventInfo
public
static
class
SubprocessEventHelper.TestEndedEventInfo
extends SubprocessEventHelper.BaseTestEventInfo
| java.lang.Object | ||
| ↳ | com.android.tradefed.util.SubprocessEventHelper.BaseTestEventInfo | |
| ↳ | com.android.tradefed.util.SubprocessEventHelper.TestEndedEventInfo | |
用於 testEnded 資訊的輔助函式。
摘要
欄位 | |
|---|---|
public
Long |
mEndTime
|
public
|
mRunMetrics
|
公用建構函式 | |
|---|---|
TestEndedEventInfo(JSONObject jsonObject)
從 JSON 建立並填入 testEnded 的事件物件。 |
|
TestEndedEventInfo(String className, String testName, Long endTime,
建立事件物件,代表 testEnded 回呼。 |
|
TestEndedEventInfo(String className, String testName,
|
|
受保護的方法 | |
|---|---|
JSONObject
|
getNewJson()
|
欄位
mEndTime
public Long mEndTime
mRunMetrics
publicmRunMetrics
公用建構函式
TestEndedEventInfo
public TestEndedEventInfo (JSONObject jsonObject)
從 JSON 建立並填入 testEnded 的事件物件。
| 參數 | |
|---|---|
jsonObject |
JSONObject |
| 擲回 | |
|---|---|
JSONException |
|
TestEndedEventInfo
public TestEndedEventInfo (String className,
String testName,
Long endTime,
runMetrics) 建立事件物件,代表 testEnded 回呼。
| 參數 | |
|---|---|
className |
String:測試的類別名稱 |
testName |
String:測試名稱 |
endTime |
Long:測試結束的時間戳記 (從 System.currentTimeMillis() 開始) |
runMetrics |
:測試回報的指標。 |
TestEndedEventInfo
public TestEndedEventInfo (String className,
String testName,
runMetrics) | 參數 | |
|---|---|
className |
String |
testName |
String |
runMetrics |
|
受保護的方法
getNewJson
protected JSONObject getNewJson ()
| 傳回 | |
|---|---|
JSONObject |
|