Commit Graph

19122 Commits

Author SHA1 Message Date
Ats Jenk
616e08c4b4 Update flag constant for caption on shell am: 4f279bac32 am: 750da6f903
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19531018

Change-Id: I4935df6ee55ce73feded58bead8ad02c2150c7a0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-09 02:29:42 +00:00
Ats Jenk
750da6f903 Update flag constant for caption on shell am: 4f279bac32
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19531018

Change-Id: I7b514f50299f625f04d9b798e61daeefd78fa264
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-09 02:02:32 +00:00
TreeHugger Robot
fa9025f7a0 Merge "Fix some issues that make caption insets remain" into tm-qpr-dev am: e2823f9a50 am: 550601869a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19492314

Change-Id: I3501a9f4373ddcb25b0219db562d0e7345ba5b0e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-05 20:00:20 +00:00
TreeHugger Robot
550601869a Merge "Fix some issues that make caption insets remain" into tm-qpr-dev am: e2823f9a50
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19492314

Change-Id: I3294437619a3bf27ecb295dcdfaf1e50ca9d3acb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-05 19:15:19 +00:00
TreeHugger Robot
e2823f9a50 Merge "Fix some issues that make caption insets remain" into tm-qpr-dev 2022-08-05 18:45:00 +00:00
Ats Jenk
4f279bac32 Update flag constant for caption on shell
System properties under persist.debug namespace can't be modified by
SystemUI. aosp/I5808bf92dbba37e9e6da5559f8e0a5fdac016bf3 introduced a
new namespace, persist.wm.debug that can be used for system properties
that can be overridden from SystemUI.
Move captions_on_shell to this namespace so we can update this flag from
SystemUI to simplify enabling it on devices.

Bug: 241464028
Test: build succeeds
Change-Id: Ifcf54b6dfa70ca52dfb51fb2f7f2e67d0568566a
2022-08-05 11:21:22 -07:00
Xiaowen Lei
9ef447502f Merge "Add line break after each set of prefixed logging messages." 2022-08-04 17:40:28 +00:00
TreeHugger Robot
cb34655aaf Merge "Address API feedback on ActivityEmbedding property" 2022-08-04 12:10:30 +00:00
Arthur Hung
047d0ea687 Merge "Mark IWindowFocusObserver as oneway interface" into tm-qpr-dev am: 7fbd925342 am: 4ffac83a79
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19505293

Change-Id: Ide73a5c1b29226fc7c5cf83b6fb83dbb5f59878b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-04 08:07:25 +00:00
Arthur Hung
4ffac83a79 Merge "Mark IWindowFocusObserver as oneway interface" into tm-qpr-dev am: 7fbd925342
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19505293

Change-Id: I6284e0ebac207e4850b3164307bf8b09edadff43
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-04 07:41:36 +00:00
Garfield Tan
6a2e636f34 Fix some issues that make caption insets remain
This CL does the following:
* Remove caption insets when releasing the window decor
* Update caption insets in InsetsController when the caption is in WM
  shell
* Dump LocalInsetsSourceProviders to help debug related issues

Bug: 241029178
Test: The caption type of insets provider is removed when window decor
      is released.
Test: atest WindowDecorationTests
Change-Id: Ia20e1958588de3a7d965b3ac3d3e4333c67dff36
2022-08-03 12:57:27 -07:00
Xiaowen Lei
caa898adad Add line break after each set of prefixed logging messages.
Bug: 220328680
Test: checked logging messages on device.
Change-Id: If517d3f8ff4b9f7d7bf612c27dfea5e0f34dd03a
2022-08-03 19:17:38 +00:00
Chris Li
19a1f04728 Address API feedback on ActivityEmbedding property
Bug: 240387168
Test: Javadoc change only
Change-Id: I58fe883f5d0a05345c2d05530806fa3e0b2711cc
2022-08-03 16:37:23 +08:00
Arthur Hung
034c4ee421 Mark IWindowFocusObserver as oneway interface
It used to notify if the window focus is gained or lost, mark it as
oneway to prevent it block the system server when outgoing.

