Commit Graph

16495 Commits

Author SHA1 Message Date
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
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
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
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
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
Tony Mak
c420dfdecf Merge "Notify TextClassifier an app is reading the clipboard" into sc-dev am: cf4076db0f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14127235

Change-Id: I67fd7be09e02ce4d476679002068b13b1b2e60cd
2021-04-14 14:23:10 +00:00
Tony Mak
cf4076db0f Merge "Notify TextClassifier an app is reading the clipboard" into sc-dev 2021-04-14 13:57:43 +00:00
Mathew Inwood
0a6ed09025 API changes as requested by API council.
Bug: 183512729
Test: m
Change-Id: Ie465c49ff02065e78a2e8e211a13350a0ff7f0a4
2021-04-14 09:51:22 +00:00
Siarhei Vishniakou
bc7a82e6b8 Merge "Revert "Check mInputEventReceiver before sending timeline"" into sc-dev am: f3779061f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14173053

Change-Id: I140690f397572b8a956d432ac9d3d2c44714a4c1
2021-04-14 06:51:16 +00:00
Wilson Wu
f18e567b2a Rename IInputMethodManager#reportPerceptible
Rename this method to reportPerceptibleAsync
for readability, because it was already a truly
one-way method when it create.

Bug: 185281885
Test: atest CtsInputMethodTestCases
Change-Id: I9c72b980678f0310c79b293ea06f465e9ca1d760
2021-04-14 14:50:30 +08:00
Siarhei Vishniakou
f3779061f4 Merge "Revert "Check mInputEventReceiver before sending timeline"" into sc-dev 2021-04-14 06:26:45 +00:00
Ben Murdoch
35fccc4535 Revert "Check mInputEventReceiver before sending timeline"
This reverts commit d2766d013f.

Reason for revert: Cheery pick for release build stabilisation

Bug: 169866723
Bug: 184255546
Bug: 184771626
Bug: 185015591

Change-Id: I1ee859aa8432598932efe918656146d257c6684e
2021-04-14 06:24:10 +00:00
Wilson Wu
7ec569a5cd Make removeImeSurfaceFromWindow to one-way
We introduced IVoidResultCallback mechanism to
removeImeSurfaceFromWindow in CL[1] to simulate
two-way behavior before it become truly one-way.

InputMethodManagerService#removeImeSurfaceFromWindow()
simply post the task into its message queue hence we
should able to safely convert this method into one-way.

-. Remove IVoidResultCallback for this method
-. Rename it to removeImeSurfaceFromWindowAsync

[1]: Icb396ae5d74060af69c4ecb16723b2e37b9f2067

Bug: 179668859
Bug: 185277968
Test: Manual test with b/179668859 steps, and works fine
Test: atest CtsInputMethodTestCases
Change-Id: Id28698e263a23ec4a6e4f89438eba5d19bbbabbb
2021-04-14 13:04:32 +08:00
Vishnu Nair
dd7bcafc22 Merge "Honor the BlastSync request from WM until a frame is drawn" into sc-dev am: c9fb54069c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14164168

Change-Id: I5ec8b9e44ced71a60d00edcc66f0b50b9105366c
2021-04-13 23:24:07 +00:00
Vishnu Nair
c9fb54069c Merge "Honor the BlastSync request from WM until a frame is drawn" into sc-dev 2021-04-13 23:06:07 +00:00
Jorim Jaggi
41edbbf86d Merge "Change hwui jank detection to use deadline & gpu completion (1/2)" into sc-dev am: 21142c13de
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13562070

Change-Id: If103b9233588dd21c007f608caac598350ef68bf
2021-04-13 20:39:45 +00:00
John Reck
6a8b27b8c7 Merge "Remove CloseGuard from DisplayEventReceiver" into sc-dev am: 9f7e44d30d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14174188

Change-Id: Ifcff1ec6c7d8ea3c36135861414bcc8b87504093
2021-04-13 20:39:19 +00:00
Rob Carr
4fc301aa36 Merge "Remove deferTransactionUntil" into sc-dev am: 211bf19cca
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13855851

Change-Id: I93b36a40288478d4bcfb6aae60d351788fe0f17b
2021-04-13 20:38:55 +00:00
Jorim Jaggi
21142c13de Merge "Change hwui jank detection to use deadline & gpu completion (1/2)" into sc-dev 2021-04-13 19:58:27 +00:00
John Reck
9f7e44d30d Merge "Remove CloseGuard from DisplayEventReceiver" into sc-dev 2021-04-13 19:50:53 +00:00
Rob Carr
211bf19cca Merge "Remove deferTransactionUntil" into sc-dev 2021-04-13 19:47:24 +00:00
Marin Shalamanov
6bb8076a94 Merge "Fix NPEs for virtual displays" into sc-dev am: 99364678df
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14141616

Change-Id: I66030d9bb575780439efda8c9f35ef3c6c0888f4
2021-04-13 17:41:00 +00:00
Marin Shalamanov
99364678df Merge "Fix NPEs for virtual displays" into sc-dev 2021-04-13 17:19:40 +00:00
John Reck
7db8da8a1e Remove CloseGuard from DisplayEventReceiver
Majority usage of DisplayEventReceiver is with Choreographer, which
is a thread-local. As such, it cannot have dispose() called on it
easily and dispose is also @hide. Since apps can't do anything
about this, and aren't really supposed to, remove the CloseGuard
as it just generates false-positive errors for 3p devs.

Fixes: 154358085
Test: none
Change-Id: I5e9e5324644967897f2b37a19f4fb1485b8ae5bb
2021-04-13 12:58:51 -04:00
Jorim Jaggi
10f328c580 Change hwui jank detection to use deadline & gpu completion (1/2)
- Use GPU finish time as well as actual deadline to determine jank
rate.
- Use dynamic interval to adjust for 60/90hz switching
- Move frame metrics reporting into JankTracker to adjust the
deadline communicated to the app when in stuffing scenario.
- Adjust double-stuffing detection to be a bit more readable.

Test: GraphicsStatsValidationTest.java
Test: adb shell dumpsys gfxinfo
Test: FrameMetricsListenerTest
Test: Log output of FrameMetricsObserver
Bug: 169858044
Change-Id: I3a6b8ed163e2cf9cf2b67667110340ebe35f98a1
2021-04-13 15:18:27 +00:00