OSDN Git Service

update time while network is connected
authorzhoulei <zhoulei5@xiaomi.com>
Wed, 10 May 2017 10:09:50 +0000 (18:09 +0800)
committerErik Kline <ek@google.com>
Fri, 12 May 2017 11:00:55 +0000 (20:00 +0900)
commit45d1b261e6faf9e73ba954d42d514ef6250020b9
tree3c3b819a6b2dd6321298ad2d9630ff86aab73787
parentb73fe9a751cdfc3457c35fae20fec7069fab194d
update time while network is connected

NTP update time from network while the network is not OK, so it should not
be excuted the network is disconnected to be for low power consumption

Test: as follows
    - built
    - flashed
    - booted
Change-Id: I17f2a9463551e254284ee8a9f894a95e983eee19
Signed-off-by: zhoulei <zhoulei5@xiaomi.com>
services/core/java/com/android/server/NetworkTimeUpdateService.java