Merge changes I99c836be,I1532ee40,Ic7f9107b into main

* changes:
  Convert BatteryChargeCalculator to a PowerStatsProcessor
  Add PowerStats collector and processor for Wakelocks
  Use procState change events to compute time-in-state duration