Commit Graph

14714 Commits

Author SHA1 Message Date
Jerry Chang
60c6fa7033 Merge "Make divider bar flings smoother when snap-to-dismiss split" into sc-v2-dev am: 70fb265591 am: 417621a2b1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15480930

Change-Id: I0f4c5d6a84acb73b870aa8bc8447185d2109ec5f
2021-08-09 14:29:17 +00:00
Jerry Chang
417621a2b1 Merge "Make divider bar flings smoother when snap-to-dismiss split" into sc-v2-dev am: 70fb265591
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15480930

Change-Id: Ic09439e999fe5b3ac55471eb719a81ef806fd05a
2021-08-09 14:19:32 +00:00
Jerry Chang
70fb265591 Merge "Make divider bar flings smoother when snap-to-dismiss split" into sc-v2-dev 2021-08-09 14:06:59 +00:00
Derek Sollenberger
2e40e7065a Merge "CanvasContext::draw: flushAndSubmit when not drawing" into sc-dev am: 1171be085c am: 973eac4b05 am: d366f1bb4e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15481327

Change-Id: I87e90803ca32056a296c85b8243aa767f990bf0e
2021-08-09 13:34:29 +00:00
Derek Sollenberger
d366f1bb4e Merge "CanvasContext::draw: flushAndSubmit when not drawing" into sc-dev am: 1171be085c am: 973eac4b05
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15481327

Change-Id: I692ae8e5726d74e154d29ce9ebcda06a36d74e67
2021-08-09 13:21:47 +00:00
Derek Sollenberger
b27f52e4f7 Merge "CanvasContext::draw: flushAndSubmit when not drawing" into sc-dev am: 1171be085c am: 71417b2def
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15481327

Change-Id: Ia55f43fe9352699a06899088523ce0e8d7dccea6
2021-08-09 13:10:11 +00:00
Derek Sollenberger
71417b2def Merge "CanvasContext::draw: flushAndSubmit when not drawing" into sc-dev am: 1171be085c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15481327

Change-Id: Ib358836523b991308c88d9e008b0cf8f6a57f04a
2021-08-09 13:01:34 +00:00
Derek Sollenberger
1171be085c Merge "CanvasContext::draw: flushAndSubmit when not drawing" into sc-dev 2021-08-09 12:45:07 +00:00
Ben Lin
d9cd47039f Merge "PiP Transition: Only allow TRANSIT_PIP and TRANSIT_OPEN types for enter animation." into sc-v2-dev am: 4c06d013b5 am: e92a883d27
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15484574

Change-Id: I6e2edc13227f0ab93aa34298d50d02c93514cf06
2021-08-09 05:00:14 +00:00
Ben Lin
e92a883d27 Merge "PiP Transition: Only allow TRANSIT_PIP and TRANSIT_OPEN types for enter animation." into sc-v2-dev am: 4c06d013b5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15484574

Change-Id: I7454a870292fb72797c4b5b342e06d2cb268413a
2021-08-09 04:50:56 +00:00
Ben Lin
4c06d013b5 Merge "PiP Transition: Only allow TRANSIT_PIP and TRANSIT_OPEN types for enter animation." into sc-v2-dev 2021-08-09 04:36:54 +00:00
Jerry Chang
bc1eba66ec Make divider bar flings smoother when snap-to-dismiss split
Bug: 195699800
Test: dismissing stage split with divider bar will fling the divider bar
      smoothly to the edge of the screen before split been dismissed.

Change-Id: Ic3bb2d9bc6da82773b7818c70dc535a5cea8e437
2021-08-09 11:30:10 +08:00
Ben Lin
7fb1c306a6 PiP Transition: Only allow TRANSIT_PIP and TRANSIT_OPEN types for enter animation.
Bug: 165793917
Test: Enable Shell transition, run flicker tests for PIP
Change-Id: Ia6c77a71ebfb443dd3d6e54dc3cd19df5780379f
2021-08-06 22:48:00 +00:00
Andrii Kulian
58453202f0 Merge "Delete dependent TaskFragments in the same transaction" into sc-v2-dev am: f74b9ddc8a am: 8c7454e662
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15456821

