719 Commits

Author SHA1 Message Date
Brandon DeRosier
0d67e4e080 Use Fuchsia's Windows Clang SDK (flutter/engine#29736) 2021-11-13 21:22:55 -08:00
Zachary Anderson
40ca25819e Use a prebuilt Dart SDK during Fuchsia builds (flutter/engine#29680) 2021-11-11 13:24:37 -08:00
Jenn Magder
1f34a4d945 Allow engine variants other than "host_debug" to be clang-tidy linted (flutter/engine#29668) 2021-11-11 13:04:31 -08:00
Jenn Magder
4d76095361 Add "clang-tidy --fix" flag to automatically apply fixes (flutter/engine#29654) 2021-11-10 15:13:01 -08:00
Jason Simmons
fda46d0aff Use -linkoffline to provide the Android Javadoc package list (flutter/engine#29629) 2021-11-10 11:18:02 -08:00
Jenn Magder
d5d8169a54 Speed up clang-tidy script by skipping third_party files (flutter/engine#29640) 2021-11-10 11:13:06 -08:00
Jenn Magder
6ebd593543 Exit with failure code if clang-tidy finds linter issues (flutter/engine#29633) 2021-11-10 09:16:31 -08:00
Ahmed Ashour
b922ea32ce Add eol for .dart files. (flutter/engine#27351) 2021-11-09 16:16:58 -08:00
Jenn Magder
64f7c65f27 Use clang-tidy config file from repo instead of default (flutter/engine#29595) 2021-11-09 09:53:03 -08:00
Zachary Anderson
9dffe2d4f6 Revert "Reland Display Features support (Foldable and Cutout) (#29447)" (flutter/engine#29574)
This reverts commit 28a1c9b21b205a436fad64c9d0bced6b22b4b6a3.
2021-11-06 20:43:44 -07:00
Hannes Winkler
b4e2eb1152 don't build flutter SDK artifacts for armv7 (flutter/engine#28016) 2021-11-05 08:53:01 -07:00
Andrei Diaconu
28a1c9b21b Reland Display Features support (Foldable and Cutout) (flutter/engine#29447) 2021-11-04 13:45:46 -07:00
Chase Latta
5dcf803aa6 Manually roll fuchsia SDK to Qv7WqmG8hOpj9NV5Ng6rBDSQW7KeowbX0kpbW0FaZgIC (flutter/engine#29453) 2021-11-01 20:43:01 -07:00
Emmanuel Garcia
28a5062995 Reland "Set system bar appearance using WindowInsetsController" (flutter/engine#29403) 2021-10-29 16:13:03 -07:00
David Worsham
4c9cf9869a fuchsia: Enable ASAN; add tests flag (flutter/engine#29414)
* Get ASAN working

* Remove zircon_ffi from build

* Add enable-unittests gn flag
2021-10-29 15:10:29 -07:00
xster
32d63b08fa Revert "Update to match harfbuzz subsetting 3.0.0 api. (#29266)" (flutter/engine#29412)
This reverts commit f1446eb0290ff191533efa12182316b6acc50daa.
2021-10-29 12:12:32 -07:00
Jia Hao
302c2be546 Add traces to Android embedding (flutter/engine#29230) 2021-10-28 20:59:32 -07:00
Garret Rieger
f1446eb029 Update to match harfbuzz subsetting 3.0.0 api. (flutter/engine#29266)
hb_subset_input_drop_tables_set (...) was removed. Replace it with a call to hb_subset_input_set (...).
2021-10-28 13:19:03 -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
Ahmed Ashour
acdc8a5c8b Fix typos (flutter/engine#29280) 2021-10-27 20:30:31 -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
godofredoc
ae68d0409b Update documentation links to point to main branch. (flutter/engine#29326) 2021-10-26 10:48:02 -07:00
Rich Kadel
22f6d50d25 Adding missing snapshot to the fuchsia package in AOT builds (flutter/engine#29268)
The initial implementation tried to leverage the fuchsia.git approach to
adding resources via GN template, but the GN SDK does not use the same
format or approach. This PR adds the snapshot resource in the way the
GN SDK expects.
2021-10-20 19:20:37 -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
Jason Simmons
e4bfa79de7 Remove Robolectric and add androidx.tracing to the android_embedding_dependencies package (flutter/engine#29233) 2021-10-19 11:13:01 -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
Jason Simmons
a497ef787b Set the use_ios_simulator flag only on platforms where it is defined (iOS/Mac) (flutter/engine#29199) 2021-10-14 17:13: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
Zachary Anderson
5cafa8efb9 Disable iOS simulator flag when targeting mac (flutter/engine#29151) 2021-10-13 13:31:42 -07:00
Rich Kadel
c2ad820db9 Migrated integration_flutter_test/embedder (scenic integration test) from fuchsia.git (flutter/engine#26880) 2021-09-30 17:10:02 -07:00
Alexander Biggs
12053d00ea [fuchsia] Small shell scripts for workflow. (flutter/engine#28823) 2021-09-27 17:53:02 -07:00
Emmanuel Garcia
4cb3bf45b2 Replace jcenter() for mavenCentral() (flutter/engine#28777) 2021-09-21 14:09:08 -07:00
Zachary Anderson
75c1fbccc7 Don't use Dart's application_snapshot() rule (flutter/engine#28361) 2021-09-16 13:37:01 -07:00
Alexander Biggs
43d01afb55 [fuchsia] Replace amberctl in serve.sh with pkgctl (flutter/engine#28660)
Fixes: fxb/89785
2021-09-16 09:20:43 -07:00
Renzo Olivares
b2b2f705de TextEditingDelta support for Android (flutter/engine#28175)
* Add new channel updateEditingStateWithDelta

* Fix formatting

* Fix formatting

* Fix formatting

* Add equality case

* formatting

* Implement TextEditingDelta class to encapsulate delta logic

* Formatting

* Also send new composing/selection along with delta

* Utilize an ArrayList of TextEditingDeltas to take into account batch editing

* clear batch deltas when editing state is updated by framework, we don't want to collect deltas from the framework because they have already been applied to the value on the framework side

* fix formatting

* formatting

* formatting

* Add enableDeltaModel flag to choose between updateEditingValue and updateEditingValueWithDeltas

* Add autofill support for delta model

* formatting

* update

* Fix issues with composing region

* formatting

* Remove

* Fix out of bounds error when textfield is initialized with text

* Clean up logs

* formatting

* update licenses

* Fix deletion issues

* formatting

* delta -> deltaType

* updates

* formatting

* formatting

* Fix logs

* Add tests for TextEditingDelta

* formatting fixes

* remove unused imports

* Fix return type for getDeltaType

* Fix tests

* Fix ListenableEditingStateTest

* formatting

* Fix typo

* Add test for deltas when setComposingText

* formatting

* Updates to test

* fix typo

* formatting

* Verify all properties of delta for test

* formatting

* Add VisibleForTesting import

* fix test

* fix formatting

* fix tests

* fix tests

* fix tests

* updates for tests

* remove ide made file

* Fix more tests

* Fix TextEditingDelta tests

* Add test for verifying delta is generated on setComposingText

* Add TextInputPlugin tests for replacement and deletion deltas

* formatting

* formatting

* Capture delta on setSpan and clear deltas when generated from the framework and when we skip updating the framework

* fix formatting

* update tests to reflect new clear batch delta calls

* Make deletion inline with platform

* fix tests

* Address reviewer comments

* formatting

* fix tests

* fix tests

* move delta inference to framework

* update tests

* formatting

* fix tests

* Formatting

* get -> extract

* More tests and address reviewer comments

* clean up logs

* Address reviewer comments

* formatting

* formatting

* Remove testing constructor

* send as deltas
2021-09-15 13:41:21 -07:00
Siva
21226c68e5 Enable compressed pointers on Android for 64 bit architectures. (flutter/engine#28639) 2021-09-15 13:01:23 -07:00
Alexander Biggs
3ae15993fa [licenses] Ignore .ccls-cache folder when generating engine licenses. (flutter/engine#28622) 2021-09-14 18:37:01 -07:00
Alexander Biggs
66fe4ff7d1 [fuchsia] Create DartComponentController for CFv2. (flutter/engine#28613)
Bug: fxb/79871

The code is still using the CFv1 implementation, so this should not affect the existing behavior.

For this version of the PR, I forked the existing DartComponentController. There were a few reasons for this:

Reduces the chance of the change breaking existing tests during Fuchsia GI.
Makes the V2 version of the DartComponentController simpler to read.
Makes it easier to switch over to using the V2 version of the DartComponentController once the migration is ready to happen (less cleanup).
The rate of changes to the DartComponentController is slow so there shouldn't be much maintenance required for the fork.
Changes to the DartRunner itself will happen in a follow-up PR - this PR only verifies that the ComponentController builds.

Relands GN and C++ changes for #27226 after rollback in #28036.
2021-09-14 16:15:53 -07:00
Chris Bracken
7d26afee0b Limit download_dart_sdk task pool size on Windows (flutter/engine#28623)
The multiprocessing package relies on the win32 `WaitForMultipleObjects`
call, which supports waiting on a maximum of MAXIMUM_WAIT_OBJECTS
(defined by Windows to be 64) handles, processes in this case.  To avoid
hitting this, we limit ourselves to 60 handles (since there are a couple
extra processes launched for the queue reader and thread wakeup reader).

When left unspecified, the multiprocessing module defaults this value to
os.cpu_count(), so this error is triggered only on machines with > 60
cores.

See: https://bugs.python.org/issue2690

Bug: https://github.com/flutter/flutter/issues/90085
2021-09-14 15:45:57 -07:00
Rich Kadel
dd51e241e5 Fix building Dart Fuchsia components and packages (flutter/engine#28413) 2021-09-09 14:47:02 -07:00
Alexander Biggs
ef0d8bf6fe [fuchsia] Add CML files for dart_runner on CFv2. (flutter/engine#28491)
Bug: 79871

Partial re-land of #27226 (which was reverted in #28036 due to a flaky test). Only adds in the CML files for a CFv2 dart_runner without the corresponding C++ and GN changes.
2021-09-08 11:55:03 -07:00
Zachary Anderson
86de3b6591 Revert "Display Features support (Foldable and Cutout) (#24756)" (flutter/engine#28447)
This reverts commit 53b9a690c5eb8410c561be43964f350f58347366.
2021-09-03 09:01:15 -07:00
Andrei Diaconu
53b9a690c5 Display Features support (Foldable and Cutout) (flutter/engine#24756)
* Add DisplayFeatures and DisplayCutout to viewport metrics

* WindowManager alpha03 and better documentation

* Fixed formatting

* Fixed failing tests

* Replaced API version code P with 28

* Unnecessary import

* Fixed display features parameters missing

* Documentation changes

* First paragraph is a sentence

* Update androidx window library to version 1.0.0-alpha05

* Improve documentation, remove deprecated display feature call

* Write tests and improve documentation

* Migrate to Window Manager alpha08

* Update androidx window to beta01

* Remove unused import

* Remove window_hook_integration_test.dart

* Fix tests

* Update android_embedding_dependencies version to include androidx.window

* Add androidx.window to test_runner build

* Add empty display features arrays to fuchsia platform view

* Fix tests using final class mocking

* Add missing license header

* Update licenses_golden
2021-09-03 04:02:17 -07:00
Zachary Anderson
fb2fe21c52 Revert "Turn compressed pointers on for Android 64 bit architectures. (#28388)" (flutter/engine#28405) 2021-09-01 09:46:01 -07:00
Jason Simmons
426d5baac8 Add missing result for the TextInput.setEditableSizeAndTransform method handler on Android (flutter/engine#28376) 2021-08-31 14:56:02 -07:00
Siva
742e38b385 Turn compressed pointers on for Android 64 bit architectures. (flutter/engine#28388) 2021-08-31 10:55:19 -07:00
Garret Rieger
0aa51f6464 Add feature detection to automatically use new subsetting api. (flutter/engine#28026)
In the upcoming version of harfbuzz (3.0.0) the subsetting api is being declared stable. With this there are some changes to the API. This prepares flutter to start automatically using the new API once harfbuzz 3.0.0 is rolled into flutter.
2021-08-26 13:34:39 -07:00
Chris Bracken
ba0a8f78ec Roll buildroot to 6ef1bf72e34e572f469386732a05de7c8495f874 (flutter/engine#28302)
Picks up a revert of a change from using python3 to vpython3 for exec
rules in gn. https://github.com/flutter/buildroot/pull/507

Also sets Python runtime to `python3` in `gn.bat` to match the revert to
`python3` in https://github.com/flutter/engine/pull/28313

Issue: https://github.com/flutter/flutter/issues/88719
2021-08-26 11:59:59 -07:00
Chris Bracken
8f87951759 Revert "Build dart:zircon and dart:zircon_ffi (#28071)" (flutter/engine#28313)
This reverts commit 1e9b7aed566105eec982ca0eb545139b218bc916.

Reverting in order to land revert of the gn script_executable from
python3 to vpython3, which is causing flakes on Windows.

Issue: https://github.com/flutter/flutter/issues/88719
2021-08-26 11:21:49 -07:00