summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Caitlin Shkuratov <caitlinshk@google.com> 2024-10-17 16:13:55 +0000
committer Caitlin Shkuratov <caitlinshk@google.com> 2024-10-28 13:30:37 +0000
commitf85ad48ee75ccea631ea82985e89c9c250c7d426 (patch)
tree4ee72455b8d2cec3d158d10699ac84afdaff63b1 /api/api.go
parentfca8ee70efc2f4c25cae86e89b6b85e834aeda59 (diff)
[Screen share] Update our status to "projecting" earlier in process.
In the old screen share icon, we started showing the icon as soon as MediaProjectionManager.Callback#onStart is called. With the new screen share chips, we only started showing the icon when MediaProjectionManager.Callback#onRecordingSessionSet is called. If a user is only sharing *audio* to an app, but not their screen, the #onRecordingSessionSet method is never triggered but we should still show the screen share chip. Bug: 373308507 Bug: 332662551 Flag: com.android.systemui.status_bar_show_audio_only_projection_chip Regression tests: Test: Screen record single app -> verify chip does 3-2-1 countdown then starts timer, has screen record icon Test: Screen record full screen -> verify chip does 3-2-1 countdown then starts timer, has screen record icon Test: Share screen to app that does a 3-2-1 countdown -> verify chip starts showing with just share-to-app icon, then shows timer after 3-2-1 countdown is done Test: Share screen to app that immediately starts recording -> verify chip timer immediately starts Test: Cast screen to another device -> verify chip shows cast icon + timer Test: Cast audio to another device -> verify chip just shows cast icon Test: atest MediaProjectionManagerRepositoryTest New test: Test: Share *audio* to another app -> verify chip shows, and has share-to-app icon Change-Id: Ifa84ec811ef3456792a3cd6b7766d6c738536af2
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions