Before, we call sendTaskFragmentVanished after the removeImmediately,
which may not have any following activity paused/resumed to trigger
relayout to dispatch the pending event to the organizer.
Now, we call mWindowPlacerLocked.requestTraversal() to ensure the
vanished event will be dispatched.
Without this change, the splitInfo callback can be stucked on waiting
for empty TaskFragment vanished event.
Bug: 262666213
Test: atest CtsWindowManagerDeviceTestCases:TaskFragmentOrganizerTest
Test: atest WmTests:TaskFragmentOrganizerControllerTest
Change-Id: Ibf76af205a5fc91400bdd5fc967a0d13591cfe92
This CL introduces an overload of Modifier.background which takes a
`alpha: () -> Float` parameter to set the alpha of the background. This
should be used when the alpha of the background is animated, to avoid
recompositions during an animation.
The content of FadingBackground.kt was mostly copy pasted from
Background.kt [1].
[1] http://cs/androidx-platform-dev/compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/Background.kt
Bug: 242040009
Test: Manual
Change-Id: I3296f7bc7382e2afe77a088cfdbefbfae134051d
This CL improves Expandable by making sure that expandables that expand
when clicked directly have a minimum size of 40dp and minimum
interactive size (touchable area) of 48dp. This is consistent with the
M3 components like buttons.
Bug: 230830644
Test: Manual
Change-Id: Iada048498ff4655406968d7dac5d13c948efaea1
This CL adds support for borders in Expandable. See
b/230830644#comment24 for a video.
Bug: 230830644
Test: Manual
Change-Id: If9ce29bac72b725eb01b1839a982a2ce17efc41a
This CL reconciles the content of Expandable.kt in the
tm-qpr-dev-plus-aosp branch and tm-qpr-dev. This CL being on
tm-qpr-dev-plus-aosp, this will also be merged in master.
Currently the files are different because the androidx.savedstate
library was updated in tm-qpr-dev-plus-aosp in http://ag/19946745, and
removed the ViewTreeSavedStateRegistryOwner APIs. Ideally, instead of
this CL, we would update the androidx.savedstate library in tm-qpr-dev
but I'm getting build errors in http://ag/20708667 that might take a
while to fix. Until I manage to get that CL in, I suggest we work around
it in this CL by re-introducing the ViewTreeSavedStateRegistryOwner API
used by tm-qpr-dev, which forwards calls to the API that replaced it.
That way we can unblock the few CLs like http://ag/20256703 and
http://ag/20711619 which currently have conflicts with master and
tm-qpr-dev-plus-aosp.
Bug: 262222023
Test: Builds
Change-Id: I97660c5a9a2758c5e19d037e635c21456b6085c3
Set VPN as the preference network for specific apps when
IKEv2VpnRunner is running, and reset it when IKEv2VpnRunner is
cleaned.
VPN will be disconnected when its underlying network is gone. To
prevent packets go throgh underlying network when underlying
network is back but VPN is not connected yet, set VPN as the only
preferred network for specefic apps.
Bug: 231749077
Test: Create a test app to register default network and check if
the VPN is the only default network for the test app.
Change-Id: Ib1b65d142a5ccc935f3882f5665134a56277f19a
From user bugreport and base on Android R code
12-02 11:52:09.533 10148 2525 2525 E AndroidRuntime: FATAL EXCEPTION: main
12-02 11:52:09.533 10148 2525 2525 E AndroidRuntime: Process: com.kuaishou.nebula, PID: 2525
12-02 11:52:09.533 10148 2525 2525 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.app.ActivityThread$ActivityClientRecord.getLifecycleState()' on a null object>
12-02 11:52:09.533 10148 2525 2525 E AndroidRuntime: at android.app.servertransaction.TransactionExecutorHelper.getClosestOfStates(TransactionExecutorHelper.java:166)
12-02 11:52:09.533 10148 2525 2525 E AndroidRuntime: at android.app.servertransaction.TransactionExecutorHelper.getClosestPreExecutionState(TransactionExecutorHelper.java:144)
12-02 11:52:09.533 10148 2525 2525 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:129)
12-02 11:52:09.533 10148 2525 2525 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
12-02 11:52:09.533 10148 2525 2525 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2105)
Bug: 262605168
Test: NA
Change-Id: I9613ddd569d6b3d0617b401c73a4f5b92cd95e2e
Signed-off-by: lihaizhou <lihaizhou@coolpad.com>
The animation leashes will be release after calls
KVM#finishSurfaceBehindRemoteAnimation, so if there are playing
animation with setSurfaceBehindAppearAmount, the released leash could
cause SystemUI crash.
There are two scenario may cause that crash:
1. Hovering between Keyguard <=> Launcher, which could trigger
fadeOutSurfaceBehind and finish the remote animation, so the
surfaceBehindRemoteAnimationTargets could remained in KUAC. Then when
next transition animation start, KUAC could attemp to play animation
with those released leash.
2. Unlock keyguard directly, notifyFinishedKeyguardExitAnimation will
cancel the surfaceBehindAlphaAnimator, which could finish the remote
animation immediately before setSurfaceBehindAppearAmount. To ensure
the opening app must be visible, calls setSurfaceBehindAppearAmount
before cancel animatiors.
Fixes: 262444073
Test: enable shell transition, then scroll up to unlock device,
a. verify the launcher won't stay in a fully/semi transparent.
b. verify the launcher won't reshow when scrolling on keyguard.
Also verify above cases via fingerprint unlock.
Change-Id: Ib8c0211c35e76ec46337c1e8807e381081755ad1
when app have flag BIND_ABOVE_CLIENT, max adj will be unuseful
system can not limit process adj through max adj, this happen
frequently in various app
Bug: 262672210
Change-Id: I5fa9ea8f573b41899f1e78f8f3fd57aa687b4b12
the flags for
1. routes processing, which will include deduplicate device
id and apply application routes listing preference.
2. device status allow checking the flags or status of routes and show
corresponded status in the subtext of device.
both of flags will only take effect on android U.
Test: N/A
Bug: 261538825
Change-Id: If1b2134136bef715629de81531f9a3d64812fb42
Increases animation asset size in BiometricPrompt, sets BP width to 560dp, and modifies DT->LT color mapping for better visibility
Test: (manual) Open BP, observe new animation size, dialog width, and LT colors
Fixes: 260015824
Change-Id: I6890058668b570ee3c73debdd00f31d78d26b3b1
The exitSplit called while we launch the same split pair caused
it cannot enter split successful then lead to tests failed.
Add check isEnteringSplit check for that exitSplit.
Fix: 262595710
Test: atest NexusLauncherTests
Change-Id: I8666476ff76e3912542d30441b144c67baed9f38