power_BatteryCharge: Add average charge current keyval.

Adding keyval a_avg50_charge_current to the reported kevyals where its
the average charging current across a charge that increases the
percent charge by at least 50%.

Reasoning behind conditionally publishing keyval is that this test is
often run on systems which are already nearly at full charge.  Those
data points aren't nearly as interesting as confirming that over a
long enough charging cycle that the average current is acceptable.

BUG=chromium-os:36399
TEST=manual,
Run on fully charged battery.  No keyval published.
Run on fully discharged battery.  See keyval published.  Value makes sense.

Change-Id: I0289db4743fbfb62ba4d6d6cb881a1d2b79596e5
Reviewed-on: https://gerrit.chromium.org/gerrit/43305
Tested-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Commit-Queue: Todd Broch <tbroch@chromium.org>
1 file changed