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
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
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
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
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
StylusManager now allows listening to charging state changes by
registering a battery callback (StylusBatteryCallback).
Test: StylusManagerTest
Change-Id: I40dadeb331ff87ac9f5af1ada588b228f7d8d3b2
The StylusManager is a SysUISingleton that can notify apps when
styluses are added, removed, or changed.
Bug: 250908244
Test: StylusManagerTest
Change-Id: I98e0aeee6824f6be6b66f85ec5bdf0c21f219b7b
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
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
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
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
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