Commit Graph

11074 Commits

Author SHA1 Message Date
Selim Cinek
dd1e17cd19 Merge "Dispatching display list recreations also to transient views" into pi-dev am: 036a2409fc
am: b348343320

Change-Id: Ic2cc1250f5223060d880a37437c59208d85ac0d9
2018-03-20 01:49:28 +00:00
Robert Carr
a0aa0ca866 Merge "Merge "SurfaceView: Expose hook for subclass to position child surfaces." into pi-dev am: 89b182890c" into pi-dev-plus-aosp
am: 331561fb52

Change-Id: I00e9ad45911d0c9b7e411bff6064303b41a96283
2018-03-20 00:58:36 +00:00
Tracy Zhou
8002e7f96c Merge "Move default pip position to right above the shelf." into pi-dev am: 017f44be88
am: 6f9ebab4ed

Change-Id: I65e587befec2dcba43b95fe6c6d8775a918fd332
2018-03-20 00:34:39 +00:00
Felipe Leme
17542558dd Merge "Fixed isVisibleToUserForAutofill() again." into pi-dev am: e24c95fac5
am: c8ca9aa394

Change-Id: Id470cc15a58f2c7f480966ee33ef415cafb08579
2018-03-20 00:21:04 +00:00
Felipe Leme
6f2b0a0820 Merge "Merge "Fixed AutofillManager.isAutofillUiShowing()" into pi-dev am: a946d88011" into pi-dev-plus-aosp
am: 7509f73970

Change-Id: I9cc686a6dd13fc824f12591f5e419796a8c6d12f
2018-03-19 21:29:13 +00:00
TreeHugger Robot
036a2409fc Merge "Dispatching display list recreations also to transient views" into pi-dev 2018-03-19 21:09:31 +00:00
TreeHugger Robot
89b182890c Merge "SurfaceView: Expose hook for subclass to position child surfaces." into pi-dev 2018-03-19 20:32:35 +00:00
Tracy Zhou
017f44be88 Merge "Move default pip position to right above the shelf." into pi-dev 2018-03-19 20:15:14 +00:00
TreeHugger Robot
e24c95fac5 Merge "Fixed isVisibleToUserForAutofill() again." into pi-dev 2018-03-19 19:57:14 +00:00
John Reck
34be60db86 Merge "Don't use IPC in isolateProcess" into pi-dev am: 75cd1c0334
am: b542ac19c6

Change-Id: I3150815a29392ceeca39e73282b1354af3de4339
2018-03-19 19:25:55 +00:00
Felipe Leme
a946d88011 Merge "Fixed AutofillManager.isAutofillUiShowing()" into pi-dev 2018-03-19 18:27:20 +00:00
Felipe Leme
cb2e83da36 Fixed AutofillManager.isAutofillUiShowing()
It was using & instead of &&

Test: not really
Bug: 75652829
Bug: 74527545

Change-Id: Ib8ca79ba6ec35d2fc97f042db2152b03d334ce30
2018-03-19 11:26:23 -07:00
Tracy Zhou
43513086d2 Move default pip position to right above the shelf.
This change takes care of the flow from WindowManagerService to
PinnedStackController, all the way to PipTouchHandler. It also
introduces a WindowManager hook that allows Launcher to pass in
shelf visibility and height. A separate change is made to send
signals from Launcher to SysUI. (ag/3724896)

Bug: 73961893
Change-Id: I2ff54e78bc2dc35c806b902464048b051a4d6394
Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerPinnedStackTests
2018-03-19 17:41:08 +00:00
Felipe Leme
7008e70234 Fixed isVisibleToUserForAutofill() again.
This method should return false when the accessibility provider does not have
an accessibility info for a node. Otherwise, the Save UI is not triggered on
compat mode.

Bug: 75017711
Test: manual verification

Change-Id: Ic1759520a43b4333aef9f8f0e1d93f8d378b131c
2018-03-19 09:55:39 -07:00
John Reck
564284759f Don't use IPC in isolateProcess
Fixes: 74395652
Test: hwuiunit passes in 'shell stop' state (pseudo-isolated process),
      manually checked non-isolated processes still have working vsync
      via systrace of RT animations demo

