screen

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package screen provides helper functions to assist with verifying screen state in tast tests.

Index

Constants

View Source
const (
	// KeyTotalFramesRendered key for total frames rendered.
	KeyTotalFramesRendered = "Total frames rendered"
	// KeyJankyFrames key for janky frames.
	KeyJankyFrames = "Janky frames"
)

Variables

This section is empty.

Functions

func GfxinfoDumpStats

func GfxinfoDumpStats(ctx context.Context, a *arc.ARC, pkgName string) (map[string]int, error)

GfxinfoDumpStats parses and returns the output of "dumpsys gfxinfo" using the global gfxinfoSampleRe regexp.

func WaitForStableFrames

func WaitForStableFrames(ctx context.Context, a *arc.ARC, pkgName string) error

WaitForStableFrames waits until no new frames are captured by "dumpsys gfxinfo". This "wait" is needed to prevent "polluting" the next capture from frames that don't belong to the rotation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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