Commit Graph

14320 Commits

Author SHA1 Message Date
Jorim Jaggi
3267eee00b Merge "Performance optimizations for new insets" into rvc-dev am: 367257cfc4 am: 728adc036c am: de8c2e956a am: 2c78cbc65b
Change-Id: I1170c959ac5ace8533b76fcb5f88ce74aa9f1da6
2020-03-24 15:29:03 +00:00
Jorim Jaggi
367257cfc4 Merge "Performance optimizations for new insets" into rvc-dev 2020-03-24 14:25:47 +00:00
TreeHugger Robot
07193ca76f Merge "Pass source to dispatchBatchedInputEventPending (1/2)" into rvc-dev am: aec6f5f6fa am: eb95d1deee am: bcc5842e77 am: 0657c0b4fa
Change-Id: I6331537dcdd770525e25b7588d07c7c64eb17fa5
2020-03-24 09:06:12 +00:00
TreeHugger Robot
aec6f5f6fa Merge "Pass source to dispatchBatchedInputEventPending (1/2)" into rvc-dev 2020-03-24 07:56:25 +00:00
Automerger Merge Worker
d0a4c5eb53 Merge "Merge "Fix floating IME visibility" into rvc-dev am: 292da01e06 am: 84a75c62f1" into rvc-d1-dev-plus-aosp am: 674b8384b5 am: ff3c96c214
Change-Id: Ia9ba49939a47fb2f71728b7ece69ca7aa3c0dc4b
2020-03-24 04:39:26 +00:00
TreeHugger Robot
b8c9e41f43 Merge "Refine performance for calling into ContentCapture" into rvc-dev am: a42c95cd64 am: f24340af5b am: 35c5d19b9b am: 7f721edf3d
Change-Id: Ib628ac748208b02ac9cb99ec0d2028f3bd642fd8
2020-03-24 04:37:55 +00:00
Taran Singh
292da01e06 Merge "Fix floating IME visibility" into rvc-dev 2020-03-24 03:59:05 +00:00
TreeHugger Robot
a42c95cd64 Merge "Refine performance for calling into ContentCapture" into rvc-dev 2020-03-24 03:31:20 +00:00
Vishnu Nair
5c8b5630c5 Merge "Revert "Revert "RootViewImpl: Fix measure size hint for WRAP_CONTENT windows""" into rvc-dev am: 84d1c3c618 am: 86b1664a98 am: 0bcad02223 am: e3ab5f11b3
Change-Id: Ifcf801047320cd41d08ebe529d7553284be985c3
2020-03-24 03:19:54 +00:00
Svetoslav Ganov
fcad3fe197 Merge "Add APIs to move suggestions below/above window" into rvc-dev am: 09b9570862 am: d957d7ca3a am: 392f324836 am: 8158dbc8d3
Change-Id: I1818b50575e467a7005ad1b71a65e749653519c5
2020-03-24 02:23:52 +00:00
Vishnu Nair
84d1c3c618 Merge "Revert "Revert "RootViewImpl: Fix measure size hint for WRAP_CONTENT windows""" into rvc-dev 2020-03-23 23:25:21 +00:00
Taran Singh
0485041305 Fix floating IME visibility
Floating IME now applies final visibility

Test: Manually using steps in bug
Fix: 151953095
Change-Id: Id611e4bac22e9663d04e260794ea0f621d7b7e29
2020-03-23 15:58:39 -07:00
Jorim Jaggi
22488d31bb Performance optimizations for new insets
- Prevent unnecesary dispatchApplyInsets caused by legacy system
also requesting inset changes
- Make insetsModified oneway. It's safe to do so because we
absolutely don't care about interleaving with other WindowSession
methods.
- Do not trigger layout if nothing relevant has changed
- Only trigger requestFitSystemWindows if state actually changed

