RemoteAndroidVirtualDevice
public
class
RemoteAndroidVirtualDevice
extends RemoteAndroidDevice
implements
ITestLoggerReceiver
| java.lang.Object | ||||
| ↳ | com.android.tradefed.device.NativeDevice | |||
| ↳ | com.android.tradefed.device.TestDevice | |||
| ↳ | com.android.tradefed.device.RemoteAndroidDevice | |||
| ↳ | com.android.tradefed.device.cloud.RemoteAndroidVirtualDevice | |||
Google Compute Engine'da (Gce) çalışan tam yığın Android cihazlar için RemoteAndroidDevice davranışını genişletir. Cihaz seri numarasının adb'de
Özet
Herkese açık kurucular | |
|---|---|
RemoteAndroidVirtualDevice(IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)
Bir |
|
Herkese açık yöntemler | |
|---|---|
GceAvdInfo
|
getAvdInfo()
Oluşturulan uzak sanal makineden |
DeviceDescriptor
|
getDeviceDescriptor()
|
|
getTombstones()
Cuttlefish, doğrudan alabileceğimiz uzak ana makineye mezar taşlarını getiren özel bir özelliğe sahiptir. |
void
|
postBootSetup()
{@inherit } |
void
|
postInvocationTearDown(Throwable exception)
|
boolean
|
powerwashGce()
GCE örneğini temizleme |
void
|
preInvocationSetup(IBuildInfo info, MultiMap<String, String> attributes)
|
void
|
recoverDevice()
Cihazla iletişimi kurtarmaya çalışır. |
void
|
setGceSshMonitor(GceSshTunnelMonitor gceSshMonitor)
Cihazın dahili |
void
|
setTestLogger(ITestLogger testLogger)
|
Korunan yöntemler | |
|---|---|
void
|
doAdbReboot(NativeDevice.RebootMode rebootMode, String reason)
adb reboot komutunu çalıştırın. |
long
|
getCurrentTime()
Mevcut sistem saatini döndürür. |
GceSshTunnelMonitor
|
getGceSshMonitor()
Cihazın |
void
|
launchGce(IBuildInfo buildInfo, MultiMap<String, String> attributes)
Derleme bilgilerine 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. |
Herkese açık kurucular
RemoteAndroidVirtualDevice
public RemoteAndroidVirtualDevice (IDevice device,
IDeviceStateMonitor stateMonitor,
IDeviceMonitor allocationMonitor)Bir RemoteAndroidVirtualDevice oluşturur.
| Parametreler | |
|---|---|
device |
IDevice: ilişkili IDevice |
stateMonitor |
IDeviceStateMonitor: Kullanılacak IDeviceStateMonitor mekanizması |
allocationMonitor |
IDeviceMonitor: IDeviceMonitor, tahsis durumu değişikliklerini bildirmek için.
|
Herkese açık yöntemler
getAvdInfo
public GceAvdInfo getAvdInfo ()
Oluşturulan uzak sanal makineden GceAvdInfo değerini döndürür. Başlatma işlemi başarılı değilse null döndürür.
| İlerlemeler | |
|---|---|
GceAvdInfo |
|
getDeviceDescriptor
public DeviceDescriptor getDeviceDescriptor ()
| İlerlemeler | |
|---|---|
DeviceDescriptor |
|
getTombstones
publicgetTombstones ()
Cuttlefish, doğrudan alabileceğimiz uzak ana makineye mezar taşlarını getiren özel bir özelliğe sahiptir.
| İlerlemeler | |
|---|---|
|
|
| Atışlar | |
|---|---|
DeviceNotAvailableException |
|
postBootSetup
public void postBootSetup ()
{@inherit }
| Atışlar | |
|---|---|
DeviceNotAvailableException |
|
postInvocationTearDown
public void postInvocationTearDown (Throwable exception)
| Parametreler | |
|---|---|
exception |
Throwable |
powerwashGce
public boolean powerwashGce ()
GCE örneğini temizleme
| İlerlemeler | |
|---|---|
boolean |
Gce temizleme işlemi başarılıysa doğru değerini döndürür. |
| Atışlar | |
|---|---|
|
com.android.tradefed.targetprep.TargetSetupError |
DeviceNotAvailableException |
|
TargetSetupError |
|
preInvocationSetup
public void preInvocationSetup (IBuildInfo info,
MultiMap<String, String> attributes)
| Parametreler | |
|---|---|
info |
IBuildInfo |
attributes |
MultiMap |
| Atışlar | |
|---|---|
DeviceNotAvailableException |
|
TargetSetupError |
|
recoverDevice
public void recoverDevice ()
Cihazla iletişimi kurtarmaya çalışır.
| Atışlar | |
|---|---|
DeviceNotAvailableException |
|
setGceSshMonitor
public void setGceSshMonitor (GceSshTunnelMonitor gceSshMonitor)
Cihazın dahili GceSshTunnelMonitor değerini geçersiz kılın.
| Parametreler | |
|---|---|
gceSshMonitor |
GceSshTunnelMonitor |
setTestLogger
public void setTestLogger (ITestLogger testLogger)
| Parametreler | |
|---|---|
testLogger |
ITestLogger |
Korunan yöntemler
doAdbReboot
protected void doAdbReboot (NativeDevice.RebootMode rebootMode, String reason)
adb reboot komutunu çalıştırın.
| Parametreler | |
|---|---|
rebootMode |
NativeDevice.RebootMode: Bu yeniden başlatma modu. |
reason |
String: için bu yeniden başlatma işlemini gerçekleştirin. |
| Atışlar | |
|---|---|
DeviceNotAvailableException |
|
getCurrentTime
protected long getCurrentTime ()
Mevcut sistem saatini döndürür. Test için yayınlandı.
| İlerlemeler | |
|---|---|
long |
|
getGceSshMonitor
protected GceSshTunnelMonitor getGceSshMonitor ()
Cihazın GceSshTunnelMonitor değerini döndürür.
Test için yayınlandı.
| İlerlemeler | |
|---|---|
GceSshTunnelMonitor |
|
launchGce
protected void launchGce (IBuildInfo buildInfo,
MultiMap<String, String> attributes)Derleme bilgilerine göre gerçek gce cihazını başlatın.
| Parametreler | |
|---|---|
buildInfo |
IBuildInfo |
attributes |
MultiMap |
| Atışlar | |
|---|---|
TargetSetupError |
|
waitForTunnelOnline
protected void waitForTunnelOnline (long waitTime)
Tünel monitörünün çalışıp çalışmadığını kontrol edin.
| Parametreler | |
|---|---|
waitTime |
long |
| Atışlar | |
|---|---|
DeviceNotAvailableException |
|