Change-Id: Ib659a6e9fa08592da67a1706d894186881ff65f6
2021-08-06 21:23:05 +00:00
Andrii Kulian
8c7454e662 Merge "Delete dependent TaskFragments in the same transaction" into sc-v2-dev am: f74b9ddc8a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15456821

Change-Id: I5db565a10e287001cedfa66b30631e031c1f9077
2021-08-06 21:08:26 +00:00
Andrii Kulian
f74b9ddc8a Merge "Delete dependent TaskFragments in the same transaction" into sc-v2-dev 2021-08-06 21:01:39 +00:00
John Reck
6358dafcc7 Merge "Revert "Added crop rect to LayerDrawable to not crop TextureView..."" 2021-08-06 18:56:59 +00:00
Leon Scroggins III
7fbd0ad0f9 CanvasContext::draw: flushAndSubmit when not drawing
Bug: 195081399
Test: manual + dumpsys gfxinfo

CanvasContext::draw has some conditions under which it will not draw. We
still need to flushAndSubmit to free scratch memory if there were
texture uploads this frame.

Change-Id: I60d230cd36bed310a3155e4f1ca647c99c13c4cd
2021-08-06 13:42:49 -04:00
Garfield Tan
4417e600fa Merge "Add a minimal FreeformTaskListener" into sc-v2-dev am: 7e23f324dd am: 4140b2ee39
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15475655

Change-Id: Ic28799314d8643279c620a41702cb6c6f41471ae
2021-08-06 16:57:53 +00:00
Garfield Tan
4140b2ee39 Merge "Add a minimal FreeformTaskListener" into sc-v2-dev am: 7e23f324dd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15475655

Change-Id: I51add5776a23fe63978771aaa8a885b619289890
2021-08-06 16:44:04 +00:00
Garfield Tan
7e23f324dd Merge "Add a minimal FreeformTaskListener" into sc-v2-dev 2021-08-06 16:29:14 +00:00
Garfield Tan
9f2c659f1a Add a minimal FreeformTaskListener
WM team starts to remove functionalities that were made for unmanaged
tasks so take this step 1 to avoid regressions from this type of
changes.

Also remove UNSUPPORTED_WINDOWING_MODES because ShellTaskOrganizer can
handle all windowing modes now.

Bug: 192310211
Bug: 165794880
Bug: 165794636
Test: Maximize, drag and resize freeform windows.
Change-Id: If130b449fe6cf37c39f0e1424e4f23cdb2d33dd5
2021-08-06 16:25:14 +00:00
bsears
9df09ccff9 Revert "Added crop rect to LayerDrawable to not crop TextureView..."
Revert "Adds out parameters for crop rectangle and transform"

Revert "Add test to crop TextureView and verify if outer edge ha..."

Revert submission 15339442-1texelcrop

Reason for revert: Bisection identified these CLs as the likely cause of Droidfood blocking bugs b/195620803 and b/195637414

Bug: 195637414
Bug: 195620803

Reverted Changes:
If1f448a94:Added crop rect to LayerDrawable to not crop Textu...
Iefde6bdf7:Add test to crop TextureView and verify if outer e...
Icf0ee20e8:Adds out parameters for crop rectangle and transfo...

Change-Id: I3448ebe193f25de79d186ae705911d99da2cef2b
2021-08-06 15:18:26 +00:00
Jason Chang
bd349dd1d8 Merge "Fix one-handed mode tap app to exit doesn't work in factory boot" into sc-dev am: 20c38783c2 am: b7edaae151
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15472778

Change-Id: I6e9f55719a6122ecf9138eda80e23fbe32882325
2021-08-06 06:01:43 +00:00
Jason Chang
25fee64461 Merge "Fix one-handed mode tap app to exit doesn't work in factory boot" into sc-dev am: 20c38783c2 am: 09dc62ab62
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15472778

Change-Id: Ib53cf68e2362e11e0db87bd3d5787b4054c144b5
2021-08-06 06:01:20 +00:00
Jason Chang
b7edaae151 Merge "Fix one-handed mode tap app to exit doesn't work in factory boot" into sc-dev am: 20c38783c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15472778

