RunConfigDeviceRecovery

public class RunConfigDeviceRecovery
extends Object implements IMultiDeviceRecovery

java.lang.Object
   ↳ com.android.tradefed.device.recovery.RunConfigDeviceRecovery


通用基准 IMultiDeviceRecovery,用于运行 Tradefed 配置以执行恢复步骤。

摘要

公共构造函数

RunConfigDeviceRecovery()

公共方法

getExtraArguments(ITestDevice device)

获取要传递给配置的额外参数列表。

void recoverDevices( managedDevices)

恢复主机上的离线设备。

boolean shouldSkip(IManagedTestDevice device)

通过执行额外检查,增加在给定设备上跳过恢复的机会。

受保护的方法

ICommandScheduler getCommandScheduler()

返回 ICommandScheduler 实例。

IDeviceManager getDeviceManager()

返回 IDeviceManager 实例。

公共构造函数

RunConfigDeviceRecovery

public RunConfigDeviceRecovery ()

公共方法

getExtraArguments

public  getExtraArguments (ITestDevice device)

获取要传递给配置的额外参数列表。如果返回 null,则表示出了点问题,应尝试恢复。

参数
device ITestDevice:要针对其运行恢复的 ITestDevice

返回
要使用的 extra 参数的列表。或者,如果出现问题,则为 null。

recoverDevices

public void recoverDevices ( managedDevices)

恢复主机上的离线设备。

参数
managedDevices ITestDevice 列表。

shouldSkip

public boolean shouldSkip (IManagedTestDevice device)

通过执行额外检查,增加在给定设备上跳过恢复的机会。

参数
device IManagedTestDevice:要考虑恢复的 IManagedTestDevice

返回
boolean 如果应跳过恢复,则为 true。

受保护的方法

getCommandScheduler

protected ICommandScheduler getCommandScheduler ()

返回 ICommandScheduler 实例。公开以供测试。

返回
ICommandScheduler

getDeviceManager

protected IDeviceManager getDeviceManager ()

返回 IDeviceManager 实例。公开以供测试。

返回
IDeviceManager