Move glanceable hub container to the bottom of NotificationShadeWindowView

We want to be able to open the shade over the glanceable hub and we
also don't want to have the hub's SceneTransitionLayout block touches
to the rest of the system, so this CL moves the hub container to the
lowest z-order in NotificationShadeWindowView.

In order for it to continue working, we route touches from
NotificationShadeWindowView to the hub in two cases. The first is if
the touch starts from the right-most edge, so that the hub's
SceneTransitionLayout can detect the gesture and animate open the hub.
Unfortunately we cannot drive the transition externally as
SceneTransitionLayout expects to manage all of this on its own.

The second case is that when the glanceable hub is fully open, we route
all touches to it, until it closes. Further work is needed to animate
out keyguard and to allow the shade/bouncer to be opened when in the
hub but for now it's functional.

Bug: 315207481
Fixed: 315203485
Test: atest NotificationShadeWindowViewControllerTest GlanceableHubContainerControllerTest
Flag: ACONFIG com.android.systemui.communal_hub DEVELOPMENT
Change-Id: I7de8bdaf277c37d1744346c532b65c7344ed37d4
7 files changed