ManagedRemoteDevice
public
class
ManagedRemoteDevice
extends TestDevice
implements
ITestLoggerReceiver
java.lang.Object | |||
↳ | com.android.tradefed.device.NativeDevice | ||
↳ | com.android.tradefed.device.TestDevice | ||
↳ | com.android.tradefed.device.cloud.ManagedRemoteDevice |
Một thiết bị chạy bên trong máy ảo mà chúng tôi quản lý từ xa thông qua một thực thể Tradefed bên trong máy ảo.
Tóm tắt
Hàm khởi tạo công khai | |
---|---|
ManagedRemoteDevice(IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)
Tạo |
Phương thức công khai | |
---|---|
void
|
postInvocationTearDown(Throwable exception)
Các bước bổ sung để dọn dẹp bắt buộc theo thiết bị sẽ được thực thi sau khi lệnh gọi hoàn tất. |
void
|
preInvocationSetup(IBuildInfo info, MultiMap<String, String> attributes)
Các bước bổ sung để thiết lập bắt buộc theo thiết bị sẽ được thực thi trên thiết bị trước khi thực hiện luồng gọi. |
Hàm khởi tạo công khai
ManagedRemoteDevice
public ManagedRemoteDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)
Tạo ManagedRemoteDevice
.
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
postInvocationTearDown
public void postInvocationTearDown (Throwable exception)
Các bước bổ sung để dọn dẹp bắt buộc theo thiết bị sẽ được thực thi sau khi lệnh gọi hoàn tất.
Tham số | |
---|---|
exception |
Throwable : ngoại lệ cuối cùng (nếu có) do lỗi gọi gây ra. |
preInvocationSetup
public void preInvocationSetup (IBuildInfo info, MultiMap<String, String> attributes)
Các bước bổ sung để thiết lập bắt buộc theo thiết bị sẽ được thực thi trên thiết bị trước khi thực hiện luồng gọi.
Tham số | |
---|---|
info |
IBuildInfo : IBuildInfo của thiết bị. |
attributes |
MultiMap : Các thuộc tính được lưu trữ trong ngữ cảnh gọi |
Gửi | |
---|---|
DeviceNotAvailableException |
|
TargetSetupError |