TestDeviceState

public final enum TestDeviceState
extends Enum<TestDeviceState>

java.lang.Object 中
   ↳ java.lang.Enum<com.android.tradefed.device.TestDeviceState>
     ↳ com.android.tradefed.device.TestDeviceState


DeviceState 相比,设备状态的功能更齐全。

从逻辑上讲,这应该会扩展 DeviceState,以便仅添加 FASTBOOT 和 NOT_AVAILABLE 状态,但不允许扩展枚举。

摘要

枚举值

TestDeviceState  FASTBOOT

 

TestDeviceState  FASTBOOTD

使用 fastbootd 模式时,使用 is-userspace = true(通过 `adb restart fastboot`)

TestDeviceState  NOT_AVAILABLE

 

TestDeviceState  ONLINE

 

TestDeviceState  RECOVERY

 

TestDeviceState  SIDELOAD

 

公共方法

static TestDeviceState valueOf(String name)
static final TestDeviceState[] values()

枚举值

FASTBOOT

public static final TestDeviceState FASTBOOT

快速启动

public static final TestDeviceState FASTBOOTD

使用 fastbootd 模式时,使用 is-userspace = true(通过 `adb restart fastboot`)

NOT_AVAILABLE

public static final TestDeviceState NOT_AVAILABLE

线上

public static final TestDeviceState ONLINE

RECOVERY

public static final TestDeviceState RECOVERY

旁加载

public static final TestDeviceState SIDELOAD

公共方法

valueOf

public static TestDeviceState valueOf (String name)

参数
name String

返回
TestDeviceState

values

public static final TestDeviceState[] values ()

返回
TestDeviceState[]