Revert "Fixes cannot leave dozing when dismiss keyguard"

Regression from I62be9283a1d22119eceae5585960b5775a019153.
When dismiss keyguard from shell command, the wakeup signal should only
be used when dream activity is on top.

Bug: 219376804
Bug: 222429976
Test: atest KeyguardTests KeyguardLockedTests
Test: atest WindowManagerServiceTests

Change-Id: I4edab8588421b3e341cf3bde07e989ff5e651cfe
Merged-In: I4edab8588421b3e341cf3bde07e989ff5e651cfe
(cherry picked from commit 0063c2488e0eacb103ed33f2b1397a7d83c225d0)
Merged-In: I4edab8588421b3e341cf3bde07e989ff5e651cfe
2 files changed