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)
committerPeng Xu <pengxu@google.com>
Mon, 2 May 2016 21:32:59 +0000 (14:32 -0700)
commit45ca9f58a0f7808169199fba1cc067c51e2d437b
tree2963b30c97be0a81f61aa6a66cf79934e2f64aaf
parent99c68bbfa3bd3f323d070992c3a8da0b5b57762b
[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