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.
Click to show internal directories.
Click to hide internal directories.