OSDN Git Service

[sensorservice] Fix on-change sensor send latest value on enable
authorPeng Xu <pengxu@google.com>
Mon, 2 May 2016 21:15:50 +0000 (14:15 -0700)
committerThe Android Automerger <android-build@google.com>
Tue, 3 May 2016 00:16:25 +0000 (17:16 -0700)
commitf9b812900b2a35542856f318c21b7c2c89b2fa53
tree7088f7e4b771f82b9556b49d543109521de8a15b
parent167ef0ab0100aeebc8466db388bfdc3c759d5384
[sensorservice] Fix on-change sensor send latest value on enable

This CL correct the behavior of sensorservice so that the latest
value of on-change sensor is send to client when enabling sensor.

The errornous behavior before is that sensorservice send the oldest
value in local cache.

Bug: 28480791
Change-Id: I7e0b8e52fa0be62ba95910789cff1fe0d4fbb03f
services/sensorservice/RecentEventLogger.cpp