Commit Graph

2027 Commits

Author SHA1 Message Date
Rohan Shah
28191fc42c Move the signal traffic indicators out of the QS icon circle bounds
Disables clip to padding/clip children to get the indicators outside of
the circle bounds.

Test: Visual
Bug:70798861
Change-Id: Ib2c13f3bd8b3b7dd7d65918afa3eebd75287fdcb
2018-01-17 14:25:40 -08:00
Julia Reynolds
d8b49d3908 Merge "Volume dialog redesign" 2018-01-17 18:14:58 +00:00
Petr Cermak
ed7429c529 Implement SmartReplyView
SmartReplyView creates and manages smart reply buttons in a
notification.

One-pager:  http://go/1p-smart-reply
PRD:        http://go/srn-prd
Mocks:      http://go/p-notifications
Design doc: http://go/srn-design

Screenshot: https://screenshot.googleplex.com/GT9NGckkFKB.png

Bug: 67765414
Test: Viewed a notification with mock smart replies
Change-Id: I6d90776571a559a2542aa35fa11e6a21969179c0
2018-01-17 14:22:47 +00:00
Julia Reynolds
0a22856a2a Volume dialog redesign
Bug: 63096355
Test: manual, change volume with buttons and by touching the slider in
each orientation
Change-Id: I949425ca09c98f8826da5e29a2a479a74acdcf34
2018-01-17 09:09:10 -05:00
Lucas Dupin
4272f44f3f Add battery to AOD
Showing battery percentage in AOD in the keyguard
indication area when also randomizing the text field
position to avoid burn-in.

Removed charging indication from KeyguardStatusView
since now it's always visible in the indication area.

Bug: 64155983
Test: flash taimen, look at AOD
Test: flash walleye, look at AOD
Test: unplug device, look at message
Test: wait for change in battery level in AOD
Change-Id: I6110d47d155e95e838cb901ab0928f0512454ab5
2018-01-17 01:21:11 +00:00
TreeHugger Robot
aea5cfe8c3 Merge "Beginning implementation of quickscrub (1/3)" 2018-01-16 21:59:43 +00:00
Salvador Martinez
6644e252cd Merge "Refactor code to support overridden low battery warning" 2018-01-16 16:29:33 +00:00
Alison Cichowlas
a2cd19e3d1 Screenshot global actions item.
Refactor TakeScreenshot code out of PhoneWindowManager;
add power menu item for Screenshot.

Test: runtest systemui

Change-Id: Ie8602386cd59f8fd991369d2117f7c4d76f65e41
2018-01-12 17:30:41 -05:00
Matthew Ng
a8f2426df6 Beginning implementation of quickscrub (1/3)
When enabled via launcher, the home button is able to be be pulled to
the right side to send events to launcher via binder calls of when the
quick scrub operation starts, ends and progress changes between each
interval. Launcher will use this information to determine how the
recents apps are laid out with vibration feedback.

When the home button is pulled and released under 150ms, quick switch
will occur. A binder call will tell launcher to switch to the previous
app used.

While quick scrub or switch is active, launcher will not get any nav
bar motion events, only events for quick scrub and switch.

Bug: 67957962
Bug: 70180755
Test: enable new experience via launcher settings
Change-Id: I344f5d67f259ff454205ea4d2e95140f783d3b5c
2018-01-12 12:24:03 -08:00
Salvador Martinez
f9e4750af7 Refactor code to support overridden low battery warning
This adds support for enabling the hybrid notification using data
from Device Health Services.

Test: SystemUITests
Bug: 27567513
Change-Id: I5fae3d85f2d4956210bb067ff7c8b14146c8c89c
2018-01-11 09:14:56 -08:00
TreeHugger Robot
e6050a4a0f Merge changes from topic "messaging_people"
* changes:
  Clipping to the top roundness when scrolling
  Made the notification side paddings consistent
  Changing messaging style and overall visual adoption
  Improved the MessagingStyle API with Person
  Added People to the Notification API
2018-01-11 03:07:09 +00:00
Selim Cinek
b95fd18561 Made the notification side paddings consistent
The rounding and paddings are now consistent
throughout the shade. Before the notifications
were only rounded on the top, but the design
didn't work perfectly in all situations.

Bug: 69168591
Test: add notifications, observe consistent paddings
Change-Id: Idc60cb7d448193c65f77bafebb2d110809ecb725
2018-01-10 20:14:38 +00:00
Selim Cinek
afeed29bdc Changing messaging style and overall visual adoption
The messaging style is changed to a bubble-less design.
In addition are we also updating a few spacings in
order for it to look nicer / more balanced.

