Use PropertyAnimator for CUJ_SCREEN_OFF_SHOW_AOD
Previously ViewPropertyAnimator - e.g. View.animate() - and
PropertyAnimator were used at the same time for animations on the same
keyguard view. This made the state less predictable since one might
assume calling View.animate().cancel() would cancel all the
PropertyAnimators too (it does not). Since ViewPropertyAnimator was only
used for animating alpha, simplify things by removing usage of
View.animate() and replacing it with a new PropertyAnimator call for the
View.ALPHA property.
Also,
 - Mark KeyguardUserSwitcherController as deprecated
 - Throw IllegalArgumentException if KeyguardStatusView#animate() is
   called on a debuggable build
Test: capture perfetto trace while turning screen off
Test: turn screen off while on lock screen, observe that the fade
      and translation animations remain unchanged
from home screen
Bug: 262705829
Change-Id: I72d8f3986422e3c71a6f91b94e5692e929867737
Loading
Please register or sign in to comment
