Commit Graph

1508 Commits

Author SHA1 Message Date
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
Fabian Kozynski
1f32cf0c09 Adds a AppOpsController that can be suscribed to.
This is a dependency that replaces AppOpsListener asuming all its
responsibilities and functions. Additionally, it can handle arbitrary
callbacks for an activeChanged notification indicating the uid that had
a change.

In the case of location updates, they are removed if they haven't been
updated in 5 sec.

Test: atest
Change-Id: I647e86418e552721f1a1098d611538ef09654243
2018-10-25 11:23:07 -04:00
TreeHugger Robot
beacda215f Merge "Only inflate public view when notif is redacted." 2018-10-24 22:14:57 +00:00
Kevin
38ce6fa2a0 Only inflate public view when notif is redacted.
This CL changes notification inflation behavior to only inflate the
public content view when the notification needs to be redacted in the
first place (i.e. the setting to hide sensitive notifications is on and
the notification would be hidden under the setting). This saves around
.1 MB per notification.

Bug: 111809944
Fixes: 111809944
Test: runtest systemui, manual tests (toggled hide sensitive on and off,
tested ambient pulses under both)

Change-Id: Ia1d00db00c5164f043c999578f0be4b55f223f8e
2018-10-24 11:16:36 -07:00
Lucas Dupin
d9aa3fa6e9 Merge "Restore KeyguardBottomAreaView state" 2018-10-24 17:19:45 +00:00
TreeHugger Robot
366d890f6d Merge "Workaround to safely show ambient/HUN views." 2018-10-24 03:21:18 +00:00
Kevin
47ff478e51 Workaround to safely show ambient/HUN views.
Temporary workaround to get things rolling while a greater fix is
incoming.  This reverts behavior to essentially inflating all
HUN/ambient content views.

Bug: 117933032
Bug: 117894786
Test: manual, runtest systemui
Change-Id: I731ec6e320d1813a8bbca52ceb21c1d8bb4e73ff
2018-10-23 17:25:41 -07:00
Matthew Ng
761562d868 Refactored rotation code from nav bar fragment to its button
Moved the rotation button in nav bar logic to its own button.

Test: atest NavigationBarRotationContextTest
Bug: 116041410
Change-Id: I7bb3c4c4a1637b52a7219c1074c09403c9505734
2018-10-23 15:20:56 -07:00
Jason Monk
297c04ee53 Make StatusBar not be a NotificationPresenter
Break the NotificationPresenter out of the StatusBar and most of
the logic with it.

 - Break RemoteInput Callbacks out of NotificationPresenter
 - Break Environment Callbacks out of NotificationPresenter
 - Add ShadeController interface for StatusBar (abstraction
   layer from StatusBar)
 - Add InitController to allow for post-init tasks (dependency
 resolution should not go here)
 - Make some dependencies (ShadeController, NotificationEntryManager,
 NotificationLockscreenUserManager usually) lazily-resolved to break
 some dependency cycles

 - Lots of other cleanup

Test: Existing tests do not pass
Change-Id: Ic043c6b15a4ffe551fc27f99b25d5c3caa1be582
2018-10-23 11:19:15 -04:00
Lucas Dupin
55c6e809a3 Support for passive interrupts
Bug: 111414690
Test: manual, lift, swipe down, go to shade locked
Test: adb shell setprop persist.sysui.expand_shade_on_wake_up 0
Test: adb shell setprop persist.sysui.go_to_shade_on_wake_up 0
Change-Id: I59018a72b85cfcf75344d83bbf9e3a122a66c018
2018-10-22 14:29:20 -07:00
Aaron Heuckroth
cd944dc665 Clean up interfaces for StackScrollLayout.
Test: Automated tests should pass.
Change-Id: Ibf2718bfaacff0adcfca7ef8ca2f3eb2b867debf
2018-10-18 14:14:58 -04:00
Lucas Dupin
cea7deea4c Restore KeyguardBottomAreaView state
KeyguardBottomAreaView will be re-inflated when the theme changes,
it's necessary to also restore some of its internal state, otherwise
we'll have NPEs.

Test: manual
Test: atest KeyguardBottomAreaTest
Fixes: 117121386
Change-Id: Idac8192877b65f8ad00cd60a2bb0c1ce75476cf1
2018-10-16 12:52:03 -07:00
TreeHugger Robot
6e7ece7e4d Merge changes from topic "heads-up-ambient-inflation"
* changes:
  Fix heads up views freeing too early.
  Inflate ambient + heads up view as necessary
2018-10-16 00:08:21 +00:00
TreeHugger Robot
d51095555f Merge "Always show transient indication in AOD" 2018-10-15 22:17:27 +00:00
Lucas Dupin
ff6628d45d Always show transient indication in AOD
Test: visual
Test: atest KeyguardIndicationControllerTest
Fixes: 117749848
Change-Id: Ifeb71b7d385764d630bc74e9abed78cc2511c86d
2018-10-15 11:05:25 -07:00
Philip P. Moltmann
3e0f1b46e4 Merge "Rename system-api wm flags to SYSTEM_..." 2018-10-15 16:28:39 +00:00
Selim Cinek
908d785aaa Merge "Fix overlap between operator name and heads-up notification" 2018-10-12 21:04:48 +00:00
Fabian Kozynski
dbc63bff09 Merge "CastTile becomes unavailable when not connected to Wifi" 2018-10-12 19:41:13 +00:00
Lucas Dupin
849935420c Hide back button on bouncer as user swipes down
Test: atest KeyguardBouncerTest
Test: go/sysui-bouncer-tests
Change-Id: I3d0fa71896be1dbe0cb433bf3bd6eecdc64e299a
Fixes: 110852045
2018-10-11 19:23:45 -07:00
Tetsutoki Shiozawa
ce9645b17a Fix overlap between operator name and heads-up notification
The title of heads-up notification was shown incompletely
because it's covered by operator name.
To fix this issue, the operator name should be hidden
when a heads-up notification is shown.

Fixes: b/116533819
Test: atest SystemUITests
Test: manual - enable config_showOperatorNameInStatusBar
               and show a heads-up notification

Change-Id: Id3318cd7cb2c9b6950392fadd11d02ab873d84c5
2018-10-11 21:18:20 +00:00
Fabian Kozynski
4235b2a802 CastTile becomes unavailable when not connected to Wifi
CastTile registers with NetworkController and shows unavailable
status when not connected to WiFi (regardless of internet connectivity).
Includes accessibility context for this state.

Added tests for behavior.

Test: manual && atest
Change-Id: I3004ed18e545d8d8c448f01d33eb70bcfd9831b2
Fixes: 78152102
2018-10-11 16:41:02 -04:00