Commit Graph

17807 Commits

Author SHA1 Message Date
TreeHugger Robot
60c20f23cb Merge "Add API for checking if call captioning is enabled on the device" 2022-01-16 09:02:51 +00:00
Robert Carr
6f8235fc80 WindowlessWindowManager: Support touchable region
We just need to forward the WindowSession call to the internal
method we already support.

Bug: 213603716
Test: Existing tests pass
Change-Id: I692d321a96b5278c75bceb14d5b38459d360b4b9
2022-01-15 21:11:36 +00:00
Rob Carr
8ebd7e1ff1 Merge "SurfaceControlViewHost: Add side-channel to SurfacePackage" 2022-01-14 21:40:42 +00:00
Sally Yuen
421de0afb8 Merge "Replace drag & drop constants with finalize ids" 2022-01-14 17:11:29 +00:00
Kriti Dang
1774563ec0 Merge "Runtime resolution changes" 2022-01-14 08:28:12 +00:00
Yunfan Chen
a805c7e55e Merge "Support given content insets for non-IME windows" 2022-01-14 07:11:27 +00:00
Nadav Bar
c751b74f48 Add API for checking if call captioning is enabled on the device
Change-Id: I690072f912ab86d5cdf4275fa9fb11f5d2e78b64
Bug: 210923707, 136282740.
Test: Make, atest CtsAccessibilityTestCases: android.view.accessibility.cts.CaptioningManagerTest
2022-01-13 23:52:52 +02:00
TreeHugger Robot
01d195c67c Merge "Revert "Revert "Scribe in IMF: startStylusHandwriting & lifecycl..."" 2022-01-13 16:54:42 +00:00
Kriti Dang
ecf14412d3 Runtime resolution changes
Changed the names of existing display mode APIs.
Added similar APIs in Display class, so that
resolution and refresh rate settings can be pesisted for each display.
The APIs can now be used to set display mode (or only resolution or
refreshRate).

Bug: 206911689
Test: atest DefaultDisplayModeTest

Change-Id: I19655fc347d36e45b5664e2b6faa3d58b5d7004c
2022-01-13 13:47:59 +01:00
Robert Carr
a3fc4405a1 SurfaceControlViewHost: Add side-channel to SurfacePackage
We add a control interface in to surface-package which allows
the embedding process to dispatch events back to the embedded
process. So far we support forwarding configuration changes,
and dispatching a detach view hierarchy message.

Bug: 213603716
Test: Existing tests pass
Change-Id: I7d68628d845b5da687568ffa20529ce2a7772495
2022-01-12 19:34:42 -08:00
Ashwini Oruganti
776b439703 Merge "Revert "Migrate unsafe parcel APIs in framework-minus-apex"" 2022-01-12 23:07:08 +00:00
Taran Singh
94324080af Revert "Revert "Scribe in IMF: startStylusHandwriting & lifecycl..."
Revert^2 "CTS for Stylus Handwriting lifecycle"

493b8d7d3b4d43e483c03b155d38057e3eacd3c9

Reason: Fix API signature related issues by making newly introduced
 methods in InputMethod.java default

Bug: 213976598
Bug: 203086136
Test: atest StylusHandwritingTest
Test: atest SignatureTest#testSignature

Change-Id: Idfd5d1f84e66e3a19ef384589b4892adb91f8066
2022-01-12 19:23:47 +00:00
Derek Sollenberger
11a249be90 Merge "Reland "Enforce that RuntimeShader is only hardware accelerated"" 2022-01-12 19:01:12 +00:00
Bernardo Rufino
331be9a643 Revert "Migrate unsafe parcel APIs in framework-minus-apex"
This reverts commit 90bb3709dc.

Reason for revert: b/214053959

Change-Id: Ic271bab1d3eaf677a5989dda9deb944ee2ad6850
2022-01-12 17:44:44 +00:00
Yunfan Chen
98cc29d15d Support given content insets for non-IME windows
This will let the task bar and all other windows provide an insets frame
smaller than the window's frame. This is a regression caused by the
flexible insets change.

If the window provides both internal insets and the content insets, both
of them will be deducted. A comment is added to the
provideInternalInsets to avoid the mis-use. There's a long term plan to
change the functionality of the provideInternalInsets. Will have it in
the follow-up patches.

Bug: 212221722
Test: atest DisplayPolicyTests
Change-Id: Ib9e414627992b46b1a1d0afa314ea180dfdbc4d6
2022-01-12 17:55:09 +09:00
Josh Wu
3b35b6ab08 Merge "Revert "Scribe in IMF: startStylusHandwriting & lifecycle 2/N"" 2022-01-11 13:47:41 +00:00
Josh Wu
9d0c8ce4f3 Revert "Scribe in IMF: startStylusHandwriting & lifecycle 2/N"
Revert "CTS for Stylus Handwriting lifecycle"

Revert submission 16281467-stylus-handwriting-lifecycle

Reason for revert: Breaks apisignaturetests

BUGID: b/213976598

Reverted Changes:
I7b066c284:Scribe in IMF: startStylusHandwriting & lifecycle ...
I7d672b150:CTS for Stylus Handwriting lifecycle

Change-Id: Ieec94ea525fdb45cf5316b4a331c2bf9882e1083
2022-01-11 08:35:33 +00:00
Taran Singh
5f2a1a7101 Merge "Scribe in IMF: startStylusHandwriting & lifecycle 2/N" 2022-01-11 03:25:10 +00:00
Ryan Lin
a07c844e38 Merge "Expose window type MAGNIFCATION_OVERLAY to AccessibilityService" 2022-01-11 02:16:39 +00:00
Taran Singh
44dc2805b5 Scribe in IMF: startStylusHandwriting & lifecycle 2/N
Introduce InputMethodManager.startStylusHandwriting(View) API
and IME lifecycle.

Bug: 203086136
Test: atest StylusHandwritingTest
Change-Id: I7b066c2841b713e7a00ae2ea4ca0ce04aad751c6
2022-01-10 19:09:55 +00:00
Derek Sollenberger
2474c831d7 Reland "Enforce that RuntimeShader is only hardware accelerated"
Throw an illegal argument exception any time a Paint with
a RuntimeShader is attempted to be drawn into a software
canvas. Also mark that a Picture that uses a RuntimeShader is
properly marked as requiring hardware acceleration.
These tests check that the use of RuntimeShaders trigger

Bug: 189102731
Bug: 201546136
Test: atest CtsUiRenderingTestCases:RuntimeShaderTests
Test: atest CtsGraphicsTestCases:RippleDrawableTest
Change-Id: I663e2bc06a3b475f0bb256ce6a9c00c6432ffa42
2022-01-10 18:00:19 +00:00
John Reck
46cff23420 Merge "Don't animate TextView marquee if not visible" 2022-01-10 15:31:42 +00:00
Arthur Hung
335de00f34 Merge "Update OWNERS for input relevant files" am: faf6041b60 am: a3204a2631 am: c724dc5050 am: 5a301480c8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1938444

Change-Id: Ibbb54c894cd2c0c49b2dfd63ddee9ee94f8aa72a
2022-01-10 13:43:51 +00:00
Arthur Hung
5a301480c8 Merge "Update OWNERS for input relevant files" am: faf6041b60 am: a3204a2631 am: c724dc5050
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1938444

Change-Id: Iad762e2d826420da5da0b5d184864a0ba627330b
2022-01-10 13:27:39 +00:00
Arthur Hung
faf6041b60 Merge "Update OWNERS for input relevant files" 2022-01-10 12:30:33 +00:00
Leon Scroggins
a8693ecd42 Merge "DisplayManager: Add an API to query for DISPLAY_DECORATON" 2022-01-07 17:11:47 +00:00
TreeHugger Robot
413e92ac19 Merge "Fix flaky test WindowInputTestsi#testTrustedOverlapWindow" into sc-v2-dev am: 651343388f am: cfa5c420e3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16544958

