Commit Graph

22296 Commits

Author SHA1 Message Date
TreeHugger Robot
a29d434006 Merge "Tweaked the rounded corners when turning off" into qt-dev 2019-04-09 16:29:53 +00:00
TreeHugger Robot
5d7a31d689 Merge "Create ThemeOverlayController in SystemUI." into qt-dev 2019-04-09 04:17:40 +00:00
Selim Cinek
9ad240c058 Tweaked the rounded corners when turning off
The rounded corners now decrease with the x of the turn off
animation to give it a slightly less blobby feel.

Fixes: 129771535
Test: manual, turn on and off the screen
Change-Id: I1756749198632b05ee358b565d99b765a4950042
2019-04-08 19:07:15 -07:00
TreeHugger Robot
7c5b1dbb7a Merge "Fix StatusBarWifiView applying the wrong wifi icon" into qt-dev 2019-04-09 00:19:24 +00:00
Amin Shaikh
c0f743e023 Fix StatusBarWifiView applying the wrong wifi icon
This was introduced in ag/6935095.

Fixes: 130164218
Test: mp sysuig; toggle wifi on and off
Change-Id: I8b945d777bc6f410943494c98c83cd89766c1e4d
2019-04-08 18:29:47 -04:00
TreeHugger Robot
44519220b6 Merge "Fixing edge swipe region not updating on device rotation" into qt-dev 2019-04-08 22:28:08 +00:00
Fabian Kozynski
e19335a443 Merge "Visual changes to QS header" into qt-dev 2019-04-08 19:49:11 +00:00
Sunny Goyal
1904969f2c Fixing edge swipe region not updating on device rotation
Bug: 130028177
Test: Verified on device
Change-Id: If9a68efa84dd4de926115db80a9b68dcbe1e8720
2019-04-08 11:56:54 -07:00
Fabian Kozynski
bca09b7c00 Visual changes to QS header
Change TextAppearance in QS header.

Also, reduce size of QS tile background. Removed extra padding in the
bottom of QSIconViewImpl that was not needed.

Test: visual
Bug: 124466915
Change-Id: I0b8db6edad7f8527caff76f9419c42a8016a6bda
2019-04-08 13:21:12 -04:00
Mark Renouf
3bc5b36bd0 BubbleData [2/n]: adds Listener interface
This change introduces an interface which BubbleData will use to
report changes to the state of bubbles on-screen. This will allow
BubbleData to implement and propagate ordering and grouping changes.

Bug: 123542488
Test: atest BubbleControllerTest
Change-Id: I35708c45e23fed4369605eecd986cdff96e23d34
2019-04-08 12:15:56 -04:00
Aaron Heuckroth
cb15368628 Merge "Use marquee in Global Actions menu. Fix centering on classic Global Actions menu." into qt-dev 2019-04-08 14:20:58 +00:00
Anthony Tripaldi
06db71ad7c Merge "Remove OPTED_OUT Secure Setting based on API Council feedback." into qt-dev 2019-04-08 14:15:46 +00:00
Mark Renouf
c4a1f88951 Merge "BubbleData [1/n]: remove unused parameter" into qt-dev 2019-04-08 13:58:33 +00:00
Anthony Tripaldi
8c1ebec4f1 Remove OPTED_OUT Secure Setting based on API Council feedback.
Bug:129768185
Test: manual
Change-Id: I51d47142cfb2abeb17d6ad5e99b8f7d1ea585fc7
2019-04-08 08:35:38 +00:00
Lyn Han
02cca81c10 Update color for permission, settings, pointer
Fix bug where we created inset drawable from adaptive icon
drawable, instead of the original settings drawable.

And refactors.

Test: manual
Bug: 123829494
Bug: 123663905
Change-Id: I9342213365cf3679facd22da8592325777d3d17f
2019-04-06 05:44:11 +00:00
TreeHugger Robot
113f85298b Merge "Run end actions immediately if there are no children to animate." into qt-dev 2019-04-06 00:29:11 +00:00
Mark Renouf
f97ed464aa BubbleData [1/n]: remove unused parameter
Remove an unused parameter from updateBubble (always true).
Eventually BubbleData will determine and apply and changes in
position, affecting other bubbles potentially.

Bug: 123542488
Test: atest BubbleControllerTest
Change-Id: Id90d9c905f63f90273205de91f0cff3e221c1ba4
2019-04-05 16:40:27 -04:00
Aaron Heuckroth
3f2d8b5df8 Use marquee in Global Actions menu.
Fix centering on classic Global Actions menu.

Test: Automated tests pass. Set language to German (Belgien), and set screen size to the largest setting. Bug report string should scroll.

Fixes: 130031168
Fixes: 130031706

Change-Id: I4f873728edded9bc9eddc44a66ac84256a657741
2019-04-05 15:49:28 -04:00
TreeHugger Robot
08db266264 Merge "Re-inflate views in onOverlayChanged." into qt-dev 2019-04-05 18:53:49 +00:00
Joshua Tsuji
d54e8e044f Run end actions immediately if there are no children to animate.
This fixes several issues around dismissing the last bubble while in the expanded state, since end actions passed to collapseToStack were never run.

Test: atest SystemUITests
Fixes: 128603791
Fixes: 129359745
Change-Id: I6840c6b0f417c96f7927e96261c9d9436b13c426
2019-04-05 18:27:27 +00:00
TreeHugger Robot
0f6b976405 Merge "Set system gesture exclusion rects for Bubbles" into qt-dev 2019-04-05 15:41:25 +00:00
TreeHugger Robot
ea2cba2759 Merge "Expose notification guts on menu shown" into qt-dev 2019-04-05 15:05:15 +00:00
Robert Snoeberger
97822ed69b Re-inflate views in onOverlayChanged.
onThemeChanged had been used to re-inflate changes, but
ag/6670184 modified onThemeChanged to exit early if the
ThemeResId hasn't changd. A style change doesn't change
the ThemeResId, so re-inflating views in onOverlayChanged
so that font, etc. will update.

Fixes: 129870891
Test: Lock screen font changes with style change.
Change-Id: Ib4aecb017012d5035753fdc3a71615cb7b5216ce
2019-04-05 10:37:21 -04:00
Mark Renouf
821e678d8f Set system gesture exclusion rects for Bubbles
When there is at least one Bubble on-screen, the bounds
of the first (top) bubble are set to exclude system
navigation gestures.

Test: manually w/fully gesture nav enabled
Bug: 126360272
Change-Id: I47a3c69fdc89476805d48b5214a7f05f5d033306
2019-04-05 13:35:48 +00:00
TreeHugger Robot
68c570ecbc Merge "Remove unused flags from bubble controller" into qt-dev 2019-04-05 05:10:58 +00:00
TreeHugger Robot
242522bf8b Merge "Adjust the physics params to values decided on in meeting w/ design." into qt-dev 2019-04-05 02:42:44 +00:00
TreeHugger Robot
7fddea0e29 Merge "Update shape for all bubbles" into qt-dev 2019-04-05 02:41:01 +00:00
TreeHugger Robot
0139ae1581 Merge "Fix mixed up variable in triggering logic" into qt-dev 2019-04-05 01:00:22 +00:00
TreeHugger Robot
67fd7ad761 Merge "Don't show dnd suppressed icons on aod" into qt-dev 2019-04-04 23:42:57 +00:00
TreeHugger Robot
fd33fe0e8a Merge "Introduce a result class for IStatusBarService#registerStatusBar()" into qt-dev 2019-04-04 23:22:55 +00:00
Salvador Martinez
290496e94e Fix mixed up variable in triggering logic
When this code got refactored the check for severe warnings
accidentally had the time remaining being compared against the percentage
value of the severe warning threshold. Unfortunately this meant that
it was impossible to mark the severe level warning as shown and could
result in multiple triggerings. This change makes it so everything
is compared with the appropriate type of value again.

Test: PowerUI Tests pass
Bug: 129730217
Change-Id: Ic8bdabf1c70e49d117210bb80f1ca0a0d7684617
2019-04-04 22:21:57 +00:00
Joshua Tsuji
58f7a5a78b Adjust the physics params to values decided on in meeting w/ design.
Fixes: 129981373
Test: manual
Change-Id: Idfa840d6aade8ac975bd89bb0ba155f21e9f3ed8
2019-04-04 17:55:24 -04:00
Lyn Han
80b8011dce Update shape for all bubbles
After theme change.

Test: manual
Bug: 123829494
Change-Id: I9eca25f19646607d85957f5113178619b7927dfe
2019-04-04 21:07:52 +00:00
Amin Shaikh
dd73e161ff Update systemui wifi icons to GM2.
Remove unneeded NeutralGoodDrawable.

Bug: 124106839
Test: make; used sysui demo mode
Change-Id: Ib3e903d83be140b00410e3adbb31f217b562d372
2019-04-04 16:58:10 -04:00
Yohei Yukawa
49efa718a8 Introduce a result class for IStatusBarService#registerStatusBar()
This is a preparation to fix an issue that IME cannot enable light
navigation bar on direct-reply.

The initial state of StatusBar client is provided as return values of
IStatusBarService#registerStatusBar().  However, the way for the
client to receive the return values is to rely on "out" parameters in
the Binder method as follows.

    void registerStatusBar(IStatusBar callbacks,
            out List<String> iconSlots,
            out List<StatusBarIcon> iconList,
            out int[] switches,
            out List<IBinder> binders,
            out Rect fullscreenStackBounds,
            out Rect dockedStackBounds);

The issue is that if I want to add a new parameter into
StatusBarManagerService to fix Bug 122439339, then it needs to be
notified back to the client via one of these out values, e.g. a new
element in "switches", which is hard to understand and maintain.

It'd be better to introduce a dedicated return object as follows.

    RegisterStatusBarResult registerStatusBar(IStatusBar callbacks);

This is a purely mechanical code clean-up.  Hence there should be no
behavior change.

Bug: 122439339
Test: presubmit
Change-Id: Ib1c0ae8f591ca09d0bce7a39f85ba57aad386e47
2019-04-04 11:49:02 -07:00
Evan Laird
e55c60104a Expose notification guts on menu shown
This change adds a few methods to NotificationMenuRowPlugin so that a
menu row can tell the stack scroller to expose the notification guts
when the menu is fully exposed.

TODO: fix the menu close animation so it happens after the guts open,
and if you close the guts by swiping you can trigger a flicker.

Also there are some things to make lint happy and lots of null checks.

Bug: 127998765
Test: swipe RTL on any notification
Change-Id: I46f7c7dc90032a1914f7b5513bc57e089887c722
(cherry picked from commit 9272fd2f57)
2019-04-04 18:04:44 +00:00
Lyn Han
3f5c3a4219 Remove unused flags from bubble controller
- ENABLE_BUBBLES_AT_TOP (default false)
- ENABLE_BUBBLE_FOOTER (default false)

Test: manual
Bug: 129546118
Change-Id: I6aaa33975d65fb20ba9b82a378e00c2100fd3164
2019-04-04 18:02:25 +00:00
Beverly
4bae644417 Don't show dnd suppressed icons on aod
The aod icons are from the shelf. When DND is suppressing
status bar icons and aod is on (mFullyDark), still don't show
the icons that would show on AOD (if DND wasn't on).

Test: manual
Test: atest NotificationIconAreaControllerTest
Fixes: 122636236
Change-Id: I4680ea1c88427207274da48a6ab69f0c00a3ac69
2019-04-04 11:41:15 -04:00
Amin Shaikh
fd6402ed45 Create ThemeOverlayController in SystemUI.
This service runs as user 0 and applies the current users' theme
customization overlay settings to user 0, associated work profiles, and
user 0 for packages that affect systemui

Bug: 126238021
Bug: 124426955
Test: unit tests; switch to secondary user and guest user and change overlays
Change-Id: I35dd9113eab1b1c1cfc81f0b38aa04900fa740dd
2019-04-04 10:49:24 +00:00
Matthew Ng
f03c3a6398 Ime in gestural mode will have ime switcher and down arrow
When in gestural mode, the navigation bar will inset the ime window
higher to raise up revealing the original height of the navigation bar.
In place will be the (alt) back button (pointing down), the handle and
ime switcher (if should be shown).

Fixes: 128928130
Bug: 113952590
Bug: 112934365
Test: manual
Change-Id: I28cc4def846cb09eb2d7ab00d12561f0c198dbbc
2019-04-04 06:39:26 +00:00
Lucas Dupin
96ec115e1a Merge "Make KeyguardSliceView title tappable" 2019-04-04 00:00:23 +00:00
Lucas Dupin
6614ecc855 Merge "Delete unnecessary cache" 2019-04-03 23:15:50 +00:00
Winson Chung
099d3ae04b Merge "Add logging callback for back action" 2019-04-03 22:40:47 +00:00
TreeHugger Robot
a5250b91b8 Merge "Another redesign of notification guts" 2019-04-03 22:36:34 +00:00
TreeHugger Robot
2ae133285b Merge "Fix Global Actions animations, and use old power menu when panel is disabled. Also tweak feature flags setup to use old flag as a force option for debugging." 2019-04-03 22:36:29 +00:00
Lucas Dupin
ad07944c1e Make KeyguardSliceView title tappable
Bug: 129877485
Test: manual with caldendar event
Change-Id: I413f9c92541f7b7d8ee8a766a43f3086b88aa7f8
2019-04-03 15:31:45 -07:00
TreeHugger Robot
1baecb466f Merge "Don't show the dismiss target if trying to drag the flyout." 2019-04-03 21:47:38 +00:00
TreeHugger Robot
7a8aac1ed9 Merge changes Iaad5b04d,Ic810dda6
* changes:
  Add null check before setting min size
  Remove assist capture on swipe up
2019-04-03 21:10:31 +00:00
Aaron Heuckroth
c792661840 Fix Global Actions animations, and use old power menu when panel is disabled.
Also tweak feature flags setup to use old flag as a force option for debugging.

Test: Automated tests pass. Long-press power menu without plugin installed from different device orientations -- menu should animate in from the closest screen edge in all orientations and rotate correctly when device is rotated. Repeat after enabling the settings_global_actions_force_grid_enabled option in Feature Flags to ensure the correct behavior persists when using the new grid layout.

Fixes: 126444760
Fixes: 129698948

Change-Id: I9ac387244a5904f832c5d8b6c40362c00c6a22a2
2019-04-03 16:33:55 -04:00
Joshua Tsuji
032f0520da Don't show the dismiss target if trying to drag the flyout.
Also, make dragging the flyout a no-op until the gesture is added. Tapping still expands the bubbles.

Test: manual
Change-Id: Ida96465e3db923e0b08a0cf0cf41dd97cddbe606
2019-04-03 19:55:31 +00:00