RemoteAndroidVirtualDevice
public class RemoteAndroidVirtualDevice
extends RemoteAndroidDevice
implements ITestLoggerReceiver
Mở rộng hành vi RemoteAndroidDevice
cho một thiết bị Android đầy đủ chạy trong Google Compute Engine (Gce). Giả sử sê-ri thiết bị sẽ có định dạng : trong adb.
Tóm lược
Công cụ xây dựng
Phương pháp công khai
getAvdInfo
public GceAvdInfo getAvdInfo ()
Trả về GceAvdInfo
từ máy ảo từ xa đã tạo. Trả về null nếu quá trình hiển thị không thành công.
getDeviceDescriptor
public DeviceDescriptor getDeviceDescriptor ()
Lợi nhuận |
---|
DeviceDescriptor | |
getTombstones
public getTombstones ()
Mực nang có một tính năng đặc biệt là mang bia mộ đến cho gia chủ ở xa chúng tôi có thể lấy trực tiếp.
Ném |
---|
DeviceNotAvailableException | |
postBootSetup
public void postBootSetup ()
{@thừa kế }
Ném |
---|
DeviceNotAvailableException | |
postInvocationTearDown
public void postInvocationTearDown (Throwable exception)
Thông số |
---|
exception | Throwable |
powerwashGce
public boolean powerwashGce ()
Cố gắng powerwash một phiên bản GCE
Lợi nhuận |
---|
boolean | trả về true nếu powerwash Gce thành công. |
Ném |
---|
| com.android.tradefed.targetprep.TargetSetupError |
DeviceNotAvailableException | |
TargetSetupError | |
preInvocationSetup
public void preInvocationSetup (IBuildInfo info)
Ném |
---|
DeviceNotAvailableException | |
TargetSetupError | |
recoveryDevice
public void recoverDevice ()
Cố gắng khôi phục giao tiếp của thiết bị.
Ném |
---|
DeviceNotAvailableException | |
setTestLogger
public void setTestLogger (ITestLogger testLogger)
Thông số |
---|
testLogger | ITestLogger |
Các phương pháp được bảo vệ
doAdbReboot
protected void doAdbReboot (NativeDevice.RebootMode rebootMode,
String reason)
Thực hiện khởi động lại adb.
Thông số |
---|
rebootMode | NativeDevice.RebootMode : một chế độ khởi động lại này. |
reason | String : cho lần khởi động lại này. |
Ném |
---|
DeviceNotAvailableException | |
getCurrentTime
protected long getCurrentTime ()
Trả về thời gian hệ thống hiện tại. Phơi để thử nghiệm.
khởi chạy
protected void launchGce (IBuildInfo buildInfo)
Khởi chạy thiết bị gce thực tế dựa trên thông tin bản dựng.
Thông số |
---|
buildInfo | IBuildInfo |
waitForTunnelOnline
protected void waitForTunnelOnline (long waitTime)
Kiểm tra xem trình giám sát đường hầm có đang chạy không.
Ném |
---|
DeviceNotAvailableException | |