Change-Id: I59a4af69db4c0b9bf0e906cb56f5304dc2af37ea
2022-01-07 15:15:13 +00:00
TreeHugger Robot
cfa5c420e3 Merge "Fix flaky test WindowInputTestsi#testTrustedOverlapWindow" into sc-v2-dev am: 651343388f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16544958

Change-Id: I4001fabda75da2bfc2da66eb7692cc021078e549
2022-01-07 15:02:02 +00:00
Leon Scroggins III
c66a2ac732 DisplayManager: Add an API to query for DISPLAY_DECORATON
Tunnel through SurfaceControl to determine whether the HWC has this
capability. This allows clients (i.e. SystemUI) to know whether they can
use Composition.DISPLAY_DECORATON. If so, they may want to render
differently (i.e. in A8). See Ib948c38ee189877eda675a6342cb70099f66122b
for an example.

Bug: 193170859
Test: manual
Test: TODO
Change-Id: I9904452b6408199bb1f86de9e21132e4d4444e1a
2022-01-07 09:41:01 -05:00
Arthur Hung
6c1c224661 Update OWNERS for input relevant files
Bug: 189241600
Change-Id: I3f6ab682578d379d576682de632374882f66d761
2022-01-07 14:24:22 +00:00
Bill Yi
6042a19c72 Merge sc-qpr1 to aosp-master - DO NOT MERGE
Merged-In: I90ca5ccbf686a975f479c2488ff34f82af12946a
Merged-In: I128f5ed6c1bad350ea449bba5da21123de3ea31b
Change-Id: Ib18c8042f735dceeee5e6ab9f1c963cf630913a6
2022-01-06 18:38:32 -08:00
Daniel Hsieh
53d247ace8 Merge "Support following typing foucs in window mode [2/n]." 2022-01-07 02:27:49 +00:00
Arthur Hung
7ed2d03fdb Fix flaky test WindowInputTestsi#testTrustedOverlapWindow
When disabling batching input, we should post the action to consume
batched events to prevent it would be handled before current event.

Bug: 189241600
Test: atest WindowInputTests --rerun-until-failure
Change-Id: I87aaa2574a27368f88df1aba3f2eb769a8e8f36b
(cherry picked from commit a0ef47223c)
2022-01-07 02:22:28 +00:00
sallyyuen
53e449951b Replace drag & drop constants with finalize ids
Bug: 197520937
Test: builds
Change-Id: I05ec8a7e119288e13e0c670e88323743238397c4
2022-01-06 16:36:15 -08:00
Vishnu Nair
dfea9ff5d0 Merge "SurfaceView: Synchronize visibility changes with VRI frame" 2022-01-06 19:00:13 +00:00
Joanne Chung
93cbc8aa8e Merge "Refine FloatingToolbarPopup to allow multiple implementations" 2022-01-06 11:55:30 +00:00
TYM Tsai
ba6aaaeff0 Merge "Migrate compat mode allowed list to DeviceConfig" 2022-01-06 11:46:39 +00:00
Prabir Pradhan
d30e268474 Merge "Revert "Use SOURCE_CLASS_POINTER as the default source for MotionEvent"" 2022-01-06 10:41:30 +00:00
Prabir Pradhan
3ccd2488c5 Revert "Use SOURCE_CLASS_POINTER as the default source for MotionEvent"
This reverts commit b1d3e076af.

Reason for revert: Breaking CarUiRecyclerViewTest#testThumbDragToCenter tests

Bug: 211051185
Bug: 211051850
Bug: 213425347

Change-Id: Ia8e5c2301ab389a4e9b436165157f8918d285649
2022-01-06 10:23:41 +00:00
Vishnu Nair
230677e7b3 SurfaceView: Synchronize visibility changes with VRI frame
There is a flicker in wallpaper picker due to a recent change where
SurfaceView creation changes were synchronized with VRI frame. This
breaks wallpaper picker because wallpaper picker doesn't actually
draw into the SV surface, instead they attach a surface package.

The current implementation meant the SurfacePackage would be visible
before it was scaled correctly.

This fix applies the visibility changes along with the scaling changes.

Test: steps in b/211945947
Fixes: 211945947
Change-Id: I4e5107ac2caf634429e1bec3201fdcaa8f5f92bc
2022-01-05 16:26:36 -08:00
Haoyu Zhang
a58ffd37ff Merge "Scribe in View: Introduce HandwritingInitiator" 2022-01-05 23:14:09 +00:00
Haoyu Zhang
934fa21273 Scribe in View: Introduce HandwritingInitiator
This CL only implement the handwriting initiation for milestone 1:
a) handwriting is only initiated for a focused editor.
b) user must start handwriting within the editor's boundary.

Bug: 209854913
Test: atest FrameworksCoreTests:HandwritingInitiatorTest
Change-Id: Iab6d83f58aa74f0af8091731c80bbdb2eb29c024
2022-01-05 12:37:30 -08:00
Sally Yuen
f685942962 Merge "Add and implement cache API" 2022-01-05 20:11:36 +00:00
Daniel Hsieh
8cdb9fedb9 Support following typing foucs in window mode [2/n].
There are 3 milestones in this feature.
1. Refactor the callbacks for Accessibility in WindowManagerInternal.
2. Implement this feature in such new architecture.
3. Implement the setting choice in preference page.

This CL is for the 2nd milestone.

We move the window magnification to the typing focus' center position
based on the condition of whether a user takes control or not. We only
make a movement when the control is not taken by a user or we don't
preform the movement for the window magnification.

There are 2 methods for a user to take the control.
1. A user use 1 finger to drag the window magnification.
2. A user use 2 finger to drag the window magnification.

There is 1 method for a user to release the control.
1. When IME is shown, the control would be released.

So, we can decide whether we should make a movement to typing focus
given the condition of who take the control.

Bug: 194668976
Test: atest MagnificationControllerTest
	atest WindowMagnificationTest
	atest WindowMagnificationControllerTest
	atest WindowMagnificationManagerTest
Change-Id: I145f893d412b74c20afe1685449370d1dba99961
2022-01-05 09:08:20 +00:00
Arthur Hung
1273a2bdf3 Merge "Consuming common key combinations in app priority" 2022-01-05 01:29:14 +00:00
Riley Jones
71cafe807e Merge "Deprecate obtain and recycle for AccessibilityNodeInfo Test: Feature removal, should not interfere with existing unit tests Fixes: 208469173" 2022-01-04 17:49:58 +00:00
Arthur Hung
292152573a Consuming common key combinations in app priority
Some apps or games could use the combo keys such as holding Ctrl or Alt
to trigger its own shortcut or behavior. To prevent the system shortcut
might be handled before dispatching to the app, we move these keys
handling to 'dispatchUnhandledKey' when the app didn't handle.

This will also fix the corresponding state when the modifier key is
released.

Bug: 156619364
Bug: 213096704
Test: atest AppKeyCombinationsTest
Change-Id: I42770045c61ad6396b27132b8a61d34fc121d77e
2022-01-04 07:08:55 +00:00
shawnlin
fb137147e2 Update the java doc of DisplayCutout.getBoundingRect API.
Since we now support long edge cutout, the description of this API is
out of date.

Bug: 211939507
Test: make
Change-Id: I04c4c34e56c4e8b8d466e05cf60e89da31d6cc9b
2022-01-04 04:40:43 +00:00
Adrian Roos
9a1aee4d2b WindowManager: Fix javadoc for soft input states
Change-Id: I23e10b92356113ec61d1f2ee50a2f6d72ab17abf
2022-01-03 22:21:46 +01:00
TreeHugger Robot
806e4df853 Merge "BBQ: Recreate BBQ when SurfaceControl changes 2/2" 2021-12-30 00:16:14 +00:00