Commit Graph

4361 Commits

Author SHA1 Message Date
Fabian Kozynski
fdeb8ea88c Merge "Remove unnecessary old code from test" into rvc-dev am: 4706134064 am: 83c820f757 am: d5f7ad48c2 am: 6d5271438f am: ef47e36511
Change-Id: Iec848873f4d8d8bb8f453798fcdc2713f564f5be
2020-03-31 02:07:07 +00:00
Fabian Kozynski
4706134064 Merge "Remove unnecessary old code from test" into rvc-dev 2020-03-30 15:01:28 +00:00
TreeHugger Robot
e3af458768 Merge "Also update color when changing the visibility" into rvc-dev am: 70a7cbf9e5 am: 73314f69ac am: c9892becbb am: ec05458884
Change-Id: Ic7c5fda2ba4cfd0799bf1b84fc207c3c6554734c
2020-03-28 04:36:28 +00:00
TreeHugger Robot
70a7cbf9e5 Merge "Also update color when changing the visibility" into rvc-dev 2020-03-28 03:31:49 +00:00
Kevin Chyn
c81ace7708 Merge "Send "early canceled" to privileged clients" into rvc-dev am: f825133d01 am: 0c33ac343f am: d69afab3e0 am: 05f8a0e8f2
Change-Id: I2ddb2414e37ea85870f8afc861c8f199a6e74bff
2020-03-28 00:47:11 +00:00
Kevin Chyn
f825133d01 Merge "Send "early canceled" to privileged clients" into rvc-dev 2020-03-28 00:05:59 +00:00
Lucas Dupin
aff42367bf Also update color when changing the visibility
We were updating the text field color only during some code paths,
which is error prone and doesn't handle visibility events well.

Also, the color of the field on AOD should never be red, according to UX
guidance.

Fixes: 149891226
Test: manual
Test: atest KeyguardIndicationControllerTest
Change-Id: I6e244786e72d90f00b0b733bdcb00c3e8e03582f
2020-03-27 16:28:20 -07:00
Kevin Chyn
0a45b662b0 Send "early canceled" to privileged clients
The navigation bar dismissal animation caused by "activity finish"
should be invoked in some cases immediately when the user
cancels authentication. Add a "early user cancel" message
for ConfirmDeviceCredentialActivity to subscribe to. This
message is sent immediately when the user invokes a back gesture or
cancels authentication.

Bug: 148273355

Test: Set up work profile with separate password and biometric
      Unlock work profile
      Lock screen
      Open work profile app
      Cancel authentication at various states in various ways
      Notice no navigation bar jank

Test: atest com.android.systemui.biometrics

Change-Id: I89c5b5e2782339cae15f936268e6e7b8ad4e5359
2020-03-27 14:44:08 -07:00
Matt Pietal
2cfb5a1393 Merge "Controls Ui - Do not update controls without STATUS_OK" into rvc-dev am: ad9c1a8816 am: 505418d89a am: 3543840c5e am: d6f325fae0
Change-Id: I251e6dd0f79a0b61fd43c325e13ce7abd31d9c88
2020-03-27 19:26:01 +00:00
Automerger Merge Worker
c6e6216f37 Merge "Merge "Announce when bouncer becomes visible" into rvc-dev am: a8a6e27153 am: afcde92a52" into rvc-d1-dev-plus-aosp am: 76e7bbc75a am: 2a4b79b9d5
Change-Id: Ifa601fa4ca9f86c68b610ee45b37199113841d78
2020-03-27 18:02:07 +00:00
Matt Pietal
ad9c1a8816 Merge "Controls Ui - Do not update controls without STATUS_OK" into rvc-dev 2020-03-27 18:01:57 +00:00
Fabian Kozynski
fdaaf1094e Remove unnecessary old code from test
Test: atest AppOpsControllerTest
Fixes: 147592133
Change-Id: I9dcfc166c53919ca464fb56f63385b3449a4a2ad
2020-03-27 13:41:17 -04:00
Lucas Dupin
a8a6e27153 Merge "Announce when bouncer becomes visible" into rvc-dev 2020-03-27 17:03:07 +00:00
Matt Pietal
1a209dbf44 Controls Ui - Do not update controls without STATUS_OK
Stateful controls returned from applications will have their status
flag set to indicate the state of the Control. For all non STATUS_OK
states, assume the control information isn't meant to be persisted and
do not store it.

