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

使用 `adb reboot fastboot` 時,如果 is-userspace = true,則為 Fastbootd 模式

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` 啟用 Fastboot 模式,並將 is-userspace 設為 true

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

public static final TestDeviceState[] values ()

傳回
TestDeviceState[]