Commit Graph

30181 Commits

Author SHA1 Message Date
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
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
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
20a1afd998 Merge "Delete unused SystemUI icons." 2019-01-02 22:26:31 +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
Amin Shaikh
4f06c93ed5 Delete unused SystemUI icons.
List taken from evanlaird's unusedfiles.txt.

Bug: 120856800
Test: mp sysuig

Change-Id: I4548fbeefe1a009fe61b12a4b5a61f6f748edd63
2019-01-02 21:00:40 +00: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
TreeHugger Robot
ea043993af Merge "Factors out list of lifetime extenders from NotificationEntryManager." 2018-12-29 00:12:22 +00:00
Gus Prevas
5c84abb125 Factors out list of lifetime extenders from NotificationEntryManager.
This allows us to remove the dependency from NotificationEntryManager on
AmbientPulseManager, which at this point was just there as a lifetime
extender.

Test: atest SystemUITests, manual
Change-Id: I3c995fb81c9e628368b720d9e3ac582b2dae7a74
2018-12-28 16:52:22 -05:00
Gus Prevas
ca1b6f74f3 Removes dependency of NotificationEntryManager on IStatusBarService.
This change moves the logic in NotificationEntryManager which logs
notification removal and inflation errors via the IStatusBarService to
the NotificationLogger, which is already logging visibility changes to
that service.

Test: atest SystemUITests, manual
Change-Id: I895a36db505a165c4e6684d1d6e66592e62ef1f7
2018-12-28 13:50:03 -05:00
Jerry Chang
5d3eb44729 Add a state for hiding UI while docking
Adding a state to support hiding UI while docking.

Bug: 119001412
Test: atest SystemUITests
Change-Id: I0e197aedc94ac4b0005a8b7f2d383c4e4f623e45
2018-12-28 20:06:27 +08:00
Ahan Wu
6745c813d4 Catch SecurityException while resolving image to avoid crashing.
Need catch SecurityException while resolving image from a uri to avoid
unexpected crashing.

Bug: 121453336
Test: Manually
Change-Id: Idfef5e7593d11c688baddf2666052185d0281f6c
2018-12-28 18:43:20 +08:00
Selim Cinek
5639004225 Merge "Allow for injection in StatusBar Views" 2018-12-28 02:00:58 +00:00
TreeHugger Robot
ee9445e358 Merge changes from topics "nem-low-prio-state", "nem-group-manager", "nem-remote-input-manager", "nem-media-manager", "nem-perform-remove", "nem-combine-remove-callbacks", "nem-callback-to-listener", "nem-alert-handling-listeners"
* changes:
  Moves minimization change handling into NotificationEntryListeners.
  Removes dependency of NotificationEntryManager on NotificationGroupManager.
  Makes NotificationRemoteInputManager a NotificationEntryListener.
  Removes circular dependency between NotificationMediaManager and NotificationEntryManager.
  Combines NotificationEntryManager listener interfaces (part 5).
  Combines NotificationEntryManager listener interfaces (part 4).
  Combines NotificationEntryManager listener interfaces (part 3).
  Combines NotificationEntryManager listener interfaces (part 2).
2018-12-28 01:42:33 +00:00
TreeHugger Robot
3fb6a1be87 Merge "Protects query pulse reason exception" 2018-12-28 00:32:13 +00:00
Lucas Dupin
70bda67f0b Ignore 'wake display' event when AOD is off
Bug: 111405682
Test: turn off AOD, send wake-up signal
Change-Id: Iff33288ef0e5d4286b93eb3578f4f9795c593e5d
2018-12-27 16:14:02 -08:00
Gus Prevas
5b9098dc3a Moves minimization change handling into NotificationEntryListeners.
This change moves the logic in NotificationEntryManager which was
explicitly handling changes in whether a row was minimized or not after
it was reinflated into the target components through the normal listener
mechanism.  This involves VisualStabilityManager registering a
NotificationEntryListener and allows us to remove the dependency of
NotificationEntryManager on VisualStabilityManager.

Test: atest SystemUITests, manual
Change-Id: I4bfdbda49c1cdff4a78fabeb2343843edc509fb0
2018-12-27 17:38:49 -05:00
TreeHugger Robot
006892ffdb Merge changes I1ef8b41a,I348bdb1c
* changes:
  Remove Dependency.get usages from QSFooterImpl
  Remove Dependency.get usages from QSTileHost.
2018-12-27 21:51:21 +00:00
Jason Monk
9c387a5c0c Merge changes I9c2ab16b,I6ac1fd46,I687412fc,I943f3098
* changes:
  Add link to dagger user guide
  Make QSTileImpl a LifecycleOwner and make use of it
  Remove Dependency.get usages from QS tiles
  Switch QS tile creation to use injection
2018-12-27 20:33:41 +00:00
Jason Monk
7a56b83802 Remove Dependency.get usages from QSFooterImpl
Test: existing tests
Change-Id: I1ef8b41a4d4250f7a7d3d304c01a1367d697304c
2018-12-27 13:45:51 -05:00
TreeHugger Robot
53f0d06de5 Merge "Fix WifiManager NPEs in CryptKeeper UI." 2018-12-27 18:26:36 +00:00
Jason Monk
30b64fad25 Remove Dependency.get usages from QSTileHost.
Test: existing tests
Change-Id: I348bdb1c7e14810a2864637d550a388e6f399f6d
2018-12-27 13:19:34 -05:00
Gus Prevas
26d912703a Removes dependency of NotificationEntryManager on NotificationGroupManager.
This change removes the aforementioned dependency by having
NotificationData inform the group manager of notification updates; this
parallels the approach taken for adding and removing notifications.

Test: atest SystemUITests, manual
Change-Id: I3811cc70309e1a4dc513a58385e52d991c31f620
2018-12-27 10:29:24 -05:00
Gus Prevas
772e5325b9 Makes NotificationRemoteInputManager a NotificationEntryListener.
This change makes NotificationRemoteInputManager register itself as a
NotificationEntryListener instead of having NotificationEntryManager
separately and explicitly notify it of a notification being removed.

Test: atest SystemUITests, manual
Change-Id: Ib212de504430fd3f543d4c2919e5f434ce2f0aea
2018-12-27 10:28:02 -05:00
Gus Prevas
2d5a1e95f1 Removes circular dependency between NotificationMediaManager and NotificationEntryManager.
This change makes NotificationMediaManager register itself as a
NotificationEntryListener instead of having NotificationEntryManager
separately and explicitly notify it of a notification being removed.
This allows us to remove the dependency of NotificationEntryManager on
NotificationMediaManager.  (The reverse dependency already existed.)

Test: atest SystemUITests, manual
Change-Id: I0577bf864668ccbecd70a3c3b13b610f981f7fc4
2018-12-27 10:27:33 -05:00
Gus Prevas
dca2be5f93 Combines NotificationEntryManager listener interfaces (part 5).
This change combines the onEntryRemoved() and
onPerformRemoveNotification() methods on NotificationEntryListener to a
single method.  The latter method was called after the former method in
all cases where the removal of the notification was precipitated by user
action (swipe, bubble swipe, launching content intent), so it's replaced
by a boolean parameter to the former method indicating whether a user
action caused the removal.

Test: atest SystemUITests, manual
Change-Id: I448fdd68984e3c2489259940c4d3432ac5bfe320
2018-12-27 09:49:02 -05:00
Gus Prevas
f37435a69b Combines NotificationEntryManager listener interfaces (part 4).
This change combines the onEntryRemoved() and onNotificationRemoved()
methods on NotificationEntryListener to a single method.  The logic in
NotificationEntryManager which calls these methods is rearranged and a
flag is added to the callback method in order to fully preserve the
previous behavior of all implementors.

Test: atest SystemUITests, manual
Change-Id: I6077e78005ed6c20b02f5fa21f213199384cc3b8
2018-12-27 09:45:30 -05:00
Gus Prevas
8621bd27a5 Combines NotificationEntryManager listener interfaces (part 3).
This change eliminates the mCallback field on NotificationEntryManager,
instead adding the listener which used to be in that field to the list
of listeners.

Test: atest SystemUITests, manual
Change-Id: I3b489ad87cf9d757c9ad9e49cf3c12c35972dee5
2018-12-27 09:25:03 -05:00
Gus Prevas
b43dc65641 Combines NotificationEntryManager listener interfaces (part 2).
This change introduces the NotificationAlertingManager component, a
NotificationEntryListener which handles showing/hiding/updating alerts
(heads-up or ambient pulsing) in response to events from the
NotificationEntryManager.  All code in the new component was moved out
of NotificationEntryManager proper.

Test: atest SystemUITests, manual
Change-Id: I46a046da6caf39b1d314b357e21ac6b4755c5796
2018-12-27 09:24:50 -05:00
Jason Monk
55fd968ac8 Add link to dagger user guide
Test: gitiles
Change-Id: I9c2ab16bf049ee1398d5761e06aa9c6f556d9722
2018-12-27 07:46:57 -05:00
Jason Monk
fa452ef8ff Make QSTileImpl a LifecycleOwner and make use of it
Test: existing tests pass
Change-Id: I6ac1fd46b74d8eb48c83af3883c7fdcd2cb0f628
2018-12-27 07:46:57 -05:00
Jason Monk
c0e0e2b8a9 Remove Dependency.get usages from QS tiles
Test: existing tests
Change-Id: I687412fcef888b516983132efd1ee007c40f7c2f
2018-12-27 07:46:57 -05:00
Jason Monk
5d57720036 Switch QS tile creation to use injection
This will make it easy to remove dependency usages from tiles.

Test: existing tests
Change-Id: I943f3098c4e7cf2feaa6ebe190f3ddec557c3850
2018-12-27 07:46:50 -05:00
TYM Tsai
2d23690ef4 Protects query pulse reason exception
Checks the machine is currently in one of the pulse states before
query the current pulse reason. Avoid incorrect undocked event cause
DozeService crash. And refines test case and javadoc.

Bug: 120464108
Test: atest SystemUITests
Test: manual
Change-Id: I3595217984ec7982de1f0f53765e7ae0a9d80fcf
2018-12-27 20:24:23 +08:00
Selim Cinek
9d20bed963 Allow for injection in StatusBar Views
Previously, StatusBar was unable to have any views with injection
due to dagger. We're now allowing for member injection in the
top level StatusBar class and any views inflated.
Once most members are migrated from Dependency we can fully migrate
to the new dependency injection.

Bug: 111414690
Test: atest SystemUITests
Change-Id: I988dc4426c2183955a467e9ea7f7ee7acf6f3019
2018-12-26 17:33:42 -08:00