OSDN Git Service

Adjust wifi idle times to fit in system time period
authorRoshan Pius <rpius@google.com>
Mon, 16 May 2016 20:00:25 +0000 (13:00 -0700)
committerRoshan Pius <rpius@google.com>
Tue, 17 May 2016 21:11:22 +0000 (14:11 -0700)
commit684591116fa6a8a2bf7a72dea19b496272f80af3
tree7107fa67c616a9ce29df03817a70c193aa2c4ce3
parentcef3337cb5e27d4f571fb350be055c26d339833d
Adjust wifi idle times to fit in system time period

The battery stats time period calculation is done using a
different clock source compared to the wifi chip's on time calculation. So,
account for skews between the two by adjusting the idle time reported by
wifi chip to fit into the system time calculation.

BUG: 28628799
Change-Id: I3110c53317f3246e26fdc3731f7be0a3d9c8e229
TEST: Compiles & manual verification
services/core/java/com/android/server/am/BatteryStatsService.java