Commit Graph

19355 Commits

Author SHA1 Message Date
Chavi Weingarten
dc59d4e40b Merge "Add captureDisplay API in WMS." 2022-09-20 13:36:00 +00:00
Arthur Hung
b066a1d673 Merge "Revert "Clear default focus highlight when lost window focus or re-enter touch mode"" 2022-09-20 00:45:49 +00:00
Chavi Weingarten
c184fd711a Add captureDisplay API in WMS.
Allow clients to request a display screen capture using a specified
displayId. The caller can pass in their own required arguments and they
will get the screenshot via an async callback directly from SF.

Test: ScreenshotTests
Bug: 242714168
Change-Id: I387f58d342f01ae71b85311fbf0634f0e7901f7d
2022-09-19 19:32:42 +00:00
Arthur Hung
9b81e4ea0a Revert "Clear default focus highlight when lost window focus or re-enter touch mode"
This reverts commit 5fc73f8f2f.

Reason for revert: b/246952306

Change-Id: I134a59a9cd576e6cf6a9bf8b5bcf2ae96e3fdb93
2022-09-19 11:33:54 +00:00
Wilson Wu
fe8bf190f9 Merge "Revert "Fix potential failures in InputMethodService"" 2022-09-19 09:13:38 +00:00
Wilson Wu
1e5f9b6bfd Revert "Fix potential failures in InputMethodService"
This reverts commit ce98507bf3.

Reason for revert: b/247426953

Change-Id: If7b7a258150f8f57a7b4a88e4926d412f948fd9c
2022-09-19 08:55:19 +00:00
Wilson Wu
624f3aef5e Merge "Prevent InputMethodManager call into DelegateImpl (1/N)" 2022-09-19 02:05:15 +00:00
TreeHugger Robot
306f2a61cb Merge "Fix potential failures in InputMethodService" 2022-09-19 01:58:35 +00:00
Tiger Huang
2a7f7ed158 Merge changes Ibc2f40dd,I37fb8ffc into tm-qpr-dev am: dea70726f6 am: d95c3121b6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19963144

Change-Id: I8c08856b1d5e20fef1175d2205e3f2dcc21af7cd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-17 12:42:07 +00:00
Brett Chabot
2a402d2766 Merge "Fix input when hardware renderer drawing is disabled." 2022-09-16 22:26:02 +00:00
Chavi Weingarten
7d6d3cbd12 Merge "Create DMS wrapper around hidden SC APIs" 2022-09-16 22:22:17 +00:00
Sally Yuen
b99e9b0bb4 Merge "Add API warnings in AccessibilityManager" 2022-09-16 21:20:47 +00:00
Alec Mouri
172f625928 Merge "Revert^2 "Support alpha for SurfaceView"" 2022-09-16 20:23:57 +00:00
TreeHugger Robot
f19f32457c Merge "Add Android keycodes for stylus buttons" 2022-09-16 20:07:59 +00:00
Brett Chabot
32dfc98382 Fix input when hardware renderer drawing is disabled.
When drawing is disabled the window's layer won't have a valid buffer. This
causes surfaceflinger to set the window's touchableRegion to zero.
This commit sets a window crop when drawing is disabled, so surfaceflinger
set touchableregion from crop instead of buffer.
And it modifies LetterboxUiController to not reset the crop.

Test: cts and perf tests as documented in go/android-slimulator-dev-env
Bug: 229870984
Change-Id: I4d6ca513c3daf5818ded03eae00e551fc319ad69
2022-09-16 11:19:02 -07:00
Alan Viverette
9bb4f2962b Merge "Revert "Intercept abnormal MotionEvent in GestureDetector#onTouc..."" 2022-09-16 17:57:06 +00:00
Sally
97640b600a Add API warnings in AccessibilityManager
Recommend that developers don't change UI or behavior based on
accessibility checks.

Bug: 235506503
Test: na
Change-Id: I8e8b712a484a2b6dabe0f6c657766a0c1e21c92d
2022-09-16 17:55:32 +00:00
Chavi Weingarten
1e8b7d543a Create DMS wrapper around hidden SC APIs
There are several places that are calling the SC display APIs that were
hidden. They are already protected in SF so all the processes using the
hidden APIs were running as shell. However, we want to remove the APIs
into SF since they create confusion and instead replace with calls to
system server. For now, route the SurfaceControl hidden API calls that
are not used by system server to call through to DMS via the new
MediaProjectionGlobal API.

This will ensure the callers have a release to migrate before we remove
the APIs.