Change-Id: I2bf121d0ce528eca6960d4bf3d9181fb76ba73bb
2021-08-06 05:48:23 +00:00
Jason Chang
09dc62ab62 Merge "Fix one-handed mode tap app to exit doesn't work in factory boot" into sc-dev am: 20c38783c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15472778

Change-Id: Ib9b3775291c76eb3f4237f85e84cf03e1f00132b
2021-08-06 05:47:59 +00:00
Jason Chang
20c38783c2 Merge "Fix one-handed mode tap app to exit doesn't work in factory boot" into sc-dev 2021-08-06 05:36:49 +00:00
Jason Chang
413ab9d586 Fix one-handed mode tap app to exit doesn't work in factory boot
Root cause:
1. Design change "tap app to exit" -> always being true, and settings
remove this option.
2. Tuning performance, due to 1, no longer listens to the key change,
so we remove the listener.

Solution:
Change getSettingsTapsAppToExit() API to return default TRUE.

Bug: 195629000
Test: Build ROM and factory-reset to test
Test: atest WMShellUnitTests
Change-Id: Id3c265258ed28f7e0aa54505c339671885d28fa7
2021-08-06 01:53:39 +00:00
Evan Rosky
4ab085aeb5 Merge "Differentiate seamless rotations in shell transitions" into sc-v2-dev am: 9751bc2fec am: e5e523416c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15388785

Change-Id: I00aae931ff43257abbe6454338ff4a18773b411c
2021-08-06 00:49:55 +00:00
Evan Rosky
e5e523416c Merge "Differentiate seamless rotations in shell transitions" into sc-v2-dev am: 9751bc2fec
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15388785

Change-Id: Idea3cb030118f0346113cea0dd8cf22d2ac19ef6
2021-08-06 00:32:50 +00:00
Evan Rosky
bc047eeedd Differentiate seamless rotations in shell transitions
Shell owns the whole display rotation animation now. So, we
can just provide enough information for it to decide when
seamless is requested/appropriate. The default behavior (when
not explicitly animating) is already a jump-cut/seamless, so
just skip the rotation animation if we are doing seamless

Bug: 194693472
Test: atest SeamlessAppRotationTest ShellTransitionTests
Change-Id: I64748f5910c04784fd9818818b029fa5f1339c6c
2021-08-05 10:11:52 -07:00
Andrii Kulian
e82c67504d Delete dependent TaskFragments in the same transaction
When finishing the last activity in a container that has dependent
containers, make sure to delete those in addition to just finishing
activities. This will ensure that containers with activities from
different apps will be properly cleaned up.

Bug: 195108809
Test: Launch a container to side with 'finishSecondaryWithPrimary'
configuration, finish the primary container with swipe from side.
Test: Do the above for activities in different apps.

Change-Id: I746055fd02894d8221cace10d556992e2dba31b5
2021-08-04 21:25:23 -07:00
Bill Yi
59d3be3444 Merge "Import translations. DO NOT MERGE ANYWHERE" 2021-08-05 01:36:33 +00:00
Ram Indani
3c9175f47d Merge "Added crop rect to LayerDrawable to not crop TextureView. Verified manually with ExoPlayer that TextureView isn't cropping." 2021-08-04 16:08:09 +00:00
Bill Yi
18bfc13c45 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I5441a7947e16c276fef74a0396621dd20e389cc2
2021-08-04 10:10:46 +00:00
Bill Yi
ee8f81d6b4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I682d240e086e7ea706c7a513b84e6e0e872b2365
2021-08-04 10:09:24 +00:00
Bill Yi
e0ddb23d3f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I415a4afa4d0a10a32a211de24b63c698a7d6cdc2
2021-08-04 10:07:45 +00:00
Andrii Kulian
9a6c91dc10 Merge "Intercept activity start requests in client organizer" into sc-v2-dev am: 94a6a10f90 am: 8a3e649655
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15411942

Change-Id: I375bb0707edfb319998bff3be95555b067076897
2021-08-04 02:57:28 +00:00
Andrii Kulian
8a3e649655 Merge "Intercept activity start requests in client organizer" into sc-v2-dev am: 94a6a10f90
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15411942

