summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Beverly <beverlyt@google.com> 2022-08-26 16:41:55 +0000
committer Beverly Tai <beverlyt@google.com> 2022-08-31 17:41:21 +0000
commitc4506b44ce8f4c94cbc7dd2a6b466d9f5f79878f (patch)
treea5d01e8a8cd75a18b7cf3c8e31d26945e54f3aa9 /libs/androidfw/ResourceTimer.cpp
parent56fe9580ff24fbcea77b93ec345b0860a5e7bf85 (diff)
Check orientation when retrieving FP location
Instead of relying on the orientation change display listener, always return the most up to date fingerprint sensor location based on the current display rotation. Also make sure to take into account any scaleFactors in case the resolution of the device changes. Test: atest AuthControllerTest Test: rotate the device on the lock screen (ie: 0 => 180 degrees => 90 degrees => 270 degrees => 90 degrees, etc) and authenticate with FP from each orientation. See the auth ripple appears from the correct location (where the FP sensor is). Fixes: 231460440 Change-Id: Iae49db8ef07046684d2a2c7293132b8f413341de
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions