Thiết bị được quản lý từ xa

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 phiên bản Tradefed bên trong VM.

Bản tóm tắt

Nhà thầu xây dựng công cộng

ManagedRemoteDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

Tạo một ManagedRemoteDevice .

Phương pháp công khai

TestDeviceOptions getOptions ()

Ghi đè trình thu thập cơ sở để có thể giải quyết các tùy chọn động trước khi thử thực hiện thiết lập từ xa.

GceAvdInfo getRemoteAvdInfo ()

Trả về GceAvdInfo mô tả phiên bản từ xa.

void postInvocationTearDown (Throwable exception)

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

void setTestLogger (ITestLogger testLogger)

Phương pháp được bảo vệ

long getCurrentTime ()

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

void launchGce ()

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

Nhà thầu xây dựng công cộng

Thiết bị được quản lý từ xa

public ManagedRemoteDevice (IDevice device, 
                IDeviceStateMonitor stateMonitor, 
                IDeviceMonitor allocationMonitor)

Tạo một ManagedRemoteDevice .

Thông số
device IDevice : IDevice được liên kết

stateMonitor IDeviceStateMonitor : cơ chế IDeviceStateMonitor để sử dụng

allocationMonitor IDeviceMonitor : IDeviceMonitor để thông báo về những thay đổi trạng thái phân bổ.

Phương pháp công khai

getOptions

public TestDeviceOptions getOptions ()

Ghi đè trình thu thập cơ sở để có thể giải quyết các tùy chọn động trước khi thử thực hiện thiết lập từ xa.

Trả lại
TestDeviceOptions

getRemoteAvdInfo

public GceAvdInfo getRemoteAvdInfo ()

Trả về GceAvdInfo mô tả phiên bản từ xa.

Trả lại
GceAvdInfo

postInvocationTearDown

public void postInvocationTearDown (Throwable exception)

Thông số
exception Throwable

preInvocationSetup

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

Thông số
info IBuildInfo

attributes MultiMap

Ném
DeviceNotAvailableException
TargetSetupError

setTestLogger

public void setTestLogger (ITestLogger testLogger)

Thông số
testLogger ITestLogger

Phương pháp được bảo vệ

lấy thời gian hiện tại

protected long getCurrentTime ()

Trả về thời gian hiện tại của hệ thống. Tiếp xúc để thử nghiệm.

Trả lại
long

ra mắtGce

protected void launchGce ()

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

Ném
TargetSetupError