Commit Graph

10538 Commits

Author SHA1 Message Date
Evan Rosky
9352e47db4 Merge "Add "KeyFallback" handling ability to Views" 2017-11-16 21:55:03 +00:00
Winson Chung
eaf2a4ef5c Merge changes from topic "expose_methods"
* changes:
  Removing references to hidden classes in shared lib.
  Exposing a few more methods in the lib
  Move assist data receiver interface to accessible namespace
2017-11-16 02:00:28 +00:00
TreeHugger Robot
b0f49a6021 Merge "Create colored shadows demo" 2017-11-15 20:11:31 +00:00
TreeHugger Robot
fcd996cc36 Merge "Logging for widget versions" 2017-11-15 19:51:27 +00:00
Niklas Brunlid
d8f2a0641a Merge "Avoid overflow in focus fudge calculation" am: 795d4a5aa4 am: e842e266a6
am: 858c934b5d

Change-Id: I80d027ca4adffbc18b95c365d9ed27d9faaefccd
2017-11-15 19:16:47 +00:00
Niklas Brunlid
858c934b5d Merge "Avoid overflow in focus fudge calculation" am: 795d4a5aa4
am: e842e266a6

Change-Id: I0509b4debdf634075df7d8f63516d0b8e18e4b8c
2017-11-15 19:08:30 +00:00
Niklas Brunlid
e842e266a6 Merge "Avoid overflow in focus fudge calculation"
am: 795d4a5aa4

Change-Id: Id15034f5a02f93a4fe8487b5516993a9bf6f4ada
2017-11-15 18:59:35 +00:00
Treehugger Robot
795d4a5aa4 Merge "Avoid overflow in focus fudge calculation" 2017-11-15 18:42:28 +00:00
Jan Althaus
5d0a14bc40 Logging for widget versions
Bug: 67674199
Test: Changed Editor to log a version number and manually checked output
Change-Id: Idbc1ba41bf68c229f857be6f769ab946cb903def
2017-11-15 11:20:58 +01:00
TreeHugger Robot
c65b49e0bd Merge "Widget types for unselectable and custom views" 2017-11-15 08:47:54 +00:00
Koji Fukui
a834309bd5 Merge "Remove AutofillManagerClient after AutofillManager is finalized" am: dd5384a4fe am: 8d36beec24
am: bb4a13b097

Change-Id: I5f3eea81f662d0396b7fd384b2e91c2087f41c0f
2017-11-15 02:56:16 +00:00
Koji Fukui
bb4a13b097 Merge "Remove AutofillManagerClient after AutofillManager is finalized" am: dd5384a4fe
am: 8d36beec24

Change-Id: I76ac103f2d6df4a32a49c0c460344a8049d7d3c3
2017-11-15 02:42:44 +00:00
Koji Fukui
8d36beec24 Merge "Remove AutofillManagerClient after AutofillManager is finalized"
am: dd5384a4fe

Change-Id: If0b092c5e18005fb4b8c1fd8405f4d666c98de5a
2017-11-15 02:35:18 +00:00
Treehugger Robot
dd5384a4fe Merge "Remove AutofillManagerClient after AutofillManager is finalized" 2017-11-15 02:23:27 +00:00
Winson Chung
e210468aa0 Move assist data receiver interface to accessible namespace
- Also adding bundle options to pass to the recents component that is
  launched through startRecentsActivity()

Bug: 67864419
Test: Everything builds, existing tests pass
Test: go/wm-smoke
Change-Id: Ie9ee472efb132add69b8bc10798dc5214d1fa1e2
2017-11-14 12:39:21 -08:00
Xin Li
220871a697 Merge commit '98e12851336b7db16e583f9afac63ecc97465980' from
oc-mr1-dev-plus-aosp-without-vendor into stage-aosp-master.

