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 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 VM.
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 từng thiết bị cụ thể sẽ được thực thi sau khi hoàn tất lệnh gọi. |
void
|
preInvocationSetup(IBuildInfo info, MultiMap<String, String> attributes)
Các bước bổ sung cho chế độ thiết lập bắt buộc dành riêng cho thiết bị sẽ được thực thi trên thiết bị trước quy trình 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 từng thiết bị cụ thể sẽ được thực thi sau khi hoàn tất lệnh gọi.
| Tham số | |
|---|---|
exception |
Throwable: nếu có, ngoại lệ cuối cùng do lỗi gọi gây ra. |
preInvocationSetup
public void preInvocationSetup (IBuildInfo info, MultiMap<String, String> attributes)
Các bước bổ sung cho chế độ thiết lập bắt buộc dành riêng cho thiết bị sẽ được thực thi trên thiết bị trước quy trình 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 |
|