Test: Systrace. Automated perf test will be added
Bug: 151865131
Change-Id: I24944875e739e4a74606e3a02bbf14585c1c13db
2020-03-23 22:31:52 +01:00
Svetoslav Ganov
09b9570862 Merge "Add APIs to move suggestions below/above window" into rvc-dev 2020-03-23 19:10:03 +00:00
Wale Ogunwale
641596753a Merge "Move some window related files to android.window package" into rvc-dev am: f09fdecd55 am: b1bf0ae1c3 am: 8ed44d97be am: 0c096157c6
Change-Id: Ia60d783e5cc5f0c037b9d7ff745856ae5b4b08c6
2020-03-23 15:07:26 +00:00
Wale Ogunwale
f09fdecd55 Merge "Move some window related files to android.window package" into rvc-dev 2020-03-23 13:48:30 +00:00
TYM Tsai
b8690fba14 Refine performance for calling into ContentCapture
Bug: 149561198
Test: manual
Change-Id: I554dc2e6e940ba77d6842714e0efac372c27fe95
2020-03-23 17:46:19 +08:00
Wale Ogunwale
5794658be0 Move some window related files to android.window package
Window management files on the client side have normally been dumped in
either android.view or android.app package. This CL starts to
centralized them in android.window package so there is better
separation.

Test: they pass
Bug: 147406652
Bug: 152113464
Bug: 152117221
Change-Id: I4d64bd256e9b3581af0ccf9396f7dd2454132719
2020-03-22 09:47:43 -07:00
Siarhei Vishniakou
f26b795c04 resolve merge conflicts of 7e0769b219 to rvc-dev
Bug: 148311342
Change-Id: I99d6296b8947ba85573a11fc5d07583326dd15da
2020-03-21 06:08:47 +00:00
TreeHugger Robot
c3e2bbe963 Merge "Let insets sources can produce insets on 0-width or 0-height windows" into rvc-dev am: 6b49d62306 am: 8b54c2ae7d am: eb6e774069 am: 43f0d6e15c am: 1b2ec0d336
Change-Id: I5d237793cc71537a13b91ba83788b8a7c50e9721
2020-03-21 01:02:22 +00:00
TreeHugger Robot
f217b0fc84 Merge "Disable deep press when long press is long" 2020-03-20 23:47:22 +00:00
Siarhei Vishniakou
ab9efea935 Disable deep press when long press is long
If long press timeout is not 'short', we disable deep press.

Also InputManagerService.java will now be responsible for keeping track
of the feature state.

In ViewConfiguration, we update the default value to 400 to match the
value in the settings (b/30159825)

Bug: 148311342
Bug: 30159825
Test: see the description in the frameworks/native change
Change-Id: I88b933e9e863d40e383afdc990e09b848e23192e
Merged-In: I88b933e9e863d40e383afdc990e09b848e23192e
2020-03-20 23:25:03 +00:00
TreeHugger Robot
6b49d62306 Merge "Let insets sources can produce insets on 0-width or 0-height windows" into rvc-dev 2020-03-20 22:30:12 +00:00
Siarhei Vishniakou
dd893793af Disable deep press when long press is long
If long press timeout is not 'short', we disable deep press.

Also InputManagerService.java will now be responsible for keeping track
of the feature state.

In ViewConfiguration, we update the default value to 400 to match the
value in the settings (b/30159825)

Bug: 148311342
Bug: 30159825
Test: see the description in the frameworks/native change
Change-Id: I88b933e9e863d40e383afdc990e09b848e23192e
2020-03-20 13:47:28 -07:00
Vishnu Nair
ac0dfc1096 Revert "Revert "RootViewImpl: Fix measure size hint for WRAP_CONTENT windows""
This reverts commit 4f6b8ec056.

Reason for revert: Can not repro memory regression in R, b/134695730

Test: atest google/perf/memory/memory-test
Bug: b/119839070, b/73813813
Change-Id: Ibe560942949d3b37cd6d43ab49148cbf401e0e39
2020-03-20 20:16:47 +00:00
Svet Ganov
a57dadde24 Add APIs to move suggestions below/above window
Based on feedback from developers (GBoard) there are cases
where they want the app UI to cover the suggestions during
animations (keypress popup should cover the suggestion area).

