Return to OCCLUDED from canceled swipe if needed.

An edge case of a canceled screen off, followed by a partial swipe up to PRIMARY_BOUNCER, followed by a slightly late call to setOccluded=true resulted in the lockscreen overlapping the occluding app until a screen off.

Tests in a follow-up CL (really!) because there are no existing tests for the dragging transition and it's a fairly large change to add support for that.

Bug: 370177430
Test: manual/shortly
Flag: EXEMPT bugfix
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:40aa6d94b61f04c1dc822783447d8e5847dc0ff5)
Merged-In: I6af8b473756e43ebccecbccdd6c97d8d082ef912
Change-Id: I6af8b473756e43ebccecbccdd6c97d8d082ef912
1 file changed