Avds class

The Android virtual devices on this host: which exist, which one runs where, and booting one from glint's own process.

Constructors

Avds({required String adbPath, Map<String, String>? env})

Properties

adbPath → String
final
emulatorPath → String?
The SDK's emulator binary, found next to adb or under ANDROID_HOME, ANDROID_SDK_ROOT or the default SDK folder.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

avdOf(String serial) → Future<String?>
The AVD the emulator behind serial runs, from its console.
awaitOnline(String serial, String avd, {void onProgress(int elapsedSec, String phase)?, Duration limit = const Duration(seconds: 60), Duration progressEvery = const Duration(seconds: 15)}) → Future<void>
Waits up to limit for the already running emulator behind serial to leave offline in adb; it never restarts an emulator glint did not start.
boot(String avd, {String? webcam, void onProgress(int elapsedSec, String phase)?, Duration timeout = const Duration(minutes: 5), Duration progressEvery = const Duration(seconds: 15), Duration offlineLimit = const Duration(seconds: 60), List<String>? notes}) → Future<String>
Boots avd detached from glint on a free console port, with gRPC asked for (the emulator does not always start it alone), and waits until Android has booted; returns its serial. A webcam id becomes its front camera; one Mac camera cannot back both, so the back keeps the AVD's own. When adb shows the emulator offline for offlineLimit, glint stops it (it started it) and boots once more with -no-snapshot-load, recording that in notes.
list() → Future<List<String>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runningSerial(String avd) → Future<String?>
The serial of the emulator already running avd.
runningSerials() → Future<List<String>>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited