Commit Graph

1739 Commits

Author SHA1 Message Date
Jorge Gil
bc425d503d Merge "Add WCT#setDragResizing to optimize fluid resizing" into tm-qpr-dev am: 1f17bf7eba am: f28339c869
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20378671

Change-Id: I3cdea614c657c696c551d31672b215cb80eeb789
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-14 22:24:21 +00:00
Jorge Gil
1f17bf7eba Merge "Add WCT#setDragResizing to optimize fluid resizing" into tm-qpr-dev 2022-11-14 21:09:24 +00:00
TreeHugger Robot
69e66c663d Merge "Reland "Extand the long press duration"" 2022-11-14 19:33:40 +00:00
Ats Jenk
0942d7786b Merge changes I1d593900,I179c69c1 into tm-qpr-dev am: 2d7fb7b2b5 am: 83ec5817f6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20428903

Change-Id: I77c8b2c4ecba4408c88cae5e5c4e91524aefe783
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-14 18:43:23 +00:00
Ats Jenk
2d7fb7b2b5 Merge changes I1d593900,I179c69c1 into tm-qpr-dev
* changes:
  Move home task behind visible task
  Move desktop mode logic out of ShellTaskOrganizer
2022-11-14 18:27:15 +00:00
Sam Dubey
10904780f2 Merge "Disable inernal app before running tests" 2022-11-14 16:42:27 +00:00
Cosmin Băieș
fc03fbd025 Merge changes from topic "revert-20437706-revert-20313761-IME tracking - hide-HZXGDCCPOZ-XOCVITMXNR"
* changes:
  Revert^2 "Input latency & reliability tracking - hide flow"
  Revert^2 "Input latency & reliability tracking"
2022-11-14 14:36:36 +00:00
Jerry Chang
026d936ec3 Merge "Make multi-instances split opt-in based" into tm-qpr-dev am: 1e20bf871c am: 018d33893a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20295364

Change-Id: I16be9c0ce748743b4e90ed4d1c69c735439d4b24
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-14 14:23:46 +00:00
Sam Dubey
261cc40187 Disable inernal app before running tests
Debuggable reamdump data collection dialog is triggering up while
running tests. These are causing flakes. While a better fix would be
figuring out why these are triaggered, the wm tests should be
independent of internal apps which an end user of Android won't see.

Test: Forrest
Bug: 258578781
Bug: 239384214
Change-Id: Ia4c0c670fe3e35f84640787cb8fce70e74edb264
2022-11-14 13:34:59 +00:00
Jerry Chang
1e20bf871c Merge "Make multi-instances split opt-in based" into tm-qpr-dev 2022-11-14 13:29:46 +00:00
Chilun Huang
2c85bb7cd6 Reland "Extand the long press duration"
This relands commit 8dc06e5335

The Different from the original patch:
Ignore the layers of popup windows.

The original CL description:
Align the long press duration to AutomationUtils.

Bug: 257099231
Bug: 258787797
Test: atest WMShellFlickerTests:CopyContentInSplit
Change-Id: I391e0e4e71aa0ae13221ecd571e187e1c10f7c96
2022-11-14 20:31:35 +08:00
TreeHugger Robot
5b48b2839c Merge "Revert "Extand the long press duration"" 2022-11-14 12:11:28 +00:00
Arthur Hung
f322cbd5cc Rephrase BackAnimationController and BackAnimationRunner
This CL did some refactors include:
- Make the back animation will follow these two phases to better
  understand.
  1. Phase 1 animation will start from gesture start, and end when
     gesture released.
  2. Phase 2 animation aka post commit animation will start after gesture
     released.
  3. When the animation is finished, make sure we could trigger the real
     back behavior and notify the core.

Bug: 238475694
Test: atest BackAnimationControllerTest
Change-Id: I251b9674a4aa9965c338ccf592efaeabdcecd5e8
2022-11-14 02:45:29 +00:00
Evan Rosky
d13c6637cc Merge "Revert^4 "Enable Shell Transitions"" 2022-11-11 23:31:28 +00:00
Victor Chang
db82b37998 Revert "Extand the long press duration"
This reverts commit 8dc06e5335.

Reason for revert: b/258787797

Bug: 258787797
Change-Id: I417939d7d9f0344e4f260703cac9929d1e0633d1
2022-11-11 14:54:07 +00:00
Cosmin Băieș
44ff0dd9eb Revert^2 "Input latency & reliability tracking - hide flow"
d638a60aae

