729 Commits

Author SHA1 Message Date
Emmanuel Garcia
93e6dbe5ab Bump androidx.window:window-java (flutter/engine#29897) 2021-11-24 11:41:40 -08:00
Gary Qian
840b4dfa0a Delete old script for individual SDK package upload (flutter/engine#29887) 2021-11-23 15:08:02 -08:00
Gary Qian
f598b46a13 Add script to upload unified Android SDK CIPD archives and switch DEPS to use it. (flutter/engine#29776) 2021-11-23 00:02:29 -08:00
Chase Latta
9b0b1365a2 Add ability to stamp fuchsia packages with API level (flutter/engine#29851) 2021-11-22 17:43:02 -08:00
Andrei Diaconu
5003f1a91f Reland: Display Features support (flutter/engine#29585) 2021-11-19 18:04:31 -08:00
Jason Simmons
b92dab5c1f Roll expat and buildroot (flutter/engine#29813)
Update license script for new expat

Fixes https://github.com/flutter/flutter/issues/91384
2021-11-19 07:57:58 -08:00
ColdPaleLight
9ecd4c1899 Make FlutterEngineGroup support dart entrypoint args (flutter/engine#29096) 2021-11-18 18:08:03 -08:00
Dan Field
0a6301d5ca Listen for display refresh changes and report them correctly (flutter/engine#29800)
This makes sure the frame timings recorder and vsync waiter implementations get
the correct refresh rate if or when it adjusts at runtime. This should be OK
because we'll only query the refresh rate when the display metrics actually
change, which is much less frequent than every frame. I experimented with an NDK
implementation in the previous patch, but that vastly restricts the API levels
we can support, and currently on API 30 and 31 it just calls Java methods
through JNI anyway.

I've refactored the way Display updates are reported so that AndroidDisplay can
just dynamically get the refresh rate correctly. These values are used by a
service protocol extension and by some Stopwatches on the CompositorContext.

See also #29765

Fixes flutter/flutter#93688
Fixes flutter/flutter#93698
2021-11-18 13:09:26 -08:00
Brandon DeRosier
4136d0117f Enable Skia's Vulkan backend on all non-mobile platforms, and test SwiftShader Vulkan on all GL unittests platforms (flutter/engine#29520) 2021-11-16 15:27:25 -08:00
godofredoc
720cd0baaa Prepare scripts for the master to main migration. (flutter/engine#29371)
It changes master branch with main to prepare for the migration.
This change will be landed in synchronization with changes to modify
 the engine default branch to main.

Bug: https://github.com/flutter/flutter/issues/90476
2021-11-15 09:06:11 -08:00
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