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


Helper for testEnded information.

Summary

Fields

public Long mEndTime

public Map<String, String> mRunMetrics

Public constructors

SubprocessEventHelper.TestEndedEventInfo(String className, String testName, Map<String, String> runMetrics)
SubprocessEventHelper.TestEndedEventInfo(String className, String testName, Long endTime, Map<String, String> runMetrics)

Create an event object to represent the testEnded callback.

SubprocessEventHelper.TestEndedEventInfo(JSONObject jsonObject)

Create and populate and event object for testEnded from a JSON.

Protected methods

JSONObject getNewJson()

Fields

mEndTime

Long mEndTime

mRunMetrics

Map<String, String> mRunMetrics

Public constructors

SubprocessEventHelper.TestEndedEventInfo

SubprocessEventHelper.TestEndedEventInfo (String className, 
                String testName, 
                Map<String, String> runMetrics)

Parameters
className String

testName String

runMetrics Map

SubprocessEventHelper.TestEndedEventInfo

SubprocessEventHelper.TestEndedEventInfo (String className, 
                String testName, 
                Long endTime, 
                Map<String, String> runMetrics)

Create an event object to represent the testEnded callback.

Parameters
className String: the classname of the tests

testName String: the name of the tests

endTime Long: the timestamp at which the test ended (from currentTimeMillis())

runMetrics Map: the metrics reported by the test.

SubprocessEventHelper.TestEndedEventInfo

SubprocessEventHelper.TestEndedEventInfo (JSONObject jsonObject)

Create and populate and event object for testEnded from a JSON.

Parameters
jsonObject JSONObject

Throws
JSONException

Protected methods

getNewJson

JSONObject getNewJson ()

Returns
JSONObject