Test: atest CtsSystemApiSignatureTestCases:android.signature.cts.api.system.SignatureTest#testRuntimeCompatibilityWithCurrentApi
Change-Id: I1ee7224b40fa3f4b744311eb4145fa13a87d835a
2022-11-11 12:22:55 +01:00
Chilun Huang
518b394962 Merge "Extand the long press duration" 2022-11-11 09:11:45 +00:00
Wei Sheng Shih
827093037e Merge "Generalize back animation and transition sequence..." 2022-11-11 06:42:49 +00:00
wilsonshih
da90308633 Generalize back animation and transition sequence...
for both shell and legacy transition system.

The general sequence will be:
1. Create animation leash in core, pass to remote animation runner.
2. Remote animation finish, collect finish transaction before
transition happen. Apply finish transaction here if back event won't
trigger.
3. Check whether next transition is triggered from back gesture via
checking the open/close targets.

The 3rd step introduce another change, which to let the back transition
happen. Instead of consume next transition, we should try to find out
whether the participant was the animation target, because we cannot
assume what the opening target will do in resume stage. For example,
the opening activity could finish itself, or start another activity at
onResume, so in either case, the opening activity will become closing
activity. We can only ensure that activity will participant in next
transition.
So the more robust way should be, find out those targets which were
animated. For shell transition, and add a flag to the corresponding
change, then the transition handler can determine what to do based on
the targets. For legacy transition, ignore those targets when estimate
the transition type in AppTransitionController#getTransitCompatType.

Bug: 238474994
Bug: 131727607
Test: varify transition can be handled for some unexpected scenario:
  1. launch new activity when close app.
  2. launch singleInstance activity when close app.
Test: do back gesture on both shell/legacy transiton system, verify
no flicker happen whenever the back is triggered.

Change-Id: I9364be25c608f7b5797577d26b57bc7d6f2dde9c
2022-11-11 03:11:22 +00:00
Jorge Gil
5a95db047e Add WCT#setDragResizing to optimize fluid resizing
Allows WM Shell to indicate the start/end of drag resizing, which
core can use as a signal to reuse a single (larger) surface size
for the entire drag resize operation to avoid continuous buffer
allocations after each size change.

Bug: 249808500
Test: drag resize a freeform window, verify WindowLayout requests
a fullscreen sized surface; atest TaskPositionerTest

Change-Id: I27e2b44270d7ea4f701fa8037f93b20dc691284b
2022-11-11 00:48:49 +00:00
Evan Rosky
cc23c1824d Revert^4 "Enable Shell Transitions"
324b674209

Change-Id: Iff47a8ee6bc971435dbc7acad0dbf790ef9b822a
2022-11-10 21:14:48 +00:00
Cosmin Băieș
1619482379 Revert^2 "Input latency & reliability tracking"
1f4fd2d21e

Change-Id: I096456e9cd7449836b373ff392f2e9df58b3e661
2022-11-10 17:53:07 +01:00
Pascal Mütschard
581fdec050 Merge changes from topic "revert-20313761-IME tracking - hide-HZXGDCCPOZ"
* changes:
  Revert "Input latency & reliability tracking"
  Revert "Input latency & reliability tracking - hide flow"
2022-11-10 13:22:35 +00:00
Pascal Mütschard
1f4fd2d21e Revert "Input latency & reliability tracking"
Revert submission 20313761-IME tracking - hide

Bug: b/258637227
Reason for revert: Breaks CtsSystemApiSignatureTestCases android.signature.cts.api.system.SignatureTest#testRuntimeCompatibilityWithCurrentApi
Reverted Changes:
Icf9ab3fc0:Input latency & reliability tracking - hide flow
I1096564d5:Input latency & reliability tracking - hide flow
I14e009250:Input latency & reliability tracking - hide flow
Ic32e36b2d:Input latency & reliability tracking
I56f96dc6b:Input latency & reliability tracking
I73dec2e9e:Input latency & reliability tracking

Change-Id: Ia376a1624fb6abf937eb2a335aa75cb3ca9831d8
2022-11-10 13:11:27 +00:00
Pascal Mütschard
d638a60aae Revert "Input latency & reliability tracking - hide flow"
Revert submission 20313761-IME tracking - hide

