LegacySubprocessResultsReporter

public final class LegacySubprocessResultsReporter
extends SubprocessResultsReporter

java.lang.Object
   ↳ com.android.tradefed.result.SubprocessResultsReporter
     ↳ com.android.tradefed.result.LegacySubprocessResultsReporter


A class for freezed subprocess results reporter which is compatible with M & N version of CTS. Methods in this class were part of ITestInvocationListener in pre-O version of TF/CTS. Changes are not supposed to be made on this class.

Summary

Public constructors

LegacySubprocessResultsReporter()

Public methods

void invocationEnded(long elapsedTime)

Reports that the invocation has terminated, whether successfully or due to some error condition.

void invocationFailed(Throwable cause)

Reports an incomplete invocation due to some error condition.

void invocationStarted(IBuildInfo buildInfo)
void logAssociation(String dataName, LogFile logFile)

A intentionally inop function to handle incompatibility problem in CTS 8.1

void setLogSaver(ILogSaver logSaver)

A intentionally inop function to handle incompatibility problem in CTS 8.1

void testAssumptionFailure(TestIdentifier testId, String trace)
void testEnded(TestIdentifier testId, metrics)
void testEnded(TestIdentifier testId, long endTime, metrics)
void testFailed(TestIdentifier testId, String reason)
void testIgnored(TestIdentifier testId)
void testLogSaved(String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)

A intentionally inop function to handle incompatibility problem in CTS 8.1

void testModuleEnded()

A intentionally inop function to handle incompatibility problem in CTS 8.1

void testModuleStarted(IInvocationContext moduleContext)

A intentionally inop function to handle incompatibility problem in CTS 8.1

void testRunEnded(long time, runMetrics)

Reports end of test run.

void testRunFailed(String reason)

Reports test run failed to complete due to a fatal error.

void testRunStarted(String runName, int testCount)

Reports the start of a test run.

void testStarted(TestIdentifier testId)
void testStarted(TestIdentifier testId, long startTime)

Public constructors

LegacySubprocessResultsReporter

public LegacySubprocessResultsReporter ()

Public methods

invocationEnded

public void invocationEnded (long elapsedTime)

Reports that the invocation has terminated, whether successfully or due to some error condition.

Will be automatically called by the TradeFederation framework.

Parameters
elapsedTime long: the elapsed time of the invocation in ms

invocationFailed

public void invocationFailed (Throwable cause)

Reports an incomplete invocation due to some error condition.

Will be automatically called by the TradeFederation framework.

Parameters
cause Throwable: the Throwable cause of the failure

invocationStarted

public void invocationStarted (IBuildInfo buildInfo)

Parameters
buildInfo IBuildInfo

logAssociation

public void logAssociation (String dataName, 
                LogFile logFile)

A intentionally inop function to handle incompatibility problem in CTS 8.1

Parameters
dataName String: The name of the data

logFile LogFile: the LogFile that was logged before and should be associated with the test case.

setLogSaver

public void setLogSaver (ILogSaver logSaver)

A intentionally inop function to handle incompatibility problem in CTS 8.1

Parameters
logSaver ILogSaver

testAssumptionFailure

public void testAssumptionFailure (TestIdentifier testId, 
                String trace)

Parameters
testId TestIdentifier

trace String

testEnded

public void testEnded (TestIdentifier testId, 
                 metrics)

Parameters
testId TestIdentifier

metrics

testEnded

public void testEnded (TestIdentifier testId, 
                long endTime, 
                 metrics)

Parameters
testId TestIdentifier

endTime long

metrics

testFailed

public void testFailed (TestIdentifier testId, 
                String reason)

Parameters
testId TestIdentifier

reason String

testIgnored

public void testIgnored (TestIdentifier testId)

Parameters
testId TestIdentifier

testLogSaved

public void testLogSaved (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream, 
                LogFile logFile)

A intentionally inop function to handle incompatibility problem in CTS 8.1

Parameters
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

testModuleEnded

public void testModuleEnded ()

A intentionally inop function to handle incompatibility problem in CTS 8.1

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

A intentionally inop function to handle incompatibility problem in CTS 8.1

Parameters
moduleContext IInvocationContext: the IInvocationContext of the module.

testRunEnded

public void testRunEnded (long time, 
                 runMetrics)

Reports end of test run. FIXME: We cannot have two Map<> interfaces with different type, so we have to use HashMap here.

Parameters
time long: device reported elapsed time, in milliseconds

runMetrics : key-value pairs reported at the end of a test run with Metric.

testRunFailed

public void testRunFailed (String reason)

Reports test run failed to complete due to a fatal error.

Parameters
reason String: String describing reason for run failure.

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

Reports the start of a test run.

Parameters
runName String: the test run name

testCount int: total number of tests in test run

testStarted

public void testStarted (TestIdentifier testId)

Parameters
testId TestIdentifier

testStarted

public void testStarted (TestIdentifier testId, 
                long startTime)

Parameters
testId TestIdentifier

startTime long