Commit Graph

1582 Commits

Author SHA1 Message Date
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
TreeHugger Robot
b844315b7d Merge "Fixed quickscrub regression" 2018-12-04 11:16:43 +00:00
Matthew Ng
a62b62081d Fixed quickscrub regression
Forgot that quickscrub does not proxy motion events when refactoring.
Added a new function for actions to proxy events and made sure that the
test catches if events were proxied.

Test: atest QuickStepControllerTest
Change-Id: I8c047816aa266dfd9d220df7d47a13dadf5987f9
Fixes: 119502592
2018-12-03 16:47:25 -08:00
Fabian Kozynski
b32ceeaecb Merge "Tiles added through adb stay during edit" 2018-12-03 16:30:24 +00:00
Lucas Dupin
086c6fc0ae Let launcher modify window corner radius
Test: Manualy launch an app
Test: Press home when activity is on top of the stack
Test: Quick scrub
Test: Swipe up on the home button, swipe down
Test: Tap on notification on the shade
Test: atest ActivityLaunchAnimatorTest
Bug: 111514493
Change-Id: Ib7e29e7e07bf2a245ff949373af700b319e273fc
2018-12-02 04:32:13 -08:00
TreeHugger Robot
e1b9672d80 Merge "Updates NotificationInfo layout/buttons." 2018-11-30 19:59:18 +00:00
Fabian Kozynski
bb3ff875d4 Tiles added through adb stay during edit
If a tile that is not considered stock (currently nfc and user) are
added through adb, they will persist through edits of QSPanel until they
are removed.

Test: Manual using adb shell settings put secure sysui_qs_tiles wifi,bt,dnd,flashlight,inversion,nfc
Test: atest
Change-Id: I0c9c003b486ae93481810f19e26b849cc38adbc5
Fixes: 116614851
2018-11-30 13:03:26 -05:00
Gus Prevas
82ad059b13 Updates NotificationInfo layout/buttons.
This change modifies the UI displayed when the new interruption model is
enabled after long pressing a notification or tapping the settings icon
in the notification side menu.  The text links for blocking the channel,
toggling its importance, or canceling out of the dialog are replaced
with buttons with icons and clearer text descriptions.

Test: atest NotificationInfoTest
Bug: 116622974
Change-Id: I06ead5c4da77319df3ebe4c48d863dede37bf2f4
2018-11-30 11:30:51 -05:00
Aaron Heuckroth
b5ed915803 Merge "Remove setAsMainLooper from CollapsedStatusBarFragmentTest." 2018-11-30 16:04:10 +00:00
Aaron Heuckroth
5acf9ecf1a Remove setAsMainLooper from CollapsedStatusBarFragmentTest.
Test: Automated tests should pass.
Change-Id: I248e76e74a816b958d803e05ce4b9dc796195feb
2018-11-29 13:05:21 -05:00
Lucas Dupin
4c8c3274da Ambient wallpaper API feedback
Making this api a @SystemApi, protecting it with a permission and
changing boolean animation parameter to a long.

Change-Id: Ife6aac2806a5590288a801751f22d85c3cfd4622
Fixes: 116117810
Test: atest DozeWallpaperStateTest
Test: atest WallpaperServiceTest
Test: set image wallpaper
Test: set AOD wallpaper that holds permission
Test: set AOD wallpaper that doesn't hold permission
2018-11-29 17:38:11 +01:00
TreeHugger Robot
8ce7d1d992 Merge "Add onActionClicked in NotificationAssistantService" 2018-11-29 15:43:29 +00:00
Tony Mak
7d4b3a5f19 Add onActionClicked in NotificationAssistantService
This is added to report clicks on actions buttons to NAS.

BUG: 119010281
Test: atest SystemUITests
Test: atest RemoteViewsTest
Test: atest NotificationManagerServiceTest
Test: Manual. Tapped on the action (both normal and contextual) and
      observed the log.

