Commit Graph

1528 Commits

Author SHA1 Message Date
Lucas Dupin
29a07ec2b2 Update doze state when device wakes-up
After the refactor, mDozing ended up being false for while until
DreamManagerService decides to end our DreamService. This ended up
delaying scrim transitions and causing display flashing.

Change-Id: I1630d1536ab0a009a5b8d13f7fb4502b5f6a4dda
Fixes: 118684623
Test: manual
Test: atest StatusBarTest
2018-11-13 20:30:11 -08:00
Lucas Dupin
51d24e0232 Fix notification icon visibility on AOD
Before, icons would be black on AOD if the lock screen had a light theme.

Test: manually change themes
Test: atest LightBarTransitionsControllerTest
Bug: 119201731
Fixes: 119222875
Change-Id: I3881f727bad50d1420caf0ff93ceb1f1b7fbc3a0
2018-11-13 13:29:14 -08:00
Aaron Heuckroth
40249d96a0 Merge "Ignore NotificationSwipeHelperTests for now, to avoid flakiness." 2018-11-13 14:41:55 +00:00
Fabian Kozynski
ab96fe0b43 Merge "Separates logic from Chip. Chip is notch-aware." 2018-11-13 14:03:25 +00:00
TreeHugger Robot
c59a28bd16 Merge "Dragging hit target over nav bar is bounded by its window (1/2)" 2018-11-13 04:17:45 +00:00
Lucas Dupin
bef825878c Merge "Reload flags whenever doze state changes" 2018-11-13 02:42:13 +00:00
Lucas Dupin
2e43cfc61d Reload flags whenever doze state changes
Test: atest CollapsedStatusBarFragmentTest
Test: manually wake up the device
Change-Id: I64e54111f8bbaae6b667d63688d4a6ab208af68b
Fixes: 119114169
2018-11-12 14:13:29 -08:00
TreeHugger Robot
f5525d4529 Merge "Includes foreground services in top notification section." 2018-11-12 21:42:27 +00:00
Fabian Kozynski
8d06c71096 Separates logic from Chip. Chip is notch-aware.
Logic extracted from chip view into its own controller.
QuickStatusBarHeader is called when there are changes and sets the
visibility for the chip

Changed behavior when there is a top notch. When the chip is
visible and there's a notch the BatteryMeterView is set
to GONE.

Test: Visual & atest (PrivacyItemControllerTest)
Fixes: 119309613

Change-Id: Iab04a8da3f81e81bf6558d63650740b118809359
2018-11-12 16:02:54 -05:00
Aaron Heuckroth
1c226d11fb Ignore NotificationSwipeHelperTests for now, to avoid flakiness.
Test: Automated tests should pass.
Change-Id: Id2e235575b342a86ddab2d0aa618bec946785bae
2018-11-12 15:46:48 -05:00
TreeHugger Robot
b4c2dc0c1f Merge "Refactor QuickStepController into Gestures" 2018-11-12 19:44:42 +00:00
Gus Prevas
175214c4a2 Merge "Adds gap after high-priority notifications." 2018-11-12 19:23:43 +00:00
Gus Prevas
b0c1a4622c Includes foreground services in top notification section.
This change modifies the various components which treat high-priority
notifications differently, including the status bar, the lockscreen, and
the notification layout algorithm, such that foreground service
notifications are always included among the high-priority notifications.
This logic is now centralized in NotificationData.

Bug: 116622974
Bug: 118805186
Test: manually
Change-Id: Ia13c1aac0cf91c400594df96ce267e768133f8d1
2018-11-12 10:55:53 -05:00
Gus Prevas
e2d6f0408b Adds gap after high-priority notifications.
This change adds a gap between notifications of IMPORTANCE_DEFAULT or
higher and all other notificaitons.  The position of the gap is
recalculated from NotificationPanelView.updateNotificationViews() and
the various components which handle the rounded corners of the
notification shade (NotificationRoundnessManager, the shelf, and the
drawBackground() method in NotificationStackScrollLayout) are updated to
handle rounding the corners on either side of the gap.

Change-Id: Ib8d875d4b82184c9c4d363669606261030a467c8
Bug: 116622974
Test: atest SystemUITests
2018-11-12 10:55:35 -05:00
Alison Cichowlas
69f39989c2 Merge changes from topic "sharesheet-refactor"
* changes:
  Add URI shared by screenshot into extras.
  Re-patching in Sharesheet security model changes.
2018-11-12 15:19:11 +00:00
Matthew Ng
f1f8a43f45 Dragging hit target over nav bar is bounded by its window (1/2)
Test: manual
Bug: 112934365
Change-Id: I14126a91d8004b9b24ad11b5b9f260f263b2b65c
2018-11-09 16:16:04 -08:00
Gus Prevas
9abc50646f Adds silence toggle to notification settings.
This change modifies the UI that appears when a notification is
long-pressed to include a third option when the notification could
potentially buzz or make sound, allowing the user to promote or demote
the notification's channel such that it will not alert (or will start
alerting) for future notifications.

