Commit Graph

11091 Commits

Author SHA1 Message Date
Abodunrinwa Toki
80f5725d1e Merge "Fix smart_linkify_enabled flag." into pi-dev am: e9a7cb8158
am: 27d8cf774a

Change-Id: I4d0c13b480cdd0f2fa134716575e86630a7e90d4
2018-03-23 02:31:56 +00:00
Rose Liu
8bc23adc0d Merge "Assign -1 as default value of window type and owner uid." into pi-dev am: a194d92495
am: 0da0266bdf

Change-Id: I7e52c530a059592fefb14503b09cd0f416584e67
2018-03-23 01:55:59 +00:00
TreeHugger Robot
e9a7cb8158 Merge "Fix smart_linkify_enabled flag." into pi-dev 2018-03-22 22:56:58 +00:00
rongliu
3dac23bd4d Assign -1 as default value of window type and owner uid.
Bug: 74622357
Test: Test with ag/3738015 together. Layers without buffers have window
type -1 and owner uid -1.

Change-Id: I6f010bf1327671a06874b75bc0a63a3fb010ced7
2018-03-22 13:44:29 -07:00
Abodunrinwa Toki
6563833cf3 Fix smart_linkify_enabled flag.
The flag should only ensure that smart linkify calls behave in the
legacy way instead of totally disabling linkify.
Also, to keep the flag consistent with smart_selection_enabled and
smart_text_share_enabled flags, the flag should only disable the
SmartLinkify (i.e. Linkify.addLinksAsync) feature not TextClassifier
APIs (i.e. TextClassifier.generateLinks).

Also fixes issue with non-focusable TextViews by firing the primary
action instead of showing the floating toolbar. (b/73156794)

Bug: 75967597
Bug: 73156794
Test: bit FrameworksCoreTests:android.text.util.LinkifyTest
Test: bit CtsTextTestCases:android.text.util.cts.LinkifyTest
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: manual - checked behaviour turning flag on/off
Test: manual - checked behaviour with TextView.setFocusableInTouchMode(true/false)
Change-Id: I541f60161b9cd63ce7e57235607500f2fb0841e7
2018-03-22 19:25:14 +00:00
Lukas Zilka
f7b2a69bbc Merge "Adds support for a fall-back model when the language-specific model is not found." into pi-dev am: f9593d62b3
am: a30195420a

Change-Id: I7b2f81fd136b56e05857c06c07be3af89eed2d1a
2018-03-22 11:12:24 +00:00
TreeHugger Robot
f9593d62b3 Merge "Adds support for a fall-back model when the language-specific model is not found." into pi-dev 2018-03-22 10:50:47 +00:00
Lukas Zilka
0fcacdddf4 Adds support for a fall-back model when the language-specific model is not found.
Bug: 74720318

Test: Builds and fall-back works.
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Test: bit CtsViewTestCases:android.view.textclassifier.cts.TextClassificationManagerTest
Change-Id: I5491af628c8406e42ca2cc971ad3a8b708ceb315
2018-03-21 12:25:41 +01:00
Yohei Yukawa
957d06bf11 Merge "Fix confusing Log.e message in SpellCheckerSession" into pi-dev am: efcd6e1ceb
am: 32355d12be

Change-Id: I49383474cc086de13352df36ea3bf8855acf7ff6
2018-03-21 09:06:14 +00:00
Robert Carr
b731d9d560 Merge "Distinguish between createSurface error codes." into pi-dev am: d0661a081d
am: 367eeed46a

Change-Id: I0c992c81c3d53ee764b02b95563275ead7c8ea29
2018-03-21 06:10:54 +00:00
TreeHugger Robot
efcd6e1ceb Merge "Fix confusing Log.e message in SpellCheckerSession" into pi-dev 2018-03-21 03:25:49 +00:00
Andrii Kulian
aa48cf9c52 Merge "Don't set override display info for ActivityView" into pi-dev am: 982973934d
am: 8ef2b626c8

Change-Id: I1cd3d6bf253b77316f8194292f619928c9e95530
2018-03-21 03:14:18 +00:00
Yohei Yukawa
0cf7b31012 Fix confusing Log.e message in SpellCheckerSession
With this CL, calling SpellCheckerSession#close() multiple times will
no longer show the following error message in logcat, which was quite
confusing.

  E SpellCheckerSession: ignoring processOrEnqueueTask due to
    unexpected mState=TASK_CLOSE scp.mWhat=TASK_CLOSE

Note that with a recent CL [1], we now more often see the above
message.  A typical scenario is:

  1. App creates SpellCheckerSession x.
  2. App calls x.close().
  3. x is garbage-collected. ART calls x.finalize(), which internally
     calls x.close() again.

 [1]: I4e00c3a2cec93d1dacff20546e481fe757279661
      9b64367193

Bug: 72974646
Fix: 72974646
Test: Made sure that no error message in question with a test app
      that calls SpellCheckerSession#close() multiple times then
      trigger SpellCheckerSession#finalize().
Change-Id: Ie9690860e6d0406dc6746cd03c28f693e65c1dde
2018-03-21 01:15:02 +00:00
TreeHugger Robot
d0661a081d Merge "Distinguish between createSurface error codes." into pi-dev 2018-03-21 00:40:19 +00:00
Andrii Kulian
982973934d Merge "Don't set override display info for ActivityView" into pi-dev 2018-03-20 22:01:27 +00:00
Andrii Kulian
f0379de259 Don't set override display info for ActivityView
ActivityView content should never be letter- or pillar-boxed
and it doesn't have overscan areas, so we can skip setting
display override info for a virtual display that backs it.

Bug: 72220802
Test: Manually resize with ActivityView demo app
Change-Id: I211449eaea50ec5d3214d63e7eb93a1d2ed2c0fd
2018-03-20 19:43:34 +00:00
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
Robert Carr
b0f39361b5 Distinguish between createSurface error codes.
Thusly preventing killing applications in the case of
a missing parent.

Bug: 73664284
Test: Manual. go/wm-smoke.
Change-Id: Iafcd578765fa8fcf603c3f5a6a546e6986f297e8
2018-03-14 17:48:40 -07: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