This also partially reverts commit c4bf46c247.

Test: Apps using SurfaceControl hidden display APIs
Bug: 237664947
Change-Id: I859743cb8b10c0352a30280a610b13a4f44f34dc
2022-09-16 17:25:36 +00:00
Prabir Pradhan
ad914db014 Add Android keycodes for stylus buttons
Ensure the new stylus buttons are not yet sent to apps.
DD: go/android-stylus-buttons

Bug: 246394583
Test: Build, Presubmit
Change-Id: I440a359ec8cffb60b9e87f2e51304c9b0320e16f
2022-09-16 15:42:23 +00:00
Tiger Huang
d95c3121b6 Merge changes Ibc2f40dd,I37fb8ffc into tm-qpr-dev am: dea70726f6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19963144

Change-Id: I56d9cf4a11f38a8a574b7d5ab6c82ff770b7bdf1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-16 14:50:00 +00:00
Tiger Huang
dea70726f6 Merge changes Ibc2f40dd,I37fb8ffc into tm-qpr-dev
* changes:
  Don't perform config change if relayoutAsync
  Apply synced relayout if we have FLAG_WINDOW_VISIBILITY_CHANGED
2022-09-16 14:23:42 +00:00
Wilson Wu
def5cd30a1 Prevent InputMethodManager call into DelegateImpl (1/N)
InputMethodManager#DelegateImpl is a delegation for
ImeFocusController to call into InputMethodManager.

Ideally IMM don't need to rely on DelegateImpl. Move
the IMM#hasActiveInputConnection implemetation from
DelegateImpl to make consistency.

Bug: 243778447
Bug: 182259171
Test: atest CtsInputMethodTestCases
Change-Id: I4246fd077b8ddf741311defb7a1b9175136bb769
2022-09-16 18:01:30 +08:00
TreeHugger Robot
f2e5051e78 Merge "Support to set the density with uniqueId from WM command" 2022-09-16 01:05:50 +00:00
TreeHugger Robot
797fe18d76 Merge "Don't default accessibilityDataPrivate when the window is FLAG_SECURE." 2022-09-15 20:56:45 +00:00
Sally Yuen
60650c6ea7 Merge "Improve pane javadocs" 2022-09-15 20:41:43 +00:00
Taran Singh
0046013807 Merge "Introduce Scribe Select/DeleteRangeGesture" 2022-09-15 18:00:37 +00:00
Chavi Weingarten
4960560d62 Merge "Migrate screen capture code to ScreenCapture file" 2022-09-15 17:35:56 +00:00
TreeHugger Robot
d0efd7dbee Merge "Add unit tests for BaseInputConnection" 2022-09-15 14:06:02 +00:00
Alan Viverette
456612dc6a Revert "Intercept abnormal MotionEvent in GestureDetector#onTouc..."
Revert submission 19755403-242021191_ontouch

Reason for revert: b/246911932
Reverted Changes:
I518867b05:Intercept abnormal MotionEvent in GestureDetector#...
I22a5d1c16:Intercept abnormal MotionEvent in GestureDetector#...

Change-Id: I48532b2cfe54e72aebda447e797c9e93791b5d93
2022-09-15 13:46:31 +00:00
Tiger Huang
f3b99eee95 Don't perform config change if relayoutAsync
mPendingMergedConfiguration wouldn't be updated if we didn't call
IWindowSession#relayout.

Bug: 244003094
Test: atest ToggleDarkThemeMicrobenchmark#testToggle
Change-Id: Ibc2f40dd986136d9b54f3a7f491f7517489e05af
2022-09-15 15:02:40 +08:00
Arthur Hung
e3f0561b7d Merge "Clear default focus highlight when lost window focus or re-enter touch mode" 2022-09-15 01:53:13 +00:00
Taran Singh
85a57bc143 Introduce Scribe Select/DeleteRangeGesture
Add new APIs for select and delete with two rectangles.

Test: atest InputConnectionEndToEndTest
Test: atest StylusHandwritingest
Bug: 239783077

