Documentation
¶
Overview ¶
Package android is the Android emulator kind of the host screen (ADR 0008): the emulators `adb devices` lists, matched with the files in which they advertise their gRPC port, and one shown through the emulator's gRPC streamScreenshot. Physical devices are never listed, and there is no adb screencap fallback.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kind ¶
type Kind struct {
// contains filtered or unexported fields
}
Kind lists and opens Android emulators.
func New ¶
New returns the Android kind; env returns the environment of the user's sessions (its PATH and ANDROID_HOME find adb, as in their terminal).
func (*Kind) Open ¶
func (k *Kind) Open(ctx context.Context, t wire.HostScreenTarget) (hostscreen.Stream, error)
Open connects to the gRPC port of emulator t.Serial. The stream follows the AVD (t.AVD, else the one on t.Serial): when its emulator stops, it is gone until the AVD runs again, on any serial. An AVD that is not running is gone from the start, the same way.