BatteryStats: Fix bogus calls to addHistoryRecordLocked.

The second argument (byte cmd) was being cast to long and being used
as uptimeMs.

Test: BatteryStatsTests
Bug: 71355449
Change-Id: If40745d25038cd5d206244f7a28d6902bbb43c18
1 file changed