Copy power_manager proto from src/platform2/power_manager/.

Copy the power_manager proto form src/platform2/power_manager with
the intention of rehoming it here per the new layout.

BUG=chromium:1041872
TEST=None, will be integrated into new approach with src/config rep

Change-Id: I144bf90f9e1cfc6ba1ae9990073ba5feadad04fa
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/power_manager/proto/+/2053081
Reviewed-by: Andrew Lamb <andrewlamb@chromium.org>
Commit-Queue: David Burger <dburger@chromium.org>
Tested-by: David Burger <dburger@chromium.org>
diff --git a/config.proto b/config.proto
new file mode 100644
index 0000000..4588c83
--- /dev/null
+++ b/config.proto
@@ -0,0 +1,38 @@
+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:
+// https://developers.google.com/protocol-buffers/docs/proto3#default
+// https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/wrappers.proto
+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.
+}
\ No newline at end of file