DeviceStateMonitor

public class DeviceStateMonitor
extends NativeDeviceStateMonitor

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


Lớp trợ giúp để theo dõi trạng thái của một IDevice.

Tóm tắt

Hàm khởi tạo công khai

DeviceStateMonitor(IDeviceManager mgr, IDevice device, boolean fastbootEnabled)

Phương thức được bảo vệ

boolean postOnlineCheck(long waitTime)

Các bước kiểm tra bổ sung cần thực hiện trên thiết bị có kết nối Internet

boolean waitForPmResponsive(long waitTime)

Chờ trình quản lý gói thiết bị phản hồi.

Hàm khởi tạo công khai

DeviceStateMonitor

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

Tham số
mgr IDeviceManager

device IDevice

fastbootEnabled boolean

Phương thức được bảo vệ

postOnlineCheck

protected boolean postOnlineCheck (long waitTime)

Các bước kiểm tra bổ sung cần thực hiện trên thiết bị có kết nối Internet

Tham số
waitTime long: thời gian chờ tính bằng mili giây trước khi bỏ cuộc

Giá trị trả về
boolean true nếu quy trình kiểm tra thành công trước khi waitTime hết hạn. Nếu không thì là false

Gửi
DeviceNotAvailableException

waitForPmResponsive

protected boolean waitForPmResponsive (long waitTime)

Chờ trình quản lý gói thiết bị phản hồi.

Tham số
waitTime long: thời gian chờ tính bằng mili giây trước khi bỏ cuộc

Giá trị trả về
boolean true nếu trình quản lý gói phản hồi trước khi hết thời gian chờ. Nếu không thì là false