Bug: 152525430
Test: atest ControlsControllerImplTest
Change-Id: I70c7a8f180561fff281a641b8d547af7cef17520
2020-03-27 11:58:24 -04:00
Kevin Chyn
6f3d48f4e3 Merge "ClearBiometricRecognized when user switches" into rvc-dev am: 4cf90e8a83 am: 15ede3b2dd am: df469ecba5 am: 090c4bbab7
Change-Id: I2f60b56613ec28a657cd70b622572eda9b423f24
2020-03-27 06:15:00 +00:00
Kevin Chyn
4cf90e8a83 Merge "ClearBiometricRecognized when user switches" into rvc-dev 2020-03-27 05:43:05 +00:00
Minche Li
a3474caa64 Merge "Replaces AsyncTask with main handler for WindowMagnification" 2020-03-27 02:32:21 +00:00
Lucas Dupin
ec239b9da5 Announce when bouncer becomes visible
Before we were only announcing when inflation ends, but we won't
inflate it every time it becomes visible.

Test: manual
Test: atest KeyguardBouncerTest
Fixes: 145172036
Change-Id: Iafbce10738a0906b251721a4ce4483e503ad6d91
2020-03-26 16:02:00 -07:00
Kevin Chyn
505eb89618 ClearBiometricRecognized when user switches
User unlock states should be cleared whenever user switches. Otherwise,
it's possible for the following sequence of events

1) Unlock first user via biometrics
2) Do not dismiss keyguard, switch to second user
3) Switch back to first user - can unlock without authenticating

Fixes: 151906507

Test: Repeat steps above, does not occur anymore
Test: atest KeyguardUpdateMonitorTest
Change-Id: I1d8e5867a18a680e85be8c335f09d4cb4209612e
2020-03-26 14:32:59 -07:00
Fabian Kozynski
cfb115ea5a Merge "Add more information to removed controls" into rvc-dev am: f4674d00c6 am: 5a5ed004ba am: 63e833edb1 am: 5d3c12b341
Change-Id: Id694635e059cbc69f61bff94a89f742f1568f8ae
2020-03-26 21:05:40 +00:00
Fabian Kozynski
f4674d00c6 Merge "Add more information to removed controls" into rvc-dev 2020-03-26 19:57:11 +00:00
Fabian Kozynski
a9803044be Add more information to removed controls
Removed controls should have as much cached information as possible.
This adds structure name and subtitle.
Also, if the structure is not set it would cause issues (as empty
structure is a valid structure).

Fixes: 151089232
Test: atest ControlsControllerImplTest
Test: manual
Change-Id: I6cf5f285fe85ddc78ae59133dcf406793293a3f7
2020-03-26 12:11:42 -04:00
TreeHugger Robot
65067514fd Merge "Auto-expand overflow bubbles on promote" into rvc-dev am: 80a6f30ad8 am: 7aeb0d1a97 am: a098561db6 am: cb5632be92
Change-Id: If32d0f4d638b4e9f0ab65d7bca7dfa92a879de24
2020-03-26 03:24:23 +00:00
Lyn Han
89274b4905 Auto-expand overflow bubbles on promote
Fixes: 151766943
Test: manual - promoted bubble auto-expands
Test: atest BubbleControllerTest

Change-Id: I1b2dff17f1853ce9a3fa04bb09f2152a9eb4d578
2020-03-25 14:22:16 -07:00
TreeHugger Robot
40500dde1a Merge "Separate updating views from deriving state" into rvc-dev am: e174ee831e am: 0f94ce41bb am: b1097b9967 am: 0c1fe46898
Change-Id: Iaf7bc69f43aa57a2c2130983566043221f32303e
2020-03-25 20:02:41 +00:00
TreeHugger Robot
e174ee831e Merge "Separate updating views from deriving state" into rvc-dev 2020-03-25 18:56:06 +00:00
Robert Snoeberger
d8643f4fca Separate updating views from deriving state
The benefit is that icon colors and icon scaling can be performed on a
background thread and then all of the views updated on the main thread.

