Commit Graph

1566 Commits

Author SHA1 Message Date
Mady Mellor
f25ecf8dfc Merge "Fix dismiss ciricle being behind expanded view" into sc-dev am: 563e1b4856
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14970151

Change-Id: If3794aeb4235008b7e09104e4e34b853c7d7f361
2021-06-15 16:21:40 +00:00
Mady Mellor
563e1b4856 Merge "Fix dismiss ciricle being behind expanded view" into sc-dev 2021-06-15 16:09:56 +00:00
Mady Mellor
500a18e02a 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: I69f23eae9d361d25d4aa22dd47ce56268361e7a3
2021-06-15 16:09:09 +00:00
Mady Mellor
faee2e6b03 Merge "Fix launching bubbles from widgets" into sc-dev 2021-06-15 16:08:52 +00:00
Tony Huang
751c068b24 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: If2177bc4f6c21d38efd5b647c57098a8a21443b2
2021-06-15 06:58:12 +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
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
bd1142c3a3 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: I6d1e56857d683f81aa05891cbd5853465cd8946f
2021-06-15 01:54:03 +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
Mady Mellor
be613e6a98 Fix dismiss ciricle being behind expanded view
- Need to give it an elevation
- Need to make sure to bring the bubble container
  in front of it so that they appear on top

Test: manual - have at least 2 bubbles, expand the stack, drag
               the bubble that is not expanded to the dismiss view
             => observe that the dismiss view is above the expanded
                view & below the bubble
Bug: 190478161
Change-Id: Ifbce49211b2342c3e197168af38f4c2ca9a1904b
2021-06-14 15:18:12 -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
101b82657f 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: I242ee2211975d8566069a56dead9656d2ff74e3e
2021-06-14 15:09:59 +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
3e62cd77b5 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: I4858516d5c5b9a1cb849fd34437666ed5a7392f4
2021-06-14 08:18:53 +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
783bb77e60 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: Idcb8b6d58087d435f68e43130c7355ac7b88c33b
2021-06-12 18:34:11 +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
046939e448 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: Ic0a629b3f7fd006fa3f9bdd38164b74209943bb8
2021-06-12 17:26:40 +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
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
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
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
Tiger Huang
d0c6024002 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: Icd7ace03da717ab1d9d98460c3b86a1b884c9192
2021-06-10 08:12:14 +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
302ab063ec 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: Ic6001c06bd9ef857554224f5559701b1675c6851
2021-06-09 18:03:45 +00:00
Winson Chung
63ab670350 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: Idcae736e4aa2cd8b1c433e635edb16783424d177
2021-06-09 18:03:29 +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
cf28b411bf 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: I617c5700a1b1c6b63b9c805dffd4f47ce4cbf760
2021-06-09 17:08:52 +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
5d33c39efb 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: Ib8c45743b4135b326386ee565506ed3257b5f21f
2021-06-09 10:39:54 +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
85889a4ff8 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: I9d6798160967a6d756afd298385ae3ff5a621653
2021-06-09 02:09:23 +00:00
Hongwei Wang
628002c70c Merge "Polish round corner for auto-enter-pip" into sc-dev 2021-06-09 01:41:10 +00:00
TreeHugger Robot
97be9ba937 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: I06580920e1a6c78cc002c6915599250f917ced1f
2021-06-08 22:36:30 +00:00
TreeHugger Robot
9e8cf0014e Merge "Include INTERACT_ACROSS_USERS_FULL for WmShell." into sc-dev 2021-06-08 22:29:59 +00:00
Mady Mellor
6c7a579dd7 Merge changes I6129aff7,I7e21ee87 into sc-dev am: 91ffe29918
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14804793

Change-Id: I5b164c337187a9f57ed4d178d745a2174309d89f
2021-06-08 21:21:01 +00:00
Mady Mellor
91ffe29918 Merge changes I6129aff7,I7e21ee87 into sc-dev
* changes:
  Fix dot & badge being on correct side for the first bubble added
  Fix the dot not showing when it should
2021-06-08 21:16:42 +00:00
Raymond Chiu
fcc9735574 Merge "Add feature to capture layer" into sc-dev am: a607768e98
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14625635

Change-Id: I2ec049489642f91dcc1f28d63084366ce4b2b701
2021-06-08 21:14:27 +00:00
Raymond Chiu
a607768e98 Merge "Add feature to capture layer" into sc-dev 2021-06-08 21:10:23 +00:00
Riddle Hsu
616537d0e2 Fix inverted vertical offset of entering rotated PiP
In rotated coordinates, the vertical and horizontal are
different directions. Otherwise the end of animation
doesn't match the destination position.

Bug: 175836469
Test: setSourceRectHint with non-zero left.
Change-Id: Ia5e282c0a1bab9cbf77e964b4a4bc8ea4514cfb9
2021-06-09 04:30:15 +08:00
Yuncheol Heo
907c7e820a Include INTERACT_ACROSS_USERS_FULL for WmShell.
- SplashscreenContentDrawer.ColorCache needs INTERACT_ACROSS_USERS_FULL
  to register the broadcast receiver.

Bug: 190516351
Test: Build Andorid Auto OS and check if CarLauncher is showing.
Change-Id: Ib0700a0f2ba1c31ffc60199a3aa8019961464efe
2021-06-08 13:18:28 -07:00
Hongwei Wang
6422ad45c9 Polish round corner for auto-enter-pip
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/b47ErxSscLnZl9clVncSY6
Bug: 187834841
Test: manual, see video
Change-Id: I59132ea50a3213a9caa2366c103fdddf642498e2
2021-06-08 13:13:39 -07:00