Commit Graph

1224 Commits

Author SHA1 Message Date
TreeHugger Robot
e7de6181e0 Merge "Only resize the menu on hide if it was resized on show" into sc-dev am: 46e2f5974c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14649851

Change-Id: If5ef94ed33ea538cbd0baf24d940c783d1b09586
2021-05-20 19:52:03 +00:00
TreeHugger Robot
46e2f5974c Merge "Only resize the menu on hide if it was resized on show" into sc-dev 2021-05-20 19:31:26 +00:00
Mady Mellor
529e1cb06b Merge "Bubbles styling: Update colors to use new theme things" into sc-dev am: 9ac4fb0e34
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14508390

Change-Id: I897eafdccb9744d02b80916fe51adf060af0ea63
2021-05-20 16:45:11 +00:00
Mady Mellor
9ac4fb0e34 Merge "Bubbles styling: Update colors to use new theme things" into sc-dev 2021-05-20 16:32:14 +00:00
TreeHugger Robot
a3867cfaa7 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-20 14:07:43 +00:00
Bill Yi
8b426d12b3 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I73c3b5ee1590289835a2c5bbd43a953091f0a881
2021-05-20 11:09:23 +00:00
Wei Sheng Shih
ac8e94a0d3 Merge "Delete the delay for keeping tasksnapshot on screen." into sc-dev am: c56f67e7d9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14609912

Change-Id: I90d5f336826146ef7a15dc82ddbe3bd3c338b41b
2021-05-20 01:28:36 +00:00
Wei Sheng Shih
c56f67e7d9 Merge "Delete the delay for keeping tasksnapshot on screen." into sc-dev 2021-05-20 01:26:29 +00:00
Hongwei Wang
a6fb097906 Merge "Add test for move PiP upon Display change" into sc-dev am: c81fdf89d7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14647432

Change-Id: I37648d9b078ca6ccc6f4df4ec6d200eacdead46d
2021-05-20 01:19:16 +00:00
Hongwei Wang
c81fdf89d7 Merge "Add test for move PiP upon Display change" into sc-dev 2021-05-20 01:07:00 +00:00
Jorge Gil
a761bd8ec8 Merge "Skip finishResize for non-exit animation if PIP is about to exit" into sc-dev am: a2a52c1fed
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14627499

Change-Id: Id84f776c1f4c580d96c1008923f739d1ccb45291
2021-05-19 22:25:21 +00:00
Jorge Gil
a2a52c1fed Merge "Skip finishResize for non-exit animation if PIP is about to exit" into sc-dev 2021-05-19 22:19:41 +00:00
jorgegil@google.com
c109aa6e56 Only resize the menu on hide if it was resized on show
Fixes an issue where a max-size PIP is resized to the
user-resized size after either:
A) single-tap to show the menu and then it times out to hide
it, or
B) single-tap to show the menu and then single tap outside of
the PIP window
This was caused by the resize=true flag being passed into
PipMenuView.hideMenu() from the hide menu timeout runnable or
from PipResizeGestureHandler.onDragCornerResize()

Bug: 186616706
Test: enter PIP, then:
1) double-tap to MAX, then tap once to show menu and wait for
it to time out - verify it stays in MAX size
2) double-tap to MAX, then tap once to show menu and once
outside of PIP - verify it stays in MAX size
3) pinch-resize to minimum size, tap once, wait for it to
expand a bit, wait for the menu timeout - verify it resizes
down to the minimum size.

Change-Id: I394d49b77f2c6aa42fc4681ef5238c478a474b85
2021-05-19 14:27:59 -07:00
Hongwei Wang
ea24f4c7ab Add test for move PiP upon Display change
Bug: 184941272
Test: atest PipControllerTest
Change-Id: I61372311c0e81c7d6b5dedd49d48b3738b796585
2021-05-19 12:50:02 -07:00
Mady Mellor
b22e1ee6f9 Merge "Bubbles styling: flyout changes" into sc-dev am: 3952307a8c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14508389

Change-Id: I2b2f80c216079c423e44cf260ab7293eafe4590e
2021-05-19 18:39:12 +00:00
Mady Mellor
3952307a8c Merge "Bubbles styling: flyout changes" into sc-dev 2021-05-19 18:28:10 +00:00
Mady Mellor
1099d370ab Merge "Fix some sizes that weren't changing for font scale / display size`" into sc-dev am: 9f97f89342
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14508388

Change-Id: Ifdb49df9bddb903f4ebfbe89c9f1b53865d86029
2021-05-19 18:24:00 +00:00
Mady Mellor
9f97f89342 Merge "Fix some sizes that weren't changing for font scale / display size`" into sc-dev 2021-05-19 18:18:34 +00:00
wilsonshih
532c5a42fb Delete the delay for keeping tasksnapshot on screen.
Tasksnapshot window can block touch event so user may not able
to touch the screen after showing task snapshot. Remove the delay
so app window can response touch event as soon as possible.

Bug: 187227846
Test: atest TaskSnapshotWindowTest
Change-Id: I5fb0fa3a1e6a5e6210d3baf400a84c5892bd2e34
2021-05-19 14:54:01 +08:00
Chris Li
3a21aa0e12 Merge "Determine whether to support activities in multi window (9/n)" into sc-dev am: b9034aba83
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14606008

Change-Id: I50da1d7f277d070602140ae97fa128da8b205f53
2021-05-19 06:50:18 +00:00
Chris Li
b9034aba83 Merge "Determine whether to support activities in multi window (9/n)" into sc-dev 2021-05-19 05:47:41 +00:00
TreeHugger Robot
41d06f0f0a Merge "Update bubble user education screens to use proper colors" into sc-dev am: 4d225a0e3c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14628477

Change-Id: I6e21132b7eb1f0aec8a1e29e878e7b24340b8c01
2021-05-19 04:43:50 +00:00
TreeHugger Robot
4d225a0e3c Merge "Update bubble user education screens to use proper colors" into sc-dev 2021-05-19 04:36:06 +00:00
Hongwei Wang
a9b0f5e914 Merge "Do not move PiP upon Display change during exit" into sc-dev am: 21f0b70da5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14629573

Change-Id: Icbac2d003b0204f97c4489bea7bbec59a1d76094
2021-05-19 03:51:27 +00:00
Hongwei Wang
21f0b70da5 Merge "Do not move PiP upon Display change during exit" into sc-dev 2021-05-19 03:27:00 +00:00
TreeHugger Robot
e68d0dddad Merge "Take PIP snapshot in the shell and use bounds state size for crossfading" into sc-dev am: eea27600d3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14461846

Change-Id: Ied99573f2c8cfde669d1cb17504ac099689c1702
2021-05-19 01:07:25 +00:00
TreeHugger Robot
eea27600d3 Merge "Take PIP snapshot in the shell and use bounds state size for crossfading" into sc-dev 2021-05-19 01:06:32 +00:00
Jerry Chang
85337e28dd Merge "Fix not releasing touching state of the handle on divider bar" into sc-dev am: 6c2ffa9595
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14540393

Change-Id: If57753c912ecf57bed2dea095be6b7fc03e0fdd5
2021-05-19 00:16:20 +00:00
Jerry Chang
6c2ffa9595 Merge "Fix not releasing touching state of the handle on divider bar" into sc-dev 2021-05-19 00:08:08 +00:00
Jorge Gil
f18f6b626d Merge "Snap the PIP window to the left or right edge after pinch resize" into sc-dev am: 845205c00d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14607700

Change-Id: I18e2d88b16ad37ead63bdb990f3fcb07d13fb5ac
2021-05-19 00:07:15 +00:00
Jorge Gil
845205c00d Merge "Snap the PIP window to the left or right edge after pinch resize" into sc-dev 2021-05-18 23:44:26 +00:00
Hongwei Wang
9238955119 Do not move PiP upon Display change during exit
GMM with Morris triggers Display change when exit PiP to fullscreen mode
and this creates race condition results in bounds (caused by stable
insets) offset on the final app presentation.

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/bq5i3we32cd8pdxAmcIMzW
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/d4FYwZ8aBnGs4Jn5uQQZVj
Bug: 184941272
Bug: 186184696
Test: manual in both gesture and button nav, see videos
Change-Id: I8e694d441cdcc7f263eb86a11d1b64a844f14c02
2021-05-18 15:51:39 -07:00
Mady Mellor
bba5ed7765 Update bubble user education screens to use proper colors
Bug: 173562716
Test: visual - force user education to show & observe it on the
      stack and manage menu
Change-Id: I6988e2c433f17b69de4aed44c1af3bacb475caf9
2021-05-18 15:51:32 -07:00
Ben Lin
47d062f409 Merge "PiP: Add stash a11y support." into sc-dev am: 17af0292a8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14439415

Change-Id: I55da4a10278adf88c2ffc7d862e25cbf810a1159
2021-05-18 21:15:02 +00:00
Ben Lin
17af0292a8 Merge "PiP: Add stash a11y support." into sc-dev 2021-05-18 21:08:32 +00:00
Chris Li
30248a1952 Determine whether to support activities in multi window (9/n)
When a Task is detached but is still stored as a recent Task, it should
be allowed to launched into split screen.

Bug: 176061101
Test: atest WMShellFlickerTests:EnterSplitScreenFromDetachedRecentTask
Test: atest WmTests:RecentTasksTest
Change-Id: Ic72901ca76f4acb6e68926062675ecc290b399be
2021-05-18 21:07:52 +00:00
jorgegil@google.com
5e946e95ae Skip finishResize for non-exit animation if PIP is about to exit
This handles the case were exitPip is called while there is a
animateResize PIP ongoing, such the menu expand/unexpand animation.
When that was the case, the first finishResize was applied at the same
time as the exit WCT, resulting in bad frames at the end of the exit
animation.
This CL makes it so that the first finishResize is skipped if we
know exitPip is handling the exit and will eventually call its
own finishResize operation.

