The visible-requested state of non-activity/wallpaper window is
usually true because it doesn't consider token visibility and the
policy visibility isn't hidden.
Since insets change will also trigger reportResized if
WindowFrames#hasInsetsChanged() returns true, the visible-requested
state should be only used if the token of window implements
isVisibleRequested(). Otherwise all invisible window will receive
resize and report drawn for configuration change, such as display
rotation.
Fix: 236235776
Test: atest WindowStateTests#testSetFreezeInsetsState
Test: adb shell wm logging enable-text WM_DEBUG_RESIZE
Rotate screen, there is no log "Reporting new frame to"
for invisible windows.
Change-Id: Ibe34fa94e7cee7f9db460b0a205a87d0efe6a0f9
* Instead, set the background in the auth_biometric_background view
* This fixes a bug where there is an infinite loop to start the confirm device credential intent
Bug: 234536059
Test: Manual testing with TestDPC
Manual testing steps
* Setup device with TestDPC
* Set a work lock
* Open TestDPC in the work profile
* Select "lock now"
* Verify there is no infinite loop
Change-Id: I866e3d48a66e562050ad89ebc7f2ae0ac0455737
[ag/8009931 is to fix the missing event problem and it get reverted in ag/15961577.
Now revert the change that causes the problem.]
Make a copy of mHistoryCur and add the copy to history buffer after
starting a new history file.
Bug: 230799882
Test: ag/8009931 reproduce steps.
Change-Id: If9339ed5182b65b9c59c119894e4f317b2e5751c
Record an instant trace event if we encounter a timeout while waiting
for relro creation, using the same message we already log.
We're seeing a number of occurrences of this timeout in cases where
WebView is otherwise working in traces, so this should help to debug.
Using the ACTIVITY_MANAGER trace tag as it's enabled for the trace
collection pipeline already; WEBVIEW is not.
Bug: 235546861
Test: n/a
Change-Id: I2b60c5699efde026da934457e430adaebad1d2b3
In some cases, the device/route name could change without also updating
the ID. This updates the check to include all fields of MediaDeviceData except
for the icon (which can change reference more frequently than is necessary
to reload). Now if the name, status, or intent has changed, listeners
will be updated to have the new info.
Bug: 235627592
Test: manual
Test: atest MediaDataManagerTest
Change-Id: Iefd7ce0e8859b89db2bc75c243b3a04a0cb3915d
Merged-In: Iefd7ce0e8859b89db2bc75c243b3a04a0cb3915d
Bug: 230563819
Test: Manually toggle RBC, and observe that brightness nits change, with
no change in the brightness percentage.
Change-Id: Icb2bff98479cc44aa773ab6e2a828bb281dedbc1
Otherwise the activity will launch, then the window will quickly flip
back to the fully expanded shade and make the user watch the collapse
animation before finally showing the activity that was started.
This path only occurs when the keyguard is unlocked, and triggers the
remote occlude animation to run.
Fixes: 234577570
Test: manual, use face unlock without bypass, unlock the lockscreen,
then start an occluding activity (controls, maps)
Change-Id: Ifcb59cce810c81e607d5fe83389d282100ef7236
Without this change, it may throw ClassNotFoundException when OEMs
define their own DisplayAreaPolicy.Provider.
Fix: 235942308
Test: verify with a customized provider
Change-Id: I397f4fc05ecd5732e3ebb417de3a66c280f678b3
We'll see if it helps with test isolation against the problem with slow broadcasts.
Bug: 202567877, 235268992
Test: various
Change-Id: I5c42ddc615fe0aed8322f5fa890c60bc8084f670