Updating sizes of icon based on code review discussion in ag/12013470.
Bug: 159990829
Test: manual - Verify icons (app and device) are same size in media
player.
Test: manual - Verify fallback device icon and app icon are the same
size.
Change-Id: I7dd12145ecdb96bdf4a7dc4e6e095e306453633b
Set a different height for landscape to fit in all devices
Fixes: 159906363
Test: manual, set largest display/font
Change-Id: Ie4ab49fca4691ff377af0f5df329c6b97343d604
Make sure that there is a gap at least 10dp to the left and right of center
vertical in media view, between app name and output switcher.
Test: manual
Fixes: 159708142
Change-Id: If142bd920b6921c9d82fa2d6dfb2595f123df2ac
Fixes: 159231146
Test: manual - Cast YouTube and look at output switcher chip in player.
Verify that there is only a Cast icon.
Change-Id: I9dcd5f642e3f7400a9442c05b5de0566704af38a
Fixes an issue where the buttons on the biometric prompt would fail to
wrap to a second line in order to accommodate long label text. This
caused the buttons to be truncated in some languages (e.g. Russian).
Test: On a Pixel 4 XL:
1. Ensure a lock pattern is set and Face Unlock is enabled
2. Set the system language to Russian (Russia)
3. Open wifi settings and select a saved network
4. Tap on the "Share" button for this network
5. Wait for Face Unlock to time out for the prompt
6. Rotate the device between portrait and landscape
Fixes: 158240727
Change-Id: I51da6b124ffcd867322ee699e3908847e1df7ecd
Moved setting so we can use Tunable:
adb shell settings put secure qs_media_resumption 1
If setting is changed, removes all existing resume players
Bug: 154039093
Test: manual
Test: atest SettingsProviderTest
Test: atest com.android.systemui.media
Change-Id: Iad056fbad4520cfe762d9e9f5ed62d38ea1117b1
When loading controls returns an error or no controls, show an
informative message.
Test: manual
Fixes: 156923066
Change-Id: Iae3bdb5707d5cda5d970b8a9fc439420eb4f6f8d
When introducing Media into quick settings, the landscape
experience never really worked well. The music player
would be cut off on the bottom and users could never
reach their playback controls.
Instead of the vertical layout, we're now rendering
quick settings side by side with the player.
Using some densities, this could still be too large,
so we're also introducing a scrollview for the
expanded quick settings.
This also makes sure all the paddings and spacings
are up to spec.
This also fixes behavior where a user could still collapse
the panel while the user switcher was showing.
Bug: 154332040
Test: atest SystemUITests
Change-Id: I3b8babc2cc6a91e19824b67f043aa5044dc370b9
Update overflow visibility after setup
Remove BubbleOverflow#getBtn (same as getIconView)
Bug: 158482996
Test: manual => Turn on dark mode
=> Pointer & overflow button/activity use same grey
Change-Id: I0f9c7d8e6dc1ac77e8601f42527f75b1b4e9ef1d
Add pointer colors to resource
Fetch from resource based on dark mode config
Fixes: 158482996
Test: manual - toggle dark mode on/off, select different bubbles, select
overflow -> pointer updates color and position as expected
Change-Id: Ie5d2613bcceabc665106d4422a9b33402ade54b8
Manage education is now a cling with a got it button next to it.
Bug: 158222759
Test: Manually on device
Change-Id: Id083c3d7c5d67c6914a632a586e7b826fa4431af
Expand/collapse animations work by applying a matrix to the expanded view container - this is a) fast b) allows for pivot scale animation c) works around some weirdness with "actually" scaling the view, since the matrix transform is applied after the AV draws.
Switch animations work by snapshotting the current bubble's surface into graphics memory, rendering that into a SurfaceView, and animating the SurfaceView out. Memory profiler indicates this does not use additional memory (since those pixels were already in graphic memory anyway, and released as soon as the animation ends).
Test: lots and lots of manual testing
Fixes: 123306815
Fixes: 135137761
Merged-In: I0b01dab4bb0c82873afc55d054bafc672bacc8bf
Change-Id: I0b01dab4bb0c82873afc55d054bafc672bacc8bf
Behind a flag for now, while we work on animation issues and settings
Enable with: adb shell settings put system qs_media_resumption 1
Bug: 156104922
Fixes: 154823185
Fixes: 156256312
Test: manual; atest com.android.systemui.media
Change-Id: I77e3706031da820ea0d49c5dfd17f89ae7fb7db4
Show a more informative error to the user on touch/long press about
how to handle this situation. Properly animate status changes.
Fixes: 154737944
Test: TYPE_DISPLAY in mock app simulates not found error
Change-Id: I15ce2d2621ea29c97936f9d9022d917637693288