Bug: 185306679
Test: enter PIP with YT, tap on menu to show it and immediately
tap on the app launcher icon to expand PIP - verify the exit
transtion runs smoothly

Change-Id: Iac49f69cc698f1ac5d88fd408c204e2281b70ac7
2021-05-18 13:29:18 -07:00
jorgegil@google.com
ef11620ccf Snap the PIP window to the left or right edge after pinch resize
Restrict the PIP resize to the left and right edges only,
instead of allowing the top or bottom edges as snap targets.

Bug: 186610221
Test: pinch to resize and let go at the center top or bottom
edge - verify it snaps to either side of the screen

Change-Id: Ifbc96fddc000ccb2ae344755a9276f24e67d4571
2021-05-18 11:23:04 -07:00
Ben Lin
2806e2dc9b Merge "PiP: Move resetting mAllowTouches into scope of MenuView" into sc-dev am: debdf699e1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14607396

Change-Id: If4805fc48d01f82dbc922e707d408302ecbe86a7
2021-05-18 17:48:32 +00:00
Ben Lin
debdf699e1 Merge "PiP: Move resetting mAllowTouches into scope of MenuView" into sc-dev 2021-05-18 17:41:23 +00:00
Mady Mellor
367d8ea45f Bubbles styling: Update colors to use new theme things
- Bubble expanded view arrow is now based on backgroundColorFloating
- Bubble overflow expanded view also uses backgroundColorFloating
- Bubble overflow button uses colorAccentPrimary for the circle
  & a dark accent color for the '+' shape
- Manage menu uses colorSurface, had to rename the file bc sysui
  has a file with same name but different colour which was clobbering
  ours

Test: make a bubble & observe UI in light and dark mode, check
      the arrow in the expanded view, the overflow button & expanded
      state, and tapping on the manage menu
Bug: 183658029
Bug: 183658858
Change-Id: Iab5e5536036a8eaecd1c547e5dcfc9d4e77fe5d4
2021-05-18 10:00:38 -07:00
Mady Mellor
56b1e99d02 Bubbles styling: flyout changes
- no longer show a pointer with the flyout
- use the same color as the notifications
- increase the padding slightly

Test: manual - create some bubbles and observe the
        flyout
Bug: 183657745
Change-Id: I21ac5c1ce187e553e94ec41c81f9b43e8e914658
2021-05-18 10:00:19 -07:00
Mady Mellor
76fa21b5dc Fix some sizes that weren't changing for font scale / display size`
Test: manual - have some bubbles
             - change font & display size
             - add a new bubble
	     => ensure UI elements have changed size & match the size
	        of the new bubble (manage text, overflow empty statei
		text, pointer size, manage menu contents)
Bug: 160284881
Change-Id: I2de45ba0975e2e0295abf8b350b9c2fb11ef73a8
2021-05-18 09:59:29 -07:00
Evan Rosky
d293bd359b Merge "Add leashes in launcher adapters in lieu of cross-process sync" into sc-dev am: bd26d8f134
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14441864

Change-Id: I2a752dee04dfcbdd246af34ff8b5ec39c10643b7
2021-05-18 15:37:49 +00:00
Evan Rosky
bd26d8f134 Merge "Add leashes in launcher adapters in lieu of cross-process sync" into sc-dev 2021-05-18 15:32:33 +00:00
Vadim Caen
d286a11746 Merge "Draw splashscreen edge to edge" into sc-dev am: eacda76449
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14253107

Change-Id: I2d837e43fe9c75b95abbe9faad580c3470c23e9e
2021-05-18 11:33:42 +00:00
Vadim Caen
eacda76449 Merge "Draw splashscreen edge to edge" into sc-dev 2021-05-18 11:22:54 +00:00
Winson Chung
b89c087aff Merge "Revert "Skip finishResize for non-exit animation if PIP is about to exit"" into sc-dev am: 05555262dd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14607395

Change-Id: I7dc1fcc92c39f94579d9ba66fd791944cabab9cb
2021-05-18 05:16:53 +00:00
Winson Chung
05555262dd Merge "Revert "Skip finishResize for non-exit animation if PIP is about to exit"" into sc-dev 2021-05-18 04:57:38 +00:00
Bill Lin
09dc3ee7c7 Merge "Integrate OneHandedTutorialHandler with OneHandedState" into sc-dev am: 9e2013a5d2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14410476

Change-Id: Iafa601b439ab99f53876e07e2ea1155359f61d37
2021-05-18 00:37:40 +00:00