RunCommandTargetPreparer
public
class
RunCommandTargetPreparer
extends BaseTargetPreparer
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.RunCommandTargetPreparer |
סיכום
יוצרים ציבוריים | |
---|---|
RunCommandTargetPreparer()
|
שיטות ציבוריות | |
---|---|
final
void
|
addRunCommand(String cmd)
כאן מוסיפים פקודה שתריץ את הפקודה. |
|
getCommands()
|
|
getExecutedCommands()
|
void
|
setUp(TestInformation testInfo)
|
void
|
tearDown(TestInformation testInfo, Throwable e)
|
שיטות מוגנות | |
---|---|
ITestDevice
|
getDevice(TestInformation testInfo)
הפונקציה מחזירה את המכשיר שעליו רוצים להחיל את ההכנה. |
יוצרים ציבוריים
RunCommandTargetPreparer
public RunCommandTargetPreparer ()
שיטות ציבוריות
addRunCommand
public final void addRunCommand (String cmd)
מוסיפים פקודה שתופעל על ידי הגורם שמכין את ה-build.
פרמטרים | |
---|---|
cmd |
String |
getCommands
publicgetCommands ()
החזרות | |
---|---|
|
getExecutedCommands
publicgetExecutedCommands ()
החזרות | |
---|---|
|
setUp
public void setUp (TestInformation testInfo)
פרמטרים | |
---|---|
testInfo |
TestInformation |
זריקות | |
---|---|
DeviceNotAvailableException |
|
TargetSetupError |
פירעון
public void tearDown (TestInformation testInfo, Throwable e)
פרמטרים | |
---|---|
testInfo |
TestInformation |
e |
Throwable |
קליעות | |
---|---|
DeviceNotAvailableException |
שיטות מוגנות
getDevice
protected ITestDevice getDevice (TestInformation testInfo)
מחזיר את המכשיר כדי להחיל את הכלי להכנת מכשירי Android.
החזרות | |
---|---|
ITestDevice |
המכשיר שבו רוצים להחיל את הכלי להכנת מכשיר. |
זריקות | |
---|---|
|
com.android.tradefed.targetprep.TargetSetupError |
TargetSetupError |