Commit Graph

19345 Commits

Author SHA1 Message Date
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
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
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
Yeabkal Wubshit
8fa896d098 Reland "Conform to 1D VelocityTracker" (--try 2)
b7977568d0

Topic for the revert which is being rolled-forward: https://googleplex-android-review.git.corp.google.com/q/topic:revert-19762050-generic_vt-XWGGUQUHYR

Bug: 32830165
Test: android.view.cts.VelocityTrackerTest unaffected; touch fling works

Change-Id: Ifc1e5c3efa06656609ea2021b93706026165af8e
2022-09-09 22:07:35 +00:00
Mark Punzalan
c55c501d92 Merge "Don't reset translation callback with other state" into tm-qpr-dev am: 1eaf0fadf2 am: 017c4aa3f2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19622802

Change-Id: I647a5c1ac900ec110362884eca1d4c1f87752a64
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 21:34:13 +00:00
Sally Yuen
45ff81dfcb Update View with warnings about settings focus
Bug: 229991765
Test: n/a
Change-Id: I76b342bde5fc56eb297a0957028c7ea4e1303a16
2022-09-09 21:25:41 +00:00
Mark Punzalan
017c4aa3f2 Merge "Don't reset translation callback with other state" into tm-qpr-dev am: 1eaf0fadf2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19622802

Change-Id: I28d6c241788c00e6c37da211daad7786723002b6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 21:16:31 +00:00
Mark Punzalan
1eaf0fadf2 Merge "Don't reset translation callback with other state" into tm-qpr-dev 2022-09-09 20:56:27 +00:00
Xiaowen Lei
7c458bea7d Add AppTransition type and remote animation for Dream in occluding Keyguard.
The existing Keyguard Occlude Animation Runner doesn't match the spec
for Dream in. It animates activity expanding from the center of the
screen. For Dream in, we have:
  - Dream fading in
  - DreamOverlay complications fading in slightly delayed, with each part
    starting at different times.

This CL adds dedicated AppTransitionType and remote animation runner,
which animates Dream fading in. It doesn't implement the separate
animation for DreamOverlay complications.

Bug: 222507937
Bug: 240477956
Bug: 242864189
Fix: 240477956
Test: on device, wait for Keyguard to time out to Dream.
Change-Id: I5517ded2eea77ea962ca1551ed51dd997ff09993
Merged-In: I5517ded2eea77ea962ca1551ed51dd997ff09993
2022-09-09 20:42:45 +00:00
Xiaowen Lei
f1eee58e12 Merge "Add AppTransition type and remote animation for Dream in occluding Keyguard." 2022-09-09 20:42:05 +00:00
Treehugger Robot
7b03ffc272 Merge "make sure mSurfaceLock.unlock can be executed in unlockCanvasAndPost" am: dcef1fb28a am: e7237b1cfb am: 625d9387a5 am: a1e5845ba5 am: cecb02a175
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2206140

Change-Id: I0f70a7bf51357626a0ff2e0ebbc617be68397ffd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 20:06:49 +00:00
Treehugger Robot
cecb02a175 Merge "make sure mSurfaceLock.unlock can be executed in unlockCanvasAndPost" am: dcef1fb28a am: e7237b1cfb am: 625d9387a5 am: a1e5845ba5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2206140

Change-Id: I76d38354459c90f7d932b8f99ad63b4edb5d1ca7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 19:37:01 +00:00
Alec Mouri
9f935c2810 Merge "Revert "Support alpha for SurfaceView"" 2022-09-09 19:06:03 +00:00