Commit Graph

21124 Commits

Author SHA1 Message Date
TreeHugger Robot
1a08863f3b Merge "Moves icon management to NotificationRowBinder." 2019-01-05 00:52:07 +00:00
TreeHugger Robot
b0185ca9d1 Merge "Move ShadeController to SystemUIFactory to allow customization." 2019-01-04 23:48:22 +00:00
TreeHugger Robot
bbb539a172 Merge "Fixes notification swipe snapping when menu is empty." 2019-01-04 23:38:38 +00:00
TreeHugger Robot
441f143110 Merge "Removes unused fields from NotificationEntryManager." 2019-01-04 23:19:55 +00:00
TreeHugger Robot
bf435d53ac Merge changes from topic "foreground-service-controller-2"
* changes:
  Factors out notification listening from ForegroundServiceController.
  Collapses ForegroundServiceControllerImpl into interface.
2019-01-04 22:20:45 +00:00
Gus Prevas
86928bb177 Moves icon management to NotificationRowBinder.
This change moves the calls in NotificationEntryManager to
NotificationData.Entry.createIcons() and .removeIcons() to
NotificationRowBinder.inflateViews() to encapsulate all the view
handling in the latter class (and so that we can eventually not create
those icon views right away).

Test: atest SystemUITests, manually
Change-Id: Ie515c85b81ce6ad5de607b83e8f242d7ae03326e
2019-01-04 16:46:32 -05:00
Gus Prevas
9258646f98 Removes unused fields from NotificationEntryManager.
Test: atest SystemUITests
Change-Id: Ia2b361fbfa9d3aa3c18a9a4577eda28bdc22b080
2019-01-04 16:06:12 -05:00
TreeHugger Robot
e2ad62f797 Merge "Let the clock be updated in real time during the pulse" 2019-01-04 20:16:22 +00:00
Gus Prevas
fe15aa1f9f Fixes notification swipe snapping when menu is empty.
This change modifies the swipe handling logic in NotificationSwipeHelper
such that it doesn't attempt to snap to the "menu open" state when the
menu is zero width (i.e. it's snapping on a left-to-right gesture and
the menu is only enabled for right-to-left swipes).  This prevents us
from getting in to a state where the menu was considered "open" when it
wasn't, which caused the next gesture to be handled incorrectly.

Change-Id: I3b78e95de7266e5a469637007ca78f7af2caab49
Fixes: 121077588
Test: manually
2019-01-04 15:13:21 -05:00
Gus Prevas
eb4e2e1139 Factors out notification listening from ForegroundServiceController.
This change introduces the ForegroundServiceNotificationListener
component, which contains the logic formerly in
ForegroundServiceController for updating its state in response to
notification events.  ForegroundServiceNotificationListener adds a
standard NotificationEntryListener to the NotificationEntryManager,
allowing us to remove the explicit calls from NotificationEntryManager;
splitting this out to its own class prevents us from introducing a
circular dependency since NotificationEntryManager still needs to use
the query methods on ForegroundServiceController.

Test: atest SystemUITests, manual
Change-Id: Iec72aa3a9fd90e3f0079db3b2a3c4f1882e59731
2019-01-04 14:05:43 -05:00
Ben Lin
90cd6110c5 Move ShadeController to SystemUIFactory to allow customization.
ShadeController is implemented by StatusBar, which is possible to be
swapped by OEMs via using config_statusBarComponent.

Bug: 122277074
Test: Compiles
Change-Id: Ia714405803a37deca9a694d07772e005902ab6bc
2019-01-04 10:18:40 -08:00
TreeHugger Robot
4926466632 Merge "Eliminates NotificationEntryManager.getNotificationLongClicker()." 2019-01-04 17:18:34 +00:00
TreeHugger Robot
0336013124 Merge "Remove Dependency.get usages from AutoTileManager" 2019-01-04 17:10:34 +00:00
Gus Prevas
ccb544069b Collapses ForegroundServiceControllerImpl into interface.
ForegroundServiceControllerImpl was the only implementation of
ForegroundServiceController; this change eliminates the interface so
that the class can be broken up into more granular components in a
future CL to help break circular dependencies.  No functional changes.

