SandboxedInvocationExecution

public class SandboxedInvocationExecution
extends InvocationExecution

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


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

סיכום

קונסטרוקטורים גלויים לכולם

SandboxedInvocationExecution()

שיטות ציבוריות

void cleanUpBuilds(IInvocationContext context, IConfiguration config)

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

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

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

שיטות מוגנות

getLabPreparersToRun(IConfiguration config, String deviceName)

אחזור רשימה של מכשירי Lab Prep לצורך הפעלה במכשיר הזה.

getTargetPreparersToRun(IConfiguration config, String deviceName)

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

void logHostAdb(IConfiguration config, ITestLogger logger)

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

קונסטרוקטורים גלויים לכולם

SandboxedInvocationExecution

public SandboxedInvocationExecution ()

שיטות ציבוריות

cleanUpBuilds

public void cleanUpBuilds (IInvocationContext context, 
                IConfiguration config)

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

פרמטרים
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 אם ההורדה של ה-build הושלמה, אחרת הערך False.

זריקות
BuildRetrievalError
DeviceNotAvailableException

שיטות מוגנות

getLabPreparersToRun

protected  getLabPreparersToRun (IConfiguration config, 
                String deviceName)

אחזור רשימה של מכשירי Lab Prep לצורך הפעלה במכשיר הזה.

האפשרות הזו מוחרגת בכיתות של ארגז החול כדי להגביל את ההרצה של כלי ההכנה של המעבדה בתוך הצאצא של ארגז החול

פרמטרים
config IConfiguration

deviceName String

החזרות

getTargetPreparersToRun

protected  getTargetPreparersToRun (IConfiguration config, 
                String deviceName)

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

האפשרות הזו מוחרגת בכיתות של ארגז החול כדי להגביל את ההרצה של כלי ההכנה של המעבדה בתוך הצאצא של ארגז החול

פרמטרים
config IConfiguration

deviceName String

החזרות

logHostAdb

protected void logHostAdb (IConfiguration config, 
                ITestLogger logger)

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

פרמטרים
config IConfiguration

logger ITestLogger