Commit Graph

15911 Commits

Author SHA1 Message Date
TreeHugger Robot
aca883298a Merge "Add supportedAttributes param for spell checker." 2021-01-21 19:45:17 +00:00
Josh Tsuji
fd577558f6 Merge "Adds the power button unlock animation and plumbs detailed wake/sleep reason to System UI." 2021-01-21 18:55:52 +00:00
Linus Tufvesson
076c0697ee Merge "Update system application overlay api" 2021-01-21 09:42:02 +00:00
TreeHugger Robot
8197beb008 Merge "Make IInputMethodManager to oneway (9/N)" 2021-01-21 03:10:40 +00:00
TreeHugger Robot
68c6e0a8b6 Merge "Pass in window name along with focus request" 2021-01-21 01:23:35 +00:00
Kohsuke Yatoh
036c61877a Merge "Add missing textservice OWNERS files." am: 0f4112a760 am: 49023f3cd8 am: 782d427971
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1554552

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie00b4339b17b58e4041b506d23c8f7a984839481
2021-01-21 01:20:06 +00:00
Josh Tsuji
cb27bd1a83 Adds the power button unlock animation and plumbs detailed wake/sleep reason to System UI.
Test: unlock the phone using either the power button or lifting it
Bug: 169693662
Change-Id: I567555e6ee04f369ce7f4b32744639be70583112
2021-01-20 20:08:37 -05:00
Kohsuke Yatoh
782d427971 Merge "Add missing textservice OWNERS files." am: 0f4112a760 am: 49023f3cd8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1554552

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifeae70e9e0e68b1f0420c95676c3a2445c9433ef
2021-01-21 01:00:21 +00:00
Kohsuke Yatoh
0f4112a760 Merge "Add missing textservice OWNERS files." 2021-01-20 23:16:33 +00:00
Chavi Weingarten
857a3713bb Merge "Remove preserve surfaces when surface format changes." 2021-01-20 22:08:10 +00:00
Kohsuke Yatoh
93d47b0487 Add supportedAttributes param for spell checker.
Bug: 166304720
Test: atest CtsInputMethodTestCases:SpellCheckerTest
Change-Id: I22f4a59a0c8ccb43f799351062f9fabca42403cd
2021-01-20 20:06:12 +00:00
Kohsuke Yatoh
b1d2fe86f7 Add missing textservice OWNERS files.
Test: n/a
Change-Id: I56939ce3a22c72ac489e4d9248de9e0ce4ee9413
2021-01-20 18:53:11 +00:00
Linus Tufvesson
1090a9bfc3 Update system application overlay api
Convert the SYSTEM_FLAG into a PRIVATE_FLAG and expose a method for
setting it.

This API is easier to use since it makes it possible to setup the
LayoutParams before having access to the Window.

Bug: 171177581
Test: atest CtsWindowManagerDeviceTestCases:HideOverlayWindowsTest
Change-Id: I0bf3857e3dbf67f8833b3b3847b2253d31b9d4a5
2021-01-20 17:37:14 +00:00
Galia Peycheva
f78234f112 Merge changes from topic "blur_system_api"
* changes:
  Make BackgroundBlurDrawable a SystemApi
  Make window background blurs SystemApi
  Add permission for blur SystemApi
2021-01-20 05:04:01 +00:00
TreeHugger Robot
3f8337ff57 Merge "Add APIs that can notify client ui translation state." 2021-01-20 04:43:54 +00:00
Tiger Huang
d4391287d5 Merge "Add BEHAVIOR_DEFAULT for visual immersive mode" 2021-01-20 04:20:40 +00:00
Treehugger Robot
ea8b0e9eb8 Merge "Make me an owner of accessibility frameworks" am: f79a0fd564 am: b8ec02815b am: d65928539b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1553965

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I505c172ee9d683a56abf517a14e31534b58d784c
2021-01-19 22:57:32 +00:00
Treehugger Robot
d65928539b Merge "Make me an owner of accessibility frameworks" am: f79a0fd564 am: b8ec02815b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1553965

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic7d1237a3f2b08f6ce6017e29b189f1331b61bba
2021-01-19 22:43:42 +00:00
Mark Renouf
e857186c7d Merge "Guard against NPE when root view is detached" 2021-01-19 22:40:38 +00:00
Treehugger Robot
f79a0fd564 Merge "Make me an owner of accessibility frameworks" 2021-01-19 19:54:14 +00:00
TreeHugger Robot
0ba4311f04 Merge "Sync with blast transactions in SurfaceView" 2021-01-19 16:48:23 +00:00
Tiger Huang
d878909a9b Add BEHAVIOR_DEFAULT for visual immersive mode
BEHAVIOR_DEFAULT lets the user can use single gesture to navigate while
system bars are hidden in gesture navigation mode. The user doesn't
need to make navigation bar visible before performing navigation.

