Commit Graph

106 Commits

Author SHA1 Message Date
Anna Zappone
c531f63f8c Add layout for 1x1 size, update 2x1
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
2021-03-15 21:14:22 +00:00
Anna Zappone
b98280defc Strings for Beta 1
Test: none
Bug: 163617224
Change-Id: I8d75a4c2bb4645ea51814db46101bf228e380106
2021-03-10 17:34:37 +00:00
Anna Zappone
469c69b53e Add new templates & show Statuses in People Tiles
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
2021-02-17 14:15:14 +00:00
Beth Thibodeau
16ea9a6951 Use system colors for media
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
2021-02-10 19:58:09 -05:00
Anna Zappone
5f19f33345 Update to different minWidth for testing 2x2
Test: locally
Bug: 178792356
Change-Id: I686afa1c95c7cdc1dfaa26ac67f00913097c18d9
2021-02-03 14:28:44 +00:00
Beth Thibodeau
0a2feb8a7c Merge "Update media controls layout" 2021-01-19 19:09:42 +00:00
Beth Thibodeau
b8ca4b8428 Update media controls layout
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
2021-01-15 13:07:55 -05:00
Philip P. Moltmann
eca12d241c Add mic sensor privacy QS tile
- 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
2021-01-15 00:48:40 +00:00
Evan Severson
da6d30ab8d Create camera toggle tile
Bug: 162549680
Test: None (tested with subsequent change)
Change-Id: I35c2528fa2bf5800c3329a7b5448addf476d12ff
2021-01-14 09:53:12 -08:00
Anna Zappone
2ec38a18f7 Support single conversation in People Space widget
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
2020-12-08 10:58:23 +00:00
Flavio Fiszman
bf47d90aa0 Creates a widget for People Space.
Change-Id: Ic53532d7de1a7d410493e46b4398d03142f78e40
Test: Build, boot, add new widget, see it update.
Bug: 169783793
2020-10-21 14:41:54 +01:00
Andras Kloczl
7f3c2dc240 Add user name photo dialog to user creation
- 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
2020-10-06 20:43:41 +01:00
Tony Huang
1ed148d3e7 Migrate OneHanded to WM shell (4/n)
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
2020-09-09 03:04:56 +00:00
Jason Chang
90fb1576fb Implement Tutorial panel for one handed
To educate users using one-handed mode showing tutorial
at top region when one handed triggered

Bug: 151800576

Test: manual
Change-Id: I255a08bf4527554ee8970c3baaf85b8956b2ca83
2020-07-29 19:26:29 +08:00
TreeHugger Robot
44d6bc8594 Merge "Make icon sizes consistent" into rvc-dev 2020-06-29 17:14:35 +00:00
Robert Snoeberger
ec645b4c49 Make icon sizes consistent
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
2020-06-29 10:04:52 -04:00
Selim Cinek
2b33bad9c2 Merge "Fix RTL text in TransitionLayout" into rvc-dev 2020-06-29 07:39:06 +00:00
Selim Cinek
46986caa19 Merge "Vertically center app icon with app name" into rvc-dev 2020-06-29 03:44:01 +00:00
Jeff DeCew
4636fbc163 Fix RTL text in TransitionLayout
Fixes: 159656380
Test: manual - video attached to bug
Change-Id: Ic676c69f3bd5072900563947efc3656a5b22ce70
2020-06-27 14:36:04 -04:00
Robert Snoeberger
be58f2bc7b Vertically center app icon with app name
Bug: 159990829
Test: manual - Change text size to smallest and look at app icon.
Verify that icon is aligned to center of app name text.
Test: manual - Change text size to largest and do the same check as
above.

Change-Id: I88ca6c7ff908d76f87bce2e87e8d11a07c77c902
2020-06-26 18:02:52 -04:00
Robert Snoeberger
b7a356f6da Chaser for ag/11973247 to wrap content
Otherwise, the ouput switcher chip will expand to fill the avaiable
space.

Fixes: 159708142
Test: manual - Connect headphones with short name. Look at player in QS.
Verify that chip wraps the text and isn't too wide.

Change-Id: I574762cc2d327fe7c55a3c3c6105d15dec55f7ca
2020-06-26 17:05:51 -04:00
Fabian Kozynski
f2e6891752 Media - Limit size of output switcher and app name
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
2020-06-23 14:41:47 -04:00
Jeff DeCew
afec78f7f1 Correct RTL layout of media players
Bug: 158021340
Test: manual - press RTL tile and look at player layout.
Change-Id: I39b266acd0b0bd9f9388f87accecff42ca62df01
2020-06-22 20:33:12 -04:00
Robert Snoeberger
0734043a33 Reduce device fallback to just icon
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
2020-06-22 00:25:55 -04:00
Selim Cinek
2de5ebb44a Replacing MotionLayout with DynamicLayout
Motionlayout had a few limitations because we didn't have
any control over the measure cache and the resizing
behavior wasn't very performant for our usecase.
We therefore implement a new Layout called DyanmicLayout
that dynamically allows you to move between different
ViewStates in a performance optimized way.

