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 reboot 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

FASTBOOTD

public static final TestDeviceState FASTBOOTD

雖然 `adb reboot fastboot` 具有 is-userspace = true,但仍為 Fastbootd 模式

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[]