Test: atest SystemUITests, manual
Change-Id: Iabe8ae1dbc42769d5b3e93ebe2249cdc5c3e4e77
2019-01-04 10:58:57 -05:00
Gus Prevas
59ec2ff443 Eliminates NotificationEntryManager.getNotificationLongClicker().
This method always returned NotificationGutsManager::openGuts, and only
existed so that CarSystemUI could override it to disable long presses.
In this change we accomplish this by making
NotificationStackScrollLayout injectable and providing a named flag for
whether to enable long presses or not as a dependency.  This means that
NotificationEntryManager is no longer involved in handling long presses,
and CarNotificationEntryManager no longer needs to exist.

Test: atest SystemUITests, manual
Change-Id: Iae78601fea498a37ed47ef9a114e50de1652b6a8
2019-01-04 10:57:20 -05:00
TreeHugger Robot
22b99b471c Merge "Suppress deprecation warnings" 2019-01-04 14:27:19 +00:00
TreeHugger Robot
853fbd373e Merge "Run pending-intent-sent callback on UI thread." 2019-01-04 12:57:42 +00:00
TYM Tsai
25c054972b Let the clock be updated in real time during the pulse
The docking will request a long time pulse. Allows the clock to
update time in real time.

Bug: 120464108
Test: atest SystemUITests
Change-Id: Iac251aa3e366020a61ba88ab374f0a5a0369177e
2019-01-04 10:18:05 +00:00
Charles Chen
68b5a35cec Merge changes from topic "commandQueue"
* changes:
  Introduce AutoHideController to centralize call to WMS (4/N)
  Make Some APIs in CommandQueue aware of multi-display (3/N)
2019-01-04 06:39:25 +00:00
TreeHugger Robot
ef65858221 Merge "Remove rounded_corner_radius from SystemUI dimens" 2019-01-04 00:52:50 +00:00
Kevin Chyn
2e425c6fb7 Merge changes Ibff5b56f,I24f48aef
* changes:
  Add null checks in BiometricService
  Update BiometricPrompt icons and logic
2019-01-04 00:32:45 +00:00
TreeHugger Robot
709797647d Merge "Fix tuner crash from dependencies" 2019-01-03 23:18:54 +00:00
Beverly
4d1113d801 Remove rounded_corner_radius from SystemUI dimens
It only pointed to the framework attribute

Test: atest ScreenDecorationsTest
Change-Id: Ic60b9d760a552bd0c1ae363188b8f95f721cfebe
Fixes: 120600397
2019-01-03 17:00:23 -05:00
Jason Monk
c29c2020a0 Fix tuner crash from dependencies
Test: atest SystemUITests
Change-Id: I530ac3fa5d7dc2a044feab81de9587a21a3bcef7
Fixes: 122320435
2019-01-03 16:52:37 -05:00
Aurimas Liutikas
f1f63f63fe Suppress deprecation warnings
Fixing the use of the deprecated methods is already tracked by the
bug, there is no need to have additional build noise.

Bug: 121388507
Test: make -j SystemUI
Change-Id: I1c02e9244e34e29f7257c01e02444e021be69a82
2019-01-03 13:02:11 -08:00
TreeHugger Robot
46bbbdd577 Merge "Fix NPE in NotificationLogger for real this time" 2019-01-03 20:27:25 +00:00
TreeHugger Robot
f524ca7a9f Merge "Fix animation timing problem" 2019-01-03 20:26:09 +00:00
TreeHugger Robot
48e04de86c Merge "Added logs for making sure back button is pressed" 2019-01-03 20:17:40 +00:00
TreeHugger Robot
25edac0f17 Merge "Ignore 'wake display' event when AOD is off" 2019-01-03 19:52:28 +00:00
Kevin Chyn
6bb2077fe2 Update BiometricPrompt icons and logic
Bug: 111461540
Fixes: 120157910

Test: Icons looks good
Test: Taps in gray area after authenticated/confirmed don't send errors
Test: Negative button isn't shown after state == AUTHENTICATED

Change-Id: I24f48aefbabb53ffbb1864679c50afb110efb71b
2019-01-03 11:41:26 -08:00
Ned Burns
761af0d76b Fix NPE in NotificationLogger for real this time
Previous nullcheck just caused another NPE. Actually checking the
null value and adding a test this time.

Bug: 122169343
Test: atest
Change-Id: I4acc055b8d5039ea65fded43526780be883eaf74
2019-01-03 13:52:37 -05:00
Lucas Dupin
e132e02f59 Fix animation timing problem
Change-Id: I1c90692b74a04206f71772031eb357c5592395dd
Fixes: 122309868
Test: visual
2019-01-03 18:41:39 +00:00
Charles Chen
8c9a83fe54 Introduce AutoHideController to centralize call to WMS (4/N)
AutoHideController is a per-display controller and has following tasks:
1. Control all auto-hide logic in SystemUi
2. Update hide/unhide status to WMS