Change-Id: I630ea011dc7eb2efa265b25673d3304b3b2510d3
2018-03-16 17:34:02 -07:00
Robert Carr
27a800afac SurfaceView: Expose hook for subclass to position child surfaces.
To position child surfaces of a SurfaceView in sync with the main view root
we need to expose the frame number and RT callback. This is of course not API
but we plan to use it with app controlled transitions, for manipulating window
surfaces within a view hierarchy.

Bug: 70341013
Test: Builds
Change-Id: Ibb3645461fac36bda8ab163867fcb2087cadee37
2018-03-16 15:15:17 -07:00
Dake Gu
52bdc92423 Merge "autofill: ViewRootImpl.dispatchKeyFromIme() should not be dropped" into pi-dev am: 21935e0c6f
am: 478726760f

Change-Id: Ibb4d5f343063847530a8c521adcff550a42068c6
2018-03-16 18:17:47 +00:00
Dake Gu
21935e0c6f Merge "autofill: ViewRootImpl.dispatchKeyFromIme() should not be dropped" into pi-dev 2018-03-16 17:32:25 +00:00
Adrian Roos
41e2ffebb5 Merge "DisplayCutout: Add corner cutout overlay" into pi-dev am: e90248c00e
am: 2b3389feaf

Change-Id: I34eab194685616100aaa5608cc7a5c9fd3869b83
2018-03-16 13:19:35 +00:00
Adrian Roos
e90248c00e Merge "DisplayCutout: Add corner cutout overlay" into pi-dev 2018-03-16 13:01:00 +00:00
Selim Cinek
d6a51b1137 Dispatching display list recreations also to transient views
Change-Id: If40eb8dec82f8b50bd3fa8abdb376db20a1f742a
Fixes: 75033268
2018-03-15 17:11:38 -07:00
Makoto Onuki
68a2617af5 Merge "Fix deadlock regarding screen-capture-disabled" into pi-dev am: 70d24a0b1f
am: 5a67d2973e

Change-Id: Ie88f4bd95f0a9276ed25c98c33e6e8831734e2c1
2018-03-15 22:27:23 +00:00
Makoto Onuki
70d24a0b1f Merge "Fix deadlock regarding screen-capture-disabled" into pi-dev 2018-03-15 21:01:49 +00:00
Adrian Roos
b8b10f807c DisplayCutout: Add corner cutout overlay
Bug: 74982138
Test: mmm packages/overlays/DisplayCutoutEmulationCornerOverlay/
Change-Id: I06258f417b4ce3b1cc65e046fb18bc856de896c9
2018-03-15 20:09:46 +00:00
Seigo Nonaka
a7a62d0b81 Merge "Remove mtOffset from drawTextRun" into pi-dev am: bc20993e4b
am: 17abcf0b76

Change-Id: Ib0dbce1bc5efe12193d0d9770830ed046c08869d
2018-03-15 06:49:49 +00:00
Seigo Nonaka
83143d005b Remove mtOffset from drawTextRun
Bug: 72998298
Test: atest CtsWidgetTestCases:EditTextTest
    CtsWidgetTestCases:TextViewFadingEdgeTest
    FrameworksCoreTests:TextViewFallbackLineSpacingTest
    FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest
    CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest
    CtsTextTestCases FrameworksCoreTests:android.text
    CtsWidgetTestCases:TextViewPrecomputedTextTest

Change-Id: Ia886c1ce9f7387559d7fe00b34ce03378d56ecec
2018-03-15 04:09:19 +00:00
Jorim Jaggi
7d872a74cc Merge "Merge "Add ability to filter remote animation adapter by activity type" into pi-dev am: c175631670" into pi-dev-plus-aosp
am: 79cbe6f986

Change-Id: I47c482f63121b7cbf50ec6ee76e18a7719ecde23
2018-03-14 23:02:39 +00:00
Jorim Jaggi
c175631670 Merge "Add ability to filter remote animation adapter by activity type" into pi-dev 2018-03-14 21:55:07 +00:00
Makoto Onuki
04ef44761d Fix deadlock regarding screen-capture-disabled
- Introduced DevicePolicyCache, which stores a copy of device policies
that can be accessed with any lock held.