Bug: 150454272
Test: atest KeyguardMediaPlayerTest.kt
Test: manual - play music and look at lock screen controls
Change-Id: I2423233f1ddeb081ab420053964c2b1cb2185514
2020-03-25 13:10:00 -04:00
Ned Burns
84ef95b0a6 Merge "Move inactive user filtering to its own filter" into rvc-dev am: dc3919ab66 am: 5da7d04fe0 am: 13b4c04ce5 am: d072071a53
Change-Id: I2feed03e1871bd3d99a7899205966e176540fde5
2020-03-25 16:51:50 +00:00
Josh Tsuji
490a92894b Merge "Adds SYSUI_STATE_BUBBLES_EXPANDED to QuickStepContract." into rvc-dev am: 040c89290b am: d55eecb2a8 am: 7660049017 am: 2837a125c5
Change-Id: Iff17b6fc5ce0bacd4eb4a596eb5d8366d5cbe20a
2020-03-25 16:44:24 +00:00
Ned Burns
dc3919ab66 Merge "Move inactive user filtering to its own filter" into rvc-dev 2020-03-25 16:29:21 +00:00
Dave Mankoff
63900cc840 Merge changes from topic "b150393918-lock-icon" into rvc-dev am: 2728fa3c52 am: c1c9801bd5 am: a57752f754 am: b192b43211
Change-Id: Ia1e68fceb8eb2c85a4088af6326791f28a500b85
2020-03-25 16:28:48 +00:00
Josh Tsuji
040c89290b Merge "Adds SYSUI_STATE_BUBBLES_EXPANDED to QuickStepContract." into rvc-dev 2020-03-25 14:16:48 +00:00
Dave Mankoff
2728fa3c52 Merge changes from topic "b150393918-lock-icon" into rvc-dev
* changes:
  Cache icon drawables.
  Remove injection from LockIcon.
2020-03-25 13:11:58 +00:00
mincheli
09bc478967 Replaces AsyncTask with main handler for WindowMagnification
AsyncTask is deprecated so we use main handler instead to
return callback, onWindowMagnifierBoundsChanged.
And this change also add a null protection and unregister
OnLayoutChangeListener when window magnification is disabled.
And it can prevent null pointer exception.

Bug: 151394161
Bug: 151571627
Test: manual test, atest WindowMagnificationTest
    WindowMagnificationControllerTest
Change-Id: I421424582d8bad9e58fe5aca11feb75a31bd5b35
2020-03-25 16:28:00 +08:00
Ned Burns
972dc0d6e8 Merge "Split RankingCoordinator's filter into two" into rvc-dev am: 02fc89ee9b am: 429cc23163 am: cef21b9029 am: 021967855e
Change-Id: I51c08b8d04dfc88add30e37e159c8173b46235b9
2020-03-25 03:33:11 +00:00
Ned Burns
02fc89ee9b Merge "Split RankingCoordinator's filter into two" into rvc-dev 2020-03-25 02:47:32 +00:00
Lucas Dupin
9a77e02218 Merge "Make power menu animaiton smoother" into rvc-dev am: 4a0651a6d7 am: e01a444e7b am: 94b0413089 am: 7d5b284116
Change-Id: Iefdbda3be79b11403143517d6558bf94769d0753
2020-03-25 01:58:03 +00:00
Ned Burns
ec8f81d1d4 Merge "Fix overlogging of filter and section changes" into rvc-dev am: 3472d794d7 am: 9b2f1e6768 am: ca3fe29386 am: a8129faef7
Change-Id: I5a1d1247d817ebf809a842d56c9a82251ef58b91
2020-03-25 01:55:09 +00:00
Lucas Dupin
4a0651a6d7 Merge "Make power menu animaiton smoother" into rvc-dev 2020-03-25 01:22:58 +00:00
Ned Burns
3472d794d7 Merge "Fix overlogging of filter and section changes" into rvc-dev 2020-03-25 00:51:26 +00:00
Ned Burns
effd216b8f Move inactive user filtering to its own filter
Previously it was being lumped in with the keyguard filter, which made
it difficult to tell in logs why something was being filtered.

