DeviceOptions

data class DeviceOptions(val skipDriverInstall: Boolean = false, val waitForDevice: Duration = Duration.ZERO, val inspectQuarantined: Boolean = false, val captureLogs: Boolean = true, val driverStart: DriverStart = DriverStart.AUTO)(source)

Device-attachment options. The driver is always the daemon's (bundled, or the APKs given to tap serve --driver-apk X --driver-test-apk Y); skipDriverInstall only skips reinstalling it.

Constructors

Link copied to clipboard
constructor(skipDriverInstall: Boolean = false, waitForDevice: Duration = Duration.ZERO, inspectQuarantined: Boolean = false, captureLogs: Boolean = true, driverStart: DriverStart = DriverStart.AUTO)

Properties

Link copied to clipboard

Capture the device log for this attachment (Device.logs). False runs no logcat on the server; failure artifacts then hold what the device's own ring buffers still have.

Link copied to clipboard

Instrumentation startup policy, independent of skipDriverInstall.

Link copied to clipboard

Attach a quarantined device to inspect and fix it before TapClient.unquarantine (a person or an agent deciding whether it can go back into service). It works as usual; after Device.detach it is still quarantined, for the same reason (Device.quarantineReason). Not for tests: a test should never run on a quarantined device.

Link copied to clipboard

Skip installing the daemon's driver: the device already has the right one.

Link copied to clipboard

How long to wait for a device another session holds before failing; zero fails at once.