Commit Graph

1470 Commits

Author SHA1 Message Date
Julia Reynolds
d8b49d3908 Merge "Volume dialog redesign" 2018-01-17 18:14:58 +00:00
TreeHugger Robot
52c3685613 Merge "Temporary affordance for blocking helper" 2018-01-17 17:22:31 +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
Jason Monk
8a514cb414 Make QS rounding match notifications
Test: visual
Bug: 70799006
Change-Id: Iae9bba222e7d34c520df2b673e6d346a44ebcc0e
2018-01-16 22:05:17 +00:00
Dan Sandler
1d958f8c35 Temporary affordance for blocking helper
When a notification is flagged by NoMan as USER_SENTIMENT_NEGATIVE (odd,
since this is actually the system's sentiment), a small  icon will
appear that directs you to the notification settings.

Eventually the icon will be removed, and the settings (reworded to
explain that you seem not to like this kind of notification) will be
left behind in the shade.

Bug: 63095540
Test: runtest systemui
Change-Id: I8b815cd035e9730bbbf1d4a1be17db9d494111ed
2018-01-13 15:34:57 +00:00
Mike Digman
d9ca4189c1 Merge "Add rotate suggestion button by default to left side of navbar" 2018-01-11 22:44:41 +00:00
Mike Digman
7d09277f99 Add rotate suggestion button by default to left side of navbar
Icons, animations are preliminary
Test: manual

Change-Id: If8a6942c1e78f6cfb5aae6d78e6acfa2b0bb6566
2018-01-11 12:10:32 -08: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
8abf129f1f Merge "Removing PIP notification for menu action" 2018-01-02 23:51:38 +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
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
Julia Reynolds
edb2e7ce14 Restore volume expansion.
Test: manual
Bug: 63096355
Change-Id: Ibff2826084353b66a6e1376cb9dda3e01dcf0e72
2017-12-11 13:18:03 -05: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
Julia Reynolds
86cd551fc6 Undo changes accidentally committed with another cl
Test: runtest systemui
Change-Id: I4019d0063bc29f4f83433d6b4701cec20747dc4b
2017-12-05 10:20:39 -05:00
Julia Reynolds
15f4ac5a94 Merge "Update 'next alarm' tracking" 2017-12-04 20:24:03 +00:00
Julia Reynolds
4b3184366d Update 'next alarm' tracking
Also improves logging and adds tests.

Test: runtest systemui-notification
Bug: 67028535
Bug: 69440234
Change-Id: I259fdc2d253d2a4ac415e23bd66a0b9d7c69b053
2017-12-04 13:19:37 -05: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
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
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
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
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
Adrian DC
775b8399ed Merge "Quick Settings: Avoid expand indicators shortly showing on edit" am: 47c83a5f9d am: 18a6d4990a
am: 8590d905cb

Change-Id: I33dbafa88f84091d7b2a0c5f5ae2a63f026564f9
2017-10-30 16:09:28 +00:00
Adrian DC
8590d905cb Merge "Quick Settings: Avoid expand indicators shortly showing on edit" am: 47c83a5f9d
am: 18a6d4990a

Change-Id: I033cf9cf74c3fe8d80791cc5039a1530332eaabc
2017-10-30 15:58:39 +00:00
Adrian DC
d205de25a4 Quick Settings: Avoid expand indicators shortly showing on edit
* Upon entering of the Quick Settings edit view, during
    the animation, all the expand indicators are rarely
    visible for a short period of time until hidden

 * To avoid this visual glitch, hide the expand_indicator
    by default and let the code show it when necessary
    instead of hiding it for most cases

Change-Id: Ia14d9a8d63178ccb54fbcb969ddf51f06c88f35c
Signed-off-by: Adrian DC <radian.dc@gmail.com>
2017-10-29 13:10:40 +00:00
Winson Chung
545a6e1b22 Remove unused recents fast-toggle/paging code.
- Also remove some unused assets

Bug: 67510855
Test: Code removal
Change-Id: I770cd430af01deb64f14e3ce30c12497c194dfa2
2017-10-13 10:28:26 -07:00
Lei Yu
a57aea0d61 Merge "Change battery icon to the side of bt icon" into oc-mr1-dev 2017-09-14 21:31:11 +00:00
jackqdyulei
98b7fdbd5c Change battery icon to the side of bt icon
Also add a new parameter to control the size of battery icon at
the side.

In spec the height of battery icon should be 55% of the bt icon.
Since bt icon has different natural margin in its vector drawable.
This cl adds a padding and then change the ratio to 75%.

Bug: 65397557
Test: RunSettingsLibRoboTests

Change-Id: I442149392edcec2ee23f651232ffe3e204badc38
2017-09-13 13:22:47 -07:00
Julia Reynolds
13f31bd0fe Display volume dialog for longer...
If the alarms only introduction is visible. Also fix the spacing
of the intro message.

Change-Id: I63c0b992ed0b7aad707a92eb1b451192af71aeae
Fixes: 65188805
Test: manual
2017-09-13 09:40:10 -04:00
Bryan Eyler
9e009bb07d Merge "Add spacing in QS footer and user switcher." into oc-mr1-dev 2017-09-08 05:28:31 +00:00
Bryan Eyler
42aed466ae Merge "Add username beside user switch." into oc-mr1-dev 2017-09-08 05:27:52 +00:00
Bryan Eyler
fbc5d504e7 Add spacing in QS footer and user switcher.
Adds space between user avatar and name.
Adds space below user icons in switcher.
Expands avatar image to size of view.
Adjust colour of user name.

Bug: 63593747
Tested on Mojave

Change-Id: If0a42b2ecd3ffa9dc11c918d6cdf42f109b3934e
2017-09-06 17:26:12 -07:00
Bryan Eyler
cade225395 Add username beside user switch.
In car QS footer, show the username beside the user avatar/switch
button.

Bug: 63593747
Tested on Mojave

Change-Id: I62387b75951235350ee6d9326eba281374ebea69
2017-09-06 16:28:07 -07:00
Julia Reynolds
b430975f69 Fix truncated text in inline settings
Change-Id: I6606b84d75fea308f75c39b90f5d5ee59e54b2d5
Fixes: 65059562
Test: manual
2017-09-06 09:42:36 -04:00
TreeHugger Robot
e27dab87ed Merge "Fix home button size" into oc-mr1-dev 2017-09-01 17:09:37 +00:00
TreeHugger Robot
d1b4848d2e Merge "Darken car status bar." into oc-mr1-dev 2017-09-01 02:18:10 +00:00
Jason Monk
f4311433a8 Merge "Hide battery percentage from accessibility." into oc-mr1-dev 2017-09-01 00:13:36 +00:00
Bryan Eyler
55e1f0c9d9 Darken car status bar.
Darkens the car status bar header, footer, and user switcher.

Bug: 63593747
Tested on Mojave

Change-Id: I7e1973d75936739f16e43c278337dd9771499488
2017-08-31 14:50:43 -07:00
Jason Monk
d12ed5b17c Hide battery percentage from accessibility.
It's parent already has a content description containing the percentage.
Its duplicative to have both.

Test: manual
Change-Id: I5119a1b4fa101726b26da9e226a51891f6b39892
Fixes: 65124571
2017-08-31 15:23:32 -04:00
Jason Monk
04094078be Merge "Reduce paddings on 320dp screens, we don't have much space" into oc-mr1-dev 2017-08-31 16:35:37 +00:00
Jason Monk
3c9ac1e15d Fix home button size
Test: visual
Bug: 37115488
Change-Id: Ibfaa569cf001f25b0beb65927acbdf606ac59d54
2017-08-31 10:50:05 -04:00
Jason Monk
d2b45018b5 Fix carrier text rtl alignment
Test: visual
Change-Id: I91f76bdbe23cfd2ee0df023a970f73428bd513e9
Fixes: 62622048
2017-08-30 18:27:50 -04:00
Jason Monk
d9c6cedce8 Reduce paddings on 320dp screens, we don't have much space
Test: visual
Change-Id: I9241456e8c9d871a3c510f21226eb248ad8da13a
Fixes: 64383795
2017-08-30 17:37:39 -04:00
Dan Sandler
cd3ad9a39b Remove extra horz padding on GlobalActions labels.
Just enough to fit in "Перезапустить" in ru.

Change-Id: I892e024778a6683f100936b62d2863aa4369bb9f
Fixes: 64541261
Test: switch to Russian, longpress power
2017-08-25 11:30:47 -04:00
Bryan Eyler
2ff95846da Add user selection to car status bar and animate.
Adds the UserGridView to the car status bar and adds an animation when
expanding/hiding.

Bug: 63593747
Tested on Mojave with the fullscreen user switcher and status bar.

Change-Id: If6ddbd4da896c5eb661393dcc35ab299361754e9
2017-08-17 13:36:59 -07:00
Bryan Eyler
f623b5670a Add the margin between user pods.
In fullscreen user switcher, there is a margin that needs to be
accounted for between user pods.  This is not the same as the margin
that increases the size of a user pod.

Also fixes the way the layout is done so that it handles long user
names properly with ellipsis.

Bug: 36454400
Tested on Mojave

Change-Id: Idb3468f6a8c3f1b81a96c5ff73ff1d32c48e2c82
2017-08-16 20:08:06 +00:00