[SB][Screen Chips] Add share-to-app and cast-to-other-device chips.
The MediaProjectionRepository receives callbacks for both the
share-to-app chip and the cast-to-other-device chip. This CL hooks up
that repository to a new MediaProjectionChipInteractor, and hooks that
interactor up into the existing OngoingActivityChipsViewModel.
These two use cases should actually have different icons. That will come
in the next CL.
Bug: 332662551
Flag: com.android.systemui.status_bar_screen_sharing_chips
Test: Use the Cast QS tile to cast to a device -> verify cast chip
appears with a timer. Stop casting -> verify cast chip disappears.
Test: Share your screen to an app -> verify cast chip appears with a
timer. Stop casting -> verify cast chip disappears.
Test: atest MediaProjectionChipInteractorTest
OngoingActivityChipsViewModelTest
Change-Id: Ic3ce1b9d8d8e5777ca855086bc0564a01a09e6f6
11 files changed