Commit Graph

11057 Commits

Author SHA1 Message Date
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
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
TreeHugger Robot
fe700fc694 Merge "Adding isNotInRecents to RemoteAnimationTarget" into pi-dev 2018-03-10 01:11:27 +00:00
Vadim Tryshev
593e9567fd Adding isNotInRecents to RemoteAnimationTarget
For animations required by Recents, we calculate whether the task is
going to be presented in Recents UI.

Bug: 70789568
Test: Manual: swipe a normal app to Recents; swipe an app with a
      half-screen assistant on top of it to Recents.

Change-Id: I1ec9c36865dd4f57e843ae58811f90f3096365a5
2018-03-09 14:00:32 -08:00
Tarandeep Singh
9219b31067 Revert "Revert "Remove a compat hack SurfaceView#setWindowType()""
This reverts commit 9309c19513.

Reason for revert: We can now remove the deprecated method. Compat hack
is no longer required for keyboards.
Fixes: 62054282
Test: Manually flashed and verified keyboard apps work.

Change-Id: Iae0c82b6fd3fd5930e9eea3216fab76925839e4d
2018-03-09 19:34:51 +00:00
Peiyong Lin
c481d0a43c Merge "Add lockHardwareWideColorGamutCanvas." into pi-dev 2018-03-09 18:19:52 +00:00
Jorim Jaggi
841080d423 Merge changes I46e93397,Ie0a157a9 into pi-dev am: 3a78ec6ae4
am: c5f88e6872

Change-Id: I3ecfc41762d3bcc099a4575154b6db22f56288c9
2018-03-09 15:29:16 +00:00
Jorim Jaggi
3a78ec6ae4 Merge changes I46e93397,Ie0a157a9 into pi-dev
* changes:
  Also set calling pid when registering for next activity start
  Revert "Revert "Elevate remote/recents animation priority""
2018-03-09 12:05:01 +00:00
Tarandeep Singh
0ff18d635c Merge "Remove debug metadata isVrOnly from InputMethodInfo" into pi-dev am: 961e147b66
am: 5e3d9f5101

Change-Id: Ia6468be994deaf5072f09f3126492f594ca84d90
2018-03-09 07:38:36 +00:00
Tarandeep Singh
eda9f31218 Remove debug metadata isVrOnly from InputMethodInfo
Change-Id: I1e5ae572ab0f8d53b1b8c4ae1e787aff294c82e0
Fixes: 68948291
Test: Manually built and tested. No changes expected for non-dev apps
2018-03-09 00:15:59 +00:00
Peiyong Lin
d8b6871740 Add lockHardwareWideColorGamutCanvas.
This patch adds a hidden API to return a hardware canvas with wide color gamut
support. The hardware canvas returned from BaseSurfaceHolder.lockHardwareCanvas
doesn't support wide color gamut, this patch makes sure that a wide color gamut
canvas context is created when calling lockHardwareCanvas.

Verified this approach works by building ImageWallpaper to use this API.
Without this API an 8 bit logo P3 doesn't show the logo, with this API the logo
is shown correctly. See b/74116826 for more info.

BUG: 74116826
Test: Build ImageWallpaper using this API with an 8 bit P3 image
Change-Id: Id20343fabcd7f0873d79ce72a235ea9b7c1f3e77
2018-03-08 23:43:35 +00:00
Jordan Liu
3eebeaf493 Merge "Support ENVELOPE (EVENT DOWNLOAD - User activity) command" into pi-dev am: 805a5ecedb
am: af029eb5b6

Change-Id: Iedd191b909b27cff1751ff7f28676f8d57a984b0
2018-03-08 20:44:11 +00:00
Jordan Liu
805a5ecedb Merge "Support ENVELOPE (EVENT DOWNLOAD - User activity) command" into pi-dev 2018-03-08 19:49:47 +00:00
Jorim Jaggi
bc2aabe845 Revert "Revert "Elevate remote/recents animation priority""
This reverts commit a8b48ab733.

Original issue has been fixed in follow up CL.

Bug: 73555925
Change-Id: Ie0a157a91c3c66df52370adad7b188f59c4749ea
2018-03-08 18:04:21 +01:00
Julia Reynolds
4ed4e2d6e6 Merge "Show app ops guts when tap app ops icons" into pi-dev am: 7b894b3fcd
am: 6558218cf2

Change-Id: If61c8b33dcac584c685fb5b10acc537b0c0ba10a
2018-03-08 04:27:38 +00:00
TreeHugger Robot
7b894b3fcd Merge "Show app ops guts when tap app ops icons" into pi-dev 2018-03-08 04:00:37 +00:00
Phil Weaver
fc0c8d9b63 Merge "Fix accessibility action parceling" into pi-dev 2018-03-08 01:49:43 +00:00
Julia Reynolds
b586745d86 Show app ops guts when tap app ops icons
Test: runtest systemui
Bug: 64085448
Change-Id: Ia51044f77311ab705ffb9dd1ae204d0131316396
2018-03-08 01:45:09 +00:00
John Reck
2ffa4d67a7 Merge "Clean up development settings" 2018-03-08 01:28:10 +00:00