NestedRemoteDevice

public class NestedRemoteDevice
extends TestDevice

java.lang.Object
com.android.tradefed.device.NativeDevice
com.android.tradefed.device.TestDevice
com.android.tradefed.device.cloud.NestedRemoteDevice


ייצוג המכשיר הפועל בתוך מכשיר VM מרוחק של Cuttlefish. זה ישנה את התנהגות TestDevice של המכשיר המקומי במקרים מסוימים כדי לנצל את ההגדרה.

סיכום

בנאים ציבוריים

NestedRemoteDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

יוצר NestedRemoteDevice .

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

void preInvocationSetup (IBuildInfo info, MultiMap<String, String> attributes)

final boolean resetVirtualDevice (ITestLogger logger, IBuildInfo info, boolean resetDueToFailure)

הפיקו ושחזרו את המכשיר הווירטואלי כדי שהבדיקה תוכל להמשיך.

בנאים ציבוריים

NestedRemoteDevice

public NestedRemoteDevice (IDevice device, 
                IDeviceStateMonitor stateMonitor, 
                IDeviceMonitor allocationMonitor)

יוצר NestedRemoteDevice .

פרמטרים
device IDevice : ה- IDevice המשויך

stateMonitor IDeviceStateMonitor : מנגנון IDeviceStateMonitor לשימוש

allocationMonitor IDeviceMonitor : ה- IDeviceMonitor ליידע על שינויים במצב ההקצאה.

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

preInvocationSetup

public void preInvocationSetup (IBuildInfo info, 
                MultiMap<String, String> attributes)

פרמטרים
info IBuildInfo

attributes MultiMap

זורק
DeviceNotAvailableException
TargetSetupError

resetVirtualDevice

public final boolean resetVirtualDevice (ITestLogger logger, 
                IBuildInfo info, 
                boolean resetDueToFailure)

הפיקו ושחזרו את המכשיר הווירטואלי כדי שהבדיקה תוכל להמשיך.

פרמטרים
logger ITestLogger

info IBuildInfo

resetDueToFailure boolean

החזרות
boolean

זורק
DeviceNotAvailableException