3774 Commits

Author SHA1 Message Date
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
Callum Moffat
3329abdb4a [iOS] Hardware keyboard text editing shortcuts (flutter/engine#28971)
* [iOS] Hardware keyboard text editing shortcuts

* Remove useless declarations
2021-10-13 18:11:39 -07:00
Chris Bracken
794db8c01b Correct file line-endings from CRLF to LF (flutter/engine#29164) 2021-10-13 12:58:01 -07:00
gaaclarke
bb884f3cd8 updated the docs for platform_message_callback (flutter/engine#29117) 2021-10-13 10:51:39 -07:00
Chris Bracken
5e2464a14d Cancel IME composing on clear text input client (flutter/engine#29146)
When a text input client is cleared, such as when the user changes focus
from one text input widget to another, or when the window itself loses
focus, cancel IME composing mode, close the composing candidates window
(if any), and reset the composing text.

Issue: https://github.com/flutter/flutter/issues/90503
2021-10-13 10:29:29 -07:00
utzcoz
1309cb66c2 Bump maximum supported sdk to 30 for Robolectric (flutter/engine#28886) 2021-10-12 17:58:01 -07:00
ColdPaleLight
fabfb41f6c Calculate the frame target time based on targetTimestamp in VsyncWaiterIOS (flutter/engine#29131) 2021-10-12 14:22:29 -07:00
freiling
dc6834552d [fuchsia][flatland] Correct present credit accounting in FlatlandConnection (flutter/engine#29057)
* [fuchsia][flatland] Test for present credit exhaustion

* [fuchsia][flatland] Correct management of present credits in FlatlandConnection
2021-10-12 13:54:39 -07:00
Gary Qian
3eb6488fa3 Always increment response_id for Android platform messages (flutter/engine#29090) 2021-10-11 23:03:02 -07:00
Jason Simmons
f30e10db45 Map the Android VsyncWaiter frame start time to the clock used by fml::TimePoint (flutter/engine#29093) 2021-10-11 13:13:01 -07:00
James Clarke
d3f3b7368e Fix build flags for WinUWP (flutter/engine#29100) 2021-10-11 09:58:02 -07:00
Alexander Biggs
3dc63f83c0 [fuchsia] Add Launcher & Resolver to Dart JIT CMX. (flutter/engine#29091) 2021-10-08 17:33:01 -07:00
Dan Field
293ef51fc6 Reland Android systrace (flutter/engine#29080)
* Reland "Use the systrace recorder if systracing is enabled at startup, and enable systracing in release mode on Android (#28903)" (#29071)"

This reverts commit a7660964b41f64991369341364a43c93317a4a51.

* More logcat

* more logs

* Remove wait

* Avoid plugin registrar exception

* DEFAULT instead of LAUNCHER

* use am instead of monkey

* Update android_systrace_test.py
2021-10-08 15:55:50 -07:00
Alexander Biggs
069625d26a [fuchsia] Rename, move some CF v1 runner code. (flutter/engine#29072)
Bug: fxb/50694
Tested: Ran Spinning Square with the JIT runner.

Some small non-destructive cleanups that should make the CF v2
Flutter runner easier to read in a follow-up PR. No logic is
changed, only naming and location.

Renames Application -> Component. This matches the filename and
Fuchsia's naming.
Moves FileInNamespaceBuffer and related utilities into a separate
file from component.cc. This will enable reusing these utilities
in the CF v2 FLutter runner. Also adds documentation for them.
Renames CreateWithContentsOfFile helper -> LoadFile since that's
what the FML_EVENT_TRACE calls it.
Removes undefined UnregisterApplication method. There are no
usages of this method in our codebase.
Move fields after methods to follow the C++ style guide.
2021-10-08 15:01:15 -04:00
linxuebin
9d9e1246a8 Macos external texture metal support yuv (flutter/engine#28341) 2021-10-08 10:58:01 -07:00
Zachary Anderson
a7660964b4 Revert "Use the systrace recorder if systracing is enabled at startup, and enable systracing in release mode on Android (#28903)" (flutter/engine#29071)
This reverts commit 79063b3c6105c3cf8be757ed6d31dd9a055060d9.
2021-10-07 22:08:10 -07:00
Dan Field
79063b3c61 Use the systrace recorder if systracing is enabled at startup, and enable systracing in release mode on Android (flutter/engine#28903) 2021-10-07 15:59:46 -07:00