Commit Graph

14841 Commits

Author SHA1 Message Date
Yara Hassan
297394e38d Add finish() method to DataShare Read and Write Adapters am: dc699fb8ce am: 6dd5caab66 am: feece5dae2 am: 8e07922b64
Change-Id: I4fd5540ecaf56afae4289bd9010ebbbfb5389875
2020-05-30 00:37:01 +00:00
Yara Hassan
8e07922b64 Add finish() method to DataShare Read and Write Adapters am: dc699fb8ce am: 6dd5caab66 am: feece5dae2
Change-Id: I6829c43d760e9441297344793e61dce6c8038074
2020-05-30 00:17:31 +00:00
Yara Hassan
6dd5caab66 Add finish() method to DataShare Read and Write Adapters am: dc699fb8ce
Change-Id: I747217a8f7808a9dec4d5fb03daeeaec0bc107a8
2020-05-29 23:50:57 +00:00
Ahaan Ugale
44489b9680 Merge "AF Inline: Notify the registered AutofillCallback, also fix filtering." into rvc-dev am: 7f3570724d am: 8ea92c81c6 am: 3690f137a2 am: c9040026ef
Change-Id: Id0fd361837ca9396350c71e670f5a3129e4ffba6
2020-05-29 23:37:17 +00:00
Ahaan Ugale
c9040026ef Merge "AF Inline: Notify the registered AutofillCallback, also fix filtering." into rvc-dev am: 7f3570724d am: 8ea92c81c6 am: 3690f137a2
Change-Id: Ie7312b19bf2a1385a4ac750fd90b4b44e1c6e42d
2020-05-29 23:27:12 +00:00
Joanne Chung
9e34dcd775 Merge "Update textclassifier OWNER file." am: d1182b54c3 am: e4e6a3fabb am: a65d687ac8 am: 531b0bd989 am: 5fa218937d
Change-Id: I53b83fc0dad5279b3f601718d7499a88bdb0b1f0
2020-05-29 22:57:55 +00:00
Joanne Chung
a65d687ac8 Merge "Update textclassifier OWNER file." am: d1182b54c3 am: e4e6a3fabb
Change-Id: Ib9657448666652e66956b2c1c3309bbcae352daa
2020-05-29 22:09:44 +00:00
Joanne Chung
e4e6a3fabb Merge "Update textclassifier OWNER file." am: d1182b54c3
Change-Id: I10e7864d1c2158d65615667640baa7f8224fa5f9
2020-05-29 21:46:08 +00:00
Yara Hassan
dc699fb8ce Add finish() method to DataShare Read and Write Adapters
The finish() method is used to clear hard references after
the data copy has ended. This fixes a bug where the references are cleared before onError() is attempted to be called.

Test: CTS tests in followup CL
Bug: 157136368
Fixes: 157136368
Change-Id: If924fe388762831af90579e6b00bdf223230e203
2020-05-29 14:35:13 -07:00
Ahaan Ugale
974c3114dc AF Inline: Notify the registered AutofillCallback, also fix filtering.
This is missing notifications on the suggestions being hidden/shown
while filtering, but that is a bit harder to solve as we have to pipe
this state back from AutofillInlineSessionController. (although, I'm not
certain we even want this behavior, however it is inconsistent with the
dropdown behavior for now)

See bugs linked for what is fixed for filtering (some are not marked as
fixed as they still might need cts tests).
The main change is to make the privacy protection mechanism a bit
smarter - it now only applies to text-matching based logic.

Fix: 157763435
Fix: 156930859
Bug: 155517211
Bug: 157762527
Test: atest CtsAutoFillServiceTestCases:DatasetFilteringInlineTest \
  CtsAutoFillServiceTestCases:InlineFilteringTest \
  CtsAutoFillServiceTestCases:DatasetFilteringDropdownTest
Test: atest android.autofillservice.cts.inline
Change-Id: Icf94e21ba0df3b15a32454038772967cc1f6da79
2020-05-29 14:12:27 -07:00
TreeHugger Robot
214e6f6c88 Merge "Remove @hide from Matrix" 2020-05-29 19:49:31 +00:00
Joanne Chung
6074e64d07 Update textclassifier OWNER file.
Bug: 152440080
Test: no
Change-Id: I11bffde8cf3e70aa8dda839b45a82b6976811332
2020-05-29 15:07:56 +08:00
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