Bug: 117478341
Test: atest SystemUITests

Change-Id: I5066030c750f72e6e0b0d70cd377109458989c7d
2019-01-03 22:12:38 +08:00
Charles Chen
f3d295c58a Make Some APIs in CommandQueue aware of multi-display (3/N)
By this CL, we could dispatch Callback to fragments on the specified
display. I also add some annotations for documenting.

TODO: 1. add tests for multi-display.
      2. make registerStatusBar be an IStatusBar API to propagate the
         information when a display is added or in the initial step.
      3. Introduce AutoHideController

Test: atest SystemUiTests
Bug: 117478341

Change-Id: I864600f929c1d0c8aa39274f30c17b213b754d86
2019-01-03 22:12:38 +08:00
Charles Chen
10ca70b075 Move all logic of navigation bar to NavigationBarController(2/N)
Since we don't have status bar on external displays, we need to saparate
the logic to make some animations or transitions just work on external
navigation bars. When we set System UI visibility on an external display,
we could make the flag only effect navigation bar. Also, it can simplify
StatusBar code by moving navigation bar related fields into
NavigationBarController.

Test: atest SystemUITests
Bug: 117478341

Change-Id: I1cdf61f6eeb2c377e04a073401efa0cdb45b65cd
2019-01-03 22:12:03 +08:00
TreeHugger Robot
67490ba1f9 Merge "Log when user clicks on the device owner user info." 2019-01-03 12:39:41 +00:00
Wu Ahan
2d20fc8f01 Merge "Catch SecurityException while resolving image to avoid crashing." 2019-01-03 02:30:28 +00:00
TreeHugger Robot
b39a986c6e Merge "Mark NotificationEntry.Data.key as final" 2019-01-03 02:00:47 +00:00
TreeHugger Robot
608b9d5355 Merge "Added an option to hide the home button" 2019-01-03 01:57:35 +00:00
Matthew Ng
0ceca18211 Added logs for making sure back button is pressed
Bug: 122195391
Test: manual
Change-Id: I85c2daeeb09f4a1dde60245fd8080c8f7e3f7c50
2019-01-02 17:18:32 -08:00
Matthew Ng
b8c30bbf81 Added an option to hide the home button
Test: manual
Bug: 112934365
Change-Id: I35dd870054389f54118956123d51145b6a2c42b4
2019-01-02 16:27:00 -08:00
TreeHugger Robot
24fd0a9f80 Merge "Make DarkIconDispatcher visible to plugins" 2019-01-02 23:41:03 +00:00
TreeHugger Robot
4c3b329a9e Merge "Mark entry in onEntryRemoved as @Nullable" 2019-01-02 22:05:06 +00:00
Ned Burns
6a5ca4f26e Mark NotificationEntry.Data.key as final
Test: atest

Change-Id: I953e44a892f6cf0355cc26fd1522c80f65fd95b0
2019-01-02 16:57:11 -05:00
Beverly
1be62f46ab Make DarkIconDispatcher visible to plugins
Test: manual
Bug: 115322193
Change-Id: I6204d771e476c504e9070ebc88dd8fd44b268635
2019-01-02 16:13:34 -05:00
Ned Burns
1dd6b40b9b Mark entry in onEntryRemoved as @Nullable
We should eventually modify logic so entry can never be null.

Bug: 122169343
Test: Manual, SystemUITests
Change-Id: Ib4312b7ddff4c6b7bf35e2ea3d5462cfc12b1e11
2019-01-02 15:50:18 -05:00
TreeHugger Robot
f2426f9a04 Merge "Log undo of notification importance change." 2019-01-02 18:40:26 +00:00
Lucas Dupin
583ca98e96 Merge "Add a state for hiding UI while docking" 2019-01-02 18:35:24 +00:00
Jason Monk
a26641f582 Remove Dependency.get usages from AutoTileManager
Test: existing tests
Change-Id: Iff4e5c90eef7aa0f4a1fcba5ea7eba0847725a70
2019-01-02 10:33:57 -05:00
TreeHugger Robot
ea043993af Merge "Factors out list of lifetime extenders from NotificationEntryManager." 2018-12-29 00:12:22 +00:00