summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceUtils.cpp
diff options
context:
space:
mode:
author Sally <sallyyuen@google.com> 2022-03-07 18:39:05 +0000
committer Sally <sallyyuen@google.com> 2022-03-10 21:23:17 +0000
commit60442cb1b8b7cda7719943f2183f6ba40e29bc8f (patch)
tree73b9bf783c27d83da6ae4ba0b2dded1868d24ae2 /libs/androidfw/ResourceUtils.cpp
parent99483fa82bb17c4aaaaf7920affeaab501bdc803 (diff)
Add API to read and listen to duration scale changes for animations
Developers and accessibility services can remove animations by changing the duration scale to zero. Physics-based animation libraries like AndroidX's dynamic animations aren't duration-based, but they need to know the duration scale to remove animations. Expose the scale through ValueAnimator to avoid requests for Context which may not be fulfilled by the developer. Unhide test API getDurationScale and handle callbacks on the main thread. Test: atest ValueAnimatorTest Bug: 221303983 Change-Id: I3134e0bf007df046a9a2aa0f9d866c27c7989e68
Diffstat (limited to 'libs/androidfw/ResourceUtils.cpp')
0 files changed, 0 insertions, 0 deletions