Stay organized with collections
Save and categorize content based on your preferences.
LocalAndroidVirtualDevice
public
class
LocalAndroidVirtualDevice
extends RemoteAndroidDevice
implements
ITestLoggerReceiver
The class for local virtual devices running on TradeFed host.
Summary
Public constructors
LocalAndroidVirtualDevice
public LocalAndroidVirtualDevice (IDevice device,
IDeviceStateMonitor stateMonitor,
IDeviceMonitor allocationMonitor)
Parameters |
device |
IDevice |
stateMonitor |
IDeviceStateMonitor |
allocationMonitor |
IDeviceMonitor |
Public methods
adbTcpConnect
public boolean adbTcpConnect (String host,
String port)
Parameters |
host |
String |
port |
String |
adbTcpDisconnect
public boolean adbTcpDisconnect (String host,
String port)
Parameters |
host |
String |
port |
String |
postInvocationTearDown
public void postInvocationTearDown (Throwable exception)
Execute common tear-down procedure and stop the virtual device.
Parameters |
exception |
Throwable : if any, the final exception raised by the invocation failure. |
preInvocationSetup
public void preInvocationSetup (IBuildInfo info,
MultiMap<String, String> attributes)
Execute common setup procedure and launch the virtual device.
Parameters |
info |
IBuildInfo : The IBuildInfo of the device. |
attributes |
MultiMap : The attributes stored in the invocation context |
setTestLogger
public void setTestLogger (ITestLogger testLogger)
Injects the ITestLogger
instance
Parameters |
testLogger |
ITestLogger |
shutdown
public void shutdown ()
Shutdown the device.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-07-19 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-07-19 UTC."],[],[]]