อุปกรณ์ StateMonitor

public class DeviceStateMonitor
extends NativeDeviceStateMonitor

java.lang.Object
com.android.tradefed.device.NativeDeviceStateMonitor
com.android.tradefed.device.DeviceStateMonitor


คลาสตัวช่วยสำหรับการตรวจสอบสถานะของ IDevice

สรุป

ผู้รับเหมาก่อสร้างสาธารณะ

DeviceStateMonitor ( IDeviceManager mgr, IDevice device, boolean fastbootEnabled)

วิธีการที่ได้รับการป้องกัน

boolean postOnlineCheck (long waitTime)

การตรวจสอบเพิ่มเติมที่ต้องทำบนอุปกรณ์ออนไลน์

boolean waitForPmResponsive (long waitTime)

รอให้ตัวจัดการแพ็กเกจอุปกรณ์ตอบสนอง

ผู้รับเหมาก่อสร้างสาธารณะ

อุปกรณ์ StateMonitor

public DeviceStateMonitor (IDeviceManager mgr, 
                IDevice device, 
                boolean fastbootEnabled)

พารามิเตอร์
mgr IDeviceManager

device IDevice

fastbootEnabled boolean

วิธีการที่ได้รับการป้องกัน

โพสต์ออนไลน์เช็ค

protected boolean postOnlineCheck (long waitTime)

การตรวจสอบเพิ่มเติมที่ต้องทำบนอุปกรณ์ออนไลน์

พารามิเตอร์
waitTime long : เวลาเป็น ms ที่จะรอก่อนที่จะยอมแพ้

การส่งคืน
boolean true หากการตรวจสอบสำเร็จก่อนที่ waitTime จะหมดอายุ false เป็นอย่างอื่น

ขว้าง
DeviceNotAvailableException

waitForPm ตอบสนอง

protected boolean waitForPmResponsive (long waitTime)

รอให้ตัวจัดการแพ็กเกจอุปกรณ์ตอบสนอง

พารามิเตอร์
waitTime long : เวลาเป็น ms ที่จะรอก่อนที่จะยอมแพ้

การส่งคืน
boolean true หากการจัดการแพ็คเกจตอบสนองก่อนที่ waitTime จะหมดอายุ false เป็นอย่างอื่น