UzakAndroidSanalCihaz
public class RemoteAndroidVirtualDevice
extends RemoteAndroidDevice
implements ITestLoggerReceiver
java.lang.Nesne | ||||
↳ | com.android.tradefed.device.NativeDevice | |||
↳ | com.android.tradefed.device.TestDevice | |||
↳ | com.android.tradefed.device.RemoteAndroidDevice | |||
↳ | com.android.tradefed.device.cloud.RemoteAndroidVirtualDevice |
Uzattı RemoteAndroidDevice
Google Compute Engine (Gce) çalışan tam bir yığın android cihaz için davranışını. Aygıtın seri biçiminde olacağını varsayın
Özet
Kamu inşaatçıları | |
---|---|
RemoteAndroidVirtualDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor) Bir oluşturur |
Genel yöntemler | |
---|---|
GceAvdInfo | getAvdInfo () İade |
DeviceDescriptor | getDeviceDescriptor () |
getTombstones () Mürekkepbalığı, mezar taşlarını doğrudan alabileceğimiz uzak ana bilgisayara getiren özel bir özelliğe sahiptir. | |
void | postBootSetup () {@miras } |
void | postInvocationTearDown (Throwable exception) |
boolean | powerwashGce () Bir GCE örneğine güç yıkama girişiminde bulunma |
void | preInvocationSetup (IBuildInfo info, MultiMap<String, String> attributes) |
void | recoverDevice () Cihaz iletişimini kurtarmaya çalışır. |
void | setGceSshMonitor ( GceSshTunnelMonitor gceSshMonitor) İç geçersiz kıl |
void | setTestLogger (ITestLogger testLogger) |
Korumalı yöntemler | |
---|---|
void | doAdbReboot ( NativeDevice.RebootMode rebootMode, String reason) Bir adb yeniden başlatma gerçekleştirin. |
long | getCurrentTime () Geçerli sistem saatini döndürür. |
GceSshTunnelMonitor | getGceSshMonitor () İade |
void | launchGce (IBuildInfo buildInfo, MultiMap<String, String> attributes) Yapı bilgisine göre gerçek gce cihazını başlatın. |
void | waitForTunnelOnline (long waitTime) Tünel monitörünün çalışıp çalışmadığını kontrol edin. |
Kamu inşaatçıları
UzakAndroidSanalCihaz
public RemoteAndroidVirtualDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)
Bir oluşturur RemoteAndroidVirtualDevice
.
parametreler | |
---|---|
device | IDevice : ilişkili IDevice |
stateMonitor | IDeviceStateMonitor : IDeviceStateMonitor kullanımına mekanizma |
allocationMonitor | IDeviceMonitor : IDeviceMonitor tahsis durum değişiklikleri bildirmek. |
Genel yöntemler
getAvdInfo
public GceAvdInfo getAvdInfo ()
İade GceAvdInfo
oluşturulan uzak VM. Getirme başarılı olmazsa null döndürür.
İadeler | |
---|---|
GceAvdInfo |
getDeviceDescriptor
public DeviceDescriptor getDeviceDescriptor ()
İadeler | |
---|---|
DeviceDescriptor |
Mezar taşlarını al
publicgetTombstones ()
Mürekkepbalığı, mezar taşlarını doğrudan alabileceğimiz uzak ana bilgisayara getiren özel bir özelliğe sahiptir.
İadeler | |
---|---|
atar | |
---|---|
DeviceNotAvailableException |
postBootSetup
public void postBootSetup ()
{@miras }
atar | |
---|---|
DeviceNotAvailableException |
postInceptionTearDown
public void postInvocationTearDown (Throwable exception)
parametreler | |
---|---|
exception | Throwable |
powerwashGce
public boolean powerwashGce ()
Bir GCE örneğine güç yıkama girişiminde bulunma
İadeler | |
---|---|
boolean | powerwash Gce başarılı olursa true döner. |
atar | |
---|---|
| com.android.tradefed.targetprep.TargetSetupError |
DeviceNotAvailableException | |
TargetSetupError |
ön Çağırma Kurulumu
public void preInvocationSetup (IBuildInfo info, MultiMap<String, String> attributes)
parametreler | |
---|---|
info | IBuildInfo |
attributes | MultiMap |
atar | |
---|---|
DeviceNotAvailableException | |
TargetSetupError |
kurtarma cihazı
public void recoverDevice ()
Cihaz iletişimini kurtarmaya çalışır.
atar | |
---|---|
DeviceNotAvailableException |
setGceSshMonitor
public void setGceSshMonitor (GceSshTunnelMonitor gceSshMonitor)
İç geçersiz kıl GceSshTunnelMonitor
cihazın.
parametreler | |
---|---|
gceSshMonitor | GceSshTunnelMonitor |
setTestLogger
public void setTestLogger (ITestLogger testLogger)
parametreler | |
---|---|
testLogger | ITestLogger |
Korumalı yöntemler
doAdbReboot
protected void doAdbReboot (NativeDevice.RebootMode rebootMode, String reason)
Bir adb yeniden başlatma gerçekleştirin.
parametreler | |
---|---|
rebootMode | NativeDevice.RebootMode : Bu yeniden başlatma bir mod. |
reason | String : Bu yeniden başlatmak için. |
atar | |
---|---|
DeviceNotAvailableException |
getCurrentTime
protected long getCurrentTime ()
Geçerli sistem saatini döndürür. Test için maruz bırakıldı.
İadeler | |
---|---|
long |
getGceSshMonitor
protected GceSshTunnelMonitor getGceSshMonitor ()
İade GceSshTunnelMonitor
cihazın. Test için maruz bırakıldı.
İadeler | |
---|---|
GceSshTunnelMonitor |
launchGce
protected void launchGce (IBuildInfo buildInfo, MultiMap<String, String> attributes)
Yapı bilgisine göre gerçek gce cihazını başlatın.
parametreler | |
---|---|
buildInfo | IBuildInfo |
attributes | MultiMap |
atar | |
---|---|
TargetSetupError |
bekleForTünelÇevrimiçi
protected void waitForTunnelOnline (long waitTime)
Tünel monitörünün çalışıp çalışmadığını kontrol edin.
parametreler | |
---|---|
waitTime | long |
atar | |
---|---|
DeviceNotAvailableException |