Change-Id: I381994737d8c3185d3fabf9b6c481fd01a89a634
2018-11-29 11:43:53 +00:00
Gus Prevas
5a70a4e07c Updates buttons in notification menu row.
The new design for the notification menu row with the new interruption
model enabled is to have nothing on the left side, and to have a single
button for interruption settings on the right which opens the guts (instead
of multiple buttons which take immediate action).  This change implements
that design and removes the mechanism for buttons taking immediate action.

Test: manual
Bug: 116622974
Change-Id: Ibcb2e10453ab490e8de69b00f37aed498a314808
2018-11-28 11:21:19 -05:00
TreeHugger Robot
447e2dad1d Merge "Add test for stack scroller padding." 2018-11-28 09:57:39 +00:00
Dave Mankoff
a4d195d2e1 Refactor ExpandableView to maintain its own ExpandableViewState.
Bug: 119282834
Test: atest SystemUITests (and manual)
Change-Id: I2067488482d9f48767d8e2c9b37c69a40c3b0d88
2018-11-27 17:04:26 -05:00
TreeHugger Robot
67d97b4bf3 Merge "Don't let everyone reach into NotificationData.Entry for its row" 2018-11-27 21:29:01 +00:00
Robert Snoeberger
6067dfbc23 Add test for stack scroller padding.
Adding tests before changing the KeyguardClockPositionAlgorithm to deal
with positioning the stack scroller when a full screen custom clock is
present. The tests should help reduce the risk of regressions.

Bug: 120037316
Test: KeyguardClockPositionAlgorithmTest passes locally
Change-Id: I505d9402fd73697f4222138bd753bdfe32f87337
2018-11-27 15:50:13 -05:00
Fabian Kozynski
f2ada528e4 Merge "Fixes multi-user support" 2018-11-27 19:55:22 +00:00
TreeHugger Robot
20dbbf22b8 Merge "Add onSuggestedReplySent in NotificationAssistantService" 2018-11-27 19:51:55 +00:00
Tony Mak
2999670406 Add onSuggestedReplySent in NotificationAssistantService
This is added to report clicks on smart reply buttons to NAS.

Also refactored the code a bit by having SmartReplyView to use
SmartReplies and SmartActions object, rather than passing a long list
of arguments.

Test: atest SystemUITests
Test: Manual. Tapped on the reply and observed the log.
BUG: 111437455

Change-Id: I897fb46a304f4f7b80b2a6bc4db0ac39f6dc6e8f
2018-11-27 18:18:21 +00:00
Wei Wang
feb9de64f1 PowerUI: poll thermal sensor in handler
Fixes: 120037422
Bug: 116866524
Test: adb logcat |grep SystemUIBootTiming
Change-Id: I2b76aa43bb093a884080809ef0f984de65ce4729
2018-11-27 16:44:49 +00:00
Fabian Kozynski
b5625ac6f6 Fixes multi-user support
The controller is probably not recreated on user changed, so it listens
to intent broadcasts to update its current profiles list.

Test: atest
Fixes: 120028217

Change-Id: I8139827065fc61bc215870631f0215dd1bebe697
2018-11-27 09:56:04 -05:00
Evan Laird
9449285d67 Don't let everyone reach into NotificationData.Entry for its row
Test: atest SystemUITests
Change-Id: I0b4b66769afcf39c35800d293c22263e31790788
2018-11-27 09:37:54 -05:00
TreeHugger Robot
060248c3f9 Merge "Show DND icon on AOD whenever DND is on" 2018-11-27 14:22:40 +00:00
Lucas Dupin
627ad3780e Show DND icon on AOD whenever DND is on
Before, we'd only show it if visual effects were off, and users
didn't quite understand the behavior.

