470 Commits

Author SHA1 Message Date
matthew-carroll
712911f505 Android embedding refactor PR1: JNI Extraction to FlutterJNI.java (flutter/engine#7098)
Android embedding refactor: JNI Extraction to FlutterJNI.java
2018-12-21 01:07:04 -05:00
Jason Simmons
4f52895770 Update usage of some Android APIs that are deprecated in API level 28 (flutter/engine#7261) 2018-12-19 17:39:53 -08:00
Jason Simmons
3c3ddb0a37 Remove unused GrContext in AndroidSurfaceGL (flutter/engine#7258) 2018-12-19 15:06:58 -08:00
Stanislav Baranov
c85ef14c19 Update dynamic patching terminilogy to match that of the flutter tool (flutter/engine#7248) 2018-12-19 10:31:54 -08:00
Dan Field
e12c087f9e Fix javadoc for Android-28 (flutter/engine#7254)
* Fix javadoc for Android-28

* build javadoc as part of pre-submit
2018-12-19 09:24:02 -08:00
Dan Field
5a59304379 Roll buildroot to support Android SDK 28 (flutter/engine#7245)
* Roll to buildroot and support Android SDK 28

* Ubuntu 16 for android build test
2018-12-18 19:38:28 -08:00
Todd Volkert
70a7f91e86 Fix linter errors in ResourceUpdater (flutter/engine#7240) 2018-12-18 07:40:57 -08:00
Todd Volkert
cf3c281533 Allow inferred types using diamond syntax (flutter/engine#7237) 2018-12-17 16:35:10 -08:00
Todd Volkert
2d383262d7 Simplify nested try-with-resources statements (flutter/engine#7239) 2018-12-17 16:34:54 -08:00
Jimmy Casey
0e73c0f16d Correct spelling in doc comments (flutter/engine#7179)
Applies spelling corrections to accessibility-related doc comments and in the
license tool.
2018-12-16 12:51:00 -08:00
Ian Hickson
59f0587095 Undeprecated BigInteger support, but document what it actually does. (flutter/engine#6903) 2018-12-15 08:32:20 -08:00
Stanislav Baranov
255b2e2f89 Downloading and installation of dynamic updates on Android (flutter/engine#7207) 2018-12-13 10:17:37 -08:00
liyuqian
efc116e72c Support querying display refresh rate in engine (flutter/engine#7002)
The current implementation only deals with Android devices and we'll add iOS devices support soon.
2018-12-12 10:28:44 -08:00
Brian Salomon
8d1c545b53 Remove unnecessary includes of Ganesh headers (flutter/engine#7189) 2018-12-12 10:58:14 -05:00
Rafael Ring
5755e8b956 Fix keyboard not showing for targetSdk 28 (flutter/engine#6985)
After bumping the targetSdk of Flutter apps to 28, the keyboard doesn't open anymore when inputting text on an Android Pie devices. The problem is caused by a change on the way the focus in handled: when the call `mImm.showSoftInput(view, 0);` is made, the currently focused view is the `DecorView` from the `Activity` hosting Flutter but the passed view reference (`view` argument) is the `FlutterView`. As the `InputMethodManager` checks if both views are the same before showing the keyboard, it never appears because the `FlutterView` never has focus.
As Flutter doesn't have any input views as far as the Android side is concerned, the focus should always stay on the `FlutterView` itself and thus, this PR changes the `TextInputPlugin` to focus on the `FlutterView` as soon as it's created, fixing the keyboard issue.

Co-authored-by: Igor Borges <igorborges12@gmail.com>
2018-12-10 21:01:12 -08:00
Jason Simmons
4edb0f1f99 Handle null bundlePaths in FlutterRunArguments (flutter/engine#7161) 2018-12-10 14:38:44 -08:00
Stanislav Baranov
194bf111b6 Generalize runFromBundle to support multiple bundlePaths (flutter/engine#7151) 2018-12-10 12:19:22 -08:00
Dan Field
3ce4d16b63 Reset a11y bridge state on hot restart (flutter/engine#6857) 2018-11-14 11:13:39 -08:00
Dan Field
be56cd051e Set and unset accessibility flags even when re-entrant (flutter/engine#6853)
* Make sure to not unset a11y flags on reentrant calls to API
2018-11-13 23:54:45 -08:00
Michael Goderbauer
43b1be3219 Remove unused import (flutter/engine#6854) 2018-11-13 23:31:56 -08:00
Michael Goderbauer
082336e7c2 Fix code smells reported by chrome's clang plugin (flutter/engine#6833) 2018-11-12 19:59:29 -08:00
Dan Field
877b3996d8 Avoid announcing text field when it lacks a11y focus (flutter/engine#6830)
* Avoid announcing text field when it lacks a11y focus
2018-11-12 16:08:59 -08:00
Amir Hardon
3438348516 Release the surface texture entry when the platform view is disposed. (flutter/engine#6829)
We were leaking the texture after the view was disposed.
2018-11-12 14:23:25 -08:00
Mehmet Fidanboylu
e8d852bac0 Skia Cleanup (flutter/engine#6786) 2018-11-07 15:29:52 -08:00
Michael Goderbauer
0def82ddb0 Unify copyright lines (flutter/engine#6757) 2018-11-07 12:24:35 -08:00
Todd Volkert
18134d0114 Fix String comparison as if Java were Dart. (flutter/engine#6781)
This also removes unused imports and sorts imports correctly
2018-11-07 09:59:51 -08:00
Stanislav Baranov
dfbd99b3d9 Propagate positions of secondary pointers in UP events on Android (flutter/engine#6716) 2018-11-02 10:51:35 -07:00
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