- Removed "wm screen-capture". According to code search, it's not being used,
and this command wasn't really working as intended, since DPM can always
override the manually set value.

Bug: 74277398
Test: atest /android/pi-dev/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/MixedDeviceOwnerTest.java#testScreenCaptureDisabled,testScreenCaptureDisabled_assist ; \
Test: atest /android/pi-dev/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/MixedProfileOwnerTest.java#testScreenCaptureDisabled,testScreenCaptureDisabled_assist ; \
Test: atest /android/pi-dev/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/MixedManagedProfileOwnerTest.java#testScreenCaptureDisabled,testScreenCaptureDisabled_assist
Change-Id: I1968d1c32145a715d0343f25cb9d58939514b597
2018-03-14 12:21:54 -07:00
Jorim Jaggi
acb0c9f116 Merge "Allow controlling SystemUI flags during RecentsAnimation" into pi-dev am: d854d917ec
am: 7fc78d6c2a

Change-Id: Ic57ff6a3469520d250da3e29a8c96f45bc255186
2018-03-14 16:37:14 +00:00
Jorim Jaggi
77be157a9e Add ability to filter remote animation adapter by activity type
Such that Launcher can choose not to use the remote animation
for assistant.

Test: Open assistant, close it
Test: go/wm-smoke

Bug: 72702760
Change-Id: Ib97cb5dd076afe5535e4e7951f423ccf9e78e720
2018-03-14 17:12:45 +01:00
TreeHugger Robot
d854d917ec Merge "Allow controlling SystemUI flags during RecentsAnimation" into pi-dev 2018-03-14 16:00:49 +00:00
Jorim Jaggi
50bf59ca0d Allow controlling SystemUI flags during RecentsAnimation
Such that the bars can flip from light/dark depending on animation
progress.

Test: go/wm-smoke
Test: Swipe up from light bar app
Test: WindowStateTests
Bug: 73498721
Change-Id: Ie4b99c75840474a01225720fcd7372191f035a3e
2018-03-14 15:11:52 +01:00
Dake Gu
d9dbd27370 autofill: ViewRootImpl.dispatchKeyFromIme() should not be dropped
ag/3628400 bypass unhandled keyevent from autofill to app window,
that solves the issue of using physical keyboard. But we still have
issue When user uses touch screen with IME.

There are two ways that IME interacts with app:
1. IME directly replaces text of TextView. (Sample app login screen)
2. IME calls ViewRootImpl.dispatchKeyFromIme. (Sample app credit card
   screen)

In the second case, because we gave focus to autofill window,
ViewRootImpl will drop the event.

The fix checks if autofill window is showing fillui it should not
drop event. And dispatchKeyFromAutofill can use the same check, no
longer need FLAG_FROM_AUTOFILL.

Bug: 74527545
Test: Manually check with login and credit card example, using IME
touchscreen and "adb shell input keyevent". I am not able to write
cts test without a fake IME

Change-Id: I698423d83ee8f9151d03a39b49e85416f7d6b615
2018-03-13 14:58:38 -07:00
Felipe Leme
a63d1c260f Merge "Fixed flags when button that trigger autofill is clicked." into pi-dev am: a56e4bbad0
am: 6ce49c6001

Change-Id: I7bd684dbb25847428b24996bcb9efc661b1a6fd5
2018-03-13 20:10:40 +00:00
TreeHugger Robot
a56e4bbad0 Merge "Fixed flags when button that trigger autofill is clicked." into pi-dev 2018-03-13 18:45:47 +00:00
Jorim Jaggi
03c56306f2 Merge "Improve animation dump/logging" into pi-dev am: bc57bf307c
am: e660ae22b7

