ambient

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: 4 Imported by: 0

Documentation

Overview

Package ambient supports interaction with ChromeOS Ambient mode.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetEnabled

func SetEnabled(ctx context.Context, tconn *chrome.TestConn, value bool) error

SetEnabled turns the Ambient mode pref on or off.

func SetTimeouts

func SetTimeouts(
	ctx context.Context,
	tconn *chrome.TestConn,
	timeouts Timeouts,
) error

SetTimeouts changes timeouts for Ambient mode to speed up testing. Rounds values to the nearest second.

func WaitForPhotoTransitions

func WaitForPhotoTransitions(
	ctx context.Context,
	tconn *chrome.TestConn,
	numCompletions int,
	timeout time.Duration,
) error

WaitForPhotoTransitions blocks until the desired number of photo transitions has occurred.

Types

type Timeouts

type Timeouts struct {
	LockScreenIdle       time.Duration
	BackgroundLockScreen time.Duration
	PhotoRefreshInterval time.Duration
}

Timeouts contains durations to configure Ambient mode timeouts.

Jump to

Keyboard shortcuts

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