443 Commits

Author SHA1 Message Date
Stanislav Baranov
098f31c86f Propagate pointer size from Android MotionEvent (flutter/engine#6662) 2018-10-26 09:39:10 -07:00
Jonah Williams
d1479e8892 TextField is only a live region when it has input focus (flutter/engine#6649) 2018-10-25 08:37:49 -07:00
Chinmay Garde
68887916e2 Realize kernel asset mappings on a worker thread if one is available. (flutter/engine#6648) 2018-10-24 11:33:46 -07:00
Gary Qian
863ab7c18b Properly gate android API < 21 and remove extraneous data array. (flutter/engine#6619) 2018-10-19 15:01:43 -07:00
Gary Qian
36cc794c94 Gate locale.getScript() behind version check for android API < 21 (flutter/engine#6592) 2018-10-18 14:03:48 -07:00
Gary Qian
b4a3ad2e28 Pass full locale list with script and variant codes to framework (flutter/engine#6557)
* Locale Passing

* Pass full locale list and script and variant codes to framework

* Working Android locale list passing and fallback
2018-10-17 10:53:01 -07:00
Shaoxing Wang
cfd00c3d88 Fix crash when removeViewImmediate invoked from platform view (flutter/engine#6266)
* Fix crash when removeViewImmediate invoked from platform view

* Clear animation before remove view from mFakeWindowRootView
2018-10-15 16:09:10 -07:00
Jonah Williams
b4a9605fce Add version check for dismissable (flutter/engine#6522) 2018-10-12 15:47:11 -07:00
谢然
3f6afa9c58 fix ResourceExtractor npe. (flutter/engine#6461) 2018-10-12 09:56:00 -07:00
Gary Qian
45577f1f07 Pass scriptcode and variantcode to dart:ui Window. (flutter/engine#6493) 2018-10-10 17:22:59 -07:00
Jason Simmons
065769e2e5 Use an older version of SurfaceTexture.setOnFrameAvailableListener when running on pre-Lollipop devices (flutter/engine#6489)
Fixes https://github.com/flutter/flutter/issues/21730
2018-10-10 15:01:48 -07:00
Jonah Williams
c0edacaa1b Correct issues in visible children determination (flutter/engine#6455)
* fix off by one

* add documentation on counting for setToIndex
2018-10-08 11:05:09 -07:00
liyuqian
1d2c3ec0a4 Remove unused imports and variables (flutter/engine#6437)
This is discovered in the new Google3 checks. It should not block our
roll but it's nice to fix them.
2018-10-04 16:01:49 -07:00
Jonah Williams
ad889d5cec Ensure setViewIdResourceName has the correct version guard (flutter/engine#6404) 2018-10-03 17:44:32 -07:00
Kirill Nikolaev
aee6ec23f9 Add nullability annotations to MethodChannel/MethodCall. (flutter/engine#6393)
This works towards resolving https://github.com/flutter/flutter/issues/19888.
2018-10-02 15:02:16 -07:00
Jonah Williams
fad67c5eca do not count Hidden nodes at the beginning of the scrollable (flutter/engine#6381) 2018-10-01 11:15:22 -07:00
Jonah Williams
12981679ba make sure we dont set live regionin api level < 18 (flutter/engine#6375) 2018-09-27 23:24:54 -07:00
Kirill Nikolaev
9d6b7c41e3 Document that all MethodChannel callbacks must be called on the main thread. (flutter/engine#6245)
This further addresses https://github.com/flutter/flutter/issues/14568.
2018-09-27 15:48:29 -07:00
Chinmay Garde
74c44fa72a Wire up the Skia persistent GPU related artifacts cache. (flutter/engine#6278)
Also teaches FML to create files and directories.
2018-09-26 14:54:09 -07:00
Gary Qian
c9592ddb8c Implement restore functions on Android and iOS (flutter/engine#6322)
This will not be active on the Framework until https://github.com/flutter/flutter/pull/22221 lands.
2018-09-25 13:46:38 -07:00
Dan Field
1df2685196 Format for #6324 (flutter/engine#6326)
Format code from previous patch
2018-09-24 18:42:04 -04:00
Dan Field
89eeaf461e Engine::Run returns enum: success, failure, or isolate already running (flutter/engine#6324)
* If isolate is already running, return true

* Use shell::Engine::RunStatus as result of Engine::Run
2018-09-24 18:01:22 -04:00
Gary Qian
633695dadf Keyboard padding detection heuristic to distringuish when to include bottom inset. (flutter/engine#6288)
Use a screen height ratio to determine if the keyboard is onscreen or not. This is used because Android does not provide a deterministic API to detect this.

We remove the padding when the keyboard is closed and the inset is due to the hidden navigation bar, otherwise, we apply the full keyboard inset.
2018-09-24 11:38:13 -07:00
Amir Hardon
881edf98a4 Decouple PlatformViewsController from FlutterView. (flutter/engine#6303)
Decouple PlatformViewsController from FlutterView.

Instead of getting a FlutterView instance, depend on the specific interfaces required by
PlatformViewsController (BinaryMessenger, TextureRegistry, and Context).

This allows using PlatformViewsControlling in the flutter/embedding
code.
2018-09-21 15:40:17 -07:00
Gary Qian
fb290c3f7a Fix Top, Left, and Right padding for fullscreen android apps. (flutter/engine#6282)
* Fix Top, Left, and Right padding for fullscreen apps.

* Fix minor nits and comments, simple logic inversion
2018-09-19 18:09:10 -07:00
Ryan Macnak
a6d25b895c Reapply "Some cleanups enabled by removing support for Dart 1" (flutter/engine#6250)
Following fixes in dart-lang/sdk@91cbb57cd5
2018-09-14 09:36:13 -07:00
Jonah Williams
b4198127e3 update live region to trigger on label change, remove manual trigger (flutter/engine#6248) 2018-09-14 09:10:59 -07:00
Jonah Williams
b258e126f3 Add scrollIndex and scrollChildren to semantics, add Android implementation (flutter/engine#6239) 2018-09-13 10:28:27 -07:00
Michael Goderbauer
d6ba11b0c1 Revert "Reapply "Some cleanups enabled by removing support for Dart 1" (#6216)" (flutter/engine#6232)
This reverts commit 88aac222998fac4a7c0e57e99c48feacefc92aa6.
2018-09-12 12:07:20 +02:00
Ryan Macnak
88aac22299 Reapply "Some cleanups enabled by removing support for Dart 1." (flutter/engine#6216)
- Add missing Dart 2 flags to gen_snapshot invocation.
 - Disable brittle service test.
2018-09-10 17:03:54 -07:00
Ryan Macnak
75e10e3845 Revert "Some cleanups enabled by removing support for Dart. (#5621)" (flutter/engine#6205)
This reverts commit e05d573589bded526e9acf44128e35151d142b7e.
2018-09-07 17:39:51 -07:00
Ryan Macnak
e05d573589 Some cleanups enabled by removing support for Dart. (flutter/engine#5621)
- Switch core snapshot to Dart 2 and remove support for loading platform.dill.
 - Remove support for loading script snapshots.
 - Remove support for loading source.
 - Remove settings and fix names to reflect the above.
 - Remove support for loading the service isolate from source.
2018-09-07 15:44:46 -07:00
Michael Klimushyn
0282e85726 Add transparency helpers to FlutterView.java (flutter/engine#6172)
Fixes #9627
2018-09-05 16:47:02 -07:00
Jason Simmons
8b341d2363 Remove the old location of the ICU data asset (flutter/engine#6170)
The tools are now placing icudtl.dat in the flutter_shared directory.
It is no longer necessary to check for this asset at its previous path.
2018-09-05 12:22:27 -07:00
Simon Lightfoot
7ccb33b1c0 Fixes negative end selection offset. (flutter/engine#6171) 2018-09-05 12:12:21 -07:00
Michael Klimushyn
605c146d02 Enable transparent FlutterViews (flutter/engine#6163)
- Changes rasterizer to clear the canvas with `SkColor_TRANSPARENT`
- Removes the unused `backgroundColor` param from `FlutterView.java`
2018-09-05 10:44:02 -07:00
Jason Simmons
2e2d63b213 Remove obsolete discovery mechanism from FlutterView (flutter/engine#6157) 2018-09-05 10:01:33 -07:00
Kirill Nikolaev
fe8d1b47e2 Unregister onFrameAvailable callbacks when a TextureEntry is released. (flutter/engine#6079)
Otherwise the callbacks may be called after FlutterNativeView is destroyed and is null.

Also defensively check for whether the texture is already released in the callback because the callback may be called from another thread by a stale reference (see the comment).

This closes https://github.com/flutter/flutter/issues/20951.
2018-09-04 06:31:01 -07:00
jslavitz
6638f518c6 entering a character with a selection deletes the selection (flutter/engine#6113) 2018-08-30 10:29:04 -07:00
Amir Hardon
dc470dc12a Convert synthesized Android motion events to long and not to int. (flutter/engine#6103) 2018-08-28 12:12:47 -07:00
Jonah Williams
02d928b047 Unconditionally set resource id to empty string (flutter/engine#6096) 2018-08-27 10:54:07 -07:00
amirh
00c385f497 Allow passing extra creation parameters for embedded Android views. (flutter/engine#6081)
This allows plugins to pass extra parameters from the Dart side to the
platform view constructor.
2018-08-24 11:15:14 -07:00
amirh
eb77c3044d Support LTR/RTL layout directions for embedded Android views. (flutter/engine#6057) 2018-08-20 16:22:38 -07:00
amirh
bf9aa07b49 Delay the removal of the onDrawListener. (flutter/engine#6052)
In Android O removing the ViewTreeObserver.onDrawListener from the
listener call crashes. Instead we post a runnable to remove it.
2018-08-20 12:13:26 -07:00
Jonah Williams
8c942fb413 use setContentDescription for controls on Android (flutter/engine#6050) 2018-08-20 09:30:13 -07:00
amirh
31d1346006 Add views added to the WindowManager into the presentation view tree. (flutter/engine#6043)
The default WindowManager implementation in Android's Presentation is
delegating addView/removeView/updateViewLayout calls to the global
WindowManager.
This can result in a crash when an embedded view is trying to e.g show a
PopupWindow.

This change adds a custom WindowManager that overrides
addView (and removeView/updateViewLayout) and adds the view to the
presentation's view tree.

Note that views might keep a reference to the window manager which
might be an issue when we move a view from one virtual display to
another (due to a resize). For this reason when re-sizing we are not
creating a new window manager for the new presentation, but updating the
window manager's references to be relevant for the new presentation and
re-use it.
2018-08-17 17:01:42 -07:00
Martin Kustermann
258a95c9fa Switch all embedders to use platform_strong.dill instead of platform.dill (the flutter_tester binary already does this) (flutter/engine#6024) 2018-08-15 17:45:11 +02:00
Chinmay Garde
33485e47de Fix Android Vulkan builds to account for resource context management API updates. (flutter/engine#6020) 2018-08-14 22:20:05 -07:00
Jason Simmons
c761e6e2a0 Detach the resource context before shutting down the IO thread (flutter/engine#6009) 2018-08-14 13:15:42 -07:00
Stanislav Baranov
b4ce259bcf Fix codepush breakage caused by #5954. (flutter/engine#5996) 2018-08-10 13:23:51 -07:00