1589 Commits

Author SHA1 Message Date
gaaclarke
91655b80d2 Started using FlutterEngineGroups by default on Android (flutter/engine#37822)
* Started using FlutterEngineGroups by default on Android and making
them accessible to plugins.

* added docstring

* format
2022-12-15 13:50:38 -08:00
fzyzcjy
52668a7252 Reland fix wrong VSYNC event (flutter/engine#37865) 2022-12-07 13:46:06 -05:00
Nayuta403
c2290f0a8f Create FlutterActivity/FlutterFragment using light weight engine with FlutterEngineGroup (flutter/engine#36963) 2022-12-07 09:17:03 -08:00
Reid Baker
e192a12f91 Add gradle option to allow/show System.out.print logs (flutter/engine#38104)
This is useful for java test debugging.
Audit of all java tests shows only 4 logged lines so this should
not add log spam but will aid in contributor test debugging.
2022-12-06 19:46:06 +00:00
Aleksandr Denisov
6ead832a81 Remove glitches when scrolling on old Android TV devices (flutter/engine#37493) 2022-12-01 21:24:04 +00:00
Nayuta403
d5c65a7518 Fix: The Background and Overlay ImageView leak (flutter/engine#37424)
* remove image

* add test

* remove
2022-12-01 21:05:05 +00:00
Xilai Zhang
91b5562fe4 [gn] embed mac codesign metadata in android artifacts (flutter/engine#37951)
* add top level metadata for androids

* add top level metadata for androids
2022-11-29 18:24:21 +00:00
Dan Field
6be3cc1572 [Impeller] Format shader sources. (flutter/engine#37770)
* Update format.dart to include glsl, format repo

* format more
2022-11-21 17:21:02 +00:00
Jonah Williams
8a1834c4d8 [Impeller] register modern shaders on Vulkan too (flutter/engine#37757) 2022-11-18 20:57:32 +00:00
Kaushik Iska
5d5a04b2b3 Fix potential null-point references (flutter/engine#37678) 2022-11-16 22:08:04 +00:00
stuartmorgan
7bbe571f14 Fix resize crash in Android virtual display (flutter/engine#37329)
In the Virtual Display codepath for Android platform views, resize
completes asynchronously. Currently it is attempting to access the
Context in the completion handler, but there is no guarantee that it
is still present at that point, leading to possible null pointer
crashes.

This adds a check for the current state of the Context, and uses a
fallback if it's not available.

Fixes https://github.com/flutter/flutter/issues/114095
2022-11-16 19:06:30 +00:00
Callum Moffat
0ea43fbe3e Fix unexpected masked action (flutter/engine#37584) 2022-11-14 19:34:42 +00:00
Dan Field
8dc723b758 Revert "Fix wrong VSYNC event (#36775)" (flutter/engine#37589)
This reverts commit 491f827ea84dae3c63e50493a3a25e378c7cf441.
2022-11-14 19:09:02 +00:00
杨加康
9084e780a0 Update FlutterView.java (flutter/engine#37312) 2022-11-10 19:52:29 +00:00
Kaushik Iska
83c4708ccf Include AndroidSurfaceVulkanImpeller behind a flag (flutter/engine#37486)
This is to enable building in google3.

See also: b/258506856
2022-11-10 00:54:20 +00:00
gaaclarke
af036b8857 Turned on performance-unnecessary-value-param everywhere. (flutter/engine#37447)
* Turned on performance-unnecessary-value-param everywhere.

* linux host additions

* ios patch

* reverted bad fix

* revert bad fix

* another ios patch

* removed lint fix printer
2022-11-09 20:55:13 +00:00
ColdPaleLight
922ebdc160 [Android] Speed up the method 'FlutterRenderer.getBitmap' (flutter/engine#37342) 2022-11-07 17:40:09 +00:00
Kaushik Iska
e2f4486b7d [Impeller] Wire-up AndroidSurfaceImpellerVulkan (flutter/engine#37249) 2022-11-03 02:19:58 +00:00
stuartmorgan
6013743aae Forward a11y events from Hybrid Composition overlays (flutter/engine#36924) 2022-10-31 13:54:14 +00:00
fzyzcjy
491f827ea8 Fix wrong VSYNC event (flutter/engine#36775) 2022-10-29 22:07:03 +00:00
chunhtai
a1c002128b Reland fixes Android text field to use hint text for accessibility (flutter/engine#37093) 2022-10-28 18:07:04 +00:00
Gary Qian
b34da51ee8 Revert "Fixes Android text field to use hint text for accessibility (#36846)" (flutter/engine#37083)
This reverts commit 0a923d0c2429c7348fa7fe03459987c9338324f0.
2022-10-27 12:10:52 -07:00
Zachary Anderson
ea8fb2e62a Removes FlutterMutatorViewTest.sendAccessibilityEvents (flutter/engine#37050)
This test is flaking on every run. Reverting to an older robolectric did not solve the issue.

Related https://github.com/flutter/flutter/issues/114036
2022-10-26 13:30:13 -07:00
chunhtai
0a923d0c24 Fixes Android text field to use hint text for accessibility (flutter/engine#36846) 2022-10-26 18:25:10 +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
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
utzcoz
11ee193e24 Remove duplicated _ from Android's test methods' name (flutter/engine#36944) 2022-10-24 16:20:10 +00:00
utzcoz
ccc0b9e5cd Re-landing Robolectric 4.8.1 (flutter/engine#34272) 2022-10-21 17:37:53 +00:00
乖奕虎
62034dd478 Fix array == null error in AccessibilityBridge (flutter/engine#35540) 2022-10-20 20:10:23 +00: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
stuartmorgan
5d6387fb32 Don't wrap Context for Android Hybrid Composition (flutter/engine#36756) 2022-10-14 20:58:06 +00:00
Jonah Williams
463c3d8cba Revert egl presentation time (flutter/engine#36485) 2022-09-28 21:50:13 +00:00
Callum Moffat
b92b9bdb6a Add discrete scale pointer signal (flutter/engine#36342) 2022-09-27 15:30:14 +00:00
gaaclarke
e41c775200 Removed instances of unnecessary values (flutter/engine#36221) 2022-09-26 21:28:04 +00:00
gaaclarke
6b2a14d348 Isolate platform channels for desktop (flutter/engine#35893) 2022-09-20 23:56:04 +00:00
Jia Hao
2e404ea083 Fix inverted setSystemUIChangeCallback (flutter/engine#36248) 2022-09-20 15:37:11 +00:00
Jia Hao
c858509095 Mention the need to rebuild before running tests (flutter/engine#36191) 2022-09-16 23:59:05 +00:00
Jia Hao
abbff8407e Reland "Avoid vsync scheduling delay" (flutter/engine#36197) 2022-09-16 15:41:39 +00:00
Camille Simon
5439d57c7b Hook iOS FlutterSpellCheckPlugin to Framework (flutter/engine#35742) 2022-09-14 18:55:09 +00:00
Bruno Leroux
2342279c09 [Android] Fix a crash related to zeroed scanCode (flutter/engine#35924) 2022-09-14 07:12:04 +00:00
Jia Hao
c626fcbe65 Revert "Avoid vsync scheduling delay" (flutter/engine#36091) 2022-09-13 11:10:36 +00:00
gaaclarke
77d178e919 Started handling messages from background isolates for Android (flutter/engine#35804) 2022-09-13 01:43:22 +00:00
stuartmorgan
3eb6e7f4c3 Allow Hybrid Composition fallback for Android platform views (flutter/engine#35233) 2022-09-12 16:23:49 +00:00
Gary Qian
218fb443b9 Reland "Support basic back navigation in Android 13/API 33 #35678" (flutter/engine#36051) 2022-09-12 15:52:05 +00:00
stuartmorgan
d49e749f10 Remove context assertion from Android platform views using Virtual Display (flutter/engine#35997) 2022-09-09 11:40:30 +00:00
Nayuta403
603e316036 Surface will be created again after the front and back switches (flutter/engine#35767) 2022-09-09 07:28:11 +00:00
Dan Field
08312a825e Lint and fix bugprone-use-after-move violations (flutter/engine#35978) 2022-09-09 02:41:03 +00:00
Casey Hillers
ca247a24c8 Revert "Support basic back navigation in Android 13/API 33" (flutter/engine#36001) 2022-09-09 01:11:55 +00:00