Change-Id: Ief2101011c00d00a2bbeb814fb45341bcdab7ec7
2018-03-13 16:21:40 +00:00
Jorim Jaggi
f75d161dd8 Improve animation dump/logging
Bug: 74220420
Test: go/wm-smoke
Test: adb shell dumpsys window during animation
Change-Id: Ib8bddb4f38ad4fe7a80315d3bfdac0a80aea4cc8
2018-03-13 14:06:08 +01:00
Adrian Roos
99db7ebbaa Merge "DisplayCutout: Support more than one cutout" into pi-dev am: 5d92e72482
am: 2125a78980

Change-Id: I97042e60d0222efaeee65ac78f85d22e281ac87a
2018-03-13 02:18:14 +00:00
TreeHugger Robot
5d92e72482 Merge "DisplayCutout: Support more than one cutout" into pi-dev 2018-03-12 22:45:34 +00:00
Felipe Leme
ef9225e061 Fixed flags when button that trigger autofill is clicked.
Test: atest CtsAutoFillServiceTestCases:SimpleSaveActivityTest#testExplicitySaveButton
Test: manual observation
Fixes: 72937886

Change-Id: Iad8ee6ff6540b07137c8e90c7bb6e77a9fe27a7c
2018-03-12 15:03:55 -07:00
Abodunrinwa Toki
ad52f4b97c TextClassifierService.onSelectionEvent
Bug: 74466564
Bug: 67609167
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Test: bit FrameworksCoreTests:android.view.textclassifier.logging.SelectionEventTest
Merged-In: Ib5af1ec80a38432d1201fbc913acdc3597d6ba82
Change-Id: Ib5af1ec80a38432d1201fbc913acdc3597d6ba82
2018-03-12 19:32:51 +00:00
TreeHugger Robot
4c2ef0271a Merge "Move display id into MotionEvent" 2018-03-12 18:02:43 +00:00
Adrian Roos
6a4fa0ec18 DisplayCutout: Support more than one cutout
Also makes API more restrictive. Also moves window manager specific
logic out of the framework. Also fixes SystemUI such that it can properly
deal with more than one cutout.

Bug: 74195186
Test: atest DisplayCutoutTest WmDisplayCutoutTest DisplayContentTests WindowFrameTests
Change-Id: Ib7b89e119ce2d3961687579bb81eadce1159a600
2018-03-12 17:26:01 +00:00
Abodunrinwa Toki
9554dd94ec Merge "Merge textclassifier/logging/ into textclassifier/" into pi-dev 2018-03-12 15:16:53 +00:00
Tarandeep Singh
b5d47f62ae Merge "Revert "Revert "Remove a compat hack SurfaceView#setWindowType()""" into pi-dev am: 4b306e5e23
am: 69745f8469

Change-Id: I260748eb436c4540c19b89c8184870600b7841dc
2018-03-12 10:16:06 +00:00
TreeHugger Robot
4b306e5e23 Merge "Revert "Revert "Remove a compat hack SurfaceView#setWindowType()""" into pi-dev 2018-03-12 09:45:42 +00:00
Abodunrinwa Toki
f1d939910f Merge textclassifier/logging/ into textclassifier/
This is based on feedback on Ib5af1ec80a38432d1201fbc913acdc3597d6ba82

Bug: 74466564
Bug: 67609167
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: bit CtsViewTestCases:android.view.textclassifier.cts.TextClassificationManagerTest
Test: bit CtsViewTestCases:android.view.textclassifier.cts.LoggerTest
Merged-In: Ic8d58acb2bbd63cedcac4aa16940b4ac852aadc8
Change-Id: Ic8d58acb2bbd63cedcac4aa16940b4ac852aadc8
2018-03-10 13:13:14 +00:00
Vadim Tryshev
7d1cd9d68c Merge "Adding isNotInRecents to RemoteAnimationTarget" into pi-dev am: fe700fc694
am: 14b5972391

Change-Id: I455915b99bff65ebb5c0ccf3570c84a051c14540
2018-03-10 08:45:40 +00:00
Peiyong Lin
d86f316e6b Merge "Merge "Add lockHardwareWideColorGamutCanvas." into pi-dev am: c481d0a43c" into pi-dev-plus-aosp
am: 8ba4e785a3

Change-Id: I4b6d24acb70f2c862f51d10a312ca6a560a6a5e0
2018-03-10 01:56:21 +00:00