Test: atest SystemUITests
Bug: 116622974
Change-Id: Ia070d0ef1b181b4de8b3d49ace9ff2a65fed8deb
2018-11-09 13:19:11 -05:00
Alison Cichowlas
3e34050a42 Re-patching in Sharesheet security model changes.
Previously reverted due to b/72554856, fix for that in topic.

Original commit message:

Security model for moving sharesheet to systemui

ResolverActivity (still in frameworks) now requests a "permission token"
that it hands to a stubbed system ui activity ChooserActivity.

This permission token allows an app (SysUI) with the signed permission
"START_ACTIVITY_AS_CALLER" to call
ActivityManagerService#startActivityAsCaller. Permission tokens are a
one-time use, limited-time offer.

Test: runtest systemui && manual testing
Bug: 69850752
Change-Id: Ia50e21e2f8c6b6d0ed7207625e3b5aef214396bb
2018-11-09 11:01:54 -05:00
Gus Prevas
a32264906d Adds an icon to noisy notifications.
Test: manually
Bug: 116622974
Change-Id: I657e81eed9c650f1613caffaea96e6445c2105ef
2018-11-09 10:35:27 -05:00
Matthew Ng
86a436efb8 Refactor QuickStepController into Gestures
The refactor allows adding new gestures easier and provides a way to
reassign triggers to the gestures.

go/navbar-prototypes-doc

Test: atest QuickStepControllerTest
Bug: 112934365
Change-Id: I5334947e2ff3f39af890e1f026089b933ff48a3c
2018-11-08 12:28:13 -08:00
TreeHugger Robot
fd5f1a3166 Merge "Prevents large clock on AOD from overflowing top of screen." 2018-11-08 13:49:16 +00:00
Robert Snoeberger
10b6353f35 Prevents large clock on AOD from overflowing top of screen.
This works on AOD since notification icons were moved to
the status bar. For the lock screen, the clock is made
transparent due to the height of the clock. This prevents
the clock from interfering with the notifs in stack scroller.

Bug: b119103421
Test: KeyguardClockPositionAlgorithmTest updated.
Change-Id: Ife2de31ae6d55effced99c6d419c794ac57c8522
2018-11-07 21:21:38 +00:00
TreeHugger Robot
1dbb45abb8 Merge "Add tests for KeyguardClockLayoutAlgorithm." 2018-11-07 20:04:57 +00:00
TreeHugger Robot
70afdedb3e Merge "Clean up car user lib in system UI." 2018-11-07 17:23:29 +00:00
Robert Snoeberger
57872e306c Add tests for KeyguardClockLayoutAlgorithm.
Bug: 119103421
Test: Only adding tests and new tests passed locally.
Change-Id: Ie9725ffe02cb61957b94a37aac74adf1eb11f5d3
2018-11-07 10:58:39 -05:00
Beverly
c4305e6ed3 Move UiThreadTest annotation to class
Test: atest SystemUITests
Fixes: 119100256
Change-Id: If7ea830e2699fcaeeb25678f483982732459b453
2018-11-06 19:48:58 +00:00
Ying Zheng
149f93841b Clean up car user lib in system UI.
Bug: 118821773
Test: build
Change-Id: Ib8d723ad8bff7ec57c8909b82dc16323e714a377
2018-11-05 13:33:37 -08:00
TreeHugger Robot
6d79c13f62 Merge "Don't manage whitelisted plugins" 2018-11-03 06:49:01 +00:00
Fabian Kozynski
a7e854d6a8 Merge "Dialog and chip for privacy showing" 2018-11-02 23:46:27 +00:00
Jason Monk
da08f5462e Don't manage whitelisted plugins
Add sysui to the plugin whitelist and don't manage whitelisted plugins.
This will prevent sysui getting all its components disabled when it
crashes if we have a plugin compiled into the APK, which we now support.

Bug: 118403466
Test: added test
Change-Id: I1f65ae44db686e718e23bf1d9f4c06d0ba16056a
2018-11-02 13:21:44 -04:00
Fabian Kozynski
1263824ae5 Dialog and chip for privacy showing
Creates a chip and a dialog to show the current apps using certain app
ops (location, microphone, camera).

Dimens are estimated. Settings button dismisses dialog for now.

Test: atest && visual
Bug: 117646163
Change-Id: Ida5b42acf331d6c9da06141379eadc0da5e72df2
2018-11-02 12:14:10 -04:00
TreeHugger Robot
3cb90a58a9 Merge "Make InitController complain about adding tasks that will never execute" 2018-11-02 16:04:30 +00:00
Beverly Tai
b9bfae6401 Merge "Use consolidated zen policy for dnd" 2018-11-02 13:21:06 +00:00
Evan Laird
03234501c9 Make InitController complain about adding tasks that will never execute
It's possible to add post-init tasks to InitController despite the fact
that it only runts the tasks in one batch. Make it throw an exception if
that ever happens.

