Commit Graph

779988 Commits

Author SHA1 Message Date
Vania Januar
1191ce4d2c Implement StylusListener SystemUI CoreStartable.
StylusListener detects first usage of a stylus, and
updates the STYLUS_EVER_USED Settings flag.

Bug: 251206662
DD: go/stylus-first-usage-options
Test: StylusListenerTest
Change-Id: I165481d1166e31b5b8560da5c695003d105068ef
2022-11-18 17:57:15 +00:00
Dave Mankoff
93aba1ca57 Merge "A flag for server side experimentation." into tm-qpr-dev 2022-11-18 15:59:19 +00:00
Behnam Heydarshahi
296c636fce Merge "Change volume ringer icon based on device config" into tm-qpr-dev 2022-11-18 15:51:29 +00:00
Aaron Liu
94ae2f13e3 Merge "[Bouncer] Revert from shared flow..." into tm-qpr-dev 2022-11-18 15:30:14 +00:00
Aaron Liu
bef5efa86b Merge "[User Switcher] filter for only full userinfos." into tm-qpr-dev 2022-11-18 15:27:55 +00:00
Omar Miatello
b0614930ea Merge "Add support for Predictive Back in AuthCredentialPasswordView" into tm-qpr-dev 2022-11-18 14:33:42 +00:00
Fabian Kozynski
7d1f6b2287 Merge "Remove NEW_HEADERS flag" into tm-qpr-dev 2022-11-18 14:24:59 +00:00
Sam Dubey
68888b39a6 Merge "Revert "Ensure SystemUI gets restarted lazily."" into tm-qpr-dev 2022-11-18 14:09:48 +00:00
Jamie Garside
3d100cf87c Merge "Update stepped clock animation to use real specs." into tm-qpr-dev 2022-11-18 14:05:36 +00:00
Beverly Tai
eaa63dbd88 Merge "Fix NPE before CentralSurfaces is registered" into tm-qpr-dev 2022-11-18 13:44:36 +00:00
Beverly Tai
437300c7af Merge "Enable active unlock chipbar UI by default" into tm-qpr-dev 2022-11-18 13:42:48 +00:00
Rupesh Bansal
8f775f2a9f Merge "Fixed latency spike" into tm-qpr-dev 2022-11-18 12:34:10 +00:00
Matt Pietal
280d2b8762 Merge "MODE_SHOW_BOUNCER - Make sure bouncer shows" into tm-qpr-dev 2022-11-18 12:26:01 +00:00
Matt Pietal
2850e3301a Merge "Transitions - Add doze transition information" into tm-qpr-dev 2022-11-18 12:25:23 +00:00
TreeHugger Robot
7592051299 Merge "Fix default occlude animation to scale from 50%, not 0%." into tm-qpr-dev 2022-11-18 12:06:17 +00:00
omarmt
a491f601ef Add support for Predictive Back in AuthCredentialPasswordView
Test: atest AuthContainerViewTest
Bug: 254450850
Change-Id: I3d71d3f595eba16b2e1cab01d915dd7842717a6e
Merged-In: I3d71d3f595eba16b2e1cab01d915dd7842717a6e
2022-11-18 11:26:38 +00:00
Kazuki Takise
a3256d337d Merge "Calculate freeform bounds for fullscreen task" into tm-qpr-dev 2022-11-18 11:19:05 +00:00
Nick Chameyev
9768ceeb8c Merge "[Unfold animation] Get animation scale from content provider" into tm-qpr-dev 2022-11-18 11:02:59 +00:00
Kenneth Ford
47af12f98c Merge changes from topic "rear-display-overlay" into tm-qpr-dev
* changes:
  Adds call to rear display overlay intent
  Introduces flag for states that are emulated only
2022-11-18 07:01:29 +00:00
Lucas Silva
9038b06da0 Merge "Add ability to AND and OR conditions together" into tm-qpr-dev 2022-11-18 03:26:08 +00:00
Aaron Liu
33b7f00aac Merge "[Bouncer] Remove flicker of message area." into tm-qpr-dev 2022-11-18 02:36:45 +00:00
TreeHugger Robot
f31b5dc063 Merge "Enforce onActivityReparentedToTask" into tm-qpr-dev 2022-11-18 02:22:41 +00:00
Kazuki Takise
b3968b8118 Calculate freeform bounds for fullscreen task
Currently several pieces of logic in LaunchParamsModifier assume
that bounds doesn't need to be calculated for fullscreen tasks, but
this is incorrect in that the bounds calculated in
LaunchParamsModifier can be used as last non-fullscreen bounds for
fullscreen tasks. Last non-fullscreen bounds is useful in an
environment such as ARC++ where the windowing mode of a task
changes between freeform and fullscreen.

