SandboxedInvocationExecution

public class SandboxedInvocationExecution
extends InvocationExecution

java.lang.Object
   ↳ com.android.tradefed.invoker.InvocationExecution
     ↳ com.android.tradefed.invoker.sandbox.SandboxedInvocationExecution


הרצה מיוחדת של הקריאה בתוך ארגז החול: זוהי InvocationExection כשנמצאים בתוך ארגז החול ומריצים את הפקודה. הגרסה אמורה להיות זמינה כבר בהקשר.

סיכום

‫constructors ציבוריים

SandboxedInvocationExecution()

‫methods ציבוריים

void cleanUpBuilds(IInvocationContext context, IConfiguration config)

מריצים את שלב הניקוי build_provider.

boolean fetchBuild(TestInformation testInfo, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener listener)

מריצים את השלב build_provider של הקריאה.

שיטות מוגנות

List<ITargetPreparer> getLabPreparersToRun(IConfiguration config, String deviceName)

אחזור רשימה של מכיני מעבדה להפעלה במכשיר הזה.

List<ITargetPreparer> getTargetPreparersToRun(IConfiguration config, String deviceName)

אחזור רשימה של מכיני יעדים להפעלה במכשיר הזה.

void logHostAdb(IConfiguration config, ITestLogger logger)

אוספים את היומנים מ-$TMPDIR/adb.$UID.log.

‫constructors ציבוריים

SandboxedInvocationExecution

public SandboxedInvocationExecution ()

‫methods ציבוריים

cleanUpBuilds

public void cleanUpBuilds (IInvocationContext context, 
                IConfiguration config)

מריצים את שלב הניקוי build_provider. משויך לאחזור של הגרסה.

פרמטרים
context IInvocationContext: ה-IInvocationContext של ההפעלה.

config IConfiguration: IConfiguration של הרצת הבדיקה הזו.

fetchBuild

public boolean fetchBuild (TestInformation testInfo, 
                IConfiguration config, 
                IRescheduler rescheduler, 
                ITestInvocationListener listener)

מריצים את השלב build_provider של הקריאה.

פרמטרים
testInfo TestInformation: ה-TestInformation של ההפעלה.

config IConfiguration: IConfiguration של הרצת הבדיקה הזו.

rescheduler IRescheduler: IRescheduler, לתזמון מחדש של חלקים מההפעלה לביצוע במשאבים אחרים

listener ITestInvocationListener: ITestInvocation לדיווח על כשלים בהורדת גרסת Build.

החזרות
boolean ‫True אם הורדנו את הגרסה בהצלחה, אחרת False.

הקפצת הודעות שגיאה (throw)
BuildRetrievalError
DeviceNotAvailableException

שיטות מוגנות

getLabPreparersToRun

protected List<ITargetPreparer> getLabPreparersToRun (IConfiguration config, 
                String deviceName)

אחזור רשימה של מכיני מעבדה להפעלה במכשיר הזה.

מוחלף בכיתות של ארגז חול כדי להגביל את ההרצה של קבצים להכנת שיעור Lab בתוך ארגז החול (sandbox) של הצאצא

פרמטרים
config IConfiguration

deviceName String

החזרות
List<ITargetPreparer>

getTargetPreparersToRun

protected List<ITargetPreparer> getTargetPreparersToRun (IConfiguration config, 
                String deviceName)

אחזור רשימה של מכיני יעדים להפעלה במכשיר הזה.

מוחלף בכיתות של ארגז חול כדי להגביל את ההרצה של קבצים להכנת שיעור Lab בתוך ארגז החול (sandbox) של הצאצא

פרמטרים
config IConfiguration

deviceName String

החזרות
List<ITargetPreparer>

logHostAdb

protected void logHostAdb (IConfiguration config, 
                ITestLogger logger)

אוספים את היומנים מ-$TMPDIR/adb.$UID.log.

פרמטרים
config IConfiguration

logger ITestLogger