OSDN Git Service

Fix issue #16953886: History and batterystats checkin summary...
authorDianne Hackborn <hackbod@google.com>
Thu, 28 Aug 2014 01:30:31 +0000 (18:30 -0700)
committerDianne Hackborn <hackbod@google.com>
Thu, 28 Aug 2014 01:30:31 +0000 (18:30 -0700)
commit7d9eefd871f1cdc5ebc36fa92dae48a737ae2928
treed1666aa946e99f57b7f4cbe44334b841a9a85a2c
parent19d431f330bf1d89c92c0971dad5fa8f5950b16d
Fix issue #16953886: History and batterystats checkin summary...

...start timestamps are in 1970s

Look for the wall clock time being very small, and try to update
it to a better value if we see one.

Also handle time change events to update the current time we a re
tracking.

Change-Id: Ifbae2b8c43ab5baa75ee4f672a752a542e23b52d
core/java/com/android/internal/os/BatteryStatsImpl.java
services/core/java/com/android/server/am/ActivityManagerService.java