Bug: b/258637227
Reason for revert: Breaks CtsSystemApiSignatureTestCases android.signature.cts.api.system.SignatureTest#testRuntimeCompatibilityWithCurrentApi
Reverted Changes:
Icf9ab3fc0:Input latency & reliability tracking - hide flow
I1096564d5:Input latency & reliability tracking - hide flow
I14e009250:Input latency & reliability tracking - hide flow
Ic32e36b2d:Input latency & reliability tracking
I56f96dc6b:Input latency & reliability tracking
I73dec2e9e:Input latency & reliability tracking

Change-Id: I0d0ce41e3a4f0d19ff482c2f5ab4884b5f758134
2022-11-10 13:11:27 +00:00
Cosmin Băieș
36d3884041 Merge changes from topics "IME tracking - hide", "IME tracking"
* changes:
  Input latency & reliability tracking - hide flow
  Input latency & reliability tracking
2022-11-10 10:19:00 +00:00
Chilun Huang
8dc06e5335 Extand the long press duration
Align the long press duration to AutomationUtils.

Bug: 257099231
Test: atest WMShellFlickerTests:CopyContentInSplit
Change-Id: Ic54df7aa6b0d9236728285dffea7012487ac33df
2022-11-10 16:26:56 +08:00
Ats Jenk
4383e8e45a Move home task behind visible task
When switching to desktop mode, move home task behind visible task(s).
This ensures that only the visible task is shown at first on the
desktop.

Bug: 258282673
Test: atest DesktopModeControllerTest
Change-Id: I1d593900789846d8389decaddbaf92eb4a1d6e87
2022-11-09 17:00:12 -08:00
Ats Jenk
fc55874607 Move desktop mode logic out of ShellTaskOrganizer
Expose list of running tasks per display from ShellTaskOrganizer.
This allows us to move desktop mode related logic out from
ShellTaskOrganizer and to DesktopModeController.

Bug: 258282673
Test: atest DesktopModeControllerTest ShellTaskOrganizerTests
Change-Id: I179c69c185153a07de3602627ed18734420abda2
2022-11-09 16:33:49 -08:00
Shan Huang
1c3bad41cc Merge "Add OWNERS for back navigation files in WMShell." into tm-qpr-dev am: 5b1020a99d am: a1253ca231
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20425870

Change-Id: I9976e92ff40650ef9128a4c192c8aa2a1d2c7bd5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-09 23:52:51 +00:00
Shan Huang
5b1020a99d Merge "Add OWNERS for back navigation files in WMShell." into tm-qpr-dev 2022-11-09 22:56:36 +00:00
Shan Huang
c959ca1cee Add OWNERS for back navigation files in WMShell.
Bug: 236760237
Test: N/A
Ignore-AOSP-First: No merge branch from AOSP

Change-Id: I601b42aca55c14aaa9c1f337e57c157861a2c9c0
2022-11-09 16:23:23 +00:00
Tony Huang
2c1b8c4dfb Merge "Reduce flicker for split resizing" into tm-qpr-dev am: 32c9995560 am: 1c0bfee2c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20351769

Change-Id: Ia23249e31287f2298470864e8744a6d7840e6ceb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-09 04:49:31 +00:00
Jerry Chang
15f43b5399 Make multi-instances split opt-in based
Split screen was by default launching multi-instnaces if users launch
the same component into both sides of the split. This limited the
behavior to packages declaired in
config_componentsSupportMultiInstancesSplit.

Bug: 255224696
Test: atest SplitScreenControllerTests
Test: atest WMShellFlickerTests
Change-Id: I6b03007859b37f60d5e7789142462ff26e1c7b8f
2022-11-08 08:55:14 +00:00
Evan Rosky
c6d79d2383 Merge "Revert^3 "Enable Shell Transitions"" 2022-11-08 00:01:41 +00:00
Evan Rosky
324b674209 Revert^3 "Enable Shell Transitions"
37ebac3d4a