Test: atest InitControllerTest
Change-Id: I6c17add37eb10bdb027516db0c5d57463d3bc76c
2018-11-01 18:59:58 -04:00
TreeHugger Robot
b2b90207d7 Merge changes from topic "plugin"
* changes:
  Remove view from existing clock plugin when new plugin connects.
  Update script to consider code moved to plugin_core.
2018-11-01 20:51:32 +00:00
Sunny Goyal
2daf457f4b Merge "Adding shared element transitions support in AppWidgets" 2018-11-01 16:19:12 +00:00
TreeHugger Robot
8a57b4d4fa Merge "Revert "Proxy notification improvments"" 2018-11-01 01:21:23 +00:00
Daniel Sandler
d0a52b6013 Revert "Proxy notification improvments"
This reverts commit ac98aea2ed.

Reason for revert: b/118700922 (broken CTS test)

Bug: 118700922
Change-Id: I7d55365b3f64acd82e377dc973e2de5d654cc352
2018-10-31 20:14:02 +00:00
TreeHugger Robot
e481d138fe Merge "Fix pulse wake-up transition" 2018-10-31 18:08:09 +00:00
Lucas Dupin
23a8d3bba6 Notification icons on AOD status bar
Bug: 111405682
Fixes: 118421265
Fixes: 113352017
Test: visual
Change-Id: I439d9533b2b0e28ecb696c5a2eda92e9312b027a
2018-10-30 18:01:53 -07:00
Lucas Dupin
61331ceab2 Fix pulse wake-up transition
ScrimController was transitioning to the wrong state because
fingerprint would take the device to a dozing but not pulsing
state before unlocking. And since I was already touching this
area, I used the oportunity to remove ScrimController references
from DozeScrimController.

Change-Id: Iaa1274eedc9cfb808a71b49a9184de39009e981c
Fixes: 115305153
Test: Manually unlock with fp while pulsing
Test: Unlock with fp
Test: Unlock with bouncer
Test: Wait for pulse to go away
Test: atest DozeScrimControllerTest
2018-10-30 18:26:02 +00:00
Julia Reynolds
8775b65952 Merge "Proxy notification improvments" 2018-10-30 17:02:24 +00:00
Robert Snoeberger
33ce6d97fd Remove view from existing clock plugin when new plugin connects.
Assuming that the most recently connected plugin is the active
clock face. This should be updated when it is possible for
the user to select a clock face.

Bug: 118440898
Test: Added tests to KeyguardClockSwitchTest.
Change-Id: I1c38005b4d7d32a27a8d41806390338ebcab458b
2018-10-30 11:29:14 -04:00
Sunny Goyal
43c970436d Adding shared element transitions support in AppWidgets
Bug: 113071278
Test: atest frameworks/base/core/tests/coretests/src/android/widget/RemoteViewsTest.java
Change-Id: I0d7698faa8d9e61913b55d34de8b7cfbb32863b1
2018-10-29 17:04:33 -07:00
Julia Reynolds
ac98aea2ed Proxy notification improvments
- Fix a bug where the notifications weren't being posted
- Add attribution to the notification guts

Bug: 111452544
Test: atest
Change-Id: I58d104fe0ad8450a4722585335011ea633fee52a
2018-10-29 14:16:03 -04:00
Lucas Dupin
ed00262486 Remove obsolete lock screen UI
Removes obsolete KeyguardSliceView title area and adds doze callbacks
necessary to support new lock screen design.

Bug: 111405682
Test: manual
Test: atest KeyguardSliceViewTest
Change-Id: I07e96dbde68d4e5e38e1371526bedf59fc925b86
2018-10-29 11:07:00 -07:00
Beverly
ff2df9b81b Use consolidated zen policy for dnd
Instead of using the default notification policy,
use the consolidated zen policy when do not disturb
is in priority only dnd mode

Bug: 111474881
Test: atest ZenModeHelperTest ZenPolicyTest ZenModeFilteringTest AudioManagerTest
Test: atest SystemUITests ZenModeExtractorTest
Change-Id: I88934103a56f06d4a4f620a8f557347331a79627
2018-10-29 13:11:22 -04:00
Winson Chung
2dbcf0973b Moving SysUI with legacy Recents to another build target
- Move all legacy recents code out of the core sysui code
- Add separate target for products which still depend on it
- Move overview proxy implementation into another implementation of the
  recents interface

Test: atest SystemUITests
Test: Push SystemUiWithLegacyRecents to the system image
      adb shell pm disable com.google.android.apps.nexuslauncher/com.android.quickstep.TouchInteractionService
      and ensure that the old recents implementation still works (and split
      screen)

Change-Id: Iad67218ec37c13c79b6393d87f6bdc4f3996e2c6
Signed-off-by: Winson Chung <winsonc@google.com>
2018-10-26 10:15:50 -07:00
Fabian Kozynski
ffe3226069 Merge "Adds a AppOpsController that can be suscribed to." 2018-10-26 14:46:20 +00:00
Alison Cichowlas
29c64fb096 Suppress flaky test
Test: This is it
Bug: 118400112
Change-Id: I60be79618f4fd5b22438d47f1b8ce0756d486dee
2018-10-25 11:27:15 -04:00