RootcanalUtils
public
class
RootcanalUtils
extends TestWatcher
| java.lang.Object | ||
| ↳ | org.junit.rules.TestWatcher | |
| ↳ | com.android.sts.common.RootcanalUtils | |
TestWatcher that sets up a virtual bluetooth HAL and reboots the device once done.
Summary
Nested classes | |
|---|---|
class |
RootcanalUtils.HciDevice
Class that encapsulates a virtual HCI device that can be controlled by HCI commands. |
class |
RootcanalUtils.RootcanalController
|
Public constructors | |
|---|---|
RootcanalUtils(BaseHostJUnit4Test test)
|
|
Public methods | |
|---|---|
RootcanalUtils.RootcanalController
|
enableRootcanal()
Replace existing HAL with RootCanal HAL on current device. |
void
|
finished(Description d)
|
Public constructors
RootcanalUtils
public RootcanalUtils (BaseHostJUnit4Test test)
| Parameters | |
|---|---|
test |
BaseHostJUnit4Test |
Public methods
enableRootcanal
public RootcanalUtils.RootcanalController enableRootcanal ()
Replace existing HAL with RootCanal HAL on current device.
| Returns | |
|---|---|
RootcanalUtils.RootcanalController |
an instance of RootcanalController |
| Throws | |
|---|---|
DeviceNotAvailableException |
|
IOException |
|
InterruptedException |
|
finished
public void finished (Description d)
| Parameters | |
|---|---|
d |
Description |
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 2022-11-18 UTC.