Test: manual
Change-Id: I43326bd8a23cd1f1d5964d2d6740fde99d29c7e4
2018-01-10 20:14:03 +00:00
Julia Reynolds
437cdb1464 Inline noti blocking is now in the form of a question
And has an 'undo' flow that matches snoozing.

Test: runtest systemui
Bug: 63927402
Change-Id: Idc17b8d950bc3da7ec9fe035dc8a65146d12c456
2018-01-10 12:56:57 -05:00
TreeHugger Robot
3ce996f288 Merge "Parameter to hide bottom affordances" 2018-01-08 07:33:19 +00:00
TreeHugger Robot
96e622cd82 Merge "Add config flag to enable/disable nav bar auto dim" 2018-01-05 22:40:46 +00:00
Lucas Dupin
f78c540cb1 Parameter to hide bottom affordances
Created configurable xml parameter to hide the mic/phone
affordance at the bottom of the lock screen, fixed minor
animation issue where circle would still expand if affordance
isn't visible and set default visibility to false.

Test: Double tap to open camera from AoD, lock screen and launcher
Test: visual, set config, look at lock screen
Bug: 64155983
Change-Id: If5cd2c2c369578480c0ad4e8a98970bcfabd5f3e
2018-01-05 21:08:42 +00:00
TreeHugger Robot
8abf129f1f Merge "Removing PIP notification for menu action" 2018-01-02 23:51:38 +00:00
Matthew Ng
3107d99e54 Add config flag to enable/disable nav bar auto dim
Added a configuration flag to enable whether to auto dim the navigation
bar when wallpaper changes to be invisible such as launching an opaque
app.

OLED devices should have this flag on to prevent/reduce burn and off for
everything else to avoid extra cpu cycles rendering an alpha animation.
By default this is on.

Test: manual
Change-Id: I57ab2a6414b5f6c34e11911346ad4c4d3aac33d0
Fixes: 68812918
(cherry picked from commit 4096e8d028da778f0afbda7df92d6de741650629)
2017-12-22 21:56:41 +00:00
TreeHugger Robot
54a7017827 Merge "Move clock to the left, carrier text to the bottom" 2017-12-21 16:09:21 +00:00
Evan Laird
2cf5682a60 Move clock to the left, carrier text to the bottom
This change moves the clock to the left of status bar and QS screen.
Also removes the date/alarm clock group at the bottom of QS and replaces
it with carrier text.

Test: visual
Bug: 63772836
Bug: 70799093
Change-Id: I7d0a30c126c52745237c647a4af5af46d8418f30
2017-12-21 14:44:02 +00:00
Winson Chung
a556fe6a35 Removing PIP notification for menu action
Bug: 65482444
Test: Launch PiP, tap to show menu, tap settings to go to settings
Change-Id: I204e18ffa0b63acbfef899bda91f5da9daf9f0a5
2017-12-19 15:09:54 -08:00
Julia Reynolds
dd2b96ba0e Add media routing to output chooser
Test: manual
Bug: 63096355
Change-Id: I8dab6f0d46fe786bd408b4b86f109a98fe0feee8
2017-12-19 11:30:33 -05:00
TreeHugger Robot
b4183a0e80 Merge "Add an output chooser dialog to volume panel" 2017-12-14 13:52:11 +00:00
Julia Reynolds
fba474a86e Add an output chooser dialog to volume panel
It shows paired bluetooth devices, filtered on major type
audio_video and uncategorized.

Test: manual
Bug: 63096355
Change-Id: I606cbd581f382752a05b4ffec7707427252ac788
2017-12-13 15:42:16 -05:00
Luke Song
e003666fe9 Separate volume ui and safety warning configs
VR headsets want to prevent 2d volume ui from being displayed, but want
to keep the high volume warning dialog.

Bug: 67951608
Bug: 68997348
Test: Tested linearly independent configs
Change-Id: Ic102ce626e199d2e3a3cf8fbb091050977c696bb
2017-12-13 10:27:54 -08:00
TreeHugger Robot
138686daad Merge changes I3a966bc7,I91e6832d
* changes:
  Adjust window layout for DisplayCutout
  Display Cutout: Add emulation
2017-12-08 16:03:50 +00:00
Julia Reynolds
7d37e95d54 Merge "Move and reshape volume dialog" 2017-12-08 14:13:24 +00:00
Adrian Roos
000cf5e06d Display Cutout: Add emulation
Adds an overlay to SystemUI that draws an emulated
cutout in the bounding polygon that the window manager
supplies.