This change adds a dedicated InlineContentView that is
returned when a suggestion is inflated. This view has APIs
to dynamically move its surface above/below the host window.
Also the new InlineContentView has no public constructors
as these are always created by the system via other APIs.
Finally, the InlineContentView only exposes the surface
control of the inlined UI which is useful for reparenting
to achieve clipping of multiple such views in a given area
on the screen.

When the content surface is below the app window it is not
be interactive and all touches go to the hosting app. In this
state the app can draw on top of the suggestions. When the
content surface is above the app window it is interactive
and the hosting app cannot render on top of it.

While at this this also fixes the case where a surface can
cover the suggestion surface even if it was on top of the
app window. Now if the embedded content surface is covered,
even partially, by another one the embedded UI is not
interactive.

bug:15140337

Test: atest AutofillTestCases

Change-Id: If1db185506ae6916b9d655ab647dd59b626cf61e
2020-03-20 12:29:07 -07:00
Automerger Merge Worker
589342127f Merge "Merge "Fine tune animation parameters for IME animations" into rvc-dev am: 08a45d2445 am: 2a392ab3a8 am: 622b881001" into rvc-qpr-dev-plus-aosp am: deca42eae5
Change-Id: If37b6233df72e553a0a9bdb38b0cf21a3d9ba2c1
2020-03-20 11:55:35 +00:00
Jorim Jaggi
08a45d2445 Merge "Fine tune animation parameters for IME animations" into rvc-dev 2020-03-20 11:11:04 +00:00
Jorim Jaggi
5875cca667 Fine tune animation parameters for IME animations
To match spec as mentioned on the bug.

Bug: 151826721
Test: Visual
Change-Id: I1c2a70916e3a41195f5c003b9023c51ebd93eadb
2020-03-19 23:35:24 +01:00
Menghan Li
29799236af Merge "Refines the javadoc of the ReplacementSpan.getContentDescription" into rvc-dev am: b42dfe722c am: 6d54b94a25 am: b71ed67329 am: 438595a067
Change-Id: Ibce383f409df218b11c6dbca71f11d2b2c9678f1
2020-03-19 01:06:44 +00:00
Menghan Li
b42dfe722c Merge "Refines the javadoc of the ReplacementSpan.getContentDescription" into rvc-dev 2020-03-19 00:06:34 +00:00
TreeHugger Robot
893282de55 Merge changes I6f21d272,Ic0f72593 into rvc-dev am: f6567d2ef5 am: 4b13e6e233 am: e12e048338 am: 1bfade05ac
Change-Id: Ib7e7685036e17b4fdc13341fbdd0823e8ebd6095
2020-03-18 22:50:48 +00:00
Robert Carr
bb7964d645 SurfaceControlViewHost: Call die instead of dispatchDetached
Seems more appropriate as this more mirrors the normal release path.
I think everything gets release eventually either way.

Bug: 149591513
Test: Existing tests pass
Change-Id: I6f21d2723e06dbae4e09421efc352c179115bc40
2020-03-18 14:24:38 -07:00
Robert Carr
5af7d62e27 SurfaceView: Release SurfacePackage when done
We release the SurfaceControl assosciated with a Surface package
when accepting a new SurfacePackage, or at time of detached-from-window
this way we don't rely on the finalize method.

Bug: 149591513
Test: Existing tests pass
Change-Id: Ic0f7259394836ee094ed49db73b5986b778b450f
2020-03-18 12:53:28 -07:00
Rob Carr
ee79ab2d35 Merge "SurfacePackage: Add release method" into rvc-dev am: 4841efcfcd am: 1ce32a4d19 am: fc5b25e4da am: 57177f54d8
Change-Id: Idd424f4ecd48aa812ddfefd28d29ae5f0c1f5cc2
2020-03-18 18:26:48 +00:00
Rob Carr
4841efcfcd Merge "SurfacePackage: Add release method" into rvc-dev 2020-03-18 17:13:32 +00:00
Adrian Roos
c47897eef7 Merge "WindowInsetsAnimationController: Add state callback and getters" into rvc-dev am: 269b162622 am: 8879718ea2 am: f82739d36f am: 3803b1f07c
Change-Id: I76f9ddb5c9a21a65b47abb4155de96e2f5d5b179
2020-03-18 17:05:35 +00:00
Adrian Roos
269b162622 Merge "WindowInsetsAnimationController: Add state callback and getters" into rvc-dev 2020-03-18 16:43:10 +00:00
Adrian Roos
5d557edb44 WindowInsetsAnimationController: Add state callback and getters
Adds more comprehensive callbacks and getters for the WindowInsetsAnimationController,
to make it more straight forward to properly use.

