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
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
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
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
IME can use these APIs to get the currently enabled and active splleck
checkers' info.
Bug: 166304720
Test: atest CtsInputMethodTestCases:SpellCheckerTest
Change-Id: I2bac96ddafe5e4ac583fc16bf155d67e3d45fc4f
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
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
Used for generating focus event logs and debug
logs.
Test: go/wm-smoke, check event logs and logcat
Change-Id: Ib5bdf8693212388c1f0db397458b45eef4db8a51
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
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
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
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