Commit Graph

781019 Commits

Author SHA1 Message Date
Beverly
b681e2f5a8 Make sure aodInterrupts are cancelled
Else, the UDFPS fingerDown state can be stale
and cause downstream bugs (ie: remaining in the screen on state
instead of transitioninf back to AoD since the DozeMachine
thinks that the user is still interacting with UDFPS).

Test: manually fail UDFPS from AoD, observe device goes back
into DOZE_AOD 5+ seconds after the fingerprint failure
Test: atest UdfpsControllerTest
Fixes: 261758656

Change-Id: Ied60ead5aae4f00e57d0e9457581bf3796392aca
2022-12-12 14:26:05 +00:00
Beverly Tai
631554e252 Merge "Allow UDFPS to be triggerd from AOD_PAUSED state" into tm-qpr-dev 2022-12-12 14:17:48 +00:00
Fabian Kozynski
938aed255a Merge changes from topic "261990919" into tm-qpr-dev
* changes:
  Allow any app to show panel, based on flag
  Add flag to allow panels for all apps
2022-12-12 14:17:40 +00:00
Beverly
4f8dbef6bd Allow UDFPS to be triggerd from AOD_PAUSED state
And from the AOD_PAUSING state.

So if users immediately attempt UDFPS right after
the prox sensor has become unblocked, the
authentication will still go through rather than
being dropped. The UDFPS longpress gesture is also
prox gated (by the sensor), so this is a safe change.

Test: programmatically set DOZE_AOD_PAUSED and see that UDFPS
longpress can still be triggered when prox isn't blocked
Test: atest DozeTriggersTest
Fixes: 244011650
Change-Id: Ic4f7956cb6082bec5c55d5177c8546e12b969378
2022-12-12 14:17:19 +00:00
Riddle Hsu
1b89cdbde8 Merge "Use seamless for collecting transition with fixed rotation" into tm-qpr-dev 2022-12-12 13:31:57 +00:00
Jordan Demeulenaere
d964925ed8 Merge changes from topic "sysui-typography" into tm-qpr-dev
* changes:
  Remove references to "google-sans" in SystemUITypography
  Define the SystemUI typography
2022-12-12 11:59:34 +00:00
Nick Chameyev
37b5e8b974 Merge "[Unfold transition] Add haptics effect" into tm-qpr-dev 2022-12-12 10:17:18 +00:00
Nick Chameyev
61e549a232 [Unfold transition] Add haptics effect
Adds haptics effect when the animation is about
to end. The effect is played when the animation is
cancelled because of timeout or when the device
is unfolded quickly.

Bug: 200555479
Test: atest com.android.systemui.unfold.progress.PhysicsBasedUnfoldTransitionProgressProviderTest
Test: manual test
Change-Id: I0d6c8098b1c86e37547793644bf450d69c166c50
2022-12-12 10:16:36 +00:00
Jeff Chang
2016b1dcd1 Merge "Check lock-task mode if task_on_home is applied" into tm-qpr-dev 2022-12-12 06:00:52 +00:00
Florence Yang
e87c348fcd Merge "Enable Region Sampling Flag for Teamfood" into tm-qpr-dev 2022-12-12 02:58:43 +00:00
Chris Li
369bce07d6 Merge "Fix missing legacy change transition on display info changed" into tm-qpr-dev 2022-12-12 02:55:48 +00:00
Louis Chang
c554885157 Merge "Prevent IndexOutOfBoundsException while removing activities" into tm-qpr-dev 2022-12-12 00:36:01 +00:00
Vania Januar
9e7dc1926a Merge "Listen to charging state metadata in StylusManager" into tm-qpr-dev 2022-12-11 12:33:06 +00:00
Vania Januar
83af9f927e Merge "Feature flag for stylus battery notifications." into tm-qpr-dev 2022-12-11 12:33:06 +00:00
William Leshner
0a33f42345 Merge "Don't allow dreaming for users that can't dream." into tm-qpr-dev 2022-12-10 23:55:45 +00:00
TreeHugger Robot
0143f62f7a Merge "Fix Dialog default callback registering at the wrong priority." into tm-qpr-dev 2022-12-10 18:02:13 +00:00
TreeHugger Robot
961eece32b Merge "Initialize navigation mode for TaskbarDelegate" into tm-qpr-dev 2022-12-10 08:14:19 +00:00
Vania Januar
b66446f141 Merge "StylusManager for managing local stylus listeners and state." into tm-qpr-dev 2022-12-10 08:01:59 +00:00
Lyn Han
d081c219c3 Merge "Add FSI debug class" into tm-qpr-dev 2022-12-10 07:42:49 +00:00
William Leshner
37929e00a5 Merge "Lock device on short power button press." into tm-qpr-dev 2022-12-10 03:03:16 +00:00
TreeHugger Robot
ff5346cd1a Merge "Maintain the users current value for STATUS_BAR_SHOW_VIBRATE_ICON" into tm-qpr-dev 2022-12-10 02:11:33 +00:00
TreeHugger Robot
56b489b539 Merge "Exempt ongoing and media notifications from unseen filter" into tm-qpr-dev 2022-12-10 00:27:59 +00:00
Shan Huang
be0808498c Fix Dialog default callback registering at the wrong priority.
Bug:259602785
Test: In a standalone app, register a callback in Dialog#onCreate() with default priority. Make sure the dialog callback can be invoked.
Test: BackNavigationTests#registerCallback_dialog (run on master)

