Capture

The diagnostics of one device at one moment (Device.capture): a Screenshot, the Hierarchy, the DeviceInfo, the DriverLog and the DeviceLogs. A part is null when it could not be produced; failures says why, by part name (logs for the DeviceLogs).

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The parts that were produced, by name: screenshot, hierarchy, device-info, driver-log, then the DeviceLogs parts (logcat, crashes when something crashed, activities, windows), in that order.

Link copied to clipboard
Link copied to clipboard

Why each missing part is missing: screenshot, hierarchy, device-info, driver-log or logs.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun saveTo(dir: Path, prefix: String = serial): List<Path>

Writes every produced part to dir as <prefix>.<name>.<extension> (for example emulator-5554.screenshot.png), creating dir, and returns the written paths.

Link copied to clipboard
open override fun toString(): String