Test: manually toggle DND
Test: atest KeyguardSliceProviderTest
Bug: 111405682
Change-Id: I305883564c8d710497a5fc9a8ca0548c30b896f0
2018-11-27 10:31:19 +01:00
TreeHugger Robot
b0851aef24 Merge "Add Notification.Builder.setAllowSystemGeneratedContextualActions()." 2018-11-26 21:59:33 +00:00
Julia Reynolds
268647a748 Proxy notification improvements
- Fix a bug where the notifications weren't being posted
- Add attribution to the notification guts

Bug: 111452544
Test: atest
Change-Id: Id19e58cf66a62b179cb684783b264dad8a5371b0
2018-11-26 11:13:16 -05:00
Gustav Sennton
761884ce27 Add Notification.Builder.setAllowSystemGeneratedContextualActions().
If an app doesn't add any smart replies or smart (contextual) actions to
their (message) notifications the Android platform fills in smart
replies and actions for the app.
With this CL we add a way to opt out of system generated contextual
actions.

Bug: 119765729
Test: atest NotificationContentViewTest
Change-Id: I6190fd197f74b8353f7113f2d8ba86068c2b78ab
2018-11-22 10:27:27 +00:00
Gustav Sennton
fa830752aa Merge "Add smart actions to message notifications." 2018-11-22 00:58:46 +00:00
TreeHugger Robot
a9a37d84c1 Merge "Add mock thermal service in PowerUI test" 2018-11-21 21:53:29 +00:00
Wei Wang
bf05e6000c Add mock thermal service in PowerUI test
Thermal event might interfere with unit test.

Bug: 119873861
Test: atest frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/PowerUITest.java
Change-Id: If610d53355bf4e2c29b807acce887096489f62c8
2018-11-21 12:11:56 -08:00
Beverly Tai
8db41f6bef Merge "Override equals in Person object" 2018-11-21 18:24:52 +00:00
Gustav Sennton
eab5368d4f Add smart actions to message notifications.
Smart Action look similar to Smart Replies with an icon next to the
button text.
Smart Actions can be added either by an app, or by the framework itself
(through NotificationAssistantService).
The idea is that Smart Actions are really actions relating to the
content in the notification message.

The priority order of smart replies vs. actions will be dealt with in a
follow-up CL (i.e. whether we should prioritize showing smart actions
over smart replies).

Example notifications:
System generated:
https://screenshot.googleplex.com/f6p8uOMygeT.png
App generated:
https://screenshot.googleplex.com/VR6On1eh4CW.png
2 app generated actions:
https://screenshot.googleplex.com/QuM5e792xhb.png

Bug: 111406942
Test: manual tests = add custom actions directly in sys ui and ensure
they're shown in message notifications.
Test: atest SystemUITests

Change-Id: I0ce959b74e89bcabc69b76c50c1877e70d6f06df
2018-11-21 15:35:43 +00:00
Kevin
4b8bbda21b Fix GroupAlertTransferHelper logic on update.
Previously, all transferred alerts were removed when the inflation was
aborted. This could cancel transfers when the child was simply updating.
Now, this only occurs on remove. On update, the previous heads up/
ambient inflation flag is carried over and the helper determines if
the content should actually heads up after inflation.

Bug: 111809944
Test: runtest systemui, manual
Change-Id: Ic7c5414849e2bfa1978bb1c57ed314c4997b8ea2
2018-11-20 10:58:00 -08:00
Kevin
01a53cbfcd Fix heads up/ambient content inflation w/ groups.
This CL fixes lazy content inflation for alerting notifications in
groups by inflating them on the fly if we would transfer to a
notification that does not have its content inflated. We introduce a
helper class here to explicitly deal with the transfer logic,
refactoring a lot of the GroupManager code out.

This removes the previous workaround to always inflate heads up +
ambient views.