With this CL, freeform bounds calculation (ActivityOption, layout,
getTaskBounds) is applied to fullscreen tasks too.

This CL also involves some refactoring around getting bounds from
ActivityOption and WindowLayout (especially for fullscreen tasks
and tasks whose windowing mode is MULTI_WINDOW).

Bug: 185427982
Test: atest WmTests:TaskLaunchParamsModifierTests
Change-Id: I3ccaf1ebfa7bcc11c371b0043fbfa11366f7a8f3
2022-11-18 10:37:55 +09:00
Silvia Vinyes
41fb1179c5 Merge "Fix lux and STM parameter of slider event." into tm-qpr-dev 2022-11-18 01:01:15 +00:00
Michael Mikhail
9391ef81b5 Merge "[Media TTT] Add animation out for receiver chip" into tm-qpr-dev 2022-11-18 00:52:52 +00:00
TreeHugger Robot
420d574381 Merge "Remove TextAppearance.QS.Status values-night entry" into tm-qpr-dev 2022-11-18 00:51:58 +00:00
Taran Singh
d4c3da1be3 Revert "Ensure SystemUI gets restarted lazily."
This reverts commit e0d2a5117d.

Reason for revert: LockscreenShiftSecurity#testSecurityShiftsWhenTappingOnTheOtherSide test is broken
Bug: 259595527

Change-Id: I16bca337d77a9fa88a2d90881d7b6a34fca33b08
2022-11-17 23:30:35 +00:00
Aaron Liu
32c4073813 [Bouncer] Revert from shared flow...
back to a state flow with a timestamp. It seems like shared flows replay
the value every time and there isn't a way to propagate one off events.
I am simulating one off events by using a state flow with a unique
timestamp to ensure the event emits.

Test: Added unit tests
Test: fail face unlock until message appears. Unlock phone and restart
screen. Observe that "Enter your pin" is the initial message.
Fixes: 258775372

Change-Id: I6c9fb9a2c79aed9300e9b102a45c9d4c0456536e
2022-11-17 15:01:47 -08:00
Dave Mankoff
3216dd0244 A flag for server side experimentation.
Bug: 259590361
Test: n/a
Change-Id: Icf591af9a16cd5b47922aba9ed428fe377ab81da
2022-11-17 22:56:57 +00:00
Kenneth Ford
e65409d819 Adds call to rear display overlay intent
When a request is made to enable rear display
mode, and it's from a process that doesn't
hold the CONTROL_DEVICE_STATE permission, we
should launch the educational overlay to alert
the user of what's about to happen.

This change also introduces a method on
DeviceStateManagerGlobal and Service to allow
the overlay activity to communicate back to the
system service if the overlay has been dismissed
or acted on

Bug: 207686851
Test: DeviceStateManagerServiceTest
 && DeviceStateManagerGlobalTest
Change-Id: Ife7d642563005a2571bdeacbd7a3baaa9aad5e25
2022-11-17 22:36:42 +00:00
Aaron Liu
0b9bc54cb3 [Bouncer] Remove flicker of message area.
When locked out for 30s, we add a timer that changes the message every
second. The animation is a bit jarring, so I added a way to disable the
animation in cases like this.

Fixes: 257407393
Test: Add unique incorrect pins until I get the dialog that I have been
locked out. Observe the changes. Also observe that the bouner title
still animates in other cases.
Test: Added unit tests.