Test: atest InsetsControllerTest PendingInsetsControllerTest
Fixes: 151707442
Change-Id: Ida55f609112396c0f6de4c5c4431e0793c2e315e
2020-03-18 12:17:19 +01:00
menghanli
a7d97f7ec5 Refines the javadoc of the ReplacementSpan.getContentDescription
- inconsistent for the doc & API implementation.

Bug: 150472098
Test: Manual test
Change-Id: Idb1e35245487ac161225f1e53c6308541694b481
2020-03-18 18:06:36 +08:00
Wei Wang
a08c94a26e Merge "Send DEVICE_IDLE and DISPLAY_INACTIVE hint from framework" into rvc-dev am: 540c37bae3 am: 659c335a63 am: 1503bcf77e am: acb73918dd
Change-Id: I5054de2e05138eebfc7d42976c8b35af56df9ce4
2020-03-18 04:49:30 +00:00
Wei Wang
540c37bae3 Merge "Send DEVICE_IDLE and DISPLAY_INACTIVE hint from framework" into rvc-dev 2020-03-18 03:57:41 +00:00
Joanne Chung
a41013a17f Merge "Fix broken tests in TextClassifierServiceTest." into rvc-dev am: 6d6ddf4502 am: 06d9593c7d am: b11568c088 am: ba6d052a9b
Change-Id: Id493b9029dc73d4de1e99f849d95edfef4fae384
2020-03-18 03:39:30 +00:00
Joanne Chung
6d6ddf4502 Merge "Fix broken tests in TextClassifierServiceTest." into rvc-dev 2020-03-18 02:27:40 +00:00
Wei Wang
80d224621f Send DEVICE_IDLE and DISPLAY_INACTIVE hint from framework
Bug: 140148621
Test: boot device
Change-Id: I34971fde28a80056c51d3c1501467f975c7e82a2
2020-03-17 16:11:42 -07:00
Robert Carr
d9c9c0cc75 SurfacePackage: Add release method
Oversight, the SurfacePackage holds a reference to the SurfaceControl
which is protected by a close-guard. We need a way to close it
explicitly. Going to follow up with a patch to have SurfaceView
manage the lifetime when the SurfacePackage is consumed, but want
to make sure this explicit release gets in ASAP.

Bug: 149591513
Test: Existing tests pass
Change-Id: I7276a2440c38cc6d859b79b4c3ee57bc122ce2a6
2020-03-17 14:12:53 -07:00
Automerger Merge Worker
422e3c4a78 Merge "Merge "Create a general mapping between window types and inset types." into rvc-dev am: e88d949e0a am: d7f1e2e0c5 am: eaa9580d88" into rvc-qpr-dev-plus-aosp am: 0a5afc0670
Change-Id: I03227c4be7688a7d6503e03390a3915c30ca447f
2020-03-17 18:27:37 +00:00
Automerger Merge Worker
d89536954c Merge "Explicitly exclude IME from Task Snapshots" into rvc-dev am: 7e06b011a0 am: c3ddf59f5f am: 8748cd7cef am: 2a8a973bff
Change-Id: I5e3af7bb55f1b84f21fb97104992b846721b5ac4
2020-03-17 18:27:09 +00:00
Yuncheol Heo
e88d949e0a Merge "Create a general mapping between window types and inset types." into rvc-dev 2020-03-17 18:01:47 +00:00
Rob Carr
7e06b011a0 Merge "Explicitly exclude IME from Task Snapshots" into rvc-dev 2020-03-17 17:56:55 +00:00