Commit Graph

1348 Commits

Author SHA1 Message Date
Mady Mellor
116a6e0493 Merge "Fix launching bubbles from widgets" into sc-dev am: faee2e6b03
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14940550

Change-Id: Ib0a1d09296d050e400e0f61f14f08f0724e908e3
2021-06-15 16:09:04 +00:00
Mady Mellor
faee2e6b03 Merge "Fix launching bubbles from widgets" into sc-dev 2021-06-15 16:08:52 +00:00
Tony Huang
ab4130735c Merge "Using rotate split layout while split active" into sc-dev am: e59e08b8f2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14909655

Change-Id: If2ac1372047684bd0b6be3af3e2789ce2cd3879b
2021-06-15 06:59:05 +00:00
Tony Huang
e59e08b8f2 Merge "Using rotate split layout while split active" into sc-dev 2021-06-15 06:50:54 +00:00
TreeHugger Robot
4403e96123 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-06-15 04:39:23 +00:00
TreeHugger Robot
38e2f0e24a Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-06-15 04:19:43 +00:00
Bill Yi
6e42108257 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I766baecdbecccd89b0a1b0b0dfc5ad71aee83736
2021-06-15 02:39:50 +00:00
Bill Yi
1729ea4c88 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iab4b9ceaa274a0914f294e71d8fc56f99bd6c87d
2021-06-15 02:38:26 +00:00
TreeHugger Robot
fe162aa552 Merge "Settings Switch animation jank while enabled One-handed mode" into sc-dev am: e796dc88bd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14947950

Change-Id: Ic86a5baf33d7e029bb837e73a21deb9059b11321
2021-06-15 01:54:46 +00:00
TreeHugger Robot
e796dc88bd Merge "Settings Switch animation jank while enabled One-handed mode" into sc-dev 2021-06-15 01:37:34 +00:00
Mady Mellor
e57920820e Fix launching bubbles from widgets
There were a couple of issues:
1) onActivityRestart wasn't checking for bubbles in the overflow
   so there were cases where we could open a bubble but weren't
2) delay opening the bubble until after the transitions have
   happened when launching from a widget, the transition could
   alter the placement of the bubble's surface resulting in
   weird UI.

Test: atest LaunchConversationActivityTest
Test: manual 1) have a bubble & convo widget for it
             2) tap on the widget => bubble opens normally, close
                the bubble & repeat that a bunch

             1) have an unopened bubble & convo widget for it
             2) get enough bubbles to push it out of the stack &
                out of the overflow
             3) tap on the widget => bubble opens

             1) have a bubble & convo widget for it, dismiss bubble
             2) tap on the widget => bubble opens normally
Bug: 188306336

Change-Id: Id68ccbfbfc6fc6949cfc257df4706b470fb78569
2021-06-14 18:25:25 -07:00
Bill Lin
61766a732c Settings Switch animation jank while enabled One-handed mode
Switch is CompoundButton(View) and animating position when user
tap on it. Unfortunatly when set overlay pakcage enabled, Switch
componet will invoke onLayout() and cancelPositionAnimator(),
that result the UX feel jank.

We add a delay(250ms) before execute runtime resouce overlay
to ensure the widget animation finished first.

Test: Manual Settings > Gesture > One Handed Mode > Tap Switch
Bug: 190584055
Change-Id: Ia42fdf3ed699afd51c154cb0a53581ef67959c71
2021-06-15 05:15:44 +08:00
Jorge Gil
b1d7465e29 Merge "Remove duplicate call to update PIP bounds on PIP expand" into sc-dev am: d3cc960edf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14681779

Change-Id: I15d962b0c0c292cc72ec4ba3cf8dce79893ee3be
2021-06-14 15:10:29 +00:00
Jorge Gil
d3cc960edf Merge "Remove duplicate call to update PIP bounds on PIP expand" into sc-dev 2021-06-14 14:58:33 +00:00
Selim Cinek
b77c0a3d8a Merge "Always do the app reveal animation when dismissing the splash screen" into sc-dev am: bfa0487b7a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14934416

Change-Id: Id5d4519dd0c96ee044a31c5ecac97cfd644d5cc5
2021-06-14 08:19:26 +00:00
Selim Cinek
bfa0487b7a Merge "Always do the app reveal animation when dismissing the splash screen" into sc-dev 2021-06-14 08:02:08 +00:00
TreeHugger Robot
ba69e6175a Merge "Skip onMovementBoundsChanged when waiting for fixed rotation" into sc-dev am: fe8d6de401
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14939513

Change-Id: I4e0179afae3cee599f69e5d9c122bbe4223ebb9e
2021-06-12 18:34:45 +00:00
TreeHugger Robot
fe8d6de401 Merge "Skip onMovementBoundsChanged when waiting for fixed rotation" into sc-dev 2021-06-12 18:13:50 +00:00
Cyrus Boadway
378e1f28d4 Merge "Include splashscreen background color in new starting window listener" into sc-dev am: 7deb3ba4d4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14881305

