Do not proceed resuming activities if they should sleep

Top activities with keyguard related flags were not able to be resumed
while screen off in some cases. Those issues were fixed by making sure
the resume process can be proceed.

This CL removed the changes that made in commit ef71377, 32a87b8 and
b26efb4. The keyguard flags should now take effected while evaluating
keyguard visibilities with bba6bed merged. Activities should be able
to resumed after all sleep token was removed.

Bug: 163460485
Test: atest ActivityVisibilityTests
Test: atest KeyguardTests
Change-Id: I393dfbd3e09fc4507545b37cf7b6474b3c77203a
1 file changed