When available, set the animation leash crop to the start-bounds
rather than the end-bounds. Otherwise, for change transitions, there
is a small period of time (between when the leash is set-up and
when the app process receives the start-animation call) where
incorrect state can be drawn.
Bug: 136468446
Test: atest RemoteAnimationControllerTest.
With remote animator on mode change, maximize while taking
an sf trace. Check that anim-leash crop is set properly.
Change-Id: I4148980af1514b13455923db29876ffb3045ebcb
We don't want to launch tasks in freeform mode in fullscreen displays
only because they were in freeform mode before.
Bug: 135941344
Bug: 135780225
Test: Manual tests.
Test: atest WmTests:TaskLaunchParamsModifierTests
Change-Id: Ifd466d1e11c8131ecf1e587aeac6f2eba15f6432
We don't want to launch to fullscreen only because it's been launched on
a fullscreen display before. We should still restore the bounds when it
was on a freeform display last time.
Bug: 135941344
Bug: 135780225
Test: Manual tests.
Change-Id: I9f57651a01513652cc4c38c2d91d4c46db5c5d5d
Make sure not to process any requested PSS collections for a brief time
after an activity start is initiated, to reduce resource contention
during the launch.
Device config atom to configure:
ActivityManager/activity_start_pss_defer
Milliseconds; defaults to zero (PSS deferral policy disabled)
Bug: 133433769
Test: manual
Change-Id: Icf5cf2e3dde0bd5fd3ab9c4a85adfb1f3382057f
Holding on to a reference of the handle in Java will keep the server-side surface alive until
the reference is removed by GC. This may cause surfaces to be kept alive longer than necessary.
Instead hold on the surface control and call SurfaceControl#release which will release the local
reference to the server-side surface.
Bug: 136004147
Test: go/wm-smoke
Change-Id: Iff7d48ae1593cea2e188aa07c417f4c5a98887d5
Holding on to a reference of the handle in Java will keep the server-side surface alive until
the reference is removed by GC. This may cause surfaces to be kept alive longer than necessary.
Instead hold on the surface control and call SurfaceControl#release which will release the local
reference to the server-side surface.
Bug: 136004147
Test: go/wm-smoke
Test: gesture nav sanity tests
Test: atest CompositionSamplingListenerTest
Change-Id: Iab33680746c8f48c28783e6a2a13c9ac7ae04980
Updated all callers of SC.remove to use Transaction.remove(sc) and apply
immediately since that's the equivalent. Eventually, the transactions
that contain remove could combine with other transactions if it makes
sense to avoid duplicate applies.
Test: SurfaceControlTest
Change-Id: I13c6ec86de6a6d60f142c2269337557510dd006d
The CL fixes a crash in Layout.primaryIsTrailingPreviousAllLineOffsets.
The crash was happening when the method was called for a line beginning
with an empty bidi run. This could happen, for example, for empty text -
I was unable to find any other case. The CL improves the existing test
for the method with this case, which was previously crashing.
The CL also fixes a potential crash in getLineHorizontals. However, this
bug could never happen as in the current code path clamped is always
false (and kept as parameter for parity with getHorizontal).
Bug: 135444178
Test: atest FrameworksCoreTests:android.text.LayoutTest\#testPrimaryIsTrailingPrevious
Change-Id: I47157abe1d74675884734e3810628a566e40c1b4
am: f91d91320e -s ours
am skip reason: change_id I54fc4ca104cb451af847d7973fbffc7f0ed97c10 with SHA1 04be9d1972 is in history
Change-Id: Ib0f135d408c802558e85335b1745f656eb35d9b5
am: d6484d1144 -s ours
am skip reason: change_id I54fc4ca104cb451af847d7973fbffc7f0ed97c10 with SHA1 04be9d1972 is in history
Change-Id: Iaf5692410c863503c3042194e5719b27609ead23
am: 6a43c89dbb -s ours
am skip reason: change_id I6a5ba2439713105b25913ba8eb081abfaafd1a2e with SHA1 9c7fad9235 is in history
Change-Id: I20ba3873576045272fc30e0769842064041333e1
am: 5b25aba19f -s ours
am skip reason: change_id I54fc4ca104cb451af847d7973fbffc7f0ed97c10 with SHA1 04be9d1972 is in history
Change-Id: I58f8529e4efcd2e7586991a250d7a76160340e0d