از 27 مارس 2025، توصیه می کنیم از android-latest-release به جای aosp-main برای ساختن و کمک به AOSP استفاده کنید. برای اطلاعات بیشتر، به تغییرات AOSP مراجعه کنید.
         
       
     
  
  
  
    
  
  
  
    
    
      
    
    
      
      با مجموعهها، منظم بمانید
    
    
      
      ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
    
  
  
    
  
  
  
  
    
  
  
    
    
 ResultForwarder
 public class ResultForwarder
 extends Object implements ITestInvocationListener
| java.lang.object | 
| ↳ | com.android.tradefed.result.ResultForwarder | 
| زیر کلاس های مستقیم شناخته شده | 
| زیر کلاس های غیر مستقیم شناخته شده | 
 یک ITestInvocationListener که نتایج فراخوانی را به لیستی از شنوندگان دیگر ارسال می کند.
 خلاصه 
|  روش های عمومی | 
|---|
| TestSummary | getSummary () | 
| void | invocationEnded (long elapsedTime) | 
| void | invocationFailed (FailureDescription failure) | 
| void | invocationFailed (Throwable cause) | 
| void | invocationStarted (IInvocationContext context) | 
| 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 | testEnded (TestDescription test, testMetrics)testEnded (TestDescription test, testMetrics) | 
| void | testFailed (TestDescription test, FailureDescription failure) | 
| void | testFailed (TestDescription test, String trace) | 
| void | testIgnored (TestDescription test) | 
| void | testLog (String dataName, LogDataType dataType, InputStreamSource dataStream) | 
| void | testModuleEnded () | 
| void | testModuleStarted (IInvocationContext moduleContext) | 
| void | testRunEnded (long elapsedTime, runMetrics)testRunEnded (long elapsedTime, runMetrics) | 
| void | testRunFailed (FailureDescription failure) | 
| void | testRunFailed (String errorMessage) | 
| void | testRunStarted (String runName, int testCount, int attemptNumber) | 
| void | testRunStarted (String runName, int testCount) | 
| void | testRunStarted (String runName, int testCount, int attemptNumber, long startTime) | 
| void | testRunStopped (long elapsedTime) | 
| void | testStarted (TestDescription test, long startTime) | 
| void | testStarted (TestDescription test)  | 
|  روش های محافظت شده | 
|---|
|  | getListeners () لیست شنوندگان را دریافت کنید. | 
| void | setListeners ( listeners)setListeners ( listeners) شنوندگان را پس از ساخت تنظیم کنید. | 
| void | setListeners (ITestInvocationListener... listeners) شنوندگان را پس از ساخت تنظیم کنید.  | 
 سازندگان عمومی 
 ResultForwarder 
public ResultForwarder ( listeners)
 یک ResultForwarder ایجاد کنید.
 ResultForwarder 
public ResultForwarder (ITestInvocationListener... listeners)
 سازنده متغیر arg برای ResultForwarder .
 سازندگان محافظت شده 
 ResultForwarder 
protected ResultForwarder ()
 یک ResultForwarder با تنظیمات شنونده معوق ایجاد کنید. فقط برای استفاده توسط زیر کلاس ها در نظر گرفته شده است. 
 روش های عمومی
 دریافت خلاصه 
public TestSummary getSummary ()
فراخوان پایان یافت 
public void invocationEnded (long elapsedTime)
| پارامترها | 
|---|
| elapsedTime | long | 
 فراخوان ناموفق بود 
public void invocationFailed (FailureDescription failure)
| پارامترها | 
|---|
| failure | FailureDescription | 
 فراخوان ناموفق بود 
public void invocationFailed (Throwable cause)
| پارامترها | 
|---|
| cause | Throwable | 
 invocationStarted 
public void invocationStarted (IInvocationContext context)
| پارامترها | 
|---|
| context | IInvocationContext | 
 آزمون فرض شکست 
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 testEnded (TestDescription test, 
                 testMetrics)| پارامترها | 
|---|
| test | TestDescription | 
| 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 | 
public void testLog (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream)| پارامترها | 
|---|
| dataName | String | 
| dataType | LogDataType | 
| dataStream | InputStreamSource | 
 testModuleEnded 
public void testModuleEnded ()
 testModuleStarted 
public void testModuleStarted (IInvocationContext moduleContext)
| پارامترها | 
|---|
| moduleContext | IInvocationContext | 
 testRunEnded 
public void testRunEnded (long elapsedTime, 
                 runMetrics)| پارامترها | 
|---|
| elapsedTime | 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)| پارامترها | 
|---|
| runName | String | 
| testCount | int | 
| attemptNumber | int | 
 testRunStarted 
public void testRunStarted (String runName, 
                int testCount)| پارامترها | 
|---|
| runName | String | 
| testCount | int | 
 testRunStarted 
public void testRunStarted (String runName, 
                int testCount, 
                int attemptNumber, 
                long startTime)| پارامترها | 
|---|
| runName | String | 
| testCount | int | 
| attemptNumber | int | 
| startTime | long | 
testRunStopped 
public void testRunStopped (long elapsedTime)
| پارامترها | 
|---|
| elapsedTime | long | 
 تست شروع شد 
public void testStarted (TestDescription test, 
                long startTime)| پارامترها | 
|---|
| test | TestDescription | 
| startTime | long | 
 تست شروع شد 
public void testStarted (TestDescription test)
| پارامترها | 
|---|
| test | TestDescription | 
 روش های محافظت شده
 دریافت شنوندگان 
protected  getListeners ()
لیست شنوندگان را دریافت کنید. فقط برای استفاده توسط زیر کلاس ها در نظر گرفته شده است.
 setListeners 
protected void setListeners ( listeners)
شنوندگان را پس از ساخت تنظیم کنید. فقط برای استفاده توسط زیر کلاس ها در نظر گرفته شده است.
 setListeners 
protected void setListeners (ITestInvocationListener... listeners)
شنوندگان را پس از ساخت تنظیم کنید. فقط برای استفاده توسط زیر کلاس ها در نظر گرفته شده است.
 
  
    
    
      
    
    
  
       
    
    
  
  
  محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و 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 بهوقت ساعت هماهنگ جهانی."],[],[]]