summaryrefslogtreecommitdiff
path: root/libs/gui/ISurfaceComposer.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2021-05-13 14:00:39 -0700
committer Prabir Pradhan <prabirmsp@google.com> 2021-05-24 14:51:25 -0700
commitf5334b8e52722ee13dd019203cfc9099a9cd930e (patch)
tree020cc720597050fa0d9f52b92fc9e17aca7bc360 /libs/gui/ISurfaceComposer.cpp
parent72b639e74a8aa608b424fd70b86ef8efeb391a13 (diff)
CursorInputMapper: Populate axes in navigation mode
A bug in CursorInputMapper resulted in the output of the mapper always reporting a value of 0 for the x and y axes when it was in navigation mode. This was not caught by the tests because the tests used an epsilon of 1.0, while expecting events with magnitudes of around 0.1667. The relatively large epsilon meant the test was always passing. Here, we fix the bug, and update the tests for CursorInputMapper to use a smaller epsilon. Bug: 179274888 Test: atest inputflinger_tests Change-Id: I406486069aa42f713b8390364bcdd47ec5b33b82
Diffstat (limited to 'libs/gui/ISurfaceComposer.cpp')
0 files changed, 0 insertions, 0 deletions