Bug: 65689439
Test: adb shell settings put global emulate_display_cutout 2
Change-Id: I91e6832d7e4594e995241d29d6f1ed0d918d59a0
2017-12-08 14:45:18 +01:00
TreeHugger Robot
1fec32bd84 Merge "Move list of SystemUI services to xml" 2017-12-08 08:16:20 +00:00
Jon Boekenoogen
b6b5d41d07 Rename "Go to web" -> "Go to browser"
Update text based on PM guidance.

Screenshot:
https://screenshot.googleplex.com/zmN3oFSLNkj (before)
https://screenshot.googleplex.com/wdtT9qN0h5q (after)

Test: Screenshot from marlin above.
Bug: 68952332
Change-Id: I436fbf5801306776c7052146da451dfb601fd7c0
2017-12-07 20:40:28 +00:00
Julia Reynolds
36dd4f1fbe Move and reshape volume dialog
- Move the volume dialog back to the top
- curve some corners
- Add a ringer toggle row

Bug: 63096355
Test: manual
Change-Id: Ife8a3fa4fabf3a0f26ddca3cf05b16425b325ef3
2017-12-07 15:00:40 -05:00
yoshiki iguchi
61b3708833 Move list of SystemUI services to xml
Previously the services of SystemUI were defined in SystemUIApplication.

This patch moves the service list to res/values/config.xml. So that it
gets easier to customize services of SystemUI.

Bug: 63874929
Bug: 62602530
Test: Ran and confirmed SystemUI started without error

Change-Id: I7f0321c46e562288b2cad5201ae120c37e853908
2017-12-07 17:49:32 +09:00
TreeHugger Robot
7e80df8118 Merge changes I2d517a2b,Ia59e2d97,Id98763d8,Ie3f57dd4,Ib5ddee5c, ...
* changes:
  Fixed a bug where messages could be invisible
  Implemented rounded clipping for groups
  Added padding between notifications and qs on lockscreen
  Insetting notifications on the lock screen
  Increased the notification paddings
  Implemented animations for rounding
  Refactored PropertyAnimator for easier usability
  Implemented rounded corners for notifications
2017-11-29 11:31:55 +00:00
Selim Cinek
d7768f4f48 Added padding between notifications and qs on lockscreen
With the side paddings it looked odd not to have paddings.

Test: add notification expand on qs, observe padding
Bug: 69168591
Change-Id: Id98763d8aec8cac7f9a60107a03d0669ce86ba71
2017-11-28 18:49:04 +01:00
Selim Cinek
515b2035df Insetting notifications on the lock screen
We are now insetting the notifications on the
lockscreen.
This also improves the clipping to the notifications
since we can't just clip the whole content to the
outline bounds.

Test: add notifications on lockscreen, observe inset. Try swiping too.
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationCustomViewWrapperTest.java
Bug: 69168591
Change-Id: Ie3f57dd4938bc97124fb98230cc9427fd4973ead
2017-11-28 18:48:11 +01:00
Lucas Dupin
9e3fa1033c Refactoring ScrimController
ScrimController is now a state machine with tests.

The main motivation for refactoring this class was to
centralize ownership of the scrim state. Before, animations
could be triggered by StatusBar, StatusBarKeyguardViewManager
or DozeScrimController simultaneously, causing collision,
sometimes overriding an expected state due to the call order
and making it hard to calculate an actual state.

