OSDN Git Service

fix an issue where SensorService could request an invalid sensor delay
authorMathias Agopian <mathias@google.com>
Wed, 2 Nov 2011 00:37:49 +0000 (17:37 -0700)
committerMathias Agopian <mathias@google.com>
Thu, 28 Jun 2012 00:07:56 +0000 (17:07 -0700)
commitae09d65f5b35cb51da2e1386a6dd7a52085f1325
tree503a175cccf76920ed569ba75839d3f5116af2e4
parentb3989276d17f2b083bec67b695d1078fb86c6c53
fix an issue where SensorService could request an invalid sensor delay

When the app requests "fastest", the java layer encodes this as a
delay of 0. SensorService was passing this unchanged to the HAL.
However the HAL is required to reject delays lower that the
advertised lower delay.

Change-Id: I92be77acd3af62ffeb49e4b31e24ddcd203510e2
services/sensorservice/SensorService.cpp