diff options
author | Peng Xu <pengxu@google.com> | 2015-10-26 15:14:43 -0700 |
---|---|---|
committer | Peng Xu <pengxu@google.com> | 2015-10-27 21:46:40 +0000 |
commit | 20483c49377fdb0330d9dfbbb2168b470c0b29d3 (patch) | |
tree | bfcfdcf6a52bf58c39664e0dc14a539b86c68e2e /include/input/Input.h | |
parent | 2ac7405bda4f621f07cbcc0b562d16f7a9611c7b (diff) | |
download | frameworks_native-20483c49377fdb0330d9dfbbb2168b470c0b29d3.zip frameworks_native-20483c49377fdb0330d9dfbbb2168b470c0b29d3.tar.gz frameworks_native-20483c49377fdb0330d9dfbbb2168b470c0b29d3.tar.bz2 |
Avoiding flush on-change sensors at subscription
Initial sensor flush at subscription is a mechanism to avoid sensors
to get stale samples before subscription happens. However, there is a
slight chance that a most recent sample will be lost during the flush
process. This is OK for continuous sensors but problematic in
on-change sensor as on-change event does not come continuously and
a lost event can cause inconsistent state in client. Flush at
subscription of on-change sensor is disabled in this CL to avoid new
important on-change event to be discarded during the initial flush
process.
Bugs: b/24647069
b/25241873
b/24804819
Change-Id: Ibda099c6b9f5fb6e200f13cf13a850b0026e9e7c
Diffstat (limited to 'include/input/Input.h')
0 files changed, 0 insertions, 0 deletions