Bug: 238050065
Test: Trigger back gesture and see the logs
Change-Id: I17b79a361edadf03d2b2887cce7ec29c3968e3e5
2022-08-03 08:08:26 +00:00
TreeHugger Robot
01c2bec9a1 Merge "Introduce API to support Stylus Companion widget" 2022-08-03 06:35:01 +00:00
Taran Singh
e5f499176d Introduce API to support Stylus Companion widget
Introduce APIs necessary for IMEs to be able to distinguish when to show
virtual keyboard vs companion widget based on toolType.

IME receives click toolType in:
1. IMS#onUpdateEditorToolType(int toolType) for every showSoftInput()
   called from IMM.
2. Initial value of toolType in EditorInfo#getInitialToolType().

Fix: 233108064
Bug: 210039666

Test: atest StylusHandwritingTest

Change-Id: I91ea9204ef62697b8942b0f350169382f18b3278
2022-08-03 01:19:22 +00:00
TreeHugger Robot
f8b45dd301 Merge "Add willShowImeOnTarget in RemoteAnimationTarget(Compat)" into tm-qpr-dev am: 5c0ba8f0f5 am: 442b26f30d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19395267

Change-Id: Icc7c12431ee12ca8046702a25bce06b34a2d0f2e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02 13:23:06 +00:00
TreeHugger Robot
442b26f30d Merge "Add willShowImeOnTarget in RemoteAnimationTarget(Compat)" into tm-qpr-dev am: 5c0ba8f0f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19395267

Change-Id: I55490a5534b2206ecb23c2822d5e65e639d4abc3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02 13:19:59 +00:00
TreeHugger Robot
5c0ba8f0f5 Merge "Add willShowImeOnTarget in RemoteAnimationTarget(Compat)" into tm-qpr-dev 2022-08-02 13:05:02 +00:00
Ryan Lin
c2d5e6b2b4 Merge "Fix PerfUnitTest Regression" 2022-08-02 12:23:58 +00:00
Wei Sheng Shih
83c72c89b7 Merge "Inject back key events if no focus window found." into tm-qpr-dev am: 117bab591c am: 23c3dd0294
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19144840

Change-Id: I678242b3a7b6164c6782b82040d386417971f8dc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02 12:22:57 +00:00
Wei Sheng Shih
23c3dd0294 Merge "Inject back key events if no focus window found." into tm-qpr-dev am: 117bab591c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19144840

Change-Id: Ifcb3e44f8ccf21dde71a7663058380a0ca117aa4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02 11:56:11 +00:00
Wei Sheng Shih
117bab591c Merge "Inject back key events if no focus window found." into tm-qpr-dev 2022-08-02 11:40:59 +00:00
TreeHugger Robot
c0195d3c51 Merge "Add missing InternalInsetsType definitions" 2022-08-02 01:33:20 +00:00
TreeHugger Robot
18b493725c Merge "Catch exception when unlinkToDeath" into tm-qpr-dev am: 9a5afdb60b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19346886

Change-Id: I8596b049461d6e4a76a64b9406a11b7ee3893977
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 12:48:21 +00:00
TreeHugger Robot
9a5afdb60b Merge "Catch exception when unlinkToDeath" into tm-qpr-dev 2022-08-01 12:15:31 +00:00
Hiroki Sato
497fbf67b4 Add missing InternalInsetsType definitions
I5bc8d010f4ad212acb779265aff1d2622f5e2da4 added tappable elements on
left and right side, but it was missing in @InternalInsetsType.

Bug: 172289399
Test: build
Change-Id: Ib5ec73678d18c88943a642b19ac05fbb6f4a6eb4
2022-08-01 10:49:54 +00:00
Christian Göllner
fbb2c1876a Merge "Create WM letterbox background color API" into tm-qpr-dev am: 8ac996fd0d am: c0640e9380
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19416409

Change-Id: If0e27f0f6d69290becfabf42666e925733cc79da
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 15:22:06 +00:00
Christian Göllner
c0640e9380 Merge "Create WM letterbox background color API" into tm-qpr-dev am: 8ac996fd0d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19416409

Change-Id: I115b43baaebf59c55d2e92499848e16a91a2d280
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 15:11:01 +00:00
Christian Göllner
8ac996fd0d Merge "Create WM letterbox background color API" into tm-qpr-dev 2022-07-29 14:48:13 +00:00
Vali Calinescu
1d45c18296 Create WM letterbox background color API
Create a WM API that gives access to the letterbox background color and
checks for the multi-colored case (e.g. blurred background) for status
bar treatment

Fix: 238637307
Test: atest WmTests:WindowManagerServiceTests
Change-Id: I644c8fa36f20f4d11414a998396bb066f1a36a28
2022-07-29 12:18:30 +00:00
Yohei Yukawa
1177bb3bfd Merge "Enable background users to call IMM#setAdditionalInputMethodSubtypes" 2022-07-29 12:16:21 +00:00
Tiger Huang
ae9d2aa672 Merge "Send size-compat scale to the client" into tm-qpr-dev am: 93a238d15d am: 3995c4d303
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19149526

Change-Id: Ic48b954694b8d6cafce8b421dcbcd94f63793acc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 09:47:33 +00:00
Tiger Huang
3995c4d303 Merge "Send size-compat scale to the client" into tm-qpr-dev am: 93a238d15d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19149526

Change-Id: If3a51277578c31ba2c0e8c75341b33cd1f5cd9ab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 09:23:15 +00:00
Tiger Huang
93a238d15d Merge "Send size-compat scale to the client" into tm-qpr-dev 2022-07-29 08:56:14 +00:00
wilsonshih
f22e6b03ef Inject back key events if no focus window found.
If user applied a back gesture but core cannot find a focus window,
inject back key event, so that event can dispatch to client once it
gain focus window. And since the gesture was happened, treat it as
onBackPressed.
And if device is playing recents animation but the focus window is
point to live tile, we can also inject back key because Home/Recents
activity shall not have the same behavior as normal app.

Bug: 237629607
Test: cross test that back gesture can finish recents with legacy/shell
transition on Nexus/3rd launcher.
Test: test on BackTestApp for both 3btn mode and gesture mode.
Test: atest AnrTests BackNavigationLegacyGestureTest
Test: atest OnBackInvokedDispatcherTest KeyboardVisibilityControlTest
BackInvokedOnWidgetTest BackNavigationTests BackNavigationControllerTests

Change-Id: If754e66ea7c1c4ec313c45d17d7f6c10bfc2c465
2022-07-29 13:00:54 +08:00
ryanlwlin
9686160be0 Fix PerfUnitTest Regression
We send the accessibilityWindowAttribute while inputmethod window
changes the layout to full-screen mode, which could slow the the
performance.

To fixt it, we cache the attributes in ViewRootImpl to avoid
unncessary IPC connection

Bug: 239288414
Test: use forrest to rerun the test
Change-Id: I158236d79df51678fd168dc988fe565793ef4a09
2022-07-29 10:48:25 +08:00
Arthur Hung
a97e9a07d5 Merge "Cancel back invoke when window focus has lost" into tm-qpr-dev am: f52b49886c am: 89c25ce1f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19415501

Change-Id: Id8175c049118c567a47563ef361afa416c7b9810
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 01:55:46 +00:00
Arthur Hung
89c25ce1f4 Merge "Cancel back invoke when window focus has lost" into tm-qpr-dev am: f52b49886c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19415501

