Commit Graph

6531 Commits

Author SHA1 Message Date
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
Jerry Chang
018d33893a Merge "Make multi-instances split opt-in based" into tm-qpr-dev am: 1e20bf871c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20295364

Change-Id: I86937369cbd3d309333fd10a9afd2669c866d81c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-14 13:51:16 +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
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
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
Riddle Hsu
33e735d76d Merge "Fix potential crash when exit splash screen" am: 18b88655a4 am: f1ecd46905 am: 3a15cfb3c3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2292500

Change-Id: Iafef0da764d3a49170cc9c52f839fc313184d9ce
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-10 13:44:18 +00: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
Riddle Hsu
3a15cfb3c3 Merge "Fix potential crash when exit splash screen" am: 18b88655a4 am: f1ecd46905
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2292500

Change-Id: I9f2c092b874bd071be7e7811a3f06090f6758208
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-10 13:05:28 +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
Riddle Hsu
f1ecd46905 Merge "Fix potential crash when exit splash screen" am: 18b88655a4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2292500

Change-Id: Ifb77c3bc08c7c56f518a93fa05168a68f4db7080
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-10 08:18:21 +00:00
Riddle Hsu
0270db12ea Merge "Skip setting surface start state of non app window" into tm-qpr-dev am: fe4355e71c am: 556b967007
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20409607

Change-Id: Ia7a992013f2254983d0c77497e8c96b24ef70950
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-10 02:54:45 +00:00
Riddle Hsu
556b967007 Merge "Skip setting surface start state of non app window" into tm-qpr-dev am: fe4355e71c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20409607

Change-Id: I4516e9cfd4c114011ee778d06c0184cf55bb0650
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-10 02:05:59 +00:00
Riddle Hsu
fe4355e71c Merge "Skip setting surface start state of non app window" into tm-qpr-dev 2022-11-10 01:38:27 +00: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
a1253ca231 Merge "Add OWNERS for back navigation files in WMShell." into tm-qpr-dev am: 5b1020a99d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20425870

Change-Id: I28a03e302bb0aee7c8de699355222bb0a73a1a53
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-09 23:20:46 +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
Jerry Chang
527084fac6 Merge "Enable shell split screen logging to diagnose not interactable divider" into tm-qpr-dev am: abee62b65c am: 8551ae1d52
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20403805

Change-Id: I6684bf3ea81721fc38f793717272d2c89d90ebeb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-09 11:45:12 +00:00
Jerry Chang
8551ae1d52 Merge "Enable shell split screen logging to diagnose not interactable divider" into tm-qpr-dev am: abee62b65c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20403805

Change-Id: Ifb274d4578f2cfbe74f1b22cbba193187bbadabd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-09 11:11:12 +00:00
Jerry Chang
abee62b65c Merge "Enable shell split screen logging to diagnose not interactable divider" into tm-qpr-dev 2022-11-09 10:52:03 +00:00
Shen Lin
1a797c714b Fix potential crash when exit splash screen
- Make sure mDecorView is attached before calling its
  WindowInsetsController.
- Amend modifier declare sequence for a better code style.

Bug: 258270145
Test: atest SplashscreenTests StartingSurfaceDrawerTests
Change-Id: I4d3b184252ed9516827812adfa0c76e07a6527e7
2022-11-09 18:39:15 +08:00
Bill Yi
5ac3a42e3b Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-11-09 06:15:57 +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
Tony Huang
1c0bfee2c2 Merge "Reduce flicker for split resizing" into tm-qpr-dev am: 32c9995560
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20351769

Change-Id: I4df4c8d004d5ddf1ab9db83f43153b91b3b0a965
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-09 04:17:47 +00:00
Tony Huang
32c9995560 Merge "Reduce flicker for split resizing" into tm-qpr-dev 2022-11-09 03:23:57 +00:00
TreeHugger Robot
5210b87c96 Merge "Remove old caption bar before adding a new one" into tm-qpr-dev am: c3322a827a am: bf299abaf0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20358384

Change-Id: I3e0cdcb1a6377700a73b002ae419d5a889f9d8ef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-08 20:32:14 +00:00
TreeHugger Robot
bf299abaf0 Merge "Remove old caption bar before adding a new one" into tm-qpr-dev am: c3322a827a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20358384

Change-Id: Iff49073cbedd2cf1cc253eeaab788c79bd8e8d63
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-08 19:57:23 +00:00
TreeHugger Robot
c3322a827a Merge "Remove old caption bar before adding a new one" into tm-qpr-dev 2022-11-08 19:48:40 +00:00
Riddle Hsu
0cf6a2a28d Skip setting surface start state of non app window
Currently wallpaper and IME don't have transition animation in
shell, and may not always change with transition. So skip all
operation of their surfaces to avoid unexpected crop or visibility.

Bug: 258156220
Test: Enable shell transition, swipe up landscape app.
Change-Id: I5b9b5183e664b85861a48048bc471349347446ce
2022-11-08 18:11:27 +08: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
Mady Mellor
9dc94dcda9 Merge "Fix an issue where the highlight for drag to split was incorrect" into tm-qpr-dev am: 61d495962f am: 30919118f9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20389925

Change-Id: I04e21f3c8901865ca895ed4c0315b4bd99d11617
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-07 18:12:24 +00:00
Mady Mellor
30919118f9 Merge "Fix an issue where the highlight for drag to split was incorrect" into tm-qpr-dev am: 61d495962f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20389925

Change-Id: I1042b767429ff7f9c1b181bce9332b7ca4076e27
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-07 17:36:13 +00:00
Mady Mellor
61d495962f Merge "Fix an issue where the highlight for drag to split was incorrect" into tm-qpr-dev 2022-11-07 17:14:56 +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