Change-Id: I9cfd596611fb341389cda44e3605c1e99ddc3791
2022-12-10 00:12:28 +00:00
TreeHugger Robot
416f9b7d9b Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-09 23:20:31 +00:00
TreeHugger Robot
fc0a2125cf Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-09 23:20:31 +00:00
TreeHugger Robot
07fd6b7dc2 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-09 23:20:31 +00:00
TreeHugger Robot
a8396c5112 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-09 23:20:31 +00:00
TreeHugger Robot
51287928b9 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-09 23:17:53 +00:00
TreeHugger Robot
debfa878ec Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-09 23:17:53 +00:00
TreeHugger Robot
2fa7da65d8 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-09 23:17:53 +00:00
Miranda Kephart
2e5bc09147 Merge "Remove old quickshare chip when adding a new one" into tm-qpr-dev 2022-12-09 21:32:29 +00:00
Hawkwood Glazier
aa031de794 Merge "Disable NotificationPanelViewControllerTest.*_returnSpaceAvailable" into tm-qpr-dev 2022-12-09 20:51:50 +00:00
Kenneth Ford
25f934011d Merge "Adds content descriptions for rear display animation" into tm-qpr-dev 2022-12-09 19:53:01 +00:00
Steve Elliott
7969117011 Exempt ongoing and media notifications from unseen filter
Test: atest KeygaurdCoordinatorTet
Bug: 240472040
Fixes: 260563613
Change-Id: Iec08a548fd789161effbb1ac89a096f3ae008299
2022-12-09 14:42:01 -05:00
TreeHugger Robot
a90ccc4457 Merge "Move all the ImageWallpaper logic outside the main thread" into tm-qpr-dev 2022-12-09 18:58:50 +00:00
Fabian Kozynski
76b7967725 Allow any app to show panel, based on flag
Eventually, we'll add a flow for the user to opt in to these extra apps.
For now, just allow all of them.

These flag should not be released without the flow in place.

Test: atest ControlsListingControllerImplTest
Bug: 261990872
Change-Id: I6b52305106d5b0f6a56ac72827a93e7fcde5a7fb
2022-12-09 12:56:53 -05:00
Mady Mellor
37e943894d Merge "Fix drawing the ring around adaptive app icons" into tm-qpr-dev 2022-12-09 17:48:57 +00:00
Vania Januar
b5e7f591e1 Listen to charging state metadata in StylusManager
StylusManager now allows listening to charging state changes by
registering a battery callback (StylusBatteryCallback).

