blob: 4588c8328c630bdae25416e20d636aa7443c96e1 [file] [log] [blame]
syntax = "proto3";
package power_manager;
import "google/protobuf/duration.proto";
import "google/protobuf/wrappers.proto";
// Wrapper protos (e.g. FloatValue) are used on fields when there is a need to
// distinguish between the absence of a primitive typed field and its default
// value. For background on primitive defaults and wrappers in proto3, please
// see:
message PowerManagerConfig {
// Smoothing constant used to calculated smoothed ambient lux level, in the
// range of (0.0, 1.0]. Value closer to 0.0 means smoothed_lux will respond
// to ambient light change slower. Value of 1.0 means smoothing is disabled.
google.protobuf.FloatValue als_smoothing_constant = 1;
// If true, the system will not be suspended due to user inactivity while
// something is connected to the headphone jack.
bool avoid_suspend_when_headphone_jack_plugged = 2;
// Duration to wait before polling the power status again when the number of
// samples is less than |max_current_samples|.
google.protobuf.Duration battery_poll_interval_initial = 3;
// Duration to wait before polling the power status again after the number
// of samples is equal to |max_current_samples|.
google.protobuf.Duration battery_poll_interval = 4;
// Number of current and charge samples that need to be averaged before
// providing time-to-empty/full estimates.
google.protobuf.Int32Value max_charge_samples = 5;
google.protobuf.Int32Value max_current_samples = 6;
// TODO(chromium:1040976): Add all prefs.