Update the internal state before sending the deltas to callback.

It's possible that the callback can trigger removing the cpu time
correspoding to a particular uid, we don't want to re-add the state
for that uid after this.

Fixes: 63144979
Test: cts-tradefed run singleCommand cts-dev -m CtsIncidentHostTestCases -t \
      com.android.server.cts.BatteryStatsValidationTest

Change-Id: I29f208ea5cb18f05ad16dfc22f8dea077cc186fb
1 file changed