Change-Id: I5e09686174ac17cae139f5f9535e946e39d6d009
2022-11-17 14:32:09 -08:00
Miranda Kephart
fb435f4376 Merge "Add device config flag to ignore clipboard source package" into tm-qpr-dev 2022-11-17 22:17:04 +00:00
Miranda Kephart
6c6b35d00e Merge "Add clip source to clipboard UI logging" into tm-qpr-dev 2022-11-17 22:16:40 +00:00
Dave Mankoff
70d49aa91d Merge "Ensure SystemUI gets restarted lazily." into tm-qpr-dev 2022-11-17 21:16:29 +00:00
Beverly
05e1abc071 Enable active unlock chipbar UI by default
Bug: 256513609
Test: manual
Change-Id: I0d3374a161ecb54baa4fa1e2b312f003e05e68e3
2022-11-17 19:53:07 +00:00
Matt Pietal
7afd3eeb74 MODE_SHOW_BOUNCER - Make sure bouncer shows
On AOD, multiple failed attempts to unlock via fingerprint should
display the bouncer. Add a condition to the panel expansion that will
prevent the bouncer from showing and then immediately hiding.

Separately, reset() the BiometricUnlockController state after the
bouncer has been dismissed. This fixes an issue when the user swiped
back after the bouncer prompts.

Fixes: 259361580
Test: atest StatusBarKeyguardViewManagerTest
Change-Id: Ibeeea77249a0d56a8cd166088d0d54767cb4abf1
2022-11-17 19:47:50 +00:00
Xiang Wang
ea3d17b59d Add back the missing @Test annotation
Bug: 258724297
Test: atest GameManagerServiceTests
Merged-In: I79fecd6f0ef5d751ad4fbadb8cb3cc43df8f3bce
Change-Id: I0321cc33439356a9859b1f27599f58bb080a9ce0
2022-11-17 11:23:52 -08:00
Silvia Vinyes
11dbc3167b Fix lux and STM parameter of slider event.
Test: statsd_testdrive
Bug: 236234158

Change-Id: I4360f28f579e13f82238eb90f1843cfe8b78a9dd
(cherry picked from commit 42319320dc)
Merged-in: I4360f28f579e13f82238eb90f1843cfe8b78a9dd
2022-11-17 19:20:49 +00:00
Aaron Liu
d95b1b0fac [User Switcher] filter for only full userinfos.
UserInfos are expected to be FLAG_FULL if they are human users. This
will filter out the work profile.

Fixes: 254634782
Test: Add a work profile on device. Observe bouncer user switcher and
dialog user switcher on phone device. Observe that there is no work
profile option.
Test: Added a unit test. Updated the test suite such that human user
infos will be FLAG_FULL

Change-Id: I614dc0c6bf56d888511040ec4db4bfdcf7190f94
2022-11-17 11:15:53 -08:00
Miranda Kephart
54035b6bcc Merge "Turn on clipboard remote behavior in teamfood" into tm-qpr-dev 2022-11-17 19:13:18 +00:00
Colin Cross
2f186cfad9 Merge "Fix ErrorProne finding in WmTests" into tm-qpr-dev 2022-11-17 19:06:57 +00:00
Beverly
50b6ecd924 Fix NPE before CentralSurfaces is registered
Test: atest StatusBarKeyguardViewManagerTest
Fixes: 259351782
Change-Id: Id397230fbd2b67ef8516e17254e13b5c79284e24
2022-11-17 19:05:03 +00:00
Josh Tsuji
73f8c3ea4c Fix default occlude animation to scale from 50%, not 0%.
Fixes: 240586745
Test: launch non-camera occluding activity
Change-Id: I337bddd3d24947c77ea4e50d78b6f1cd8cd0ed66
2022-11-17 14:01:16 -05:00
Colin Cross
f8003e57e4 Merge "Fix CompileTimeConstant ErrorProne findings in SystemUI" into tm-qpr-dev 2022-11-17 18:26:53 +00:00
Miranda Kephart
4b77d80772 Add clip source to clipboard UI logging
Bug: 246808749
Test: atest ClipboardOverlayControllerTest
Change-Id: I596e25cbab36f445a31def9dd6111681f3b6f2c1
2022-11-17 13:18:48 -05:00
Bill Yi
d570ce2d18 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-11-17 17:51:20 +00:00
Bill Yi
11ced36950 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-11-17 17:51:20 +00:00
Bill Yi
945b2a56ca Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-11-17 17:51:20 +00:00
Bill Yi
7e3319542c Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-11-17 17:51:20 +00:00
Bill Yi
98988d03ca Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-11-17 17:51:20 +00:00