summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Aniroop Mathur <a.mathur@samsung.com> 2016-08-31 22:59:44 +0530
committer Aniroop Mathur <a.mathur@samsung.com> 2016-09-08 19:15:13 +0000
commitbfac17eed90d410de51413ef2484f79fb0e241e2 (patch)
treeecbb0d0cd8fd1039489e305c813e184950bcbd97 /libs/gui/ConsumerBase.cpp
parentad95fc06aa902ee7b96c09bb07af4061f87fe77f (diff)
Sensor: Make switching from data injection mode to normal mode more productive
Currently, when sensor service mode is switched back to normal mode from data injection mode, request to enable the sensors is passed first to HAL and then request to change mode is passed. With this, request to enable the sensors is actually non-effective because sensor service is still in data injection mode so HAL could not pass the request further to driver as otherwise real and recorded data gets mixed up. Therefore, lets first make request to set mode and then make request to enable the earlier enabled sensors. For example: Testing Auto Rotation algorithm, - Auto Rotation enabled --> real data production - Sensor service mode changed to data injection --> real data stopped - Played recorded data --> AR algorithm tested with recorded data - Sensor service mode changed to normal --> mode changed succesffuly, but auto rotation not working again although expected to work in normal mode. Change-Id: Id01b73e2aed85ed44314b8d632c096b21b62423f Signed-off-by: Aniroop Mathur <a.mathur@samsung.com>
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions