devices

package
v0.0.0-...-9202be0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package devices contains functions for gathering devices that can replay a capture.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForReplay

func ForReplay(ctx context.Context, p *path.Capture) ([]*path.Device, []bool, []*stringtable.Msg, error)

ForReplay returns three lists of the same size, at each index:

  • path.Device references a device
  • a bool indicates if that device is compatible (can replay) the capture
  • a stringtable.Msg gives the reason for a device to not be compatible

These lists are sorted such that compatible devices are returned at the front of the list, in the preferred device order.

func Sorted

func Sorted(ctx context.Context) []bind.Device

Sorted returns all devices, sorted by Android first, and then Host.

Types

This section is empty.

Jump to

Keyboard shortcuts

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