charge

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

Documentation

Overview

Package charge provides necessary functionality to perform battery charge, drain on DUT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureBatteryWithinRange

func EnsureBatteryWithinRange(ctx context.Context, cr *chrome.Chrome, s *servo.Servo, minPercentage, maxPercentage float64) error

EnsureBatteryWithinRange ensures the device battery within the specified min & max percentages. Powerd reports battery_percent & battery_display_percent and for all the operations the latter one has been taken into consideration. This function queries the current battery display percentage of DUT and initiates charging or draining as required.

Types

This section is empty.

Jump to

Keyboard shortcuts

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