Commit Graph

29876 Commits

Author SHA1 Message Date
TreeHugger Robot
888f39f87d Merge "Updates notification row when importance changes." 2018-12-04 22:39:12 +00:00
TreeHugger Robot
f3867a703b Merge "Prevent clock becoming visible when icon disabled" 2018-12-04 20:44:44 +00:00
Gus Prevas
33fbc15f25 Updates notification row when importance changes.
This change ensures that NotificationMenuRow.onNotificationUpdated()
is called when a notification entry's importance changes,
so that the icon for the interruptiveness settings is
updated appropriately.

Test: manual
Change-Id: I1ac185a716ce5cdf15bde1c4b354ced4c45dc6cf
2018-12-04 14:47:12 -05:00
Lucas Dupin
2b3f0b4c89 Merge "Config to disable AOD wallpapers" 2018-12-04 18:38:10 +00:00
Fabian Kozynski
9016506e52 Merge "Removed unused animations" 2018-12-04 16:00:24 +00:00
TreeHugger Robot
b844315b7d Merge "Fixed quickscrub regression" 2018-12-04 11:16:43 +00:00
Jorim Jaggi
c999d5ee84 Merge "A brave new world for window insets (2 and 3/n)" 2018-12-04 09:44:26 +00:00
Lucas Dupin
a2f2fbe544 Config to disable AOD wallpapers
Test: manual
Change-Id: I58f70ef87ddb0706dd7fce72282880140c94f763
2018-12-03 18:14:06 -08: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
Lucas Dupin
fb8bdbb773 Swipe integration
Test: atest AmbientPulseDismissalControllerTest
Test: manual
Bug: 111405682
Bug: 111414690
Change-Id: Ifa4bee0f6d347986125c895dfe14d7fa093b2e58
2018-12-03 14:54:20 -08:00
Jorim Jaggi
b603095494 A brave new world for window insets (2 and 3/n)
Implements basic API's to control windows generating insets in
the new insets world.

Test: CTS tests will be added at some point in the future
Bug: 118118435
Change-Id: I722d2e58c68734ac131b12da3d9978e946292130
2018-12-03 21:53:09 +01:00
Fabian Kozynski
cddef9467f Removed unused animations
Test: builds and atest passes.
Bug: 120090468
Change-Id: Iee6f7ec86136fa7cbbaff49ce6d0040f32a2e480
2018-12-03 14:53:29 -05:00
TreeHugger Robot
c4cbe40fda Merge "Display Hearing Aids name on UI tile" 2018-12-03 16:31:16 +00:00
Fabian Kozynski
b32ceeaecb Merge "Tiles added through adb stay during edit" 2018-12-03 16:30:24 +00:00
Tiger Huang
44c0455124 Let getNavBarPosition() can take displayId
Navigation bar can show on non-default display now. So the caller
should specify which display the desired navigation bar is on.

Bug: 117474929
Test: atest QuickStepControllerTest
Change-Id: Ibe06a6c7778134204502e6456860d69bea2a9061
2018-12-03 16:10:27 +08: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
Kevin Chyn
3d9b0fc963 Merge changes from topic "biometric-refactor"
* changes:
  3/n: For passive modalities, add plumbing for "try again"
  2/n: Multi-modal support for BiometricPrompt
  1/n: Move BiometricDialog management to BiometricService
2018-12-01 05:04:02 +00:00
TreeHugger Robot
8d0446d544 Merge "Fixed a crash where we were getting the viewstate" 2018-12-01 04:10:36 +00:00
Stanley Tng
c118294af8 Display Hearing Aids name on UI tile
When the current device is a hearing aids, display the name under the
tile.

Bug: 117423826
Test: Manual testing on phone with hearing aids connected
Change-Id: I98cfda7905763a3da3dbc1fbed13fee881da7bb2
2018-11-30 15:09:35 -08:00
Selim Cinek
b1a8130d73 Fixed a crash where we were getting the viewstate
Because we're now getting the viewstate directly from the
view, this was introducing an issue where the viewstate
being null was actually a symbol of the view being null,
which now lead to a nullpointer.

Change-Id: I1d171449034422d25a6e7ba7dca5154db3ce20b3
Fixes: 120230161
Test: remove last notification, no crash
2018-11-30 14:41:32 -08:00
TreeHugger Robot
a8cb5a8bef Merge "Added plural form for "one"" 2018-11-30 20:38:49 +00:00
TreeHugger Robot
e1b9672d80 Merge "Updates NotificationInfo layout/buttons." 2018-11-30 19:59:18 +00:00
Kevin Chyn
23289ef7b6 3/n: For passive modalities, add plumbing for "try again"
When "try again" is showing, authentication is canceled internally.
BiometricService caches the client's info so that authentication can
be restarted when "try again" is pressed. Because authentication
is not running when "try again" is showing, BiometricService also needs
to have a TaskStackListener so that BP can be dismissed and an error can
be sent to the client when the app loses focus.

IBiometricServiceReceiver has been split into two. One for BiometricPrompt
to receive messages from BiometricService, and another for BiometricService
to receive messages from SystemUI/<Biometric>Services.

When we get locked out, don't send the last onAuthenticationFailed
to the client, since "Authentication failed" will be shown briefly
and be replaced by "Device locked out" which is janky

Bug: 111461540

Test: Tested with requireConfirmation enabled/disabled
Test: Tested onConfigurationChange corner cases, e.g. when "try again"
      or "confirm" buttons are showing, rotate the device. Buttons
      persist correctly and don't appear when unexpected
