NestedRemoteDevice

public class NestedRemoteDevice
extends TestDevice

java.lang.Object
   ↳ com.android.tradefed.device.NativeDevice
     ↳ com.android.tradefed.device.TestDevice
       ↳ com.android.tradefed.device.cloud.NestedRemoteDevice


Biểu thị thiết bị đang chạy bên trong một máy ảo Cuttlefish từ xa. Trong một số trường hợp, chế độ này sẽ thay đổi hành vi của TestDevice thiết bị cục bộ để tận dụng chế độ thiết lập.

Tóm tắt

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

NestedRemoteDevice(IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

Tạo NestedRemoteDevice.

Phương thức công khai

final boolean resetVirtualDevice()

Tháo rời và khôi phục thiết bị ảo để quá trình kiểm thử có thể tiếp tục.

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

NestedRemoteDevice

public NestedRemoteDevice (IDevice device, 
                IDeviceStateMonitor stateMonitor, 
                IDeviceMonitor allocationMonitor)

Tạo NestedRemoteDevice.

Tham số
device IDevice: IDevice được liên kết

stateMonitor IDeviceStateMonitor: cơ chế IDeviceStateMonitor cần sử dụng

allocationMonitor IDeviceMonitor: IDeviceMonitor để thông báo về các thay đổi trạng thái phân bổ.

Phương thức công khai

resetVirtualDevice

public final boolean resetVirtualDevice ()

Tháo rời và khôi phục thiết bị ảo để quá trình kiểm thử có thể tiếp tục.

Giá trị trả về
boolean

Gửi
DeviceNotAvailableException