A new controller is introduced that is responsible
for caching the individual viewstates and react to
possible changes in the view hosts. This will make
sure that our layout is more stable than ever while
beeing fully optimized for multiple players with
various different viewstates, allowing us to implement
usecases much easier where players are conditionally
hidden or replaced when long-pressing.

MediaLocationStates are now fully owned by the
MediaStatesManager and the hiearchyManager only
operates on the bounds of the views, making it more
generic and resuable for future usecases.

Fixes: 156465387
Test: atest SystemUITests
Change-Id: Ica8c2b1404df52d3cc3bf3d0ee5dabbc886557cf
2020-05-26 16:30:40 -07:00
Selim Cinek
8081f0940f Fixed an issue where GONE Views would show during transitions
Because we're clipping children and MotionLayout doesn't hide them
when collapsed, views could flicker onto the screen

Test: add media notification, swipe down to shade and back, observe no flickering
Bug: 154137987
Change-Id: Ida591706e779215e13c6d3047be7e3b5318b4d19
2020-05-08 22:23:44 -07:00
Selim Cinek
3df592e5a8 When animating between states, animate the view width
Test: add media notification observe no flickery animation
Bug: 154137987
Change-Id: I909dd4427813b34426cc7d7fc08f298761f134bc
2020-05-08 22:23:32 -07:00
Selim Cinek
f0f7495c92 Media views now dynamically transition between media hosts
Let there be hosts and transitions.
This also enables us to build again after the rebase

Bug: 154137987
Test: atest SystemUITests
Change-Id: I8aaed1718b35be46abae0b0255793f37b8a1fbd2
2020-05-08 22:23:32 -07:00
Selim Cinek
d835792bb0 Changing media to MotionLayout
Bug: 154137987
Change-Id: Ice66b2bd79a837832cf1ea9bc3920690ac263a5a
2020-05-08 22:23:31 -07:00
Brad Stenning
8d1a51c4da Move car related code from SystemUI to CarSystemUI
Test: Emulator phone and Car
Change-Id: Ia64a23c1d3643899118e578b82c665c034af1c8e
2018-12-04 09:19:36 -08:00
Beth Thibodeau
5898ac47b2 Adding screen recording function.
Screen recording can be launched via long press on screenshot in
the global actions menu if the local feature flag is enabled.
Otherwise, long press on screenshot will also trigger a screenshot.

Demo videos: https://drive.google.com/open?id=1oJzfzJb8aGXSUqn4CZ_Yn7qWmJ2dvRd5

Test: manual
Change-Id: I373d38ad86291ff6f26f7dca3195001bd8f5ee16
Bug: 111395687
Bug: 118826991
2018-11-01 15:56:39 -04:00
Gus Prevas
33619afa8b Hides low-priority icons from status bar.
This change modifies NotificationIconAreaController such that icons for
low-priority notifications are not shown.  This behavior is controlled
by a new switch in the SystemUI Tuner.

Test: manually
Bug: 116622974
Change-Id: I7f1d5b6c5757936aba93da3d0e50ae1dd8434b33
2018-10-30 13:41:53 +00:00
Lin Guo
d7468d4d54 Refactor CarVolumeDialogImpl to use CarAudioManager
Using CarAudioManager to get volume change callback and set volume
change.

BUG: 78766946
Test: manual
Change-Id: I0563938ca20ad83b4b0de0b7cfe780bb6a97b0fd
2018-05-03 15:21:14 -07:00
Julia Reynolds
66d2894272 Remove dnd, expand, alarm stream from volume dlg
Step one in simplifying the volume controls. All controls are still
shown as sliders at the top of the screen, and the ringer stream is
still the default stream.

Test: make, manual
Bug: 63096355
Change-Id: Ia66fbb58cbea6305a6e8a2b4567e23eb93200227
2017-11-07 13:49:19 -05:00
Mady Mellor
d7637ece5c Merge "Remove PIP tuner items" into oc-dev am: 86339dc8ee
am: 2d11f63de9

Change-Id: I93aef75b94b56bfe2f31958c373a44582df0ec02
2017-05-11 06:56:39 +00:00
Michael Wright
8036799d2e Enable Always On mode by default.
Also, add a config value for always on display availability.