Change-Id: I0cb2815e926a55032637caf585a63c634d868ee5
2021-06-12 17:27:27 +00:00
Cyrus Boadway
7deb3ba4d4 Merge "Include splashscreen background color in new starting window listener" into sc-dev 2021-06-12 17:14:49 +00:00
TreeHugger Robot
969f8d5ad1 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-06-11 17:08:26 +00:00
jorgegil@google.com
e5f4c32ce8 Remove duplicate call to update PIP bounds on PIP expand
Remove the callback to update bounds in
resizeAndAnimatePipUnchecked because:
1. animateResizePip already attaches a callback to update the
bounds state in onAnimationEnd
2. it updates the bounds too early before finishResize() is
called, which causes finishResize() to not know the pre-resize
bounds needed to perform the crossfade animation

Bug: 188829986
Test: enter PIP with seamless resize turned on, double-tap to
expand and unexpand, crossfade animation looks right

Change-Id: Id64222fe762b4db0d9ea739db434e8e6acb0b31a
2021-06-11 09:45:39 -07:00
Cyrus Boadway
e830abcc75 Include splashscreen background color in new starting window listener
Pass the starting window background color to starting window listeners.

Bug: 187706750
Test: Manual
Change-Id: I729df4afbf75540a60c6f2e288de80fc0b6d97dd
2021-06-11 10:07:15 +00:00
Bill Yi
16c7313b76 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I466f05e4a637e2b0a8e283e391d6aefaac9d6223
2021-06-11 09:53:59 +00:00
Bill Yi
4162039d32 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I984dc4628334c519511ea9bad6b63006cebf4e40
2021-06-11 09:52:41 +00:00
wilsonshih
192aef77d7 Always do the app reveal animation when dismissing the splash screen
Let empty-style splash screen do reveal animation.
Also remove the extra animation duration if the icon is empty.

Bug: 190695897
Bug: 190695665
Test: manual
Test: atest SplashscreenTests
Change-Id: I8b3b52369c12fbddc32af8c40f37650cc84a88dd
2021-06-11 11:34:33 +08:00
Jerry Chang
7b8f6bf5b2 Merge "Keep the task in main stage at top after dismissed split due to fold" into sc-v2-dev 2021-06-11 03:29:00 +00:00
Jerry Chang
11a26a5665 Merge "Fix not updating split bounds after devices unfolded" into sc-v2-dev 2021-06-11 03:26:28 +00:00
Ben Lin
e9d456b056 Merge "PiP: Introduce PipTransitionState." into sc-v2-dev 2021-06-10 21:45:25 +00:00
Hongwei Wang
48a0820666 Skip onMovementBoundsChanged when waiting for fixed rotation
When entering PiP from landscape mode with non-default aspect ratio, the
onMovementBoundsChanged callback will try to reset the surface with the
default bounds. Skip it if we are waiting for fixed rotation to be
completed, similar to the exiting swipe-pip-to-home check.

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/cTmovQdIAyqu5rCrJGtf0q
Bug: 190651955
Test: follow the reproduce steps, see video
Change-Id: I71a427351f5e080b4307ebe0a30659a3617d4a58
2021-06-10 12:36:09 -07:00
Jerry Chang
825e8efc2f Keep the task in main stage at top after dismissed split due to fold
Fix: 189333036
Fix: 189723946
Bug: 188010345
Test: atest WMShellUnitTests
Test: trigger staged split, the task in main stage will remain at top
after dismissed split due to fold.

Change-Id: If2a795bed7073efcea70129e62aacdaad3efa602
2021-06-10 09:34:16 +00:00
Jerry Chang
2af1cde04d Fix not updating split bounds after devices unfolded
When the default display changed due to unfolded the device, the split
root tasks might be changed to invisible before reporting display info
changed to split component. This causing the split component didn't
update split layout due to the divider bar is not "initialized" after
released with stage roots changed to invisible.

This makes sure to update split layout while the split is activated no
matter the divider bar is initialized or not.

Fix: 189726605
Test: atest WMShellUnitTests
Test: check the split bounds updated properly after the device unfolded.
Change-Id: I722b08116a97b8482ea6e25b60ffe71005076cd7
2021-06-10 09:30:11 +00:00
Tiger Huang
be91de455b Merge "Defer dispatching insets to app if its window frame will be changed soon" into sc-dev am: 50ae7cbf1b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14881021

Change-Id: I7377340b7fedc22df682ffbd9675fc5109a506a3
2021-06-10 08:13:42 +00:00
Tiger Huang
50ae7cbf1b Merge "Defer dispatching insets to app if its window frame will be changed soon" into sc-dev 2021-06-10 07:55:53 +00:00
Mady Mellor
6de08c6165 Merge "Collapse the stack on clicks rather than on down" into sc-dev am: fd4a4a3ee5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14850318