Test: StylusManagerTest
Change-Id: I40dadeb331ff87ac9f5af1ada588b228f7d8d3b2
2022-12-09 17:33:27 +00:00
Vania Januar
a2b566109f StylusManager for managing local stylus listeners and state.
The StylusManager is a SysUISingleton that can notify apps when
styluses are added, removed, or changed.

Bug: 250908244
Test: StylusManagerTest
Change-Id: I98e0aeee6824f6be6b66f85ec5bdf0c21f219b7b
2022-12-09 17:33:26 +00:00
Edward Savage-Jones
a19956d62f Maintain the users current value for STATUS_BAR_SHOW_VIBRATE_ICON
Make sure not to overwrite any current user selection for
Secure.STATUS_BAR_SHOW_VIBRATE_ICON that the user may have
made.

Issue: 253992986
Test: Manual - see issue
Change-Id: I33155a27707e6d30ff56fb090c71b9670a98fc31
2022-12-09 12:31:48 -05:00
Evan Rosky
5aad6ff53d Merge "Replace direct AR.mVisibleRequested access with getter/setter" into tm-qpr-dev 2022-12-09 17:25:40 +00:00
Fabian Kozynski
ec093cc3d1 Add flag to allow panels for all apps
Test: build
Fixes: 261990919
Change-Id: I94afebe846d114d06b9d7e5ceba668eea680947e
2022-12-09 12:08:19 -05:00
Massimo Carli
bdaa6f70aa Merge "Refine the naming about compatible scale" into tm-qpr-dev 2022-12-09 17:05:58 +00:00
Will Leshner
c5f6dc0604 Lock device on short power button press.
If a device is configured to dream on short power press, also make sure
it locks as well.

Also fixes an issue where the screen does not turn off when another
user (not user zero) presses the power button.

Bug: 260135090
Test: manually by configuring device to dream on short power press and
then making sure it is also locked after press.

Change-Id: I16ca4eab7a0e8a3f2ef42c090147bd7e62445c69
2022-12-09 08:45:07 -08:00
Will Leshner
a6000e21cb Don't allow dreaming for users that can't dream.
DreamManagerService#canStartDreaming should not return true if the
current user is not allowed to dream.

Bug: 261907079
Test: manually by switching to a user that can't dream and making
sure that the screen turns off on power press while docked.

Change-Id: Ia4a46dff5360d3565762b82fb4353e66f0b8f661
2022-12-09 08:43:22 -08:00
Hawkwood Glazier
32c64cbd9c Disable NotificationPanelViewControllerTest.*_returnSpaceAvailable
These tests appear inconsistent now. It's not flaky, but it does
appear to change depending on the test environment.

Bug: 261472011
Test: atest NotificationPanelViewControllerTest
Change-Id: I6fc772d1ee85971072147e073b15f1feb8137107
2022-12-09 15:42:35 +00:00
Jamie Garside
1f9eb48888 Merge "Enable stepped clock flag in Teamfood." into tm-qpr-dev 2022-12-09 14:57:35 +00:00
Riddle Hsu
6ecaf45857 Merge "Keep rotation transform for exiting PiP with fixed rotation" into tm-qpr-dev 2022-12-09 14:45:11 +00:00
Riddle Hsu
0e8f4211ee Merge "Only apply crop to task and task fragment in end transition" into tm-qpr-dev 2022-12-09 14:40:44 +00:00
Tiger
d95134d7c2 Refine the naming about compatible scale
There can be 2 reasons that we need to apply compatible scale to a
window:

1. The app doesn't support large screen. We would layout the window as
   if it is on a small display. And then we need to scale its window up
   to match the display.

2. We put a running app into a container that the size doesn't fit. We
   need to down-scale the app so that it can fit the container.

The scaling of case 2 is also known as size-compat-scale which is fully
controlled at the server side. The client shouldn't know about it. And
this CL refines the naming.

Fix: 258393096
Bug: 254187021
Test: presubmit
Change-Id: Ifbd2ca725bed231d9e6dd8190df3dc773d4402b7
(cherry picked from commit bcbd60c45c)
Merged-In: Ifbd2ca725bed231d9e6dd8190df3dc773d4402b7
2022-12-09 14:08:57 +00:00