Change-Id: I7d4fc2e6f3df820a4a4594b0368ff6bfbb12820f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 01:37:15 +00:00
Arthur Hung
f52b49886c Merge "Cancel back invoke when window focus has lost" into tm-qpr-dev 2022-07-29 01:18:09 +00:00
Tiger Huang
c72ae0eeaf Merge "Let the client know the initial visibility of an InsetsSourceControl" into tm-qpr-dev am: b4a6c4bf46 am: 8210f8087d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19379426

Change-Id: Ifbf0e17c23469ed03c414e626de46e8536a8bb52
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 00:01:17 +00:00
Tiger Huang
8210f8087d Merge "Let the client know the initial visibility of an InsetsSourceControl" into tm-qpr-dev am: b4a6c4bf46
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19379426

Change-Id: I57ac6c65931c46a1fa7423031b4b78193838e594
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-28 23:53:41 +00:00
Treehugger Robot
65809d17ab Merge "Improve docs for generated properties in PropertyMapper" am: 46a915f625 am: ef33f36050 am: 58b0f9d6b5 am: 1253941b56 am: c695becb54
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2165102

Change-Id: I494e512872b506b74b2dabfdf270640d1e8d6b4c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-28 19:15:47 +00:00
Treehugger Robot
c695becb54 Merge "Improve docs for generated properties in PropertyMapper" am: 46a915f625 am: ef33f36050 am: 58b0f9d6b5 am: 1253941b56
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2165102

Change-Id: I6960e918ce061dc2984bbfdc76511c44614a47c8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-28 18:46:21 +00:00
Treehugger Robot
ef33f36050 Merge "Improve docs for generated properties in PropertyMapper" am: 46a915f625
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2165102

Change-Id: Ie0900ec085aa552075dc2f147125e0035d02b098
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-28 17:39:32 +00:00
Tiger Huang
b4a6c4bf46 Merge "Let the client know the initial visibility of an InsetsSourceControl" into tm-qpr-dev 2022-07-28 17:37:13 +00:00
Ming-Shin Lu
ce1a4f3fe5 Add willShowImeOnTarget in RemoteAnimationTarget(Compat)
..used for signaling the launcher to crop the
remote animation target bounds when task animating on the taskbar.

If the task will show IME on the top means the animation taget would not
need to be cropped according to the taskBar insets, since visually the
taskbar is hidden when IME is visible.

Bug: 219981732
Test: manual as steps
 0) enable taskbar with Settings > Developer options > Smallest width
    as 600dp.
 1) launch an app from all apps and show the IME by tapping the editor.
 2) swipe out to home and launch it again by pressing the shortcut.
 3) Verify the animating task preview with IME shown without being
    cropped.

Change-Id: Iab526e78614c68626bd5424e0e3219044f671f4d
2022-07-28 15:41:26 +00:00
TreeHugger Robot
f3c2197198 Merge "Enable background users to call IMM#getCurrentInputMethodSubtype()" 2022-07-28 14:08:57 +00:00
Arthur Hung
e3476afe2a Cancel back invoke when window focus has lost
This reverts commit 0099ca8fab and provide
new mechanism.

The back invoke target could lost focus during back navigation gesture.
To prevent the non-focused window could still trigger back action cause
some unexpected behavior, this CL will listen the focus change of
current focused window and cancel back gesture when its focus has lost.

Bug: 238050065
Bug: 239792909
Test: atest BackNavigationControllerTests
Test: atest BackNavigationLegacyGestureTest BackNavigationLegacyTest
Test: atest BackNavigationTests
Test: atest WindowOnBackInvokedDispatcherTest BackNavigationTest
Test: atset BackAnimationControllerTest

Change-Id: I65eb19371020ce39977eeb2a2a80c7f08600aaec
2022-07-28 06:42:10 +00:00
TreeHugger Robot
cc505f4177 Merge "Update ActivityEmbedding Property Javadoc" 2022-07-28 05:49:11 +00:00