summaryrefslogtreecommitdiff
path: root/api/coverage/tools
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2024-07-13 04:27:56 +0000
committer Android Build Cherrypicker Worker <android-build-cherrypicker-worker@google.com> 2024-07-13 04:27:56 +0000
commitff5bf8798d79b18b7a88c0488b37849c11e752d6 (patch)
tree4a13980dc73d07419f4947b188614c53a3d1a7fd /api/coverage/tools
parentd7a24e9a89bf02f357ef823cf06421321c1210bd (diff)
PointerIcon: Add leniency to hotspot validation for scaled icons
When icons are loaded for the current display density, the icon bitmap is always scaled to an integer pixel size, but the hotspot can be scaled more precisely using floats. To account for the difference in precision, add leniency to the hotspot validation checks when the icons are scaled. Bug: 332973446 Test: adb shell wm density 142 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f3c4cd5db78b2082eba3b3029d69302783d65e3d) Merged-In: I4af5d6619aa7f5245054047ad079694b11919754 Change-Id: I4af5d6619aa7f5245054047ad079694b11919754
Diffstat (limited to 'api/coverage/tools')
0 files changed, 0 insertions, 0 deletions