Change-Id: I4f4d82549235d3fc7be35b235a2668e70b956cb7
Fixes: 64397851
Fixes: 65688233
Bug: 64155983
Test: runtest -x tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Test: runtest -x tests/src/com/android/systemui/statusbar/phone/DozeScrimControllerTest.java
Test: unlock using fingerprint, or challenge (pin/password/pattern)
Test: trigger in-app bouncer (camera app)
Test: pull down notification shade locked and unlocked
Test: lock, look at AoD (or black display when AoD isn't supported)
2017-11-28 11:25:49 -05:00
Selim Cinek
9b49f6dea0 Increased the notification paddings
The notifications now have slightly bigger paddings
for better readability and in order to support the
lockscreen redesign better.

Test: manual
Bug: 69168591
Change-Id: Ib5ddee5c1695387a162f64de10385b6c92a19761
2017-11-28 14:12:14 +01:00
TreeHugger Robot
c32dec1f26 Merge "Battery Saver master case changes" 2017-11-27 18:32:41 +00:00
Evan Laird
576cdcfd6b Battery Saver master case changes
Test: visual
Change-Id: I473108b3c2e1a48e17416c33f4beab606abfab88
Fixes: 69481756
Fixes: 69481988
2017-11-22 18:34:08 +00:00
Selim Cinek
d9b7dd4a5d Implemented animations for rounding
The corners now animate nicely instead of just
jumping.

Bug: 69168591
Test: manual, swipe away notifications
Change-Id: Ia45774b1fed4d7b0a5cf2ec56ff1560ff685503c
2017-11-22 02:32:02 -08:00
Evan Laird
bc8a3da709 Remove unused strings from sysui
status_bar_settings_signal_meter_wifi_nossid
and
status_bar_settings_signal_meter_disconnected

Are no longer used as of what looks like L, and the latter string had an
errant capitalized "Internet" which is silly.

Test: it compiles?
Change-Id: I7b53994d85808743264fef7500d12ef4b3b69954
Fixes: 69389014
2017-11-17 15:19:47 -05:00
TreeHugger Robot
a420ae655b Merge changes I0d090d52,I77296f91
* changes:
  Anchor the volume dialog to hardware keys.
  Switch default stream from RING to MUSIC.
2017-11-13 22:41:23 +00:00
Julia Reynolds
4241192a74 Anchor the volume dialog to hardware keys.
Test: manual
Bug: 63096355
Change-Id: I0d090d524cb88f3c1c353de5b096b665657f05cf
2017-11-13 13:04:03 -05:00
Philip P. Moltmann
5a633c6e4d Don't show "always use" when app can't be default
Each USB device can have one default handler. This app is launched when
the device is plugged in. A default handler automatically gets
permission to access the device when launched.

All other apps have to request the permission to access the USB device
via UsbManager.requestPermission. In the permission dialog there is an
option to make the app the default app for the device. Of course this
only makes sense if this app declares the right properties to be
auto-launched. Hence check this and only then show this options.

Also made the string in the dialogs easier to understand.

AccessoryFilter and DeviceFilter needed to be copied so I can access
them from system-ui. No code change in these classes.

Test: requested permissions from app that could by the default for the
      device and from an app that could not. Also tested "confirm" flow
      that is executed when the device is plugged in and a app that
      might be default is installed.
Bug: 67381583
Change-Id: I12eb7efed0ad107c70ae32433a5629108f252486
2017-11-09 16:58:20 -08:00
Selim Cinek
c7b5f78765 Merge changes from topic "notification_messaging"
* changes:
  Fixed measuring of messages with excess space
  Fixed the handling of oneToOne conversations for certain apps
  Improved the messaging transformation
  Implemented animations for messaging changes
  Refactored clipping util to be used in core
  Improved the headsup notification for messages
  Redesigned the messaging style
  Fixed a bug where images weren't transforming properly
2017-11-07 18:42:24 +00:00
Selim Cinek
5ec560a12a Refactored clipping util to be used in core
We need the possibility to disable clipping
up a view hierarchy also in core, so I'm
moving it and refactoring it.

Test: expand, observe normal clipping
Bug: 63708826
Change-Id: I157395be8f2b7ac75afc0a3967cb0f2068a02fb6
2017-11-06 16:22:07 -08:00
Selim Cinek
e62255ccc5 Improved the headsup notification for messages
Previously the heads up notifications and also the collapsed versions were not
displaying in the new style.
They are now displayed in the new style of heads up notifications.

Test: add messaging notification in heads up
Bug: 63708826
Change-Id: I041584cd6ee740fd8c59f332f727ed83c89e777f
2017-11-06 16:22:07 -08:00
Matthew Ng
13dbf878bd Started code to pipe overview events and info to launcher
The first event will have navigationbar send its x and y touch events
with no delay (upon vsync) to launcher so that launcher can detect and
animate a drag gesture.

If the user has provisioned setup, the connection between overview to
launcher service will be establish to send any information as a proxy
through binder calls. Connection will be reattached if device switches
between users. Each failure to connect to launcher service will have an
exponential backoff timeout to reconnect.

To implement call Dependency.get(OverviewProxyService.class) and then
getProxy() to get the proxy to pipe events or other information across
to launcher.

Test: manual
Bug: 67957962
Change-Id: I3828474147c37b2c514a682f9124e29a5e142736
2017-11-02 15:45:45 -07:00
Kensuke Matsui
21d1bf1eaf Display network name in status bar
When config_showOperatorNameInStatusBar is true, the network name is
displayed in the status bar.
The user can turn on/off the feature from Settings app (Settings >
Display > Network name).

Fixes: 67620513
Test: manual - insert a valid SIM and go to the Home screen.

Change-Id: I6d03ec00a19e2f5e4c2d2918f1a7c33fdee00dd2
2017-10-31 09:07:23 -07:00