Starting March 27, 2025, we recommend using android-latest-release
instead of aosp-main
to build and contribute to AOSP. For more information, see Changes to AOSP.
Stay organized with collections
Save and categorize content based on your preferences.
EventsLoggerListener
public
class
EventsLoggerListener
extends Object
implements
ILogSaverListener
java.lang.Object
|
↳ |
com.android.tradefed.result.EventsLoggerListener
|
Listener that logs all the events it receives into a file
Summary
Public methods |
File
|
getLoggedEvents()
|
void
|
invocationEnded(long elapsedTime)
|
void
|
invocationFailed(FailureDescription failure)
|
void
|
invocationStarted(IInvocationContext context)
|
void
|
logAssociation(String dataName, LogFile logFile)
|
void
|
testAssumptionFailure(TestDescription test, String trace)
|
void
|
testAssumptionFailure(TestDescription test, FailureDescription failure)
|
void
|
testEnded(TestDescription test, long endTime, testMetrics)
|
void
|
testFailed(TestDescription test, FailureDescription failure)
|
void
|
testFailed(TestDescription test, String trace)
|
void
|
testIgnored(TestDescription test)
|
void
|
testModuleEnded()
|
void
|
testModuleStarted(IInvocationContext moduleContext)
|
void
|
testRunEnded(long elapsedTimeMillis, runMetrics)
|
void
|
testRunFailed(FailureDescription failure)
|
void
|
testRunFailed(String errorMessage)
|
void
|
testRunStarted(String runName, int testCount, int attemptNumber, long startTime)
|
void
|
testStarted(TestDescription test, long startTime)
|
Public constructors
EventsLoggerListener
public EventsLoggerListener (String name)
Public methods
getLoggedEvents
public File getLoggedEvents ()
invocationEnded
public void invocationEnded (long elapsedTime)
Parameters |
elapsedTime |
long |
invocationFailed
public void invocationFailed (FailureDescription failure)
Parameters |
failure |
FailureDescription |
invocationStarted
public void invocationStarted (IInvocationContext context)
Parameters |
context |
IInvocationContext |
logAssociation
public void logAssociation (String dataName,
LogFile logFile)
Parameters |
dataName |
String |
logFile |
LogFile |
testAssumptionFailure
public void testAssumptionFailure (TestDescription test,
String trace)
Parameters |
test |
TestDescription |
trace |
String |
testAssumptionFailure
public void testAssumptionFailure (TestDescription test,
FailureDescription failure)
Parameters |
test |
TestDescription |
failure |
FailureDescription |
testEnded
public void testEnded (TestDescription test,
long endTime,
testMetrics)
Parameters |
test |
TestDescription |
endTime |
long |
testMetrics |
|
testFailed
public void testFailed (TestDescription test,
FailureDescription failure)
Parameters |
test |
TestDescription |
failure |
FailureDescription |
testFailed
public void testFailed (TestDescription test,
String trace)
Parameters |
test |
TestDescription |
trace |
String |
testIgnored
public void testIgnored (TestDescription test)
Parameters |
test |
TestDescription |
testModuleEnded
public void testModuleEnded ()
testModuleStarted
public void testModuleStarted (IInvocationContext moduleContext)
Parameters |
moduleContext |
IInvocationContext |
testRunEnded
public void testRunEnded (long elapsedTimeMillis,
runMetrics)
Parameters |
elapsedTimeMillis |
long |
runMetrics |
|
testRunFailed
public void testRunFailed (FailureDescription failure)
Parameters |
failure |
FailureDescription |
testRunFailed
public void testRunFailed (String errorMessage)
Parameters |
errorMessage |
String |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)
Parameters |
runName |
String |
testCount |
int |
attemptNumber |
int |
startTime |
long |
testStarted
public void testStarted (TestDescription test,
long startTime)
Parameters |
test |
TestDescription |
startTime |
long |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-08-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-08-03 UTC."],[],[]]