BEHAVIOR_DEFAULT will be the default behavior, which means if there is
no system bar behavior (or any legacy sysui flag about immersive)
specified, the behavior will be BEHAVIOR_DEFAULT instead of
BEHAVIOR_SHOW_BARS_BY_TOUCH.

BEHAVIOR_SHOW_BARS_BY_TOUCH and BEHAVIOR_SHOW_BARS_BY_SWIPE are
deprecated. Their behavior is equivalent to BEHAVIOR_DEFAULT now. The
logic about HideNavInputEventReceiver is removed.

Bug: 168913586
Test: atest WindowInsetsControllerTests ViewRootImplTest
            DisplayPolicyTests CommandQueueTest
            LightsOutNotifControllerTest RegisterStatusBarResultTest
Change-Id: Ic818e323abbb38b57bef9fc36fb1afef2a007f1b
2021-01-19 23:33:21 +08:00
Lan Wei
ff39778d5d Merge "Public some APIs in TextServicesManager for spell checker" 2021-01-19 13:10:03 +00:00
Galia Peycheva
42f19b6163 Make BackgroundBlurDrawable a SystemApi
Bug: 177524486
Test: check that using the drawable in the PermissionController works

Change-Id: I0b881ec6e9a41c5aed3ca17589a6d66ced0539bf
2021-01-19 13:50:53 +01:00
Galia Peycheva
e463ad6d1b Make window background blurs SystemApi
This CL makes windowBackgroundBlurEnabled, windowBackgroundBlurRadius
and WM.LP backgroundBlurRadius SystemApis to be used for bross-app blur.

WM.LP.backgroundBlurRadius is protected via a
Manifest.permission.USE_BACKGROUND_BLUR, which is checked both in the
system server and in SurfaceFlinger.

This CL also mokes WM.LP.FLAG_BLUR_BEHIND a SystemApi. It has been a
public API since 2009 and was deprected in 2011. It has been a no-op
ever since that. We are removing it from being a public api and will
use it as a system api in S

Bug: 167166562
Bug: 177524486
Test: manual - use PermissionController dialog to check SystemApis work
Change-Id: Icf98c3607b7d7ccdfb67b279e9fc5a83eba14204
2021-01-19 13:50:36 +01:00
Iavor-Valentin Iftime
1b4a41b7c7 Merge "Start HOME intent when waking up TV device" 2021-01-19 12:33:35 +00:00
Yunfan Chen
fa1d0b0827 Merge "Keep runtime insets types during layout" 2021-01-19 12:23:17 +00:00
Ahaan Ugale
feb36772c7 Add APIs that can notify client ui translation state.
The initial APIs for ui translation. There is no implementation in
this change, we will implement it in the next CL.

Bug: 172969740
Bug: 176871912
Test: manual. build pass and build success.

Change-Id: I4ae0bc7a695076a87bed73e458396312d87f48c5
2021-01-19 19:09:23 +08:00
Lan Wei
4c7423735e Public some APIs in TextServicesManager for spell checker
IME can use these APIs to get the currently enabled and active splleck
checkers' info.

Bug: 166304720
Test: atest CtsInputMethodTestCases:SpellCheckerTest

Change-Id: I2bac96ddafe5e4ac583fc16bf155d67e3d45fc4f
2021-01-19 14:21:39 +08:00
Yunfan Chen
b863e6e44b Keep runtime insets types during layout
Previously, we only keep the information of the relative position with
IME window during the layout process. That worked because navigation bar
is always at the top. To support more flexible insets layout and the
solve issues where upper window received insets from lower window, we
keep the runtime insets instead.

When calculating the insets for a target window, we only count the
insets types above the window when needed.

Test: atest DisplayPolicyLayoutTests
Test: atest InsetsStateControllerTest
Test: atest InsetsPolicyTest
Test: go/wm-smoke
Bug: 171559950
Bug: 161689946
Bug: 169329927
Bug: 172289399
Change-Id: I891f10d85ce4fc3e28e9757d0c4f4def6f5d1586
2021-01-19 14:23:26 +09:00
ryanlwlin
528811e0ef Make me an owner of accessibility frameworks
Test: Relying on treehugger. No functional changes.
Change-Id: Icc51b1b4e752289db1cbf24c2cd8e08a939fefec
2021-01-19 12:49:01 +08:00
Wilson Wu
0a32fd21ef Make IInputMethodManager to oneway (9/N)
Apply following methods to IVoidResultCallback to emulate
current behavior before we change them to one-way.

-. showInputMethodPickerFromClient
-. showInputMethodPickerFromSystem
-. showInputMethodAndSubtypeEnablerFromClient
-. reportActivityView

Bug: 163453493
Test: Manual test with keyboard
Test: atest CtsInputMethodTestCases
Test: atest CtsWindowManagerDeviceTestCases:ActivityViewTest
Change-Id: Id516fd1c961f43ac3e139c88d7ed004c188d458b
2021-01-19 11:37:03 +08:00
Yunfan Chen
93d1656697 Merge "Ensure notifying when only caption insets changed" 2021-01-18 05:24:47 +00:00
TreeHugger Robot
fd3a5e4152 Merge "Rewrite the Icon object in TextSelection" 2021-01-18 03:50:16 +00:00
TreeHugger Robot
97c5538229 Merge changes Ic927170c,I562d3e93
* changes:
  Define an @IntDef for the screenshot type constants
  Correctly identify screenshot from a11y service
2021-01-16 01:31:16 +00:00
Mark Renouf
816aea5c85 Guard against NPE when root view is detached
Bug: 170137878
Test: atest FrameworksCoreTests:ViewRootImplTest
If null, simply skip searching the view hierarchy.

Change-Id: Icbef4022d73dcc3ddd8e6e41b010b00b09d98aa8
2021-01-15 19:35:23 -05:00
Alec Mouri
d3ef461fcd Merge "Remove Point#dump" 2021-01-15 23:24:03 +00:00
Vishnu Nair
0c3269ea1f Pass in window name along with focus request
Used for generating focus event logs and debug
logs.

Test: go/wm-smoke, check event logs and logcat

Change-Id: Ib5bdf8693212388c1f0db397458b45eef4db8a51
2021-01-15 14:24:03 -08:00
Mark Renouf
e91f47b1fd Define an @IntDef for the screenshot type constants
Test: n/a
Change-Id: Ic927170c302f4798750df29f05fcbbb46179def6
2021-01-15 21:43:10 +00:00
Vishnu Nair
05e1761386 Sync with blast transactions in SurfaceView
Sync SV by sending transactions to viewrootimpl BBQ for
synchronization instead of using deferred transactions.

Test: go/wm-smoke
Test: atest SurfaceViewSyncTest
Change-Id: I86f364080a399d8d528d4141ffd3b0bf79155b8d
2021-01-15 13:28:51 -08:00
chaviw
41117a4be7 Remove preserve surfaces when surface format changes.
When format is changed, there's no need to preserve surfaces. We can
just update the consumer to use the new format. There shouldn't be any
issues since the next dequeue will get a buffer with the new format. The
current buffer on screen won't change and the layer properties aren't changed
when format is updated. There's no need to recreate a new surface.

Instead, move the format updating logic to the client in VRI and send
the new format to BLASTBufferQueue so it can update the consumer.

Test: go/wm-smoke
Bug: 177557720
Change-Id: I26806cfd4b482e8b6165045f4af3c55a5955da0c
2021-01-15 09:36:09 -08:00
Treehugger Robot
7721431149 Merge "Update OWNERS files for textclassifier" am: feb82a11cc am: 4a77e414f9 am: c0935cb9a1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1551114

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3bb82154f571e68bee21be6e88957be97e904d50
2021-01-15 17:24:06 +00:00
Treehugger Robot
c0935cb9a1 Merge "Update OWNERS files for textclassifier" am: feb82a11cc am: 4a77e414f9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1551114

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I241f809262ca82889136ecb62d494c47b5814e07
2021-01-15 17:06:17 +00:00
Tony Mak
16a99fee0e Update OWNERS files for textclassifier
1. Create a OWNRES file in the textclassifier test folder
2. Add me and licha@ to the OWNERS files.

Test: N/A
Change-Id: I5bedfc28d2ea18cdaa2dac7e0e799cf225ba99d1
2021-01-14 19:12:59 +00:00
TreeHugger Robot
58679dbef9 Merge "Center crop and clip notification image." 2021-01-14 18:13:22 +00:00
Linus Tufvesson
8e713dbd58 Merge "Add SYSTEM_APPLICATION_OVERLAY" 2021-01-14 14:59:43 +00:00
Winson Chung
c31ec3d518 Merge "Migrate FrameTracker to use ST Jank information" 2021-01-13 19:36:00 +00:00
Valentin Iftime
06689aad01 Start HOME intent when waking up TV device
Add wakeup reason to HOME intent as extra.

Test: Put device to sleep (remote power button). Press remote POWER or HOME button.
  adb logcat | grep startReason
   => startDockOrHome startReason= WAKE_REASON_POWER_BUTTON or startDockOrHome startReason= WAKE_REASON_WAKE_KEY

Bug: 168223486
Change-Id: Ic7f98b802faeacebb9416fcb20ca183a553c105d
2021-01-13 16:30:12 +01:00
Bernardo Rufino
b57d8d8a26 Merge "Document go/untrusted-touches" 2021-01-13 14:41:04 +00:00
Mathew Inwood
f3793ebcc9 Merge "Derestrict some non-SDK APIs." am: 29bf6e8443 am: 9e27f89092 am: 982e50f2c6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1541669

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iab20c244c8ff5b04f3236cfccb453a4fbe5a8705
2021-01-13 10:34:26 +00:00