3085 Commits

Author SHA1 Message Date
Jonah Williams
2cc2854964 Add GestureSettings and configure touch slop from Android ViewConfiguration (flutter/engine#27836) 2021-08-03 12:55:02 -07:00
Matej Knopp
daf0fb7387 Fix race condition in FlutterSurfaceManager (flutter/engine#27828) 2021-08-02 06:20:01 -07:00
Chris Bracken
8803824c64 Migrate all Python hashbangs to Python 3 (flutter/engine#27838)
Migrates all `#!/usr/bin/env python` hashbang lines to use python3.

Also updates the licence tool to treat python3 scripts on par with
python 2 scripts.

Issue: https://github.com/flutter/flutter/issues/83043
2021-07-31 11:09:12 -07:00
Matej Knopp
7cf7937a38 Do not generate keydown event for empty modifier flags (flutter/engine#27817)
* Do not generate keydown event for empty modifier flags

* Mask 0x100 bit instead of comparison

* Comment

* Update comment

* comment

* Add comment
2021-07-30 18:00:54 -07:00
Tong Mu
b2924176cc [Keyboard] Send empty key events when no key data should (flutter/engine#27774)
The keyboard system on each platform now sends an empty key data instead of nothing if no key data should be sent.
2021-07-30 13:35:39 -07:00
Kaushik Iska
6ac3632741 [fuchsia] Fix DynamicLibrary.open path on Fuchsia (flutter/engine#27819) 2021-07-30 11:19:18 -07:00
Jia Hao
8180d547f6 Revert "Revert "Use preDraw for the Android embedding (#27645)" (#27788)" (flutter/engine#27811) 2021-07-30 10:59:02 -07:00
Renzo Olivares
ceb3cb1d1a Add support for IME_FLAG_NO_PERSONALIZED_LEARNING on Android (flutter/engine#27691) 2021-07-29 23:04:02 -07:00
Zachary Anderson
407d7bbe5d Revert "Unskip iOS launch URL tests (#27777)" (flutter/engine#27802)
This reverts commit f52ef4b5e1ac158ee6f9643a1615d3d668f578f8.
2021-07-29 22:40:51 -07:00
Jenn Magder
f52ef4b5e1 Unskip iOS launch URL tests (flutter/engine#27777) 2021-07-29 13:14:02 -07:00
chunhtai
d1c5086b7e Sets accessibility panel title when route changes (flutter/engine#27713) 2021-07-29 10:34:01 -07:00
Jia Hao
014270f859 Revert "Use preDraw for the Android embedding (#27645)" (flutter/engine#27788)
This reverts commit bd6e47b7d0ac5ddda308e70a16b8f8e1d6c66e25.
2021-07-29 23:02:06 +08:00
Jia Hao
573de315ec Fix crash when splash screen is not specified for FlutterFragmentActivity (flutter/engine#27062) 2021-07-28 20:09:01 -07:00
Jia Hao
bd6e47b7d0 Use preDraw for the Android embedding (flutter/engine#27645) 2021-07-28 19:59:02 -07:00
Matej Knopp
9bfd5820b9 macOS: Do not use dispatch queue when canceling idle callback (flutter/engine#27732)
Fixes https://github.com/flutter/flutter/issues/86932

Relying on dispatch queue to bump call on main thread in this instance
is problematic because platform plugin can hold the dispatch queue.
Using performSelectorOnMainThread: instead works, because it is
processed by the CFRunLoop independent of dispatch queue.
2021-07-27 14:06:17 -07:00
wqyfavor
3ad5050003 Fix potential crash of frame management while merging threads for platform views. (flutter/engine#27695) 2021-07-27 09:09:02 -07:00
moko256
bd9583cd04 Windows: Implement GetPreferredLanguages for UWP and support l18n (flutter/engine#27311) 2021-07-23 16:41:57 -07:00
Jason Simmons
c2676c854e Remove an assertion in AndroidImageGenerator::Register that was dereferencing a null (flutter/engine#27674) 2021-07-23 12:39:01 -07:00
Hakkyu Kim
487b8743cb Removes unnecessary error message: "Invalid read in StandardCodecByteStreamReader" for cpp BasicMessageChannel (flutter/engine#26956) 2021-07-22 14:26:01 -07:00
Jaeheon Yi
0821f23495 [ui] Coerce DOWN pointer to inside the view. (flutter/engine#27632)
Floating point error can cause edge pointer coordinates to fall
slightly outside of the view's logical bounding box, causing a failure
of gesture recognition in Dart code. This patch coerces the DOWN pointer
to inside the logical view boundary.

https://github.com/flutter/flutter/issues/86882
2021-07-22 14:15:38 -07:00
Emmanuel Garcia
d39722bd71 Fix NPE and remove global focus listener when tearing down the view (flutter/engine#27655) 2021-07-22 13:58:09 -07:00
freiling
6ad8eb6ec7 [fuchsia] boot lockup debugging improvements (flutter/engine#27459) 2021-07-22 13:06:01 -07:00
Siva
ff9b2b6507 Uncomment terminate unit test (Dart side fix has rolled into the engine) (flutter/engine#27649) 2021-07-22 10:25:01 -07:00
Dan Field
298ab24bf5 Reland use a pbuffer surface when in the background (flutter/engine#27629)
* Reland "Use a Pbuffer surface when the onscreen surface is not available for snapshotting on Android (#27141)" (#27607)"

This reverts commit 78663924741a29aeca10648015e39db6fbd28be4.

* Do not let gradle download SDK deps
2021-07-21 15:07:35 -07:00
Brandon DeRosier
e2c58529b5 Add native Android image decoder supported by API 28+ (flutter/engine#26746) 2021-07-21 13:52:29 -07:00
Dan Field
c39eb51448 Fix android zip bundles (flutter/engine#27604) 2021-07-21 12:56:02 -07:00
George Wright
95afd688f9 Add a unit test for FlutterFrameBufferProvider (flutter/engine#27591) 2021-07-21 12:47:07 -07:00
Siva
3635ddb39f Comment out terminate unit test until fix lands in Dart. (flutter/engine#27625)
* Comment out terminate unit test until fix lands in Dart.

* Address review comments.
2021-07-21 12:24:16 -07:00
Tong Mu
1a71c70587 Update key mapping to the latest logical key values (flutter/engine#25883)
This PR updates the key mapping tables of every platform according to the change to keycode_gen.
2021-07-21 01:58:09 -07:00
Tamir Duberstein
1481993626 Add fuchsia.net.name.Lookup (flutter/engine#27595)
fuchsia.net.NameLookup is transitioning to fuchsia.net.name.Lookup.
2021-07-20 22:57:07 -07:00
Dan Field
7866392474 Revert "Use a Pbuffer surface when the onscreen surface is not available for snapshotting on Android (#27141)" (flutter/engine#27607)
This reverts commit 9520cdc6c45bc45f8e944618a0ff641fd5f5429a.
2021-07-20 16:40:55 -07:00
Tamir Duberstein
8739c597bf Reformat manifests (flutter/engine#27603)
cmx: $FUCHSIA_DIR/scripts/style/json-fmt.py
cml: $FUCHSIA_DIR/out/default/host-tools/formatjson5 --replace
2021-07-20 16:19:36 -07:00
Dan Field
9520cdc6c4 Use a Pbuffer surface when the onscreen surface is not available for snapshotting on Android (flutter/engine#27141) 2021-07-20 16:05:54 -07:00
David Worsham
934eced2e4 fuchsia: Add hermetic SessionConnection tests; rename (flutter/engine#27327) 2021-07-20 13:52:09 -07:00
Alexander Brusher
014a087925 Accounts for inverse pixel ratio transform in screen rects. (flutter/engine#27427) 2021-07-20 13:09:42 -07:00
Hunter Freyer
0e844e9ff4 Replace array<fml::Thread, 3> with ThreadHost. (flutter/engine#27455)
This is follow-up clean-up for #26193

Co-authored-by: Hunter Freyer <hjfreyer@google.com>
2021-07-20 12:46:10 -07:00
Siva
002299df34 Add embedder unit test that reproduces https://github.com/dart-lang/sdk/issues/46275 (flutter/engine#27392)
* Add embedder unit test that reproduces the problem described in
https://github.com/dart-lang/sdk/issues/46275

* Address code review comments.
2021-07-20 11:14:54 -07:00
Matej Knopp
b651e140ae MacOS: Release backbuffer surface when idle (flutter/engine#27189) 2021-07-20 07:11:02 -07:00
George Wright
8a12a40f1c Add unit tests for Dart entrypoint arguments on Windows (flutter/engine#27497) 2021-07-19 12:55:27 -07:00
Matej Knopp
becc215ba8 Do not resolve external textures unless there is new frame available (flutter/engine#27508) 2021-07-19 12:51:02 -07:00
Matej Knopp
ffa8f3ad2e MacOS: Fix external texture not working in OpenGL mode (flutter/engine#27506) 2021-07-19 12:46:02 -07:00
Darren Chan
cbcbbf7102 Migrate non-scenic-based fuchsia tests to cfv2. (flutter/engine#27241)
This PR also wraps up the soft transition for #27417.

Because some unit tests depend on the real Scenic which isn't hermetic, `flutter_runner_tests` and `flutter_runner_scenic_tests` aren't currently compatible with cfv2.
This will change once a FakeScenic is created (https://fxbug.dev/79873).

See https://fxbug.dev/79691.
2021-07-16 23:41:41 -04:00
chunhtai
da36fcdab6 Fixes scrollable behavior in voiceover (flutter/engine#27461)
* Fixes scrollable behavior in voiceover

* fix crash
2021-07-16 12:53:42 -07:00
George Wright
9f8c03501e Add a unit test for dart entrypoint args on macOS (flutter/engine#27465) 2021-07-16 10:04:07 -07:00
kartik garasia
e71aa68555 JavaDoc error fix (flutter/engine#27080)
Javadoc error Local engine build fails while building android targets
Related to issue #85346
2021-07-15 14:24:52 -07:00
ColdPaleLight
20bf73d974 Fixes some bugs when multiple Flutter VC shared one engine (flutter/engine#27320) 2021-07-15 13:31:01 -07:00
Matej Knopp
3c4ae00555 Fix duplicated keys with CONTROL key toggled (flutter/engine#27301) 2021-07-15 13:26:02 -07:00
Darren Chan
fe39238f25 Delete legacy focus platform message request handlers. (flutter/engine#27057)
Delete the following platform message request handlers:
 - `HostView.getCurrentFocusState`
 - `HostView.getNextFocusState`
 - `View.requestFocus`

See https://fxbug.dev/79740.
2021-07-15 16:24:36 -04:00
Nils Strelow
da681c31c6 Deeplink URI fragment on Android and iOS (flutter/engine#26185) 2021-07-15 10:51:02 -07:00
David Worsham
d707f91336 fuchsia: Log vsync stats in inspect (flutter/engine#27433) 2021-07-15 10:44:18 -07:00