Commit Graph

14828 Commits

Author SHA1 Message Date
Louis Chang
260d69c8be Merge "Revert "Only add divider when it need to show"" into rvc-dev am: 77db95ce85 am: 778d68307c am: 5d9a7cec42 am: d53a32fa04
Change-Id: Ia9dfc6d5fc08c4efc59d79c0fbcae46ef2868af9
2020-05-28 15:44:39 +00:00
TreeHugger Robot
d8d2505483 Merge "Insets: Allow animations when setting SYSTEM_UI_LAYOUT_* flags" into rvc-dev am: 9cf7941324 am: 790e618c22 am: 347da37a6b am: 3e0312f4e0
Change-Id: Id68d7aed6c7b6051a879daa5700935322823509b
2020-05-28 15:18:23 +00:00
Louis Chang
778d68307c Merge "Revert "Only add divider when it need to show"" into rvc-dev am: 77db95ce85
Change-Id: I3e07281119d0aad8b3c66186f5bcdbce1e32bd77
2020-05-28 14:48:08 +00:00
Louis Chang
77db95ce85 Merge "Revert "Only add divider when it need to show"" into rvc-dev 2020-05-28 14:45:46 +00:00
TreeHugger Robot
790e618c22 Merge "Insets: Allow animations when setting SYSTEM_UI_LAYOUT_* flags" into rvc-dev am: 9cf7941324
Change-Id: Iaf7e3cc9acef95cda544440c7d99ea4ff3e08e02
2020-05-28 14:25:16 +00:00
TreeHugger Robot
9cf7941324 Merge "Insets: Allow animations when setting SYSTEM_UI_LAYOUT_* flags" into rvc-dev 2020-05-28 14:14:15 +00:00
Adrian Roos
2e2631572a Insets: Allow animations when setting SYSTEM_UI_LAYOUT_* flags
Test: atest android.server.wm.WindowInsetsAnimationTests#testAnimationCallbacks_withLegacyFlags
Fixes: 155955734
Change-Id: Idb35218abb4e17688bfb985abb97ae739a60136b
2020-05-28 14:33:38 +02:00
Louis Chang
bf1a597b20 Revert "Only add divider when it need to show"
This reverts commit 91bba497c3.

Reason for revert: unblock wm presubmit

Fix: 157629296

Change-Id: I04fd8b79de025d7c531ac03218a7590e6a32e1be
2020-05-28 09:43:53 +00:00
Tony Huang
1fa2c56415 Merge "Only add divider when it need to show" into rvc-dev am: 8acb04e235 am: 5394166f96 am: 29e6f749a8 am: a792a46d36
Change-Id: I24dfeaf4cc6080cc4d66eca75bd6d12ab648c52a
2020-05-28 05:26:00 +00:00
Tony Huang
a792a46d36 Merge "Only add divider when it need to show" into rvc-dev am: 8acb04e235 am: 5394166f96 am: 29e6f749a8
Change-Id: I3df302f4df510df731d30758eb2a993b662bb557
2020-05-28 05:12:40 +00:00
Tony Huang
d888ed0e4d Merge "Only add divider when it need to show" into rvc-dev am: 8acb04e235
Change-Id: Ia7641633ab93d9d02e52ae5a3c2adef492e506cc
2020-05-28 04:41:01 +00:00
Tony Huang
8acb04e235 Merge "Only add divider when it need to show" into rvc-dev 2020-05-28 04:26:37 +00:00
Adrian Roos
cbc4b8dcce Merge "InsetsController: Maintain type user animation when restarting input" into rvc-dev am: 792dc29a6e am: f879f1cbf2 am: c42264c804 am: 810d33dc85
Change-Id: Ic9cc0551867d3d2fc8d1b1c2f4b28329b1428c91
2020-05-27 19:10:05 +00:00
Adrian Roos
41efdb753e Merge "InsetsController: Add missing onWindowInsetsAnimationEnd when cancelling" into rvc-dev am: c7577d48c0 am: 540898511a am: 69ea474b94 am: 4b2e228379
Change-Id: I2e73d2090cb54a1b2c803638ac1c84e938d959be
2020-05-27 19:07:35 +00:00
Adrian Roos
810d33dc85 Merge "InsetsController: Maintain type user animation when restarting input" into rvc-dev am: 792dc29a6e am: f879f1cbf2 am: c42264c804
Change-Id: I5146e43ef1171e6910da2d1e790e95aa58ed2924
2020-05-27 18:48:48 +00:00
Adrian Roos
69ea474b94 Merge "InsetsController: Add missing onWindowInsetsAnimationEnd when cancelling" into rvc-dev am: c7577d48c0 am: 540898511a
Change-Id: I9b4efc4ef1ac4c44617e353db31e89e761c52a48
2020-05-27 18:37:34 +00:00
Adrian Roos
bd5cc07426 Merge "InsetsController: Maintain type user animation when restarting input" into rvc-dev am: 792dc29a6e
Change-Id: I34909739edfef608d65a6594894766264e5d3541
2020-05-27 18:23:40 +00:00
Adrian Roos
ab431c4c6f Merge "InsetsController: Add missing onWindowInsetsAnimationEnd when cancelling" into rvc-dev am: c7577d48c0
Change-Id: Ia2fde50aeeb18b6fa595d22c8c491fedd9f31cfb
2020-05-27 18:23:14 +00:00
Adrian Roos
792dc29a6e Merge "InsetsController: Maintain type user animation when restarting input" into rvc-dev 2020-05-27 18:09:16 +00:00
Adrian Roos
c7577d48c0 Merge "InsetsController: Add missing onWindowInsetsAnimationEnd when cancelling" into rvc-dev 2020-05-27 18:08:19 +00:00
Heemin Seog
a68e9ee5de Merge "Add climate bar insets" into rvc-dev am: 58169786a6 am: 3eeb71d1eb am: 399a679120 am: 8c4d757d5e
Change-Id: If20ef64b0e74eada8b700d5d883de37f93b7a26b
2020-05-27 16:29:15 +00:00
Taran Singh
4871a0e51a Merge "Add Insets dumps and IME debug logs" into rvc-dev am: e20c25ddc6 am: 816b9c374c am: f0f00c8764 am: a6bb9dcf0b
Change-Id: I6df359e39d094a590346c6074ec957f76537cee3
2020-05-27 15:49:09 +00:00
Heemin Seog
3eeb71d1eb Merge "Add climate bar insets" into rvc-dev am: 58169786a6
Change-Id: I38c88995a491c36a6b29950b52fbb8da0003c9d8
2020-05-27 15:48:53 +00:00
Heemin Seog
58169786a6 Merge "Add climate bar insets" into rvc-dev 2020-05-27 15:38:32 +00:00
Taran Singh
816b9c374c Merge "Add Insets dumps and IME debug logs" into rvc-dev am: e20c25ddc6
Change-Id: Ic644e48d41209ce171c568e87358a86090249b3f
2020-05-27 15:24:27 +00:00
Taran Singh
e20c25ddc6 Merge "Add Insets dumps and IME debug logs" into rvc-dev 2020-05-27 15:12:30 +00:00
Taran Singh
85661e3f9e Add Insets dumps and IME debug logs
Add more dumps and logs to better help debug IME insets better
Logging can be enabled by setting InsetsController.DEBUG to true.

Bug: 154348613
Test: manually build and flash.
      Verify showing and hiding IME shows logs.
      verify adb shell dumpsys window windows has new dumps

Change-Id: Iad0a21d81a22d6acfaaf5c5ca8b5131eec411e79
2020-05-27 15:12:07 +00:00
Tony Huang
91bba497c3 Only add divider when it need to show
By previous memory patch, the divider will always call update when
enter split when means it always add divider view when showing. So
we can reduce some update call to avoid any unnecessary surface
memory allocate.

Fix: 150190730
Test: Check split mode rotate normally and dump SF to check divider
      memory status
Change-Id: Ibccd0b998d299968ee6d68127c801fae656d2127
2020-05-27 11:25:05 +08:00
Heemin Seog
d79e4f49d2 Add climate bar insets
This can be used to support a 3rd kind of system bar to inset the
applicaiton space.

Bug: 152763889
Test: manual
Change-Id: I3ba75886e94a9fe80a0d1a920749d152dda64031
2020-05-26 14:26:25 -07:00
TreeHugger Robot
ee921b55be Merge "WindowlessWindowManager: Set size when creating surface" into rvc-dev am: 58c7846f6a am: b9d6bf0bcb am: e2d14f9000 am: 94b5457e2d
Change-Id: Ia26be9cedfbefdc6ed1a3c92913180fef662fec7
2020-05-26 21:23:09 +00:00
TreeHugger Robot
94b5457e2d Merge "WindowlessWindowManager: Set size when creating surface" into rvc-dev am: 58c7846f6a am: b9d6bf0bcb am: e2d14f9000
Change-Id: Ifd73f83fd7fc04bd373d0f9293aa581805731314
2020-05-26 21:11:17 +00:00
TreeHugger Robot
e9b6fa5da6 Merge "WindowlessWindowManager: Set size when creating surface" into rvc-dev am: 58c7846f6a
Change-Id: Id975b3b7206fa1abbabbcb9f54718726d45dbb65
2020-05-26 20:51:04 +00:00
TreeHugger Robot
58c7846f6a Merge "WindowlessWindowManager: Set size when creating surface" into rvc-dev 2020-05-26 20:41:22 +00:00
Adrian Roos
a2d2ba7e61 InsetsController: Maintain type user animation when restarting input
When the IME restarts input, it re-requests to show itself. If the app is
already animating, we should maintain that animation instead of cancelling
it.

Fixes: 155962435
Test: atest WindowInsetsAnimationControllerTests
Change-Id: I57618e43b2cddc55e5dfc32111abbbd82cc6ed48
2020-05-26 20:22:05 +00:00
Adrian Roos
a79b8851f7 InsetsController: Add missing onWindowInsetsAnimationEnd when cancelling
Fixes a few issues around cancelling insets animations:

- dispatch the onEnd callback when the animation gets cancelled
- When using the CancellationSignal, we need to properly cancel the
  animation, and not just the controller - otherwise we never actually
  remove it from mRunningAnimations.
- Now that cancellation dispatches to apps, make sure they do not
  restart a different animation of the same type we just cancelled

Bug: 156740834
Test: atest WindowInsetsAnimationControllerTests
Change-Id: I4c36470a816ff8e3b92cd03090b8e947a2234f13
2020-05-26 21:26:25 +02:00
Robert Carr
5d9d2ddca2 WindowlessWindowManager: Set size when creating surface
When we set the buffer size from relayout window, there is a race
condition where the client may then submit its first buffer but the
transaction hasnt applied yet on the SF side and so the buffer is
rejected. Setting a defualt size when creating fixes this. Luckily
SurfaceControlViewHost size is known at add time, since we force the
window size based on the values passed in to the SurfaceControlViewHost API.

Bug: 157153874
Test: Existing tests pass
Change-Id: I2566844aea81df92f1694f43254a480fc3b3c019
2020-05-26 11:29:39 -07:00
Hongwei Wang
2b1c7558ff Merge "Ignores entering PiP animation on seamless rotation" into rvc-dev am: 047a550900 am: a82f228bbb am: 703a67d3a8 am: 1c0d584dc7
Change-Id: I27c11b86396cb28def73a651e379c10fd662b55a
2020-05-21 04:02:11 +00:00
Hongwei Wang
1c0d584dc7 Merge "Ignores entering PiP animation on seamless rotation" into rvc-dev am: 047a550900 am: a82f228bbb am: 703a67d3a8
Change-Id: Ic678039241fbd8203052c190625d49d92b9ee34c
2020-05-21 03:45:53 +00:00
Hongwei Wang
3ffda8dade Merge "Ignores entering PiP animation on seamless rotation" into rvc-dev am: 047a550900
Change-Id: Id425cf6f338f1b03cb69a41210f5525002cf14a5
2020-05-21 03:16:37 +00:00
Hongwei Wang
047a550900 Merge "Ignores entering PiP animation on seamless rotation" into rvc-dev 2020-05-21 03:12:56 +00:00
Hongwei Wang
f4e4bab403 Ignores entering PiP animation on seamless rotation
- Added onFixedRotationStarted/onFixedRotationFinished callback in
  DisplayWindowListener
- onFixedRotationStarted shall be called before onTaskAppeared for PiP
- When onTaskAppeared is received in PipTaskOrganizer, we defer the
  entering PiP transition if fixed rotation is ongoing
- When onFixedRotationFinished is received in PipTaskOrganizer and the
  entering PiP transition is deferred, schedule an immediate
  transition to PiP to make sure all the expected callbacks from
  PipTaskOrganizer are still being sent

Video: http://go/recall/-/aaaaaabFQoRHlzixHdtY/bb8HjJvMZKtpN8YTPKZXmj
Bug: 153861223
Test: manually enter PiP from Play Movies / YT fullscreen
Test: atest ActivityRecordTests \
            RecentsAnimationControllerTest \
            ActivityTaskManagerServiceTests \
            PinnedStackTests
Change-Id: I0dea905d610e2387af56b611be5f93518cc9a153
2020-05-20 17:34:17 -07:00
Tiger Huang
89314b1853 Merge "Dispatch the requested visibility if the client has the control" into rvc-dev am: 090ee6ff39 am: 9fd3d0aacd am: d7ebb3255b am: c560820829
Change-Id: Icc4b7a442925319a22fcf406d878d06de21b9328
2020-05-20 15:25:48 +00:00
Tiger Huang
c560820829 Merge "Dispatch the requested visibility if the client has the control" into rvc-dev am: 090ee6ff39 am: 9fd3d0aacd am: d7ebb3255b
Change-Id: I0f2f71f3b8b1a2f850dc40e684a5a7f4a01389c6
2020-05-20 15:08:54 +00:00
Tiger Huang
1f8f560661 Merge "Dispatch the requested visibility if the client has the control" into rvc-dev am: 090ee6ff39
Change-Id: I3404301c600b7be6bfd38c24e7b78fe2761a9de3
2020-05-20 14:38:03 +00:00
Tiger Huang
090ee6ff39 Merge "Dispatch the requested visibility if the client has the control" into rvc-dev 2020-05-20 14:36:30 +00:00
Julian Odell
6a9f1a3e6b Merge "Flush buffered data when session connects. Typically this data would have been flushed at the end of the first draw and there would otherwise be an extended delay before the data would be sent to the service." into rvc-dev am: 4946555a8e am: 9754281c11 am: 7376558869 am: c5df5c4ea3
Change-Id: Iaa740f6cad9d6b4cd76d1c8272d8cd8a330c5696
2020-05-19 22:57:26 +00:00
Julian Odell
7376558869 Merge "Flush buffered data when session connects. Typically this data would have been flushed at the end of the first draw and there would otherwise be an extended delay before the data would be sent to the service." into rvc-dev am: 4946555a8e am: 9754281c11
Change-Id: Ie9eb336142a18a1b8746d4ea25c85aa67ab781cb
2020-05-19 22:26:47 +00:00
Julian Odell
b508a77c44 Merge "Flush buffered data when session connects. Typically this data would have been flushed at the end of the first draw and there would otherwise be an extended delay before the data would be sent to the service." into rvc-dev am: 4946555a8e
Change-Id: I22c89fff90283640826088d9c323713af2eab4c3
2020-05-19 22:25:30 +00:00
Julian Odell
4946555a8e Merge "Flush buffered data when session connects. Typically this data would have been flushed at the end of the first draw and there would otherwise be an extended delay before the data would be sent to the service." into rvc-dev 2020-05-19 22:22:30 +00:00
Julian Odell
ef928f8a11 Flush buffered data when session connects.
Typically this data would have been flushed at the end of the
   first draw and there would otherwise be an extended delay
   before the data would be sent to the service.

Test: make -j
Test: Manually start WhatsApp - check for lost events
Test: atest CtsContentCaptureServiceTestCases

Bug: 154777879
Change-Id: Ia0a97e24ffcc1c189d5d0cd6b8888678fa48968e
2020-05-19 12:30:57 -07:00