android

package
v0.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 28 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func New(env func() []string) *Kind

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) List

func (k *Kind) List(ctx context.Context) (any, error)

List returns the android section of host_screen.list.

func (*Kind) Name

func (k *Kind) Name() string

func (*Kind) Open

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.

Directories

Path Synopsis
Package emupb is the Go code of the Android emulator's gRPC service, generated from emulator_controller.proto.
Package emupb is the Go code of the Android emulator's gRPC service, generated from emulator_controller.proto.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL