Commit Graph

16516 Commits

Author SHA1 Message Date
TreeHugger Robot
af0a5f17a5 Merge "ContentCapture: Log the text length for VIEW_APPEARED events." into sc-dev am: 6309cca5d9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14245840

Change-Id: Ia5320298e618f1270130bc93482257bdeaaa63e4
2021-04-20 07:13:21 +00:00
TreeHugger Robot
6309cca5d9 Merge "ContentCapture: Log the text length for VIEW_APPEARED events." into sc-dev 2021-04-20 06:52:18 +00:00
Ahaan Ugale
6f4ace91fd ContentCapture: Log the text length for VIEW_APPEARED events.
Helps for matching logs to screen contents while debugging.

Bug: 177687849
Test: manual
Change-Id: Id7e43034843f65f36c9030278728d27ec4f27168
2021-04-19 22:08:54 -07:00
Yi-yo Chiang
c04eba506a Merge "Revert "Introduce SpellCheckerSessionParams."" into sc-dev am: ea80476aa4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14234776

Change-Id: I2770fd55d10e8762e3377f7102874aed20ba82c5
2021-04-20 04:46:22 +00:00
Yi-yo Chiang
ea80476aa4 Merge "Revert "Introduce SpellCheckerSessionParams."" into sc-dev 2021-04-20 04:41:45 +00:00
Yi-yo Chiang
cef2817d90 Revert "Introduce SpellCheckerSessionParams."
Revert "Use SpellCheckerSessionParams in CTS."

Revert submission 14191185-ky-tsm

Reason for revert: breaks build test_suites_x86_64 b/185855437
Reverted Changes:
I724aaad15:Introduce SpellCheckerSessionParams.
I510a4cfec:Use SpellCheckerSessionParams in CTS.

Change-Id: I4173bd5bee62f02a248de69df77420c39326b9f0
2021-04-20 03:57:05 +00:00
Kohsuke Yatoh
d5ea4714fe Merge "Introduce SpellCheckerSessionParams." into sc-dev am: 93528b8f5b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14191185

Change-Id: Icf37d922d1995d8a0442d6ced81d77890691d805
2021-04-20 03:31:42 +00:00
Kohsuke Yatoh
93528b8f5b Merge "Introduce SpellCheckerSessionParams." into sc-dev 2021-04-20 03:06:40 +00:00
TreeHugger Robot
9a63a6263f Merge "Rename destSpecs to targetSpecs" into sc-dev am: e354625105
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13912258

Change-Id: Ia187703101ac6e048851d9e8dbf7a7f81c18a717
2021-04-20 01:33:16 +00:00
TreeHugger Robot
e354625105 Merge "Rename destSpecs to targetSpecs" into sc-dev 2021-04-20 01:21:06 +00:00
Rob Carr
6e8f3d6b16 Merge "SurfaceFlinger: Prepare to remove BufferQueueLayer" into sc-dev am: 00019e2e56
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13847230

Change-Id: I6838f358e49d21d405f0a9c2490daf1d90230cc5
2021-04-20 00:53:24 +00:00
Rob Carr
00019e2e56 Merge "SurfaceFlinger: Prepare to remove BufferQueueLayer" into sc-dev 2021-04-20 00:42:30 +00:00
Chavi Weingarten
8890beccd3 Merge "Updated DisplayHash APIs" into sc-dev am: 8570e52d00
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14100524

Change-Id: Ia49e144989dbb341dcc2e10cc26a093520e5453f
2021-04-19 18:43:01 +00:00
Chavi Weingarten
8570e52d00 Merge "Updated DisplayHash APIs" into sc-dev 2021-04-19 16:30:45 +00:00
Ahaan Ugale
dbecc1a2bf Merge "AutoTranslate: Pad view text for compatibility reasons." into sc-dev am: 1281143a36
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14206887

Change-Id: I7958851096e91784f49463c04f238b5a3af54c56
2021-04-19 05:41:34 +00:00
Ahaan Ugale
1281143a36 Merge "AutoTranslate: Pad view text for compatibility reasons." into sc-dev 2021-04-19 05:19:53 +00:00
Huihong Luo
3497128f2b Merge "Webview overlay support" into sc-dev am: 81d78b91f9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13693804

Change-Id: I866a989d53a8f8ecd2c4bd11b301ad51e20ec442
2021-04-19 05:07:16 +00:00
Huihong Luo
81d78b91f9 Merge "Webview overlay support" into sc-dev 2021-04-19 04:45:52 +00:00
Kohsuke Yatoh
94635fcb89 Introduce SpellCheckerSessionParams.
SpellCheckerSessionParams encapsulates parameters for
TextServicesManager#newSpellCheckerSession().

Bug: 179804789
Test: atest CtsInputMethodTestCases:SpellCheckerTest
Change-Id: I724aaad15b0a4bd38f6a24585c4c45cfeee5b499
2021-04-17 22:49:25 +00:00
Huihong Luo
054b8d3000 Webview overlay support
The basic idea is to create a child surface control from the root surface control passed from ViewRootImpl to the render thread.

Transactions are sent back to the java layer to get merged.

In case of offscreen layers, SurfaceControl must be disabled.

This new feature is disabled for Vulkan at the moment, a new CL will be used to enable the support.

Bug: 173671170
Test: manual, webview apks
Change-Id: I119405d13eca3c59fd3ec78e50dc7739f78411d4
2021-04-17 13:24:48 -07:00
Ahaan Ugale
7110641881 AutoTranslate: Pad view text for compatibility reasons.
Some apps operate on the view text based on layout calculations made on
the transformed text. This can cause issues (even crashes) if the
transformed text is longer than the original, as is often the case with
Translate. A previous temporary fix,
I685ae4a9752c817db81f0d736f1d746b2e4a9839, ellipsized the translated
text. This change fixes it properly by instead padding the original
text.

A followup change will make this controllable by API instead of padding
every TextView.

The en space character, U+2002, is used for the padding here. It seems
to work well in practice for multiple languages. We don't make this
configurable through API as it could make debugging harder (issues
triggered by server-side changes).

Bug: 179693024
Test: atest CtsTranslationTestCases
Test: manual - toggling between original and translated, scrolling, new
 views appearing, multiple apps
Change-Id: I9d7db5d2bc200e4042baf3267796f00cfc298f19
2021-04-16 19:38:28 -07:00
TreeHugger Robot
bebb91c56e Merge "Add a test api for checking if system supports TaskSnapshot" into sc-dev am: ad6ad26441
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14206607

Change-Id: I3bd71a6dc3dffe25af09a5f076b46834fd6f6030
2021-04-16 23:49:21 +00:00
TreeHugger Robot
ad6ad26441 Merge "Add a test api for checking if system supports TaskSnapshot" into sc-dev 2021-04-16 23:25:12 +00:00
Adam He
7f065dedca Merge "Add cancellationSignal to the Translator#translate() api." into sc-dev am: 7ae022ade8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14069971

Change-Id: Ibd9ebb681f6abd1e6f3e324f85518029f7d60407
2021-04-16 21:17:56 +00:00
Adam He
7ae022ade8 Merge "Add cancellationSignal to the Translator#translate() api." into sc-dev 2021-04-16 20:58:59 +00:00
Mark Renouf
2ebbeaff55 Merge "Update Javadoc method references" into sc-dev am: 3a37c9ea0b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14200263

Change-Id: I74a417954f577fb8cc3b17c8aeb3d2e40f31ac80
2021-04-16 16:52:37 +00:00
Mark Renouf
3a37c9ea0b Merge "Update Javadoc method references" into sc-dev 2021-04-16 16:47:59 +00:00
TreeHugger Robot
e968dc5590 Merge "Rename IInputMethodManager#reportPerceptible" into sc-dev am: c9eaa3d80f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14182409

Change-Id: If52415d8c9cad6502a58eb9e1633d247458118f8
2021-04-16 05:35:58 +00:00
TreeHugger Robot
c9eaa3d80f Merge "Rename IInputMethodManager#reportPerceptible" into sc-dev 2021-04-16 05:14:30 +00:00
Ming-Shin Lu
c8e411fd1f Add a test api for checking if system supports TaskSnapshot
Use this test api to make sure testing
KeyboardVisibilityControlTest#testRestoreImeVisibility_.* that
requires the system supporting TaskSnapshot mechanism, otherwise skip
the test when the system doesn't support it.

Bug: 184978234
Test: m checkapi & atest KeyboardVisibilityControlTest
Change-Id: I777053aeeb6a2734a4bbd37711cf56ced41c1bd9
2021-04-16 11:37:52 +08:00
Robert Carr
660a6679d9 SurfaceFlinger: Prepare to remove BufferQueueLayer
To prepare to remove BufferQueueLayer we port over the public Java API
(getSurface) and a few remaining clients (largely tests), by returning
a BBQ from getSurface.

Bug: 185492007
Test: Existing tests pass
Change-Id: I5c59dc5785333c543ef9f5e70faafab5da110bbd
2021-04-16 03:02:15 +00:00
Chavi Weingarten
f8a437a452 Merge "Use BLAST layer for screen rotation, surface freezer, and organizer" into sc-dev am: d6ea380f13
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13886772

Change-Id: I2df84bc00c8a0c3c819ab6691e35aabcfaba0df9
2021-04-16 00:54:57 +00:00
Chavi Weingarten
d6ea380f13 Merge "Use BLAST layer for screen rotation, surface freezer, and organizer" into sc-dev 2021-04-16 00:30:11 +00:00
Mark Renouf
a7925f9c6d Merge changes I3a11ac86,I84e0b1fd into sc-dev am: d389165bd6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14200262

Change-Id: If7b233755abfac3cc7c80fb1556b30b48ef0075e
2021-04-15 19:46:02 +00:00
Ady Abraham
c888ca9772 Merge "Choreographer: add more traces" into sc-dev am: fac5a8023f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14190128

Change-Id: I9becd91a527cf5aec9e54cfb1d13fed6712b856b
2021-04-15 19:45:18 +00:00
Mark Renouf
d389165bd6 Merge changes I3a11ac86,I84e0b1fd into sc-dev
* changes:
  ScrollCaptureConnection: fix npe on close() when active
  Scroll Capture: Add configurable post-scroll capture delay
2021-04-15 19:19:27 +00:00
Ady Abraham
fac5a8023f Merge "Choreographer: add more traces" into sc-dev 2021-04-15 19:17:28 +00:00
Mark Renouf
dbb293e7f2 Update Javadoc method references
Bug: n/a
Test: n/a
Change-Id: I81910d5300b14e4e797e1ee0e1fa369dffa4be6c
2021-04-15 13:31:57 -04:00
Mark Renouf
1cd1c555c2 ScrollCaptureConnection: fix npe on close() when active
A reference to the callback was being removed while still
needed. Instead use a local copy for posted callback.

Bug: 12345678
Test: atest ScrollCaptureConnectionTest#testCloseWhileActive
Change-Id: I3a11ac86a8c291972f442ebce962ba8a3a1ddee6
2021-04-15 13:31:48 -04:00
Chavi Weingarten
3bc01a0670 Merge "Use separate Transaction object in SV" into sc-dev am: 476d1d4558
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14117648

Change-Id: I9a17385850943d31a5e9ab878ade8e3acf0bba50
2021-04-15 14:52:08 +00:00
Chavi Weingarten
476d1d4558 Merge "Use separate Transaction object in SV" into sc-dev 2021-04-15 14:30:38 +00:00
Mathew Inwood
c9197f86ca Merge "API changes as requested by API council." 2021-04-15 12:25:23 +00:00
chaviw
10fe18eaf8 Updated DisplayHash APIs
Updated the DisplayHash APIs and docs based on API review

Test: Builds
Bug: 183547053
Bug: 185274179
Change-Id: I23e6491341a3f9cac96c704aa0a93d7d3e8dfebb
2021-04-14 17:24:09 -05:00
Ady Abraham
d449b88ea2 Choreographer: add more traces
Test: collect systraces
Bug: 184951839
Change-Id: I435704361d9512f85603e1e8e96625dc6f547e32
2021-04-14 22:16:24 +00:00
Yohei Yukawa
e3a4a27c7e Merge "Make removeImeSurfaceFromWindow to one-way" into sc-dev am: 3b99155905
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14174202

Change-Id: Id0cfa659bf4b1f05f65a301ea0c9d23370e3f5ed
2021-04-14 17:17:45 +00:00
Yohei Yukawa
3b99155905 Merge "Make removeImeSurfaceFromWindow to one-way" into sc-dev 2021-04-14 17:12:18 +00:00
Joanne Chung
a7f77e045c Merge "Add debug log to help to debug translation problem." into sc-dev am: bef7481684
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14159586

Change-Id: Ia1147a8c7ea5109a51936066d258665cf3c4b014
2021-04-14 16:55:03 +00:00
Joanne Chung
bef7481684 Merge "Add debug log to help to debug translation problem." into sc-dev 2021-04-14 16:27:31 +00:00
Vishnu Nair
41a3730a5a Merge "Only clear SurfaceControl.Transaction when parcelling as a return value" into sc-dev am: 39fff73c04
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14108881

Change-Id: I8157c081ac1a8f44d3ed32b4dedfb67815c75641
2021-04-14 15:30:07 +00:00
Vishnu Nair
39fff73c04 Merge "Only clear SurfaceControl.Transaction when parcelling as a return value" into sc-dev 2021-04-14 15:27:18 +00:00