از سال ۲۰۲۶، برای همسو شدن با مدل توسعه پایدار ترانک و تضمین پایداری پلتفرم برای اکوسیستم، کد منبع را در سهماهه دوم و چهارم در AOSP منتشر خواهیم کرد. برای ساخت و مشارکت در AOSP، android-latest-release استفاده کنید. شاخه مانیفست android-latest-release همیشه به جدیدترین نسخه منتشر شده در AOSP ارجاع میدهد. برای اطلاعات بیشتر، به تغییرات در AOSP مراجعه کنید.
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
EventsLoggerListener
public class EventsLoggerListener
extends Object implements ILogSaverListener
| java.lang.object |
| ↳ | com.android.tradefed.result.EventsLoggerListener |
شنونده ای که تمام رویدادهایی را که دریافت می کند در یک فایل ثبت می کند
خلاصه
روش های عمومی |
|---|
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) 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) 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) |
سازندگان عمومی
EventsLoggerListener
public EventsLoggerListener (String name)
روش های عمومی
getLoggedEvents
public File getLoggedEvents ()
فراخوان پایان یافت
public void invocationEnded (long elapsedTime)
| پارامترها |
|---|
elapsedTime | long |
فراخوان ناموفق بود
public void invocationFailed (FailureDescription failure)
| پارامترها |
|---|
failure | FailureDescription |
invocationStarted
public void invocationStarted (IInvocationContext context)
| پارامترها |
|---|
context | IInvocationContext |
logAssociation
public void logAssociation (String dataName,
LogFile logFile)| پارامترها |
|---|
dataName | String |
logFile | LogFile |
آزمون فرض شکست
public void testAssumptionFailure (TestDescription test,
String trace)| پارامترها |
|---|
test | TestDescription |
trace | String |
آزمون فرض شکست
public void testAssumptionFailure (TestDescription test,
FailureDescription failure)| پارامترها |
|---|
test | TestDescription |
failure | FailureDescription |
تست پایان یافت
public void testEnded (TestDescription test,
long endTime,
testMetrics)| پارامترها |
|---|
test | TestDescription |
endTime | long |
testMetrics | |
تست شکست خورد
public void testFailed (TestDescription test,
FailureDescription failure)| پارامترها |
|---|
test | TestDescription |
failure | FailureDescription |
تست شکست خورد
public void testFailed (TestDescription test,
String trace)| پارامترها |
|---|
test | TestDescription |
trace | String |
تست نادیده گرفته شد
public void testIgnored (TestDescription test)
| پارامترها |
|---|
test | TestDescription |
testModuleEnded
public void testModuleEnded ()
testModuleStarted
public void testModuleStarted (IInvocationContext moduleContext)
| پارامترها |
|---|
moduleContext | IInvocationContext |
testRunEnded
public void testRunEnded (long elapsedTimeMillis,
runMetrics)| پارامترها |
|---|
elapsedTimeMillis | long |
runMetrics | |
testRunFailed
public void testRunFailed (FailureDescription failure)
| پارامترها |
|---|
failure | FailureDescription |
testRunFailed
public void testRunFailed (String errorMessage)
| پارامترها |
|---|
errorMessage | String |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)| پارامترها |
|---|
runName | String |
testCount | int |
attemptNumber | int |
startTime | long |
تست شروع شد
public void testStarted (TestDescription test,
long startTime)| پارامترها |
|---|
test | TestDescription |
startTime | long |
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی."],[],[]]