Mulai tahun 2026, untuk menyelaraskan dengan model pengembangan stabil trunk kami dan memastikan stabilitas platform untuk ekosistem, kami akan memublikasikan kode sumber ke AOSP pada Q2 dan Q4. Untuk membuat dan berkontribusi ke AOSP, gunakan android-latest-release. Cabang manifes android-latest-release akan selalu merujuk ke rilis terbaru yang dikirim ke AOSP. Untuk mengetahui informasi selengkapnya, lihat Perubahan pada AOSP.
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
EventsLoggerListener
public
class
EventsLoggerListener
extends Object
implements
ILogSaverListener
| java.lang.Object
|
| ↳ |
com.android.tradefed.result.EventsLoggerListener
|
Pemroses yang mencatat semua peristiwa yang diterimanya ke dalam file
Ringkasan
Metode publik |
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)
|
Konstruktor publik
EventsLoggerListener
public EventsLoggerListener (String name)
Metode publik
getLoggedEvents
public File getLoggedEvents ()
invocationEnded
public void invocationEnded (long elapsedTime)
| Parameter |
elapsedTime |
long |
invocationFailed
public void invocationFailed (FailureDescription failure)
| Parameter |
failure |
FailureDescription |
invocationStarted
public void invocationStarted (IInvocationContext context)
| Parameter |
context |
IInvocationContext |
logAssociation
public void logAssociation (String dataName,
LogFile logFile)
| Parameter |
dataName |
String |
logFile |
LogFile |
testAssumptionFailure
public void testAssumptionFailure (TestDescription test,
String trace)
| Parameter |
test |
TestDescription |
trace |
String |
testAssumptionFailure
public void testAssumptionFailure (TestDescription test,
FailureDescription failure)
| Parameter |
test |
TestDescription |
failure |
FailureDescription |
testEnded
public void testEnded (TestDescription test,
long endTime,
testMetrics)
| Parameter |
test |
TestDescription |
endTime |
long |
testMetrics |
|
testFailed
public void testFailed (TestDescription test,
FailureDescription failure)
| Parameter |
test |
TestDescription |
failure |
FailureDescription |
testFailed
public void testFailed (TestDescription test,
String trace)
| Parameter |
test |
TestDescription |
trace |
String |
testIgnored
public void testIgnored (TestDescription test)
| Parameter |
test |
TestDescription |
testModuleEnded
public void testModuleEnded ()
testModuleStarted
public void testModuleStarted (IInvocationContext moduleContext)
| Parameter |
moduleContext |
IInvocationContext |
testRunEnded
public void testRunEnded (long elapsedTimeMillis,
runMetrics)
| Parameter |
elapsedTimeMillis |
long |
runMetrics |
|
testRunFailed
public void testRunFailed (FailureDescription failure)
| Parameter |
failure |
FailureDescription |
testRunFailed
public void testRunFailed (String errorMessage)
| Parameter |
errorMessage |
String |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)
| Parameter |
runName |
String |
testCount |
int |
attemptNumber |
int |
startTime |
long |
testStarted
public void testStarted (TestDescription test,
long startTime)
| Parameter |
test |
TestDescription |
startTime |
long |
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-27 UTC."],[],[]]