4633 Commits

Author SHA1 Message Date
Callum Moffat
0fcaba00f0 Scroll inertia cancel for Win32 (flutter/engine#34452) 2022-10-26 17:50:06 +00:00
Kevin Lubick
11bb611e7d Add necessary #includes for SkCodecAnimation.h (flutter/engine#37040) 2022-10-26 09:40:48 -07:00
Zachary Anderson
45e36b099c Revert "Re-landing Robolectric 4.8.1 (#34272)" (flutter/engine#37019)
This reverts commit ccc0b9e5cd1d9eff1ab4acc656605a21662c2c44.
2022-10-26 09:18:23 -07:00
gaaclarke
cb4c9f4727 Clang-tidy: made verbose print out commands and fixed quoting problem for warnings as errors (flutter/engine#37015) 2022-10-26 08:19:12 +00:00
gaaclarke
d47708e44a Fixed race in incorrect windows platform channel test. (flutter/engine#37012) 2022-10-25 20:49:20 +00:00
Shivesh Ganju
ccd247833e [fuchsia][scenic] Add input shield flag support in Flatland. (flutter/engine#36880)
This CL adds support for "intercept_all_input" flag in
flutter_runner_config for flatland.

Test: flutter-embedder-test
2022-10-25 15:34:00 -04:00
Wu Zhong
5c7bc4b473 [iOS] Add autorelease for window scene geometry preferences object (flutter/engine#36958) 2022-10-25 17:05:25 +00:00
Jason Simmons
2d961993e4 Update the language version used by Fuchsia's wrapper for the Dart args package (flutter/engine#36986) 2022-10-25 02:41:39 +00:00
Erik
5eb07a1f2f Update pubspec.yaml for parent-view and touch-input-view (flutter/engine#36974)
* Update pubspec.yaml for parent-view and touch-input-view

* Add changes for text-input-view
2022-10-24 15:57:26 -04:00
toneyzeng
811af8ef36 [android] Fix crash if decode .heic image in 32bit mode android app. (flutter/engine#36859)
* [android] Fix crash if decode .heic image in 32bit mode android app.

The type |long| is equal to int32_t in 32bit app, but int64_t in 64bit app.
The type |jlong| is always equal to int64_t.
CallStaticObjectMethod uses "J" to request a jlong type which needs 8 byte data but given |long| value which provides 4 byte data in 32bit mode will trigger java value error and at last a wrong pointer to AndroidImageGenerator object.

Change-Id: I38cc46adc45d8bf3e4eb35e6e904e58ee0682d97

* fix compile error

Change-Id: I7f9b089f7846b03c4b6f91f8cb9d141403e71483

* use reinterpret_cast<jlong> directly.

Change-Id: I493a3ecb7cfbf9dc61cd8e69f418635480d4bb6b
2022-10-24 12:47:50 -07:00
Justin McCandless
3778031526 Scribble method namespace (flutter/engine#36642)
Platform channel refactor with a yet-unmerged framework PR
2022-10-24 09:46:08 -07:00
utzcoz
11ee193e24 Remove duplicated _ from Android's test methods' name (flutter/engine#36944) 2022-10-24 16:20:10 +00:00
gaaclarke
844ab36b21 Turned "unnecessary value" and "move of const" lints to errors on mac (flutter/engine#36910) 2022-10-22 00:38:54 +00:00
Loïc Sharma
888a2fd9cd Prevent stack corruption when using C++ EventChannel (flutter/engine#36882) 2022-10-21 20:54:58 +00:00
Lau Ching Jun
669008c413 Add strong qualifier to dartEntrypointArguments. (flutter/engine#36929) 2022-10-21 20:10:17 +00:00
utzcoz
ccc0b9e5cd Re-landing Robolectric 4.8.1 (flutter/engine#34272) 2022-10-21 17:37:53 +00:00
gaaclarke
bb014a79ad Added integration test for platform channels on windows. (flutter/engine#36853) 2022-10-20 16:34:29 -07:00
Matej Knopp
54166ee36c [macOS] Fix mouse cursor being replaced by AppKit (flutter/engine#36283) 2022-10-20 20:13:11 +00:00
乖奕虎
62034dd478 Fix array == null error in AccessibilityBridge (flutter/engine#35540) 2022-10-20 20:10:23 +00:00
Jenn Magder
e8bcaed851 Use iOS 16 APIs to rotate orientation (flutter/engine#36874) 2022-10-20 17:34:22 +00:00
Erik
0e283234ab Add test view for touch-input-test (flutter/engine#36879)
This PR adds a touch-input-view for use in the touch-input-test to validate touch input. The view will be attached to the test, and a touch event will be injected. The test asserts that a correct response is sent back from the view (the location of the touch as well as the name of the view).
2022-10-20 13:26:41 -04:00
Tanay Neotia
c9b8125719 Add support for image insertion on Android (flutter/engine#35619) 2022-10-20 14:58:30 +00:00
ColdPaleLight
388cb71ea2 [Impeller] Support external textures on iOS (flutter/engine#36498) 2022-10-19 21:49:17 +00:00
Sébastien Marchand
1d08f089d0 [fuchsia] Bump the Fuchsia target API level to 10 (flutter/engine#36858) 2022-10-19 13:40:37 -07:00
Jaeheon Yi
3d0562260f [fuchsia][input] Delete legacy pointer handler (flutter/engine#36857) 2022-10-19 17:04:15 +00:00
Shivesh Ganju
19b7b0eb02 [fuchsia][scenic] Fix invalid viewRef error in pointer injection. (flutter/engine#36850)
This CL fixes the bug in pointer injector delegate where the viewRef is
incorrectly cloned in the flatland platform view, causing an invalid
viewRef to be passed in the Fidl request.

Test: flutter-embedder-test
2022-10-19 02:33:25 -04:00
Casey Hillers
5461f1a311 Stop using u8string which breaks in C++20 (flutter/engine#36696) 2022-10-18 16:04:05 +00:00
yaakovschectman
723551a5ee Present tooltip to screen reader on Windows (flutter/engine#36799)
* Propagate tooltip property

* Append tooltip to name

* Formatting

* Fix unit tests

* Tooltip at end

* Tooltip
2022-10-17 16:57:11 -04:00
Dan Field
181a1728f1 Always use fml::TaskRunnerAffineWeakPtr for SnapshotDelegate (flutter/engine#36772) 2022-10-14 18:09:29 -07:00
stuartmorgan
5d6387fb32 Don't wrap Context for Android Hybrid Composition (flutter/engine#36756) 2022-10-14 20:58:06 +00:00
fzyzcjy
03e35d0c66 VsyncWaiter schedules unneeded extra AwaitVSync callbacks for one frame (flutter/engine#36406) 2022-10-14 16:39:12 +00:00
sergiy-sc
64a8156560 [macos] expose runWithEngine constructor in FlutterViewController
Removing [engine setViewController:self]; because view is not loaded, but in that function controller is saved. Later, when the view is loaded (loadView) passed as an argument controller is checked against the saved controller and since they match, the nil view is not replaced with a new view.

Fixes: flutter/flutter#74735
2022-10-14 09:04:36 -04:00
ColdPaleLight
fc0c9c70f7 Specify correct YUV color space for Darwin YUV external textures (flutter/engine#36709) 2022-10-12 02:52:18 +00:00
LongCatIsLooong
a0c098ec46 [iOS text input] Use the correct coordinate space for firstRectForRange (flutter/engine#36707) 2022-10-11 21:07:22 +00:00
Yegor Pomortsev
7281766810 [fuchsia] Use root-ssl-certificates in v2 runner manifests (flutter/engine#36703)
* Add a `use` for the `root-ssl-certificates` to ensure BoringSSL
  can read the certificates at /config/ssl
* Reformat manifest with `cmc format`

Fixes `HandshakeException`s when establishing a secure connection:

```
HandshakeException: Handshake error in client (OS Error:
        CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(handshake.cc:393))
<asynchronous suspension>
```

Depends on changes that offer this directory to the runners,
e.g. https://fxrev.dev/737597

Bug: https://fxbug.dev/111712
2022-10-10 18:46:12 -07:00
Alex Wallen
3cd8b9eaa4 Deprecate single semantics tree assumption from platform dispatcher (flutter/engine#36675) 2022-10-10 18:41:16 +00:00
Erik
9f4d9ff82a Add Dart AOT integration test (flutter/engine#36460) 2022-10-07 22:59:15 +00:00
yaakovschectman
462f506915 Get user's preferred languages from registry (flutter/engine#36536)
* Query preferred languages from registry

* Check registry size

* Line formats

* A space

* Single space

* Update shell/platform/windows/system_utils.cc

Co-authored-by: Chris Bracken <chris@bracken.jp>

* Mockable windows registry

* Mock windows registry in test

* Formatting

* Some more spaces

* Move paths to constants

* Spacing

* Update shell/platform/windows/system_utils.h

Co-authored-by: Loïc Sharma <737941+loic-sharma@users.noreply.github.com>

* Move registry keys to const vars

* PR conversation

* 2 spaces

* Import

* Separate functionality

* Linux unopt

* PR suggestions

* Update shell/platform/windows/windows_registry.h

Co-authored-by: Chris Bracken <chris@bracken.jp>

* Update shell/platform/windows/system_utils_unittests.cc

Co-authored-by: Chris Bracken <chris@bracken.jp>

* PR

* PR

* Inject registry in constructor

* Format

Co-authored-by: Chris Bracken <chris@bracken.jp>
Co-authored-by: Loïc Sharma <737941+loic-sharma@users.noreply.github.com>
2022-10-06 10:32:11 -04:00
Jonah Williams
aadc2d3094 Add ImmutableBuffer.fromFilePath (flutter/engine#36623) 2022-10-05 22:18:03 +00:00
Dan Field
e4d709de85 Avoid using non-UTF-8 encoded argv more often (flutter/engine#36590) 2022-10-05 12:03:20 -07:00
Loïc Sharma
35760d7a3b Revert "[Windows] Move to Visual Studio 2019" (flutter/engine#36606) 2022-10-05 00:13:19 +00:00
Chris Yang
3cd2d3bc82 Workaround iOS text input crash for emoji+Korean text (flutter/engine#36295) 2022-10-04 22:55:50 +00:00
Jenn Magder
ef8d23749a Guard accessibility_bridge UIView access (flutter/engine#36580) 2022-10-04 22:50:02 +00:00
Jenn Magder
058fd02953 Stop compiling iOS with bitcode (flutter/engine#36596) 2022-10-04 21:56:13 +00:00
Loïc Sharma
129f69bc31 [Windows] Move to Visual Studio 2019 (flutter/engine#36538) 2022-10-04 20:00:04 +00:00
Erik
b797d69385 Port over C++ components of the one-flutter test (flutter/engine#36546) 2022-10-03 18:31:03 +00:00
Tong Mu
06bcc278e3 [macOS] Unify FlutterRenderers' presenting callbacks (flutter/engine#36488) 2022-09-30 15:08:43 -07:00
cfontas
b203597bab Add DPR To Flatland Embedder (flutter/engine#36449)
* add dpr field to flatland

* format

* more dpr updates

* add inverse

* fix error

* fix error

* fix formatting

* formatting again

* one more formatting fix

* update metrics

* fix build errors

* formatting

* test

* formatting

* test

* test

* fix typo

* clean up a bit

* format

* fix metrics

* remove line

* fix test

* remove prints

* fix formatting

* update checks

* format
2022-09-30 16:37:14 -04:00
Alexander Biggs
16d5012361 [fuchsia] Add --gtest-filter flag for unit tests. (flutter/engine#36509) 2022-09-29 19:57:05 +00:00
Jonah Williams
463c3d8cba Revert egl presentation time (flutter/engine#36485) 2022-09-28 21:50:13 +00:00