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 ManagedRemoteDevice.

Phương thức công khai

TestDeviceOptions getOptions()

Ghi đè phương thức getter cơ sở để có thể phân giải các tuỳ chọn động trước khi tìm cách thiết lập từ xa.

GceAvdInfo getRemoteAvdInfo()

Trả về GceAvdInfo mô tả thực thể từ xa.

void postInvocationTearDown(Throwable exception)

void preInvocationSetup(IBuildInfo info, MultiMap<String, String> attributes)

void setTestLogger(ITestLogger testLogger)

Phương thức được bảo vệ

long getCurrentTime()

Trả về thời gian hệ thống hiện tại.

void launchGce()

Chạy thiết bị gce thực tế dựa trên thông tin bản dựng.

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

getOptions

public TestDeviceOptions getOptions ()

Ghi đè phương thức getter cơ sở để có thể phân giải các tuỳ chọn động trước khi tìm cách thiết lập từ xa.

Giá trị trả về
TestDeviceOptions

getRemoteAvdInfo

public GceAvdInfo getRemoteAvdInfo ()

Trả về GceAvdInfo mô tả thực thể từ xa.

Giá trị trả về
GceAvdInfo

postInvocationTearDown

public void postInvocationTearDown (Throwable exception)

Tham số
exception Throwable

preInvocationSetup

public void preInvocationSetup (IBuildInfo info, 
                MultiMap<String, String> attributes)

Tham số
info IBuildInfo

attributes MultiMap

Gửi
DeviceNotAvailableException
TargetSetupError

setTestLogger

public void setTestLogger (ITestLogger testLogger)

Tham số
testLogger ITestLogger

Phương thức được bảo vệ

getCurrentTime

protected long getCurrentTime ()

Trả về thời gian hệ thống hiện tại. Được hiển thị để kiểm thử.

Giá trị trả về
long

launchGce

protected void launchGce ()

Chạy thiết bị gce thực tế dựa trên thông tin bản dựng.

Gửi
TargetSetupError