Test: runtest -x tests/src/com/android/systemui/doze
Change-Id: Id5e0136a5bed0eac78ad48147b0bef8311b06986
2017-05-10 21:47:47 +01:00
Mady Mellor
8c7dc429b5 Remove PIP tuner items
Test: Check tuner for items, also try moving PIP around note it doesn't
      minimize, also try long drag to dismiss, note it doesn't dismiss
Bug: 37476193

Change-Id: I1ac1abd9c75d40bd84f59dab8aba5cdb98cd59bb
2017-05-10 12:55:39 -07:00
TreeHugger Robot
ddb460c18f Merge "Add ability to fling to dismiss PIP from anywhere" into oc-dev 2017-04-26 20:52:02 +00:00
Adrian Roos
60a7739798 AOD: Remove wake up fully config flag
Fixes: 37270258
Test: Double tap, make sure device does not wake up to lockscreen, only to ambient display
Change-Id: Iaf0c3bfb5dcf566adae7f37b51c866d92bce7a1d
2017-04-25 14:28:41 -07:00
Mady Mellor
47ba140cbf Add ability to fling to dismiss PIP from anywhere
This is by default turned off and is behind a tuner flag.

Allows the PIP to be dismissed if it is flung towards the bottom center
of the screen and the finger is released within the bottom area of the
screen.

Test: Manual - enable tuner setting, have a PIP, position it at top of
      screen, long- fling it towards bottom center of screen, it dismisses.
Bug: 35358628
Change-Id: I2d3d50093f6523c7bb321e0486dab360095a398e
2017-04-25 12:08:08 -07:00
Adrian Roos
601fe4aca3 Revert "AOD: Wake up fully on gestures by default"
Bug: 35909567
Bug: 30876804

This reverts commit d84a080e94.

Change-Id: Id51edce39967075cffe8fbe3860200cfe3a355ae
(cherry picked from commit ae4306edba)
2017-04-11 16:54:01 +00:00
Mady Mellor
2e1387886a Disable PIP minimize and put it behind a tuner item
Test: Have PIP, try to minimize it (does not minimize).
      Enable tuner item, have PIP, try to minimize it (success!)
Bug:35358768
Change-Id: Iee9c26055decd06dc27233ff21edb6905eef9d23
2017-03-27 13:07:58 -07:00
Adrian Roos
d84a080e94 AOD: Wake up fully on gestures by default
Fixes: 35909567
Bug: 30876804
Test: manual
Change-Id: Ie90c451ca3d8fe6ca62853fb3a555401dc322f00
2017-03-06 13:38:56 -08:00
Adrian Roos
5cd29e41ac AOD: readd AOD settings on debuggable builds
Bug: 30876804
Test: On user build, verify that "Ambient Display" does not appear in SystemUI Tuner.
Change-Id: I75ba7ce11346f9cb8bf5683b17debe77edca20bf
2017-02-22 16:48:15 +01:00
TreeHugger Robot
040e425b49 Merge changes Ia33ab1ab,I1d01ab5d
* changes:
  AOD: Add toggle for waking up instead of ambient display on sensors
  AOD: Refactor DozeMachine to allow waking up
2017-02-16 02:28:23 +00:00
TreeHugger Robot
8d6a617069 Merge "Removing PiP from SysUI tuner." 2017-02-16 02:23:03 +00:00
Winson Chung
6e35ee1ff5 Removing PiP from SysUI tuner.
Bug: 35143109
Test: Go to tuner, observe
Change-Id: I5c4eadc33a303e7bf7d99aa772296405d39ee251
2017-02-15 16:32:45 -08:00
Adrian Roos
7a1654e8e4 AOD: Add toggle for waking up instead of ambient display on sensors
Bug: 30876804
Test: Open SysUI tuner -> Ambient Display -> Toggle wake up on sensors setting, verify that double tap and lift wake up phone instead of triggering ambient display.
Change-Id: Ia33ab1ab5ed532f239262d70e00dac3fec0330e2
2017-02-16 01:21:13 +01:00
Jason Monk
790442e4cd Tuner updates
Some UX updates to the tuner to feel better and align with settings
UX patterns.

Test: visual
Change-Id: I9c57194b9649c61e0d6d3f9e21a51d9c4a5c1286
2017-02-15 13:35:00 -05:00
Adrian Roos
9125068a99 SysUiLeaks: Add GarbageMonitor
Adds a service for monitoring the amount of tracked garbage.
If it exceeds reasonable levels, a notification with a leak
report is posted.

Test: runtest systemui
Change-Id: Ib55281f2aac557743b97c46bc616688261c72e9c
2017-02-11 21:57:10 +01:00