Change-Id: I5705a6db65605c7b3c7ecba0164aa7c959891cd3
2021-06-09 18:05:26 +00:00
Winson Chung
a9e03e665d Merge "Fix for IME exclusions not working with expanded bubble" into sc-dev am: 24de1aa861
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14912906

Change-Id: Id2dc2b634af4609b4b9b8f102ca4f17247c6f032
2021-06-09 18:04:25 +00:00
Mady Mellor
fd4a4a3ee5 Merge "Collapse the stack on clicks rather than on down" into sc-dev 2021-06-09 17:46:55 +00:00
Winson Chung
24de1aa861 Merge "Fix for IME exclusions not working with expanded bubble" into sc-dev 2021-06-09 17:35:35 +00:00
Winson Chung
9f6c43e65c Fix for IME exclusions not working with expanded bubble
- Technically the IME window is above the Bubble window, but when
  traversing the windows top-down for calculating the final exclusion
  region for SysUI, the IME is placed just above its target (the
  embedded task), and the Bubble's full touchable region effectively
  overrides the IME's requested exclusion region

Fixes: 190338512
Test: Expand a bubble, swipe from IME edge
Change-Id: Idd71eabfaba1be4bc6fc90d09db28d3f9e9106c5
2021-06-09 17:34:58 +00:00
Riddle Hsu
890099cb20 Merge "Fix inverted vertical offset of entering rotated PiP" into sc-dev am: 7f38c6c3a4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14881023

Change-Id: Ie035c1bdb3cd8e4069874c08a7c1e219023725ec
2021-06-09 17:07:25 +00:00
Riddle Hsu
7f38c6c3a4 Merge "Fix inverted vertical offset of entering rotated PiP" into sc-dev 2021-06-09 16:51:34 +00:00
Wei Sheng Shih
73dea90ad5 Merge "Return default value safely without throw out exception." into sc-dev am: 7ab80ae74f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14891911

Change-Id: Ic104f998626774e52363d102c87296bc6dc4b40f
2021-06-09 10:41:25 +00:00
Tiger Huang
7be2a4c964 Defer dispatching insets to app if its window frame will be changed soon
If the frames of insets source window and the frame of an app window
are changed in the same layout pass, we should dispatch the insets
calculated from the new insets source frames and the new app window
frame. So when the app frame is not up-to-date, we defer dispatching
insets to the app.

Fix: 160732586
Test: Add logs to check if we dispatch the correct insets to apps while
      rotating the display.
Change-Id: Ic9e71d8eabde51067b740b35404ae7c9b68228d7
2021-06-09 15:52:39 +08:00
wilsonshih
661a5f0b01 Return default value safely without throw out exception.
Fixes: 190463685
Test: launch app and see no exception breaking the creation of
splash screen view.

Change-Id: Icae3b189068f074fdc061d0c510faceb024a26c6
2021-06-09 14:20:25 +08:00
Tony Huang
c5d4ac74c7 Using rotate split layout while split active
While startEnterSplit, if mRotateSplitLayout is exist then it
means we got rotation changed but still not update mSplitLayout
until onDisplayConfigurationChanged callback.

We should using mRotateSplitLayout on this case to ensure the
DisplayLayout is right.

Fix: 190028155
Test: close auto-rotation, open landscape app then
      enable split screen
Change-Id: I68cf0ca3d10ed500100af843e7ed5afdc090b8fc
2021-06-09 10:53:56 +08:00
Hongwei Wang
989ca8989b Merge "Polish round corner for auto-enter-pip" into sc-dev am: 628002c70c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14900574

Change-Id: I39b111613b6e50885d5db5e895ec482011a58dad
2021-06-09 02:06:00 +00:00
Hongwei Wang
628002c70c Merge "Polish round corner for auto-enter-pip" into sc-dev 2021-06-09 01:41:10 +00:00
Ben Lin
58b47f30e5 PiP: Introduce PipTransitionState.
This is extracted from PipTaskOrganizer and updated/used by both
TaskOrganizer and PipTransition.

Bug: 165793917
Test: Enter PiP with ENABLE_SHELL_TRANSITIONS flag on
Change-Id: Iebc70744f075112f47a3f1bec84311343acae24c
2021-06-09 00:32:45 +00:00
TreeHugger Robot
81b5e64d51 Merge "Include INTERACT_ACROSS_USERS_FULL for WmShell." into sc-dev am: 9e8cf0014e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14905218

Change-Id: I02ee6265bbdb527f6fd6d4aab584ab3034beb942
2021-06-08 22:31:23 +00:00
TreeHugger Robot
9e8cf0014e Merge "Include INTERACT_ACROSS_USERS_FULL for WmShell." into sc-dev 2021-06-08 22:29:59 +00:00