3790 Commits

Author SHA1 Message Date
Jim Graham
2e3ff9cc72 only report cache entries with images for RasterCache metrics (flutter/engine#29369) 2021-10-28 21:03:01 -07:00
Jia Hao
302c2be546 Add traces to Android embedding (flutter/engine#29230) 2021-10-28 20:59:32 -07:00
Alexander Biggs
b5450b5246 [fuchsia] Remove unused sdk_ext.gni. (flutter/engine#29393) 2021-10-28 17:53:02 -07:00
Ryan Macnak
1dfe28a310 Inform the Dart VM when snapshots are safe to use with madvise(DONTNEED). (flutter/engine#29320)
Bug: https://github.com/dart-lang/sdk/issues/44019
Bug: https://github.com/flutter/flutter/issues/92120
2021-10-28 16:53:41 -07:00
Robert Ancell
702af087ba Can't test FlView on a server - no display 2021-10-29 11:46:22 +13:00
Robert Ancell
24372ebfa9 Move mock objects into separate modules 2021-10-29 11:46:22 +13:00
Robert Ancell
efe2f3ebfb Fix widget reference handling 2021-10-29 11:46:22 +13:00
Robert Ancell
1730ca3fee Make an interface for FlTextureRegistrar 2021-10-29 11:46:22 +13:00
Robert Ancell
e4951d8895 Make an interface for FlPluginRegistrar 2021-10-29 11:46:22 +13:00
Robert Ancell
66590346bf Make an interface for FlBinaryMessenger 2021-10-29 11:46:22 +13:00
Jenn Magder
b3df06166f Disallow pasting non-text into FlutterTextInputPlugin (flutter/engine#29374) 2021-10-28 13:43:02 -07:00
Gary Qian
38d660407d Revert "Temporarily delete deprecated Android v1 embedding (#29248)" (flutter/engine#29378)
This reverts commit fba89ec6a1ec5387102eb55592e2606d8de7e496.
2021-10-28 01:49:50 -07:00
Gary Qian
fba89ec6a1 Temporarily delete deprecated Android v1 embedding (flutter/engine#29248) 2021-10-28 01:00:12 -07:00
Tong Mu
f0825fd030 [Win32, Keyboard] Fix toggled state synthesization misses up events (flutter/engine#29282)
This PR fixes a problem where up events might be missed during synthesizing for toggled states.
2021-10-27 23:14:46 -07:00
Ahmed Ashour
acdc8a5c8b Fix typos (flutter/engine#29280) 2021-10-27 20:30:31 -07:00
Tong Mu
79249cf134 [macOS] Reset keyboard states on engine restart (flutter/engine#29283)
With this PR, the state of the keyboard system will be reset when the engine is reset (typically during a hot restart.)
2021-10-27 17:03:41 -07:00
Jason Simmons
2c8702d096 Build a specialized snapshot for launching the service isolate in profile mode on Android (flutter/engine#29245) 2021-10-27 11:03:01 -07:00
gaaclarke
8c4ccf58e2 Reapply: Android background platform channels (flutter/engine#29346)
* Revert "Revert "Android Background Platform Channels (#29147)""

This reverts commit 7ed91e14ccc1f5ffc4cb13d1d37e27d370c8f7cd.

* Made this PR less of a breaking change by keeping setMessageHandler's signature the same
2021-10-27 10:11:36 -07:00
Alexander Biggs
d3f2fbdcbc [fuchsia] Remove unused SettingsManager protocol (flutter/engine#29325) 2021-10-27 03:36:54 -04:00
Robert Ancell
0246f028f5 Add comment about why the present callback is empty 2021-10-27 15:27:29 +13:00
Robert Ancell
2d5c109c4d Remove unused present method
This is now done by the FlutterCompositor.present_layers_callback.
2021-10-27 15:27:29 +13:00
Gary Qian
b08aa7ebb1 Add FlutterPlayStoreSplitApplication to v2 embedding (flutter/engine#29241) 2021-10-26 17:28:01 -07:00
Dan Field
d5c36f87f5 Revert "Android Background Platform Channels (#29147)" (flutter/engine#29344)
This reverts commit c40f7670e7aff3a42be2cbac0df067009278d639.
2021-10-26 14:52:13 -07:00
godofredoc
ae68d0409b Update documentation links to point to main branch. (flutter/engine#29326) 2021-10-26 10:48:02 -07:00
Tong Mu
056234966b [macOS] Clearing overridden channel should not affect the latest channel (flutter/engine#29242)
If a class contains a channel, recreating an instance of this class will lead to the following scenario:

- The new channel is created with the same name and assigned with a callback (which overrides the earlier channel's)
- The earlier class is deallocated, deallocating the earlier channel

This PR fixes the problem where the second channel's callback will be cleared by the first channel's deallocation.
2021-10-26 01:45:50 -07:00
Alexander Biggs
028874e7b9 [fuchsia] fidl::InterfaceHandle<T> -> THandle. (flutter/engine#29305)
This is harmless, as THandle is an alias for
fidl::InterfaceHandle<T>: https://cs.opensource.google/fuchsia/fuchsia/+/main:tools/fidl/fidlgen_hlcpp/codegen/natural_types_protocol.tmpl;l=12;drc=875a5a40770ff14f716427f9bf1002a7378096bf

```sh
$ sed -i -E "s/fidl::InterfaceHandle<(.+)>/\1Handle/" shell/platform/fuchsia/flutter/*.h
$ sed -i -E "s/fidl::InterfaceHandle<(.+)>/\1Handle/" shell/platform/fuchsia/flutter/*.cc
```

Tested: Built the JIT runner.
2021-10-25 23:26:38 -04:00
Wu Zhong
c50d640a58 [iOS] Using application delegate window as fallback for textinput plugin (flutter/engine#29108) 2021-10-25 11:23:01 -07:00
Dan Field
f1dae7ad34 Delay default font manager to run concurrently with isolate setup (flutter/engine#29291)
* Delay default font manager to run concurrently with isolate setup

* test
2021-10-21 16:20:32 -07:00
Alexander Biggs
8abfaf3edf [fuchsia] Add missing protocols to V2 runner. (flutter/engine#29290) 2021-10-21 16:11:31 -07:00
gaaclarke
c40f7670e7 Android Background Platform Channels (flutter/engine#29147) 2021-10-21 16:08:02 -07:00
moko256
463e6ff6e1 Fully inplement TaskRunner for UWP (flutter/flutter#70890) (flutter/engine#28013) 2021-10-21 16:03:02 -07:00
Kaushik Iska
dc905faa2d VSyncWaiter on Fuchsia will defer firing until frame start time (flutter/engine#29287)
* VSyncWaiter on Fuchsia will defer firing until frame start time

The common vsync waiter implementation expects this invariant to be
held.

* Add a test for vsync_waiter
2021-10-21 18:56:19 -04:00
Wu Zhong
b9c37424dc [iOS] Fixes FlutterUIPressProxy leaks (flutter/engine#29156) 2021-10-21 13:14:56 -07:00
Wu Zhong
69b26c89ec [iOS] Fixes key press related memory leaks (flutter/engine#29127) 2021-10-21 13:14:33 -07:00
Junpeng
30bcce9a86 Correct spelling of "DispatchPlatformMessage" in comment of HandlePlatformMessage method (flutter/engine#29097) 2021-10-21 13:12:41 -07:00
Chris Bracken
9d6070dd18 Win32: Enable semantics on accessibility query (flutter/engine#29269)
Windows does not provide a system notification the embedder can
subscribe to to determine when a screen reader or other assistive
technology that requires the semantics tree has been enabled. [1]

In the absence of such a notification, we watch for queries for the
IAccessible COM object representing the root node of the semantics tree,
and on receipt of such queries we enable the semantics tree. For the
time being, we assume that if accessiblity is enabled, it will be
enabled for the duration of the application lifetime. In a future patch
we can optimise this by adopting the approach taken by Chromium, which
is to disable semantics if we haven't received a query within some
reasonable timeout.

This patch enables Flutter's semantics tree; a follow-up patch wires in
the AccessibilityBridge which maintains the AXTree of COM objects that
is the Windows representation of the Flutter SemanticsTree.

Issue: https://github.com/flutter/flutter/issues/77838

[1]: https://docs.microsoft.com/en-us/windows/win32/winauto/screen-reader-parameter
2021-10-21 11:42:45 -07:00
Emircan Uysaler
0dac69cfbd [fuchsia] Keep track of all child transforms in FlatlandExternalViewEmbedder (flutter/engine#29184)
* [fuchsia] Keep track of all child transforms in FlatlandExternalViewEmbedder

(cherry picked from commit 0adc38c375cbc982c481771e76b0a464ce95ee79)

* [fuchsia] HandleRemoveview cleanup
2021-10-21 08:13:05 -07:00
Chris Bracken
746ed52a12 Add FlutterWindowsEngine::DispatchSemanticsAction (flutter/engine#29278)
Adds method for dispatching a semantics action received from the OS to
the matching node in Flutter's semantics tree.

Issue: https://github.com/flutter/flutter/issues/77838
2021-10-20 23:33:19 -07:00
Jaeheon Yi
44761762e3 [fuchsia] Implement fuchsia.ui.pointer.MouseSource (flutter/engine#29034)
fxbug.dev/64381
fxbug.dev/64377
2021-10-20 19:13:12 -07:00
Dan Field
4984087a5e Remove stray log (flutter/engine#29273) 2021-10-20 17:28:01 -07:00
Jason Simmons
6e16f8ecd2 Call rapidjson::ParseResult::IsError to check for JSON parsing errors (flutter/engine#29270) 2021-10-20 16:53:01 -07:00
utzcoz
824d6575f6 Refactor FlutterViewTest with extracting common test code to methods (flutter/engine#29226) 2021-10-19 21:18:01 -07:00
Rich Kadel
b4e2f34518 Improving support for AOT builds of Fuchsia packages
The integration test works in debug/jit mode only, and building in
`profile` and `release` modes was not working, breaking some builders.

The workaround was to disable the test.

This PR will enable release/aot mode so it will build, and unblock both
the debug-mode version of the test (tested by CI) and release mode
builds of the repo.

Due to the request to unblock, this PR does not yet build packages in
`profile` mode that will run in Fuchsia, but it should at least build
without errors. Ongoing work is in progress to also support running in
release mode.
2021-10-19 17:06:29 -07:00
Callum Moffat
cd18e95d73 [iOS] Fix duplicated keys when typing quickly on HW keyboard (flutter/engine#29113)
* [iOS] Fix duplicated keys when typing quickly on HW keyboard

* Address review (refactor constant)

* Change message loop constant name

* Apply suggestions from code review

Co-authored-by: Tong Mu <dkwingsmt@users.noreply.github.com>

Co-authored-by: Tong Mu <dkwingsmt@users.noreply.github.com>
2021-10-19 14:57:11 -07:00
LongCatIsLooong
7102d778c1 [ios key handling] Return the correct physical key when the keycode isn't mapped (flutter/engine#29197) 2021-10-18 18:03:02 -07:00
Dan Field
59847e64bd Do not serialize on UI/Raster threads for Shell::OnCreatePlatformView (flutter/engine#29145)
* Do not serialize on UI/Raster threads for Shell::OnCreatePlatformView
2021-10-18 14:46:46 -07:00
Ren You
1ca163b449 Revert "Set system bar appearance using WindowInsetsControllerCompat instead of the deprecated View#setSystemUiVisibility (#29060)" (flutter/engine#29206)
This reverts commit 4a20ae9ca503214f62afe22acc92721d7f648fec.
2021-10-15 05:25:14 -07:00
Alexander Biggs
f8d6431176 [fuchsia] Create CF v2 Flutter runner. (flutter/engine#29142) 2021-10-14 16:23:01 -07:00
Wyte Krongapiradee
4a20ae9ca5 Set system bar appearance using WindowInsetsControllerCompat instead of the deprecated View#setSystemUiVisibility (flutter/engine#29060) 2021-10-14 13:08:03 -07:00
moko256
28b5d6b9a4 [UWP] Remove 1px offset to make root widget fully shown (flutter/engine#27922) 2021-10-14 13:03:01 -07:00