titles / subtitles so that the album art is centered better.
This required setting ConstraintSet values programmatically, which
re-surfaces the quirk we noticed earlier where if we set any
ConstraintSet values programmatically, then all the values in the layout
XML are erased. So, this CL also moves all constraints out of the layout
XML and into the ConstraintSet XML instead.
Fixes: 229377153
Bug: 223603970
Test: manual (verify albums are more centered) (see screenshots in bug)
Test: MediaControlPanelTest
Change-Id: Ibb3c8d9d22b30a642fef38b170c42cebdaec28cc
- Only show 3 albums instead of 6
- Remove padding from app icon
- Update various sizes
This updates both the expanded and collapsed layouts.
Bug: 223603970
Test: manual (see bug comment for screenshot)
Test: atest SystemUITests
Change-Id: I5c22b38b6195658ae47c1a48289bac71d0f92567
Since the new layout is complete and can handle notification action buttons,
we can remove the old one now.
- Deleted layout files (xml and PlayerViewHolder), and moved
PlayerSessionViewHolder into MediaViewHolder
- Removed the flag MEDIA_SESSION_LAYOUT
- Refactored MediaControlPanel to be more readable
Bug: 218875984
Test: atest com.android.systemui.media
Test: atest QSPanelControllerTest QuickQSPanelControllerTest
Change-Id: I37681542dec5cf10ec7346aa9f888f8f890d2c11
Adds more button slots which are dynamically shown depending on which actions
are supported for the app's media.
When PlaybackState actions are available, the large play/pause button
will appear, along with prev/next on either side of the progress bar.
When Notification actions are used, those buttons will be hidden and up
to 5 actions will be shown to the right of the progress bar instead.
Also refactored view holder classes and test since both templates have 5
generic action buttons now.
Fixes: 218875984
Bug: 218876469
Test: atest MediaControlPanelTest
Change-Id: I464834d2eee53d661f2407f6280e2856c96c63ac
Splits the new session layout into collapsed and expanded versions. If
the new layout is being used, the collapsed version will be used in
landscape orientation on smaller devices, and everywhere else will use
the expanded version. No change for the old layout (collapsed version
still used always in QQS and keyguard)
Bug: 209655299
Test: visual - toggle flag, rotate device
Test: atest KeyguardMediaControllerTest QuickQSPanelControllerTest
Change-Id: I5df62996a4823edd19b1bdc217e08cab13d5b7b0
* Use qsVisible to indicate whether the shade is visible and the header
should be shown.
* When in lockscreen, use
LockscreenShadeTransitionController#dragProgress to track shade
expansion.
* Use this shade expansion to fade out the KeyguardStatusBarView
Test: manual, with and without flag, handheld and split shade
Test: atest SystemUITests
Bug: 202847414
Change-Id: Id57adff2fd75eba86832e8790816ef2d9afcf83d
Use alpha 0 in icons and battery when privacy indicators are visible in
QQS constraint.
Test: manual, using handheld and split shade layout
Bug: 202847414
Change-Id: I8b523c9f87c78fd4eac99a421eebaec90e37cadf
Add expansion animation to the header. Only put layout params that
change in the ConstraintSet so they are as small as possible. Layout
params that don't change are set in the layout file.
Test: manual
Bug: 202847414
Change-Id: Ibd61bd02a0266da87eabe3be3d307af74df2c3dd
This is a POC and is missing several features:
* Tight integration with the other surfaces to set margins
* Expansion animation from QQS into QS
* Privacy indicators
To enable:
adb shell am broadcast -a com.android.systemui.action.SET_FLAG --ei id
501 --ez 1
Test: manual
Bug: 204204226
Change-Id: I5b2d5f5880ceff1adb1e4365cde15171c5c15d38
Expanded layout already uses wrap_content which does display correctly
in RTL, so fixed the collapsed layout to do the same
Fixes: 204032375
Test: visual
Change-Id: Ifcdd9c1d90e03ee54789421c0d6eb1dd3abd4a2f
When the device is null or not enabled, disable the output switcher chip
and display "Other device" as a fallback value, instead of a cast icon
Fixes: 159231146
Test: atest MediaControlPanelTest
Change-Id: I29ece6d32ca327d18c1e92e14f93876959c00ff3
Total height is now 192 dp. Reduced album art size and some padding for
expanded media control layout. Also adjusted album art size and padding
for expanded recommendations card to fit
Bug: 189700268
Fixes: 194492458
Test: visual
Change-Id: I3ca096e663d10a05abee2a645dacfe4ce001597c
(cherry picked from commit 69377262a4)
- In compact view, align buttons with artist text
- Use primary accent color for solid backgrounds
- Smaller bottom margin in QQS
Fixes: 187421292
Fixes: 190704124
Test: visual
Change-Id: I4a7500fbabccb9a8161e7587c6e547fc90ba9c82
feedbacks.
- Sort the active media player before the Smartspace media recommendation card.
- Add the click ripple effect to the media recs.
Fixes: 189944948
Fixes: 189949373
Bug: 186586388
Test: Local builds
Change-Id: I55ba2f7c8c03fb049ff154c9fb4be99323683015
Use grayscale launcher icon when in resume state
Adjust accent color used for output switcher and active (notif) app icon
Test: visual
Test: atest com.android.systemui.media
Fixes: 185681682
Fixes: 176177555
Change-Id: Idf358dfd7111f3910367960d6cff5e26cd7889c6
Listen and respond to changes in state on background thread. Store in-memory to avoid
requerying frequently
Test: PeopleSpaceWidgetManagerTest, PeopleTileViewHelperTest,
PeopleSpaceUtilsTest
Bug: 182891880
Change-Id: Id0142b02bb549275c77d8940cda4eb1f0bf4e947
Change-Id: I65712a7a43d8956499533689fe77afbeeac5bd6e
- App icon is now on the corner of album art
- Small player is condensed, with smaller art
- No album art will instead show a fallback view with device icon
- Device name shows in output switcher
- Adjusted colors and dimens to match spec
- Fixed bug where too many compact actions could be shown
Test: visual
Test: atest com.android.systemui.media
Bug: 176177555
Bug: 182292357
Change-Id: I56ec5c5f1188f7547b6e74a2f9bf8d1ad2ee21e4
- Fix strings for accessibility
- Use newly added targetCellHeight and reduce placeholder padding to fit
the lower cell heights of some devices
- Remove shadow from Work Profile badged icon
Bug: 184857890, 185137298, 185891880
Test: local
Change-Id: Ia0b93c80b1019c805b9644bb1d51b009fc529ebe
We show different strings after reboot versus in the widget picker.
Updates the placeholder & initial layout for mocks.
Bug: 183085064
Test: none
Change-Id: I4ec4415eee35d584316c2aa4d17a1dd8ad6061f3
Users can now reconfigure which conversation shows on their widgets.
Bug: 183084171
Test: PeopleSpaceWidgetManagerTest
Change-Id: I0eab87c88408c8b8039f654177891e62762109c3
Doesn't migrate pre-existing users since only in droidfood and won't
break the current experience (just add additional functionality).
Test: PeopleSpaceUtilsTest, PeopleSpaceWidgetManagerTest
Bug: 163617224
Change-Id: If2ac7a09e4e8efa18c816f1382e3df5235c4b656
This allows users a smaller width resize for the People Tile widget, and
adjust the view accordingly after resize. Implements 1x1 and 2x1 mocks,
with polish remaining for 2x1.
Also fixes a crash when launching the conversation picker and bug on
removing missed call notifications.
Bug: 182377480
Test: PeopleSpaceUtilsTest
Change-Id: Ie3b16fb3e348f8edd7bb314c9f43408dca7b43e2
Backup strings provided in the case of missing status text when icons
are provided. Implements three layouts to handle our different states.
Change-Id: I1cb81c42e4cdd75b000f52c402a7396897c0f027
Test: PeopleSpaceUtilsTest
Bug: 178792356
Instead of deriving background color from the album art, use theme colors
Also fixes layout so the output switcher touch target is not too wide
Bug: 176177555
Test: visual
Change-Id: I3de7caa6cd6870f65d50068a81af4472e0566ed7
Changes to match S mocks
- corner radius to match notifications
- solid background for device chip
- bigger album art
By default this only shows the icon for app/device, but this can be
changed with flags:
adb shell setprop persist.sysui.qs_media_show_app_name true
adb shell setprop persist.sysui.qs_media_show_device_name true
adb shell am crash com.android.systemui
Bug: 176177555
Test: visual
Test: atest MediaControlPanelTest
Change-Id: I76c3130df252baee3f5d3009f9098f77bf115f3e
- factor out generic code from CameraToggleTile and
- reuse this generic code for MicrophoneToggleTile
Bug: 162549680
Test: Toggled tiles and looked at `dumpsys sensor_privacy`
Change-Id: Ib45c54c686e271facb78f0f14861045cb97641bf
Via flag value, allow user to select one conversation or see all
conversations. Updates UX to make single conversation fit a 2x1 tile.
Test: PeopleSpaceWidgetManagerTest
Change-Id: I2fac077f4fab32a9a597437a3834dab27539ba75
Bug: 174850448
- Remove unused method switchTo
- Move edit user controllers from settings module
- Create new activity for new user creation
- Add ActivityStarter for delegating activity starting
- Add UserCreator for user creation logic
- Add UserCreatingDialog to display while user is creating
Test: manual test && atest EditUserInfoControllerTest
Doc: http://shortn/_cJE9o6pBZR
Screenrecords: http://shortn/_VEN6rr5ta6
Bug: 147653252
Change-Id: I6a7f1dba499e95891c69569ab731f86e6fd1dc16
Move OneHanded related codes, res and tests to WM shell.
Some tests add ignored currently due to permission issue.
Add another bug to trace it.
Also fix animation issue caused by wrong logic.
Bug: 161980408
Fix: 168074363
Test: manual check one handed function
Test: atest WMShellUnitTests
Test: atest SystemUITests
Test: make ArcSystemUI; make ArcSystemUITests
Test: make CarSystemUI; make CarSystemUITests
Change-Id: Ib25661d010278202ffe15fd9c4962e76e6698c21
To educate users using one-handed mode showing tutorial
at top region when one handed triggered
Bug: 151800576
Test: manual
Change-Id: I255a08bf4527554ee8970c3baaf85b8956b2ca83