Make operation-specific layouts, instead of passing in animations
Currently UdfpsController creates UdfpsView, which in turn inflates
both the illumination view and a generic view to hold any animations
necessary. This means that someone somewhere needs to pass in
the animation, and that operation-specific code is not very contained.
This change makes it so that UdfpsView inflates operation-specific
layouts, which maintain all of their operation-specific "stuff",
for example the enrollment progress bar, operation-specific
animations, etc.
1) UdfpsController now notifies the enrollment views/animations
via UdfpsEnrollHelper. This helps us avoid doing weird
casts or instanceof checks when handling enrollment messages
2) Enrollment progress bar now lives in enrollment-specific
udfps_animation_view_enroll
Bug: 178438459
Test: atest com.android.systemui.biometrics
Change-Id: I076b0f9064d06404606e9a6ab3b1991247d4dae6
18 files changed