Change-Id: Ie5535035dc6fe2db01fc490b9c7aca18e87467d3
2021-08-04 02:43:26 +00:00
Andrii Kulian
94a6a10f90 Merge "Intercept activity start requests in client organizer" into sc-v2-dev 2021-08-04 02:23:59 +00:00
John Reck
4342391dd1 Merge "Remove NewWeakGlobalRef from RenderNode" 2021-08-03 22:29:33 +00:00
Andrii Kulian
94354a9a7f Intercept activity start requests in client organizer
This allows applying split rules to activity start requests for
different processes and covers APIs like 'startActivityAsUser',
not requiring app developers to use dedicated APIs to start to side
instead.

When the client organizer observes a new activity being started, it
creates a new TaskFragment first and modifies the activity start
options to target that container.

Bug: 194140227
Bug: 190433398
Test: Manual, using reference implementation and sample app.
Change-Id: Ice3de8ec725d327266ec38052129b4158608855e
2021-08-03 14:38:02 -07:00
ramindani
ef54c038e1 Added crop rect to LayerDrawable to not crop TextureView.
Verified manually with ExoPlayer that TextureView isn't cropping.

Test: Did the manual test and
atest TextureViewCameraTest
atest TextureViewSnapshotTest
atest TextureViewStressTest
atest TextureViewTest
atest PixelCopyTest
atest BitmapTest
atest HardwareBitmapTests

and with HwAccelerationTest
Added crop test at ag/15430851

BUG=152621633

Change-Id: If1f448a94908cbf51272bc0d1bbbe1e113fd15f3
2021-08-03 20:32:16 +00:00
Michael Ludwig
f19b1dfd60 Merge "Emulate replace clip ops using SkAndroidFrameworkUtils::ResetClip" 2021-08-03 19:52:16 +00:00
Winson Chung
0a5e07d0c7 Merge "Fix one more import for ContextThemeWrapper." into sc-v2-dev am: fa8944c1a2 am: 39326cd053
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15443607

Change-Id: I01a64f21e47c937f2b4128df057f5e66458c9aff
2021-08-03 18:37:24 +00:00
Winson Chung
39326cd053 Merge "Fix one more import for ContextThemeWrapper." into sc-v2-dev am: fa8944c1a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15443607

Change-Id: Ieff894252cffc4df4cd5110a16ccae614731d174
2021-08-03 18:25:27 +00:00
Winson Chung
fa8944c1a2 Merge "Fix one more import for ContextThemeWrapper." into sc-v2-dev 2021-08-03 18:08:42 +00:00
Michael Ludwig
70cf50c24a Emulate replace clip ops using SkAndroidFrameworkUtils::ResetClip
At the JNI bridge, Region::Op::kReplace_Op is detected and sent
to new functions on Canvas.h -> emulateReplaceClip[Rect|Path].
The SkiaCanvas implementation calls
SkAndroidFrameworkUtils::ResetClip to turn the SkCanvas' clip
wide open (modulo the device clip restriction), followed by
an intersect op with the actual clip geometry.

SkiaCanvas is also updated to record the replace ops in its
Clip struct for partial saves.

This should result in no visible behavioral change at the Java
Canvas level, but allows the removal of the
SK_SUPPORT_DEPRECATED_CLIPOPS flag.

Test: Updated SkiaPipeline.clip_replace unit test to use the new
  emulateReplaceClipRect function instead of SkClipOp::kReplace.
  Builds and recently added CTS tests for clip ops pass.
Bug: b/151725198
Bug: b/143352151
Change-Id: I8fb8765b4ead92bbe8eceadb52710a5673b6cf6b
2021-08-03 15:46:04 +00:00
Bill Lin
72d99a9351 Merge "Integrate SurfaceControl jank monitor for PIP transition" into sc-v2-dev am: fbb39c14c3 am: 6826296fa1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15222486

Change-Id: I9f989c1753474a825694bb742b138abb0bbdc97e
2021-08-03 07:31:30 +00:00