DeviceResetHandler

public class DeviceResetHandler
extends Object

java.lang.Object
   ↳ com.android.tradefed.device.internal.DeviceResetHandler


Tiện ích xử lý việc đặt lại thiết bị một cách chung. Phương thức này chỉ được dùng nội bộ cho bộ kiểm thử. Bạn không nên gọi phương thức này trong quá trình kiểm thử.

Tóm tắt

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

DeviceResetHandler()
DeviceResetHandler(IInvocationContext context)

Phương thức công khai

boolean resetDevice(ITestDevice device)

Gọi lệnh đặt lại thiết bị đã cho.

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

DeviceResetHandler

public DeviceResetHandler ()

DeviceResetHandler

public DeviceResetHandler (IInvocationContext context)

Tham số
context IInvocationContext

Phương thức công khai

resetDevice

public boolean resetDevice (ITestDevice device)

Gọi lệnh đặt lại thiết bị đã cho.

Tham số
device ITestDevice: Thiết bị cần đặt lại.

Giá trị trả về
boolean Đúng nếu đặt lại thành công, sai nếu không.

Gửi
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException