Điều Khiển Từ XaAndroidThiết Bị Ảo

public class RemoteAndroidVirtualDevice
extends RemoteAndroidDevice

java.lang.Object
com.android.tradefed.device.NativeDevice
com.android.tradefed.device.TestDevice
com.android.tradefed.device.RemoteAndroidDevice
com.android.tradefed.device.cloud.RemoteAndroidVirtualDevice


Mở rộng hành vi RemoteAndroidDevice cho thiết bị Android đầy đủ ngăn xếp chạy trong Google Compute Engine (Gce). Giả sử sê-ri thiết bị sẽ ở định dạng : trong adb.

Bản tóm tắt

nhà thầu công cộng

RemoteAndroidVirtualDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

Tạo một RemoteAndroidVirtualDevice .

Phương thức công khai

GceAvdInfo getAvdInfo ()

Trả về GceAvdInfo từ máy ảo từ xa đã tạo.

GceAvdInfo getAvdInfoAnyState ()

Trả về GceAvdInfo từ máy ảo từ xa đã tạo.

DeviceDescriptor getDeviceDescriptor ()

Trả về một DeviceDescriptor từ thông tin thiết bị để nhận thông tin về thiết bị mà không chuyển đối tượng thiết bị thực tế.

getTombstones ()

Mực nang có một tính năng đặc biệt mang bia mộ đến máy chủ từ xa nơi chúng ta có thể lấy chúng trực tiếp.

CommandResult powerwash ()

Cố gắng powerwash một phiên bản GCE

CommandResult powerwashGce (String user, Integer offset)

Phương pháp này không được chấp nhận. Đã xóa để ủng hộ kết nối một

boolean powerwashGce ()
void setAvdInfo ( GceAvdInfo gceAvdInfo)

Đặt GceAvdInfo cho thiết bị đã khởi chạy.

nhà thầu công cộng

Điều Khiển Từ XaAndroidThiết Bị Ảo

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

Tạo một RemoteAndroidVirtualDevice .

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ề các thay đổi trạng thái phân bổ.

Phương thức công khai

getAvdInfo

public GceAvdInfo getAvdInfo ()

Trả về GceAvdInfo từ máy ảo từ xa đã tạo. Trả về null nếu việc đưa lên không thành công.

trả lại
GceAvdInfo

getAvdInfoAnyState

public GceAvdInfo getAvdInfoAnyState ()

Trả về GceAvdInfo từ máy ảo từ xa đã tạo. Trả lại bất kể trạng thái để chúng tôi có thể kiểm tra thông tin.

trả lại
GceAvdInfo

getDeviceDescriptor

public DeviceDescriptor getDeviceDescriptor ()

Trả về một DeviceDescriptor từ thông tin thiết bị để nhận thông tin về thiết bị mà không chuyển đối tượng thiết bị thực tế.

trả lại
DeviceDescriptor

lấy bia mộ

public  getTombstones ()

Mực nang có một tính năng đặc biệt mang bia mộ đến máy chủ từ xa nơi chúng ta có thể lấy chúng trực tiếp.

trả lại
Một danh sách các tập tin bia mộ, trống nếu không có bia mộ.

ném
DeviceNotAvailableException

rửa sạch

public CommandResult powerwash ()

Cố gắng powerwash một phiên bản GCE

trả lại
CommandResult trả về CommandResult của các lần thử powerwash

ném
com.android.tradefed.targetprep.TargetSetupError
TargetSetupError

powerwashGce

public CommandResult powerwashGce (String user, 
                Integer offset)

Phương pháp này không được chấp nhận.
Đã xóa để ủng hộ kết nối một

Thông số
user String

offset Integer

trả lại
CommandResult

ném
TargetSetupError

powerwashGce

public boolean powerwashGce ()

trả lại
boolean

ném
TargetSetupError

setAvdInfo

public void setAvdInfo (GceAvdInfo gceAvdInfo)

Đặt GceAvdInfo cho thiết bị đã khởi chạy.

Thông số
gceAvdInfo GceAvdInfo

ném
TargetSetupError