Bug: 112656837
Test: atest
Change-Id: Ibfbfa017811952cd5a873419d3e003b70b65763e
2020-03-24 20:01:49 -04:00
Ned Burns
bcb37d8a5e Split RankingCoordinator's filter into two
Makes it clearer in logs why something was filtered.

Bug: 112656837
Test: atest
Change-Id: I0a5a077974a7070b243066d03a2d026ce230cbce
2020-03-24 20:00:14 -04:00
Lucas Dupin
b079daa1a1 Make power menu animaiton smoother
This animation was being mapped directly to the alpha of the dialog,
which makes it a bit stiff. I'm now using a physics based spring
animation, sharing logic with the shade.

Fixes: 149792636
Test: atest NotificationShadeDepthControllerTest
Change-Id: Iad8835b8040d1aedc13f0e323fc747e4ab4813e9
2020-03-24 16:15:57 -07:00
Ned Burns
8b5493967f Fix overlogging of filter and section changes
The addition of a second round of filtering introduced a bug that would
cause the system to log false filter and section changes for all notifs
on every run of the pipeline.

Previously, we had logic like the following:
(assume that, in the previous run, entryA was filtered out by filter1
during the pre-finalized stage)

1. preGroupFilters run, nothing returns true. Set
entryA.mExcludingFilter to null. It changed! Log it.
2. preFinalizeFilters run, filter1 returns true. Set
entryA.mExcludingFilter to it. It changed! Log it.

NotifSections had a similar bug that would null out their assigned
section every time they were filtered out.

To solve this, we introduce an mPreviousExcludingFilter field on
NotificationEntry that will allow us to determine whether the filter
actually changed as compared to the previous run. We also move that
logging logic to the end of the pipeline.

To solve the sectioning issue, we just don't null out sections when the
entry is filtered out. Long-term, we should move to a system similar to
the one above, but that's more complicated.

Test: atest
Bug: 112656837
Change-Id: Ib78dbbb0346947210cc1b6b49547595895e9fce5
2020-03-24 17:20:10 -04:00
Dave Mankoff
27bb209292 Remove injection from LockIcon.
This moves the final remaining pieces into
LockscreenIconController.

Test: manual
Fixes: 150393918
Change-Id: I6ce57905bdfcf832b92d5f2e4ce46054ff067851
2020-03-24 16:18:50 -04:00
Fabian Kozynski
45fa7937cc Merge "Update model when adding favorites" into rvc-dev am: 8829c37c1d am: 8cb7df38d2 am: 39afc652bd am: bec2a0e55f
Change-Id: I6066de27b8b193a4ec31e4e27ef7a3adb4c83a3d
2020-03-24 18:13:30 +00:00
TreeHugger Robot
a8a97f8486 Merge "Makes Assistant handles comply with a11y timeouts" into rvc-dev am: aad7d93e43 am: d3a7968162 am: 32d74c2d93 am: d403f888fe
Change-Id: Ieab529fcd505e393f217dcb2b5c63ad64e6de265
2020-03-24 18:09:34 +00:00
Fabian Kozynski
8829c37c1d Merge "Update model when adding favorites" into rvc-dev 2020-03-24 17:35:00 +00:00
TreeHugger Robot
aad7d93e43 Merge "Makes Assistant handles comply with a11y timeouts" into rvc-dev 2020-03-24 16:52:01 +00:00
TreeHugger Robot
7fe830a440 Merge "Lock screen media controls" into rvc-dev am: d6a8e5128e am: 63f7a048cb am: e8b259aadd am: d2a4aee49f
Change-Id: Icfcdb0c971460a7d98540e08902eea27e817a46a
2020-03-24 16:43:25 +00:00