設備分配狀態
public final enum DeviceAllocationState
extends Enum< DeviceAllocationState >
java.lang.Object | ||
↳ | java.lang.Enum< com.android.tradefed.device.DeviceAllocationState > | |
↳ | com.android.tradefed.device.DeviceAllocationState |
從 IDeviceManager 角度表示設備的分配狀態
概括
枚舉值 | |
---|---|
DeviceAllocationState | Allocated 設備當前分配給測試 |
DeviceAllocationState | Available 設備可分配給測試 |
DeviceAllocationState | Checking_Availability 當前正在檢查設備的響應能力 |
DeviceAllocationState | Ignored 設備與全局設備過濾器不匹配,將被此 TF 忽略 |
DeviceAllocationState | Unavailable 設備通過 adb 可見,但處於錯誤狀態,無法運行測試 |
DeviceAllocationState | Unknown 設備的初始狀態 - 不應長期駐留在此處 |
公共方法 | |
---|---|
DeviceAllocationState | handleDeviceEvent (DeviceEvent event) |
static DeviceAllocationState | valueOf (String name) |
static final DeviceAllocationState[] | values () |
枚舉值
公共方法
處理設備事件
public DeviceAllocationState handleDeviceEvent (DeviceEvent event)
參數 | |
---|---|
event | DeviceEvent |
退貨 | |
---|---|
DeviceAllocationState |
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2023-04-28 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]