similar to the samplers in batterystats, when we do diff,
if the value is not monotically increasing, we should take
the absolute value as the diff.

Test: unit tested
Change-Id: Idd8a248b4092b1863eb8e50539f8f14b3ac9af9e
1 file changed