Change-Id: Ia7240d3eaac8610c774c3a4aad074a4b84b71521
2022-09-15 00:36:40 +00:00
Sally Yuen
888772b3f1 Merge "Update View with warnings about settings focus" 2022-09-14 18:56:56 +00:00
Prabir Pradhan
6fa2f081b4 Merge "Clean up some input interfaces" 2022-09-14 18:56:41 +00:00
Sally Yuen
ac24156ed2 Merge "Update View#setContentDescription to advise not setting type or state" 2022-09-14 18:52:42 +00:00
Chavi Weingarten
2b7f2aee30 Migrate screen capture code to ScreenCapture file
Test: ScreenshotTests
Bug: 242714168
Change-Id: I8061f1717cc4e293ee07672d6d415c2c36010ccd
2022-09-14 15:35:46 +00:00
Arthur Hung
5fc73f8f2f Clear default focus highlight when lost window focus or re-enter touch mode
The default focus highlight will indicate the focused view in view
system when user navigate the focus without touch.

This CL will clear it if the window focus has lost or it re-entered the
touch mode, so we won't see the wrong highlights in different windows
while using multi-window mode.

Bug: 244273901
Test: atest DefaultFocusHighlightTest
Test: multi-window, use dpad to navigate focus
Change-Id: Iad07c77b4ae16f3c88797eddd749e0aedebdd4fc
2022-09-14 06:43:22 +00:00
Wilson Wu
ce98507bf3 Fix potential failures in InputMethodService
It had the chance for calling into IMS but IMS
already destroyed.

Ideally we should suppress any callbacks after
InputMethodService#onDestroy() and log them.

Bug: 121269861
Bug: 211062619
Bug: 148086656
Test: presubmit
Change-Id: I10f26a92e739b60c5b8010e8476f8f5a403e0a7b
2022-09-14 12:49:26 +08:00
Justin Ghan
e4c0e42c12 Merge "APIs for remove space gesture, and join or split gesture" 2022-09-13 22:35:33 +00:00
Prabir Pradhan
0c89829720 Clean up some input interfaces
Make NativeInputManagerService package-private and remove the
@VisibleForTesting annotation, and update the annotation ordering in the
methods of BatteryState and InputDevice.

Bug: 245989146
Test: Build
Change-Id: I6ea839fac8037c2dd77037aed0d05b0f92ea43e3
2022-09-13 21:54:55 +00:00
Rachel Lee
148ddcf6b4 Merge "Update vsync info on late frame (Choreographer)." 2022-09-13 20:21:30 +00:00
Sally Yuen
e93fe8da78 Update View#setContentDescription to advise not setting type or state
Bug: 244787982
Test: n/a
Change-Id: Icf2ae256bae7febe7e6750aa9b5dec66968d3883
2022-09-13 00:26:38 +00:00
Sally Yuen
2577cc6ceb Improve pane javadocs
Suggest activity titles in setAccessibilityPane
Reference panes in Fragment

Bug: 244788390
Test: n/a
Change-Id: I8d12fe3879d2d05f49e68660af3b181d1dfca229
2022-09-12 23:53:24 +00:00
TreeHugger Robot
a63c368bd3 Merge "Add Builder to InputDevice for testing" 2022-09-12 20:19:58 +00:00
Justin Ghan
d12fdde387 APIs for remove space gesture, and join or split gesture
Bug: 240436909
Test: atest InputConnectionEndToEndTest
Change-Id: I2f8c511748c9de3a25bd6a17fcf33cc5017dd0e8
2022-09-12 11:13:11 -07:00
Alec Mouri
655a5e42b9 Revert^2 "Support alpha for SurfaceView"
3fde6cee3c

This is the same CL as the original CL, with the exception that SurfaceView#isZOrderedOnTop checks mRequestedSubLayer, rather than mSubLayer.

This is to fix a CTS failure with InlineContentViewTest#testSetZOrderedOnTop, which set the Z order of an offscreen SurfaceView without binding it to a layout.

Change-Id: Ifdfa710d87f7ea4c333505ffdcc7fbff06245fba
2022-09-12 17:51:56 +00:00
Zeyin Wu
8d937f340a Merge "Send AccessibilityEvent.CONTENT_CHANGE_TYPE_INVALID when TextView set errors" 2022-09-12 16:45:38 +00:00
Yeabkal Wubshit
4a8abca2d8 Merge "Reland "Conform to 1D VelocityTracker" (--try 2)" 2022-09-10 04:24:20 +00:00
Xiaowen Lei
c3bebf9ff1 Merge "Add AppTransition type and remote animation for Dream in occluding Keyguard." into tm-qpr-dev am: f8e4efccda
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19469267

Change-Id: I2219888527f5ddd3af3d79ea1db54caeade38ea1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 23:38:52 +00:00
Xiaowen Lei
f8e4efccda Merge "Add AppTransition type and remote animation for Dream in occluding Keyguard." into tm-qpr-dev 2022-09-09 23:12:19 +00:00