Cục bộAndroidThiết bị ảo
public class LocalAndroidVirtualDevice
extends RemoteAndroidDevice
implements ITestLoggerReceiver
Lớp dành cho các thiết bị ảo cục bộ chạy trên máy chủ TradeFed.
Bản tóm tắt
nhà thầu công cộng
Cục bộAndroidThiết bị ảo
public LocalAndroidVirtualDevice (IDevice device,
IDeviceStateMonitor stateMonitor,
IDeviceMonitor allocationMonitor)
Thông số |
---|
device | IDevice |
stateMonitor | IDeviceStateMonitor |
allocationMonitor | IDeviceMonitor |
Phương thức công khai
adbTcpConnect
public boolean adbTcpConnect (String host,
String port)
Thông số |
---|
host | String |
port | String |
adbTcpNgắt kết nối
public boolean adbTcpDisconnect (String host,
String port)
Thông số |
---|
host | String |
port | String |
bài đăngLời cầu nguyệnTearDown
public void postInvocationTearDown (Throwable exception)
Thực hiện quy trình chia nhỏ thông thường và dừng thiết bị ảo.
Thông số |
---|
exception | Throwable : nếu có, ngoại lệ cuối cùng được đưa ra do lỗi gọi. |
cài đặt trước
public void preInvocationSetup (IBuildInfo info,
MultiMap<String, String> attributes)
Thực hiện quy trình thiết lập chung và khởi chạy thiết bị ảo.
Thông 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 |
setTestLogger
public void setTestLogger (ITestLogger testLogger)
Tiêm phiên bản ITestLogger
Thông số |
---|
testLogger | ITestLogger |
tắt
public void shutdown ()
Tắt máy.