Change-Id: Ia7b8da4a00d215160e4a4fa40f6044208d1297b7
Merged-In: I19846d2a3ee27aecbae2367a74ee49082eea154d
2017-11-14 12:31:11 -08:00
Jan Althaus
b3c6ece78a Widget types for unselectable and custom views
Added new constants to be used by custom text view implementions, as well
as a special case for non-selectable text that will only become meaningful
once we start logging linkified text.

Bug: 67674199
Test: Tested that there are no regressions in the existing behaviour.
Change-Id: I0167c39bdbde2783f13a8776d6e280aadf55476b
2017-11-14 15:41:59 +01:00
Niklas Brunlid
2ecbe69ddd Avoid overflow in focus fudge calculation
When comparing decoding the next View to get focus, the last-resort
calculation (magic number and square of distance between the View
corners) could overflow, giving a false positive. This causes the
focus to jump around in certain cases. Change from int to long to
avoid in the foreseeable future.

Test: Manual
- Use a phone with an 18:9 ratio (1080*2160)
- make FrameworksCoreTests
- adb install -r out/target/product/aurora/data/app/FrameworksCoreTests/FrameworksCoreTests.apk
- adb shell am instrument -r -w -e class android.widget.scroll.ScrollViewButtonsAndLabelsTest#testArrowScrollUpOffScreenVerticalFadingEdge com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I119cd66f563cfa312c2304bb910c27075e674e59
2017-11-14 10:17:56 +01:00
TreeHugger Robot
0fbd9d163b Merge "Support insets on secondary displays" 2017-11-14 02:59:12 +00:00
Wale Ogunwale
828ff7e3ef Support insets on secondary displays
Indroduced DisplayFrames object to track frames used to calculate
window insets per display vs. at a global level in PhoneWindowManager.

Bug: 64148922
Change-Id: I19f166920eba0a4f933a223a77e096bcc8dab0c1
Test: bit FrameworksServicesTests:com.android.server.wm.ScreenDecorWindowTests
Test: go/wm-smoke
2017-11-14 01:03:50 +00:00
TreeHugger Robot
542bdb1410 Merge "Fix for incorrect model version info" 2017-11-14 00:56:25 +00:00
John Reck
3c0369bf02 Create colored shadows demo
Test: HwAccelerationTest demo
Bug: 68211332
Change-Id: Ia53a6ac2854570d0495b355bbebee1dcec2f47ba
2017-11-13 16:53:48 -08:00
TreeHugger Robot
059004e27b Merge "Revert "Support insets on secondary displays"" 2017-11-13 21:43:56 +00:00
Wale Ogunwale
7bb06e012a Revert "Support insets on secondary displays"
This reverts commit 9bc2692939.

Change-Id: Ia065372e9e220e653b4729a290663c3536d99307
Fixes: 69241956
Bug: 64148922
2017-11-13 16:49:19 +00:00
Jan Althaus
e750c6c457 Fix for incorrect model version info
In a number of cases, the model version info was not set correctly,
resulting in incorrect model version information (always 0) being
logged.

Bug: 69240688
Test: Manually tested that the logs are correct. (Both with only factory and only update model)
Change-Id: I89e88635eecd4e4a3f299b2cf5cdd09d6ff53bdf
2017-11-13 13:07:38 +01:00
Jan Althaus
ae5eb83a32 Update smart select metrics for new system event fields
We are now adding new system UI event fields specifically for smart select.
This CL adds corresponding new metric field values and changes the log
event building accordingly.

Bug: 67674199
Test: Manually tested that the logs are correct.
Change-Id: I5b90c8b194de2d46d7d6be1f1c314be9a2239298
2017-11-13 09:07:02 +01:00
Evan Rosky
4772301e67 Merge "Revert "Enable new initial-focus behavior for P"" 2017-11-10 18:20:06 +00:00
Evan Rosky
b34cad00d3 Revert "Enable new initial-focus behavior for P"
This reverts commit 4dc3289c94.

Reason for revert: Pushback from bundled apps.