Test: Tested task stack corner cases, e.g. when "try again" is showing,
      press home button. BP dismisses and client receives ERROR_CANCELED
Test: BiometricPromptDemo receives all callbacks

Change-Id: I62126708ce8db8b358c666a07aa7c39607642c9d
2018-11-30 11:34:35 -08:00
Selim Cinek
5b1d16409a Merge "Fixed an issue where the notification could be blank" 2018-11-30 18:44:48 +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
Issei Suzuki
46502d7774 Merge "Stop the window manager acquiring a sleep token in dozing state." 2018-11-30 17:38:39 +00: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
Issei Suzuki
26fc2c9e46 Stop the window manager acquiring a sleep token in dozing state.
This logic is not necessary anymore, and makes transition of the
windows manager flaky.

Bug: 119217735
Test: atest CtsActivityManagerDeviceTestCases:KeyguardTransitionTests
Change-Id: I953b40737f6673b83d27b096dd1f8e81b0cc6e46
2018-11-30 16:28:07 +01:00
Selim Cinek
11cf88e295 Merge "Fade other text out properly when transforming messages" 2018-11-30 00:16:41 +00:00
Selim Cinek
9f18664571 Fixed an issue where the notification could be blank
Because we were changing the visible type but not actually
making it visible, the view could remain blank for a while
until another layout selection came in.

Change-Id: Ica5a5ff806311429883c0a0212e33efccfd8d460
Fixes: 117272628
Test: Add headsup , ambient and let them time out, observe regular notifications
2018-11-29 15:47:40 -08:00
Selim Cinek
6487ebffd5 Fixed the inline launch animation for notification groups
When launching a child of a group there would be strange artifacts
from the clipping. These are now fixed. Also made sure that
the notification can't be launched if the parent is translated.

Test: launch child in a group, observe normal animation
Change-Id: Iee8e4b49462e140d3eaffe5b2504caa1b67d04e2
Fixes: 110093221
2018-11-29 21:52:58 +00:00
Lucas Dupin
54ff93c6b2 Merge "Ambient wallpaper API feedback" 2018-11-29 20:44:13 +00:00
Fabian Kozynski
eb2f7b6b0b Merge "Correct context for TB on disabled tiles" 2018-11-29 18:58:19 +00:00
Fabian Kozynski
d6abc33e0c Merge "Fix starting animator on detached view" 2018-11-29 18:57:59 +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
Fabian Kozynski
511e8b9e1a Fix starting animator on detached view
Test: atest passing
Fixes: 117511410
Change-Id: I037e6d43f7813c44a31d3c46b79cf6b79ce9b481
2018-11-29 11:30:14 -05:00
Vishnu Nair
9a42260be4 Merge "WM: Removes setSize from buffer-less surfaces" 2018-11-29 16:14:19 +00:00
TreeHugger Robot
8ce7d1d992 Merge "Add onActionClicked in NotificationAssistantService" 2018-11-29 15:43:29 +00:00
Fabian Kozynski
a0cbcf942c Correct context for TB on disabled tiles
Test: Manual
Change-Id: I739a71684fd0e38b611b60558025a64396bea372
Fixes: 120164679
2018-11-29 09:53:57 -05:00
TreeHugger Robot
afd7c69060 Merge "Fix comment on VisibilityLocationProvider" 2018-11-29 13:04:33 +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
TreeHugger Robot
24a579db26 Merge "Only register debug hooks when requested" 2018-11-29 10:28:35 +00:00
Rhed Jao
1ef848753b Merge "Update pip menu to use a11y api for ui timeout value." 2018-11-29 04:12:16 +00:00
TreeHugger Robot
7a96ccdb09 Merge "Use secure settings to enable / disable types of auto bubbling" 2018-11-29 01:22:55 +00:00
TreeHugger Robot
258fdb10d6 Merge "Prototype settings can remap the gestures and actions" 2018-11-28 23:42:28 +00:00
Selim Cinek
9dfb388d99 Fade other text out properly when transforming messages
Test: send message and then image, observe normal transformation
Fixes: 	110855884
Change-Id: I21eef8c0e23bd21dbe761d428f0757c8bc4538ea
2018-11-28 15:38:20 -08:00
Vishnu Nair
e86bd98a8b WM: Removes setSize from buffer-less surfaces
- Make a better distinction between surface bounds and buffer size by renaming setSize to
  setBufferSize and removing setSize for all buffer-less surfaces.
- Adds an error check in SurfaceControl to ensure buffer size is only set for buffer-less surfaces.
- Updates color fade surface to use passed in transaction object.

Bug:114413815
Test: go/wm-smoke
Test: atest FrameworksServicesTests:DimmerTests
Test: atest FrameworksServicesTests:SurfaceAnimatorTest
Change-Id: I88bd1452d6b3b3009e73e26986027d6a5a9efebc
2018-11-28 14:24:03 -08:00
Matthew Ng
1cf6eac24d Prototype settings can remap the gestures and actions
Introduced a way for prototype settings to be able to remap the gestures
to actions via a controller. Also the back action is not restricted to a
button drag anymore. Back button visibility from prototype settings
will also signal when to hide the back button immediately.

Bug: 112934365
Test: atest QuickStepControllerTest
Change-Id: Ib5215162edb50162d6f492c5e8a07786c1e2223b
2018-11-28 13:37:07 -08:00