Don't restart when the lockscreen is occluded.

Converts the ConditionalRestarter.Condition class to the more compact
flow syntax.

Fixes: 295275204
Test: atest SystemUITests:com.android.systemui.flags
Change-Id: I9659e19d260ec251143ef155f4755aea1201bbad
10 files changed