Run keyguard occlusion update after transitions

Earlier code was calling applyKeyguardOcclusionChange as soon as the
transition starts, which is not very effective because some of the
transitions only update keyguard occluded state at the end of the
animation and race behind this call.

If we wait for all transitions to finish playing before validating
keyguard occlusion, the last word always comes from
applyKeyguardOcclusionChange which synchronises the source of truth
in KeyguardController over to SystemUI.

Test: atest android.server.wm.KeyguardTests
Bug: 275650364
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:140a05907d905e38aa5690320d26c90ca29bf772)
Merged-In: I016b72b87baadb63f3f5f83112901315f29d2f0a
Change-Id: I016b72b87baadb63f3f5f83112901315f29d2f0a
2 files changed