Change-Id: Iae588a3579568f2f554cfb66bc243f972fa2ea37
2022-11-07 22:06:58 +00:00
Evan Rosky
80dff08040 Merge "Revert^2 "Enable Shell Transitions"" 2022-11-07 19:13:27 +00:00
Cosmin Băieș
553cb171de Input latency & reliability tracking - hide flow
Test: filter logcat for ImeTracker tag, open some apps with IME connection (e.g. Dialer, Messaging, etc.) and close the soft keyboard, check that tracking reflects observed behaviour
Change-Id: Icf9ab3fc0f7a7116456c13328d22f8b8428a0c79
2022-11-07 17:49:47 +01:00
Cosmin Băieș
6756327922 Input latency & reliability tracking
Test: filter logcat for ImeTracker tag, open some apps with IME connection (e.g. Dialer, Messaging, etc.), check that tracking reflects observed behaviour
Change-Id: I73dec2e9e2d5f919c7a006828ee0b12a998fc7d9
2022-11-07 17:49:41 +01:00
Tony Huang
1974fa7a76 Reduce flicker for split resizing
Using screenshot fading out to reduce split resizing flicker caused
by content changed immediatly.

Bug: 245241787
Test: manual
Test: pass existing tests
Change-Id: I1949bffb6f9ddae78998eb90c1b5d469280b75ed
2022-11-07 17:21:32 +08:00
TreeHugger Robot
04f130ff09 Merge "Fix splitscreen test: SnapToDismiss" into tm-qpr-dev am: 6cc66e4581 am: 8960819a0b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20348773

Change-Id: I69536773fc1e928858f7c51b8ab2e953d2f4cf3a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-06 16:55:47 +00:00
TreeHugger Robot
6cc66e4581 Merge "Fix splitscreen test: SnapToDismiss" into tm-qpr-dev 2022-11-06 15:52:52 +00:00
Jeff Chang
b44a40442b Fix splitscreen test: SnapToDismiss
The test cases verify onSnappedToDismiss callbacks properly invoked
when the snap target indicates dismissing split. The callback is
invoked more than once since the start position is the same as the
end position when flingDividePosition is invoked. This CL updates
the current position to make sure the callback is invoked once.

Bug: 257348773
Test: atest SplitLayoutTests
Change-Id: I5742d3db1ab6d5c80c4b4ffa1a9465655c73ab11
2022-11-04 14:37:41 +08:00
Mady Mellor
cd84f3b368 Merge changes from topic "mm_remove_floating_tasks" into tm-qpr-dev am: 33a70394ca am: cd622f17c4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20345965

Change-Id: I01118102b1edcccd1f0e4cb62b7442026149ce0c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-04 00:58:51 +00:00
Mady Mellor
33a70394ca Merge changes from topic "mm_remove_floating_tasks" into tm-qpr-dev
* changes:
  Add a flag for the bubble bar
  Remove FloatingTaskController & replace usages with Bubbles
2022-11-03 22:48:32 +00:00
Mady Mellor
46faccde4a Remove FloatingTaskController & replace usages with Bubbles
Switch to using newly exposed method Bubbles#showAppBubble as what
FloatingTaskController does is no longer POR.

Calling this allows 1 bubble from a specific app to be added to the
stack. The only user of this method is NoteTaskController which is guarded by the NOTE_TASK.

Bug: 237678727
Test: treehugger
Change-Id: I47c5c010a050796eff848ba3fcabc40cf5fbd902
2022-11-02 10:01:32 -07:00
Jerry Chang
23f1e2836d Add sub owner to common/split and tests
Ignore-AOSP-First: no merge branch from AOSP
Test: n/a
Bug: 207582920
Change-Id: I46cc309b2453296910c8516cffd2b5b352376b01
Merged-In: I46cc309b2453296910c8516cffd2b5b352376b01
2022-11-02 12:35:40 +00:00
Chilun Huang
2bf00cccde Fix the case that the app doesn't exist
Missing the case that the app doesn't exist. This CL is to fix it.

Bug: 247997619
Test: atest WMShellFlickerTests:EnterSplitScreenByDragFromShortcut

Change-Id: Id9c8c4a41bc049d784a10d9e2720cf636c0ce769
2022-11-02 19:51:21 +08:00
Chilun Huang
55187ea6cc Merge "Add CUJ for dragging shortcut to split" 2022-11-02 02:47:37 +00:00
Jerry Chang
a2ceba2023 Merge "Add sub owner to common/split and tests" am: 05661cbbde am: 09ce361189 am: ed6134bea2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2280949

Change-Id: I9b1851e71d3d5ff7fa124cc059a79a3a55898c81
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-02 02:15:56 +00:00