Close the hub after a timeout when dreaming
When the device is dreaming, the screen doesn't time out. If the hub is
open, we should close after the configured display timeout. The timeout
is stopped if a user interactions with the device, if the user exits
the hub, or if dreaming ends.
Bug: 323247392
Fixed: 323247392
Test: atest CommunalSceneStartableTest
also manually verified on device
Flag: ACONFIG com.android.systemui.communal_hub TEAMFOOD
Change-Id: I0ae51c22cf4dd38a9b4032063e9f1b69ce0583f7
5 files changed