health: explicitly fill battery health sample struct by index

A previous commit re-ordered the enum but didn't change the sample
array ordering. This caused all snapshots and their contents to be
mis-labeled.

Bug: 119490156
Test: This change fixes this issue on crosshatch
Change-Id: Icaf2a1e1b7c511a1d46cbe2f10ac25cf58741da9
Merged-in: Ia573de875a54f342477b2b9463c04274b8aa59d8
Signed-off-by: Maggie White <maggiewhite@google.com>
1 file changed
tree: d9125d3c6cb3147b9e83644d3c3d5cd9a6c5ca17
  1. health/
  2. pixelstats/
  3. thermal/
  4. usb/
  5. .clang-format
  6. Android.bp
  7. PREUPLOAD.cfg