1292 Commits

Author SHA1 Message Date
Emmanuel Garcia
03fc3660f6 Destroy overlay surfaces when the rasterizer is torn down (flutter/engine#28894) 2021-09-28 14:38:02 -07:00
gaaclarke
452b0bd2f9 added unit tests for the android embedder that run on android devices (flutter/engine#28784) 2021-09-28 14:02:18 -07:00
Gary Qian
98716a1274 Fix deprecated WindowManager INCORRECT_CONTEXT_USAGE and VsyncWaiter takes FPS float (flutter/engine#28774) 2021-09-23 16:38:40 -07:00
ColdPaleLight
b5b786f13a Delete is_background_view from FlutterJNI (flutter/engine#28566) 2021-09-23 13:58:01 -07:00
Jason Simmons
3aaefc576f Make DartExecutor.IsolateServiceIdListener public (flutter/engine#28806) 2021-09-23 07:38:01 -07:00
Emmanuel Garcia
4cb3bf45b2 Replace jcenter() for mavenCentral() (flutter/engine#28777) 2021-09-21 14:09:08 -07:00
Jason Simmons
5cca7e4f66 Do not share the GrDirectContext across engine instances on Android (flutter/engine#28694) 2021-09-17 17:43:01 -07:00
Rulong Chen(陈汝龙)
3c7cce85f0 [android] Fix black and blank screen issues on the platform view page. (flutter/engine#28277) 2021-09-17 11:25:06 -07:00
Emmanuel Garcia
294895d132 Don't use Build.VERSION_CODES.S in test (flutter/engine#28667) 2021-09-16 13:27:01 -07:00
Brandon DeRosier
7b6fa075a7 Flip on leak detector and suppress or fix remaining leak traces (flutter/engine#28625)
Patch/suppress the remaining leaks and flip on the leak detector to start catching new leaks in CI.
2021-09-16 12:58:56 -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
Kate Lovett
297946f1c1 Update API availability of edge to edge (flutter/engine#28616) 2021-09-14 17:14:23 -05:00
Emmanuel Garcia
e10e8ca58e Don't use rFD in pre-Q versions (flutter/engine#28593) 2021-09-13 15:31:54 -07:00
Dan Field
33b811183a Allow injection of ExecutorService (flutter/engine#28543)
* Allow injection of ExecutorService

* Set thread names, use cached pool
2021-09-10 12:52:02 -07:00
xster
8fefd6c656 Add a comment in the FlutterEngineGroup's constructor to avoid using the activity's context (flutter/engine#28168) 2021-09-09 14:42:03 -07:00
LongCatIsLooong
9fe73b3892 [TextInput] enroll in autofill by default (flutter/engine#28333) 2021-09-03 19:16:01 -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
ColdPaleLight
8e7d4341dd Support passing existing SurfaceTexture to TextureRegistry (flutter/engine#28358) 2021-09-02 03:16:02 -07:00
Jason Simmons
57d1cf20d5 Make the LocalizationPluginTest package declaration match the source file path (flutter/engine#28391) 2021-09-01 11:56:01 -07:00
ColdPaleLight
4a74166097 Started providing the GPU sync switch to Rasterizer.DrawToSurface() (flutter/engine#28383)
Co-authored-by: Aaron Clarke <gaaclarke>
2021-09-01 11:37:22 -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
ColdPaleLight
198f96cd09 Ensure that unregisterTexture is called when forget to call SurfaceTextureEntry.release (flutter/engine#28304) 2021-08-30 19:11:01 -07:00
Jason Simmons
a00125e2e4 Run the Android Robolectric tests using Gradle (flutter/engine#28084) 2021-08-25 09:11:02 -07:00
Chris Bracken
a858cceed8 Eliminate Android-specific Vulkan support (flutter/engine#28239)
This eliminates Vulkan support for Android. As of flutter/engine#27980
(684ad82) we are no longer running Android-Vulkan builds. This
eliminates the --enable-vulkan flag from tools/gn and any code that is
only reachable when that flag is enabled.

Note that after this patch, `shell_enable_vulkan` is always false,
however the //flutter/shell/gpu:gpu_surface_vulkan target and source
files remain since they are still used when `test_enable_vulkan` is
true, which is the case when `is_fuchsia` is true. Note that these files
are *not* built as part of a regular fuchsia build (see the
`shell_gpu_configuration` in //shell/platform/fuchsia/flutter/BUILD.gn),
but may be enabled once the Fuchsia embedder is migrated to the Embedder
API.

Also updates TODOs to dworsham, who is the committer who'll be
transitioning the Fuchsia embedder to the embedding API.
2021-08-23 13:59:43 -07:00
chunhtai
e3a3bd0b56 Makes empty scrollable not focusable in Talkback (flutter/engine#28229) 2021-08-20 15:27:01 -07:00
chunhtai
9761b7371a Issues/86577 reland (flutter/engine#28211) 2021-08-20 12:27:01 -07:00
Kate Lovett
761409f61e Fix regression in system UI colors (flutter/engine#28206) 2021-08-19 20:42:02 -07:00
Zachary Anderson
c4fb8a6051 Revert "Adds semantics tooltip support (#27893)" (flutter/engine#28207)
This reverts commit 366e66802a35abf55bcb649b9bf58921b174b59a.
2021-08-19 14:40:34 -07:00
Emmanuel Garcia
1a9e4c4ff3 Bump Android version and add more info to create_sdk_cipd_package.sh (flutter/engine#27413) 2021-08-18 18:22:02 -07:00
chunhtai
366e66802a Adds semantics tooltip support (flutter/engine#27893) 2021-08-18 15:37:01 -07:00
Emmanuel Garcia
82bffc3762 Use Android linter from cmdline-tools (flutter/engine#28153) 2021-08-17 22:12:01 -07:00
chunhtai
8a404ecf51 Issues/79528 reland (flutter/engine#28117) 2021-08-16 15:22:02 -07:00
Maurice Parrish
4997fc4556 Prevent leak of a closable render surface (flutter/engine#28000)
* try strict mode test

* formatting

* see if test is running

* formatting

* add and release a texture entry

* nullablity

* detect leaked closables

* remove unused methods

* try to finish activity and load FlutterTextureView

* add test

* revert files

* formatting

* hopefully undo

* add test to build

* fix compile errors

* fix variable name

* verify test is running

* assertEquals import

* add to test suite

* how did the package change?.

* formatting

* add release code in
2021-08-14 10:52:15 -07:00
Zachary Anderson
7467362829 Revert "Sets focus before sending a11y focus event in Android (#27992)" (flutter/engine#28092)
This reverts commit 9f8c3c6430ec2cd2c14909702a40c0ee26a65228.
2021-08-13 22:54:10 -07:00
chunhtai
9f8c3c6430 Sets focus before sending a11y focus event in Android (flutter/engine#27992) 2021-08-12 17:22:02 -07:00
Jason Simmons
c32c76cd83 Fix some warnings seen after the migration to JDK 11 (flutter/engine#28045) 2021-08-12 11:27:02 -07:00
Emmanuel Garcia
604089b0fd Provide Open JDK 11 (flutter/engine#27942) 2021-08-11 12:34:11 -07:00
eggfly
517f61119f Avoid crashing when FlutterImageView is resized to zero dimension (flutter/engine#27946) 2021-08-09 19:25:01 -07:00
Emmanuel Garcia
1af82bec75 Fix memory leak in PlatformViewsController (flutter/engine#27915) 2021-08-09 12:50:02 -07:00
ColdPaleLight
8b0b0ee703 Fix the SurfaceTexture related crash by Replacing the JNI weak global reference with a WeakReference<SurfaceTexture> (flutter/engine#27924) 2021-08-06 15:05:02 -07:00
ColdPaleLight
396f7190b9 Prevent a race between SurfaceTexture.release and attachToGLContext (flutter/engine#27884) 2021-08-05 13:15:02 -07:00
ColdPaleLight
0620217342 Fix wrong EGL value in AndroidEnvironmentGL (flutter/engine#27878) 2021-08-05 13:10:01 -07:00
Emmanuel Garcia
09e80c18f1 Allow collapsed compositing range (flutter/engine#27869) 2021-08-03 13:20:02 -07:00
Jonah Williams
2cc2854964 Add GestureSettings and configure touch slop from Android ViewConfiguration (flutter/engine#27836) 2021-08-03 12:55:02 -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
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