Bug: 111809944
Fixes: 111809944
Fixes: 117933032
Fixes: 117894786
Test: runtest systemui
Test: manual, posted groups that trigger a transfer and a transfer back.
Group alerts behaved as expected.
Change-Id: I9b5ec4c8bdeea20707874d90213dcd1d22d8b503
2018-11-20 10:54:40 -08:00
Aaron Heuckroth
80c2e00636 Merge "Remove setAsMainLooper from several flaky tests." 2018-11-20 18:34:15 +00:00
Aaron Heuckroth
96cd93f55e Remove setAsMainLooper from several flaky tests.
Test: Automated tests should pass, ideally with fewer flakes!
Change-Id: I6459b1bd1c46b3589703e55504a96c76a8447204
2018-11-20 11:17:30 -05:00
Beverly
e98937afe3 Override equals in Person object
Test: atest NotificationDataTest
Change-Id: I8423a40c6f0ccf6d9cd0c3141487b84679d966ff
Fixes: 119029933
2018-11-20 11:01:00 -05:00
Mady Mellor
4c102acbf9 Merge changes from topic "initial-bubbs"
* changes:
  Update scrim controller to bubble state when bubbles are expanded
  Introduce scrim state for bubbles
  Update PIP dismiss to work a little better for bubbles
  Make status bar full screen when bubbles are present
  Auto bubble some notifications (behind debug flag)
  Introduce bubble controller & friends
2018-11-20 02:12:50 +00:00
Mady Mellor
cd9b130827 Update scrim controller to bubble state when bubbles are expanded
There's one issue with this where if you expand status bar
on top of the expanded bubble there is no scrim in between.

Test: manual / existing tests pass (atest SystemUITests)
Bug: 111236845
Change-Id: I2510758366999131ac7ffbb7505026727f4e40e1
2018-11-19 15:19:50 -08:00
Mady Mellor
0c333774c8 Introduce scrim state for bubbles
When bubbles are expanded we'll want to put a scrim behind them, this
is the scrim state we'll use.

Super simple test to check that alpha / visibility state of scrims
are as expected

Test: atest frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Bug: 111236845
Change-Id: I1ee8ff9e7ce35aae692cf75a912106255e0e9b5a
2018-11-19 15:12:32 -08:00
Mady Mellor
d1c78b26fb Make status bar full screen when bubbles are present
* Adds new state 'bubblesShowing' to StatusBarWindowController
* When bubbles are showing status bar will be full screen and
  the touchable region will be updated

Test: manual / existing tests pass (atest SystemUITests)
Bug: 111236845
Change-Id: I6d28d0313104929fba49d326a72209f701eb78d5
2018-11-19 15:12:29 -08:00
Aaron Heuckroth
7cf932d0af Merge "Switch NotificationSwipeHelperTest to use RunWithLooper." 2018-11-19 15:03:28 +00:00
Fabian Kozynski
ef12449cf8 Version 2 of Ongoing Privacy Dialog
Minor changes to colors and layout of chip.

Redesign of dialog using new mocks.

Dialog launches Permission Hub

Test: visual & atest PrivacyDialogBuilderTest
Fixes: 117646163
Bug: 112331475

Change-Id: Ic8008f05fcb139c2581794abbb47c00819c20d7f
2018-11-16 09:16:25 -05:00
Gustav Sennton
413ce3b609 Merge "Add a Notifications API for contextual (smart) actions." 2018-11-16 10:22:39 +00:00
Aaron Heuckroth
3c1f0214f2 Switch NotificationSwipeHelperTest to use RunWithLooper.
Test: Automated tests should pass (without flaking!)
Change-Id: I7471452c096d87f1fe8021899fdb535952d325a1
2018-11-15 14:52:57 -05:00
Gus Prevas
d7c445e6a0 Merge "Adds initial action to NotificationInfo menu items." 2018-11-15 14:49:11 +00:00
Rhed Jao
4445345f20 Merge "Update VolumeDialog to use a11y api for ui timeout value." 2018-11-15 06:13:42 +00:00
TreeHugger Robot
c1d607e90d Merge "Add ColorDisplayManager" 2018-11-15 00:40:26 +00:00