Bug: 68841055
Bug: 34520588
Change-Id: Id771a11c9b44baf5810240cca164bae9f468b5ad
2017-11-10 18:11:30 +00:00
Tetsutoki Shiozawa
84806dc355 Merge "Fix: WindowManagerGlobal#setStoppedState failed by IOOBE" am: 4741faa258 am: 949ea9bb2a
am: aab6b51c11

Change-Id: If4be33e18a761a5ad2fb522fad046a2811818f90
2017-11-10 17:19:52 +00:00
Tetsutoki Shiozawa
aab6b51c11 Merge "Fix: WindowManagerGlobal#setStoppedState failed by IOOBE" am: 4741faa258
am: 949ea9bb2a

Change-Id: I8bc04464519557a7af8e4792f30bad901d206052
2017-11-10 17:06:04 +00:00
Wale Ogunwale
9bc2692939 Support insets on secondary displays
Indroduced DisplayFrames object to track frames used to calculate
window insets per display vs. at a global level in PhoneWindowManager.

Bug: 64148922
Test: bit FrameworksServicesTests:com.android.server.wm.ScreenDecorWindowTests
Test: go/wm-smoke
Change-Id: I4a668d6c2dd0bfa666cb6acecf663cf83545ea87
2017-11-10 04:57:30 -08:00
Koji Fukui
ccec6a6ae8 Remove AutofillManagerClient after AutofillManager is finalized
Symptom:
Global reference table overflow happens on system_server.

Root cause:
If a process repeatedly create a context and get AutofillManager
from the context, each BinderProxy of AutofillManagerClient are
registered to AutofillManagerServiceImpl. They aren't removed until
the process is died. BinderProxy consumes global reference and finally
causes crash on system_server.

Solution:
Remove AutofillManagerClient from AutofillManagerServiceImpl after
AutofillManager is finalized.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Bug: 68747744
Change-Id: I8b76c5368b54317b8696cac470cc390b36e910e7
2017-11-09 15:44:12 -08:00
John Reck
cbfc6373e3 Merge "Throw exception on non-finite floats" 2017-11-09 21:14:24 +00:00
Richard Ledley
a020374b17 Merge "Remove old getLinks method" 2017-11-09 10:19:47 +00:00
Daichi Hirono
3c6c95ed1a Add callback to DragDropController.
The callback allows vendor code to hook drag and drop operations.

Bug: 63914027
Test: Manually drag and drop files between apps, CTS
      CrossAppDragAndDropTests
Change-Id: I33bf907b7c024a485c51bd87d7c4839718ebeb13
2017-11-09 09:50:25 +09:00
TreeHugger Robot
8bbf27d2f2 Merge "Don't let keyguard to influence orientation when dismissing" 2017-11-08 22:37:11 +00:00
Andrii Kulian
92c9a948df Don't let keyguard to influence orientation when dismissing
When keyguard is being dismissed it still was overriding orientation
for the display, which caused report of wrong configuration to
activity that was becoming visible.

Bug: 66979760
Bug: 36897968
Fixes: 68131425
Test: Launch Unity 4 based game, lock and unlock screen, check UI
Test: com.android.server.wm.DisplayContentTests#testOrientationDefinedByKeyguard
Change-Id: I0a180b8e941a85ba4174a40cdec2ff0b8f3e00eb
2017-11-08 12:08:13 -08:00
Stan Iliev
d495f43992 Implement SkSL cache
Implement SkSL cache by reusing code and logic from egl_cache_t.

