1175 Commits

Author SHA1 Message Date
xster
76df94bbde Reduce the warning severity for FlutterEngineGroup (flutter/engine#25544) 2021-04-13 10:14:02 -07:00
Ari Weiland
ce085d0129 Add automatic onBackPressed behavior to FlutterFragment (flutter/engine#25453) 2021-04-09 13:18:43 -07:00
Dan Field
22da76000a Refactor GPU access switch (flutter/engine#24356) 2021-04-06 22:16:06 -07:00
Ari Weiland
48df08e088 Update FlutterFragment to implement ComponentCallbacks2. (flutter/engine#25428) 2021-04-05 23:04:46 -07:00
Chris Bracken
f4d1c89df1 Extract Dart logging to the embedders (flutter/engine#25402)
Previously messages logged from Dart code (e.g. via the print function)
were handled directly in the engine by platform-specific code. This
factors out a LogMessage(tag, message) callback that embedders can
implement with platform-specific code.

This also eliminates a dependency on platform-specific code in the core,
and provides more flexibility to embedders than the current fallback to
stdout, which can be a problem on platforms without a traditional stdout
or with restrictions on stdout.

Fixes https://github.com/flutter/flutter/issues/79685
2021-04-05 15:43:21 -07:00
xster
6f92b73ba2 Revert "Deduplicate plugin registration logic and make error logs visible (#25297)" (flutter/engine#25393) 2021-04-02 12:44:01 -07:00
Chris Bracken
9b4a0264d5 Correct typos throughout the engine/embedder (flutter/engine#25346)
Used the the `misspell` tool available at
https://github.com/client9/misspell, then applied hand-corrections. It's
possible we could adopt this as a presubmit, but there are still enough
false positives that it may not be worth the effort.
2021-04-01 11:08:19 -07:00
Emmanuel Garcia
c34705f5dd Reland: "Fix memory leak and bug in the RunsOnCreationTaskRun" (flutter/engine#25317) 2021-03-31 15:16:38 -07:00
Alexander Brusher
3ebaf4f764 [fuchsia][a11y] Adds isKeyboardKey semantics flag. (flutter/engine#25167)
This change introduces a semantics flag to indicate whether a node
represents a virtual keyboard key.
2021-03-30 13:26:56 -07:00
xster
59ff1d3735 Deduplicate plugin registration logic and make error logs visible (flutter/engine#25297) 2021-03-30 11:19:01 -07:00
chunhtai
0b40ddfde0 Reland "Fixes android voice access delete text, redo, and undo action" (flutter/engine#25289)
* Reland "Fixes android voice access delete text, redo, and undo actions. (#25050)"

This reverts commit b1b20aedd68a6cfea50b61e4f4aca74c3909407c.

* fix condition
2021-03-30 10:21:21 -07:00
xster
058ebe70e5 Turn off insecure socket policy configuration in the engine (flutter/engine#25299) 2021-03-30 10:15:10 -07:00
LongCatIsLooong
bc034502d7 [Android Text Input] restart when framework changes composing region (flutter/engine#25180) 2021-03-29 16:29:01 -07:00
Karl
fcb807db42 Add clear method in FlutterEngineCache to clear all cached Flutter engines #78420 (flutter/engine#25280) 2021-03-29 09:59:01 -07:00
chunhtai
b1b20aedd6 Revert "Fixes android voice access delete text, redo, and undo actions. (#25050)" (flutter/engine#25286)
This reverts commit dd9fcd6de3b0f3279153fd6549e828389b9124d3.
2021-03-29 09:31:07 -07:00
shuoch-g
7a83f0694b Let FlutterEngine to turn off automaticallyRegisterPlugins from AndroidManifest.xml. (flutter/engine#24479) 2021-03-25 14:59:02 -07:00
chunhtai
dd9fcd6de3 Fixes android voice access delete text, redo, and undo actions. (flutter/engine#25050)
* Fixes android voice access delete text, redo, and undo actions

* account for unicode
2021-03-25 10:42:01 -07:00
xster
708d427d93 Make DartExecutor.isExecutingDart account for spawned engines (flutter/engine#25171) 2021-03-23 09:50:03 -07:00
gaaclarke
58151aed7d Switched assert(x > 0) to assert(x != 0) to handle tagged pointers in java (flutter/engine#25174) 2021-03-23 18:19:56 +08:00
Gary Qian
5359dffc36 [deferred components] Handle base module loading units (flutter/engine#24983) 2021-03-15 17:48:01 -07:00
Gary Qian
3f022df5d0 Rename moduleName to componentName for consistency (flutter/engine#24906) 2021-03-10 03:20:01 -08:00
xster
c0b9da55ea update links from https://github.com/flutter/engine/pull/24766 (flutter/engine#24818) 2021-03-09 23:45:02 -08:00
Ren You
4885af8ae3 Revert "Fix memory leak and bug in the RunsOnCreationTaskRunner check (#24690)" (flutter/engine#24874)
This reverts commit e0a475111216cf4775e08441100c0b6a24fd8b84.
2021-03-09 06:29:42 -08:00
Chris Bracken
13cf185e1c Correct setup-related typos (flutter/engine#24846)
Corrects uses of setup as a verb to 'set up', leaves noun/noun-phrase
forms of setup as 'setup'. Also settles on 'teardown' as opposed to
tear-down for consistency across the codebase.

A few other minor comment/wording corrections.
2021-03-08 17:31:10 -08:00
Emmanuel Garcia
503af63aef Prevent race condition while switching surfaces (flutter/engine#24838) 2021-03-05 21:50:13 -08:00
Emmanuel Garcia
e5ca96cc41 Revert "Replace Flutter surface only after all platform views are destroyed (#24363)" (flutter/engine#24800)
This reverts commit 5d850382d4205a9e2f5d42383d63ecb8cae2247b.
2021-03-05 10:45:20 -08:00
chunhtai
92d11213ff Adds set text action for voice access (flutter/engine#24734) 2021-03-04 17:44:01 -08:00
Chris Bracken
e77d5ec898 Move CIPD package creation tools under tools/cipd (flutter/engine#24766)
This moves tooling related to the creation of the Android embedding
bundle CIPD package under tools/cipd. Having a single location for CIPD
package creation tooling avoids spreading these around the tree and aids
in discovery.

This does not change the path within the CIPD package repo, nor does it
change the path to which we download it via gclient as specified in the
DEPS file.

This will be followed by a patch to add a new Windows CIPD package
necessary for UWP builds.
2021-03-03 15:21:28 -08:00
Emmanuel Garcia
e0a4751112 Fix memory leak and bug in the RunsOnCreationTaskRunner check (flutter/engine#24690) 2021-03-02 12:39:02 -08:00
gaaclarke
1601ba9329 Fixed problem where AndroidShellHolder was trashing the ThreadHost in its deconstructor (flutter/engine#24644) 2021-02-26 08:55:06 -08:00
Lau Ching Jun
3ef9020448 Add method to obtain native string resource in localization plugin. (flutter/engine#24575) 2021-02-24 23:03:31 -08:00
LongCatIsLooong
271538aefa Passthrough movement keys when theres no selection (flutter/engine#24581) 2021-02-23 20:41:01 -08:00
Nitrogen
8c79b99623 Delete multi set intent parameter (flutter/engine#24543) 2021-02-23 15:31:01 -08:00
LongCatIsLooong
98147bb6dc Revert "[Android Text Input] Remove Samsung restart input workaround for newer Samsung keyboards (#24288)" (flutter/engine#24486) 2021-02-18 11:26:01 -08:00
LongCatIsLooong
7694881296 [Android text input] fix android autofill on focused text field (flutter/engine#24463) 2021-02-17 23:01:02 -08:00
eggfly
7149be7fce Fix ImageReader may leak images when onDraw() not called (flutter/engine#24272) 2021-02-17 22:56:06 -08:00
LongCatIsLooong
09da701b22 [Android Text Input] Remove Samsung restart input workaround for newer Samsung keyboards (flutter/engine#24288) 2021-02-16 09:11:01 -08:00
Emmanuel Garcia
5d850382d4 Replace Flutter surface only after all platform views are destroyed (flutter/engine#24363) 2021-02-12 10:02:33 -08:00
rogeryi
86ce9cc5c2 Fix Android IO and Worker threads priority issue (flutter/engine#23911) 2021-02-11 14:46:02 -08:00
Jason Simmons
ea99328502 Remove NonNull annotation on FlutterCallbackInformation.lookupCallbackInformation (flutter/engine#24340)
Fixes https://github.com/flutter/flutter/issues/73937
2021-02-11 14:28:47 -08:00
eggfly
8c89d6757f Add buffer.rewind() (flutter/engine#23955) 2021-02-04 15:11:01 -08:00
xster
2c57ad10c1 Make activity/fragment leftover from an attach/detach race slightly safer (flutter/engine#24181) 2021-02-03 21:25:40 -08:00
David Worsham
3215611f74 Fix use of multiple shells w/ different snapshots (flutter/engine#24152) 2021-02-03 17:42:36 -08:00
chunhtai
56c0a73e02 fixes android deeplink query paremeter null crashes (flutter/engine#24146) 2021-02-02 17:01:03 -08:00
Michael Reed
e79a215a31 drawBitmap is deprecated, use drawImage (flutter/engine#24135)
Co-authored-by: Mike Reed <reed@google.com>
2021-02-02 08:24:42 -08:00
Michael Reed
7ef5d67e1b Use sampling instead of (deprecated) filter-quality (flutter/engine#24101) 2021-02-01 00:16:02 -08:00
xster
888728a804 Load FlutterLoader when creating FlutterEngineGroup (flutter/engine#23980) 2021-01-27 13:30:23 -08:00
Lau Ching Jun
b9fbeca5b3 Allow naming shared libraries in deferred component via AndroidManifest (flutter/engine#23925) 2021-01-25 16:34:27 -08:00
Gary Qian
9b0c05391a Read loading unit mapping from AndroidManifest instead of strings (flutter/engine#23868) 2021-01-23 23:04:02 -08:00
xster
e618085f1c Share Android surface GrDirectContext (flutter/engine#23798) 2021-01-22 12:44:02 -08:00