Commit Graph

15921 Commits

Author SHA1 Message Date
Chavi Weingarten
d27752a9e6 Merge "Ensure opacity is update on the VRI SC when format changes" 2021-01-25 17:14:50 +00:00
Santos Cordon
c89c2f8ea1 Merge "Support folding display in screenshot controller." 2021-01-25 13:26:09 +00:00
Joanne Chung
d9e22f9ac9 Merge "Find the activity to notify Ui translation state" 2021-01-25 02:50:32 +00:00
Charles Chen
d14dcb3394 Merge "Introduce WM#LayoutParams mWindowContextToken" 2021-01-25 02:10:15 +00:00
Tiger Huang
5b28dc65de Merge "Remove beginLayoutLw and redundant logic about layout" 2021-01-24 21:07:27 +00:00
chaviw
987eb1ca65 Ensure opacity is update on the VRI SC when format changes
Opacity is set based on format change. Previously, WMS would recreate
the surface when the format was changed and set the new opacity.
However, since ag/13348893, format changes no longer recreate a surface.
Therefore, we also need to update the opacity flag when format is
changed in VRI.

Test: Play video from camera app
Fixes: 178062437
Change-Id: I3160a555bff24ab910235eaef9118d3aeed59355
2021-01-22 10:34:03 -08:00
Tiger Huang
61adf1f6ce Remove beginLayoutLw and redundant logic about layout
This CL makes every window always ready to layout. DisplayFrames and
InsetsState will be always up-to-date so that we don't need to update
them in beginLayoutLw anymore.

This CL also removes PRIVATE_FLAG_PRESERVE_GEOMETRY which is not used by
anyone.

This can be a step to make the client compute its window frame locally.

Bug: 161810301
Test: atest DisplayPolicyLayoutTests DisplayPolicyTests
            LaunchParamsControllerTests SizeCompatTests
            TaskLaunchParamsModifierTests WallpaperControllerTests
Change-Id: I43a3713246ae67fc4da40eae9bbd6d3c8e26cbb9
2021-01-22 18:24:21 +00:00
Santos Cordon
a31ffa9b4b Support folding display in screenshot controller.
Since the underlying display device can now change for the default
logical display, we need to remove some caching that is done in
screenshot controller to appropriately grab the correct display
content when a sceenshot is requested.

Test: Manually test that a screenshot is taken before and after
      a device's default display changed (folded device folds).
Bug: 173144019
Change-Id: I8c8057f0eba78676580fa23c90cdf72cb6f1df9d
2021-01-22 15:57:53 +00:00
Joanne Chung
9107e213a6 Find the activity to notify Ui translation state
The implementation after receiving UiTranslatinManager calls. The
implementation after receiving state change will on the follow up
changes.

Bug: 172969740
Test: manual. Use a sample code to call the APIs, the methods are
called as expected.

Change-Id: Ic41c994055b4c580e2bff75313b6498db51b6130
2021-01-22 17:35:41 +08:00
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
Charles Chen
3c3b134e7d Introduce WM#LayoutParams mWindowContextToken
The window context token is passed to the server side by attaching
to the layout params in WM#addView to receive configuration changes.

Bug: 159767464
Bug: 153369119
Test: atest
WindowContextTest#testCreateWindowContextWindowManagerAttachClientToken

Change-Id: I658b09727b42eb9c2fa2cea63f8a312761e0a9aa
2021-01-21 17:46:57 +08: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