Test: Improves startup times for gmail by 15ms and 10ms for calc app.
Bug: 66740665
Change-Id: I9ba479c649ba97a2c29a48d40579ba001264c957
2017-11-08 18:55:41 +00:00
John Reck
3e5aa7ccba Throw exception on non-finite floats
Bug: 62780151
Test: CTS tests added
Change-Id: Ia1f7cbb8cf44ba7bac6d93ea4d11b73c7973a69a
2017-11-08 10:50:25 -08:00
Richard Ledley
6c37c45e28 Remove old getLinks method
Test: N/A
Change-Id: I324887ec45823d8ec9199a203631c4572b7f3142
2017-11-08 14:41:12 +00:00
Richard Ledley
7c0abe1920 Merge "Initial implementation of generateLinks" 2017-11-08 13:35:21 +00:00
Richard Ledley
68d9452346 Initial implementation of generateLinks
Test: Included, and ag/3141575

Change-Id: Ia91aa130e95ff347c55981b68b8d975bc8131a73
2017-11-08 10:54:09 +00:00
Tetsutoki Shiozawa
978e7f87cc Fix: WindowManagerGlobal#setStoppedState failed by IOOBE
Symptom:
An application crashed due to IndexOutOfBoundsException.
The exception was thrown at WindowManagerGlobal#setStoppedState.

Root cause:
setStoppedState invokes setWindowStopped for each ViewRoot by
ascending order. If an application removes its view within the
loop, loop index exceeds the number of items.

Solution:
Loop in descending order.

Bug: 69018607
Change-Id: I7e20282dc99b767912be4e00d81ffb49fe6c7ac0
2017-11-08 16:46:09 +09:00
TreeHugger Robot
7fe465a9e7 Merge "SidekickService (base)" 2017-11-07 02:29:16 +00:00
Evan Rosky
5e29c076cb Add "KeyFallback" handling ability to Views
This gives any view the ability to receive unhandled KeyEvents.
The order of Views receiving fallback key events is inverse
drawing order: this means higher views will receive fallback
events first.

FallbackHandlers can be added to any view via
addKeyFallbackListener. Within a view, listeners are tapped
in reverse order (such that more-recently added listeners will
receive the event first).

Bug: 32722450
Test: Added a CTS test ViewTest#testKeyFallback
Change-Id: Ibfff4db70de8fb98db0035e5aeb09271be1574c6
2017-11-06 13:11:18 -08:00
TreeHugger Robot
993ebff17e Merge "Optional parameters for TextClassifier APIs." 2017-11-06 13:44:48 +00:00
Wale Ogunwale
c0b0f93e96 Support for WM.LayoutParams.PRIVATE_FLAG_IS_SCREEN_DECOR.
Allow any process with the STATUS_BAR_SERVICE permission to add a
window that would be considered a screen decoration by the system
similar to the nav bar or status bar.

Test: bit FrameworksServicesTests:com.android.server.wm.ScreenDecorWindowTests
Bug: 68002203
Bug: 64148922
Change-Id: I8c78b82c10c638b54a528a77b96f5bf8dd18bf6f
2017-11-05 12:01:10 -08:00
Abodunrinwa Toki
2b6020fc80 Optional parameters for TextClassifier APIs.
TextClassifier methods now take a @Nullable Options parameter which
is a container for optional parameters to its methods.
This way, if we need to pass an optional parameter to one of
TextClassifier's methods, we won't have to overload the method.
Instead, we'll introduce a new Options field.

This CL also adds a hidden optional field for suggestSelection.
This is used to make sure that "dark launched" models do not return
new selection indices to clients. Clients e.g. TextView that are
dark-launch aware may use the field to explicitly request for
dark-launch results.

Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: Also see I843eadff8a2b674388055364c1f25c8d4ccea771
Change-Id: I58e44451ac8a8e3a5bc3959198447f5549870902
2017-11-03 14:02:38 +00:00
Jorim Jaggi
426dd380a9 Merge "Check not released to avoid native crash" 2017-11-03 13:17:02 +00:00
Felipe Leme
d46f87a9e2 Added missing AutofillEventType so lint doesn't complain. am: 3dec72b601
am: 3d2f9d1467

Change-Id: I608b1e3ec3c887e50b4daa57cbfdeed0f30d23a0
2017-11-03 01:25:43 +00:00