TreeHugger Robot
397094f23d
Merge changes from topic "ProvideTypedInsetsFrames" into tm-mainline-prod am: 7dd058e54d
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17352110
Change-Id: I005f525148699ee52685ea7864bf49f4090b660f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-04-13 11:11:12 +00:00
TreeHugger Robot
7dd058e54d
Merge changes from topic "ProvideTypedInsetsFrames" into tm-mainline-prod
...
* changes:
[automerge] Extend providedInternalInsets to be type specific 2p: 72e2997f31
Extend providedInternalInsets to be type specific
2022-04-13 01:53:04 +00:00
Yurii Zubrytskyi
cd0b840f9c
Merge "frameworks/base - Tiramisu is now 33" into tm-dev am: 595ec5f75c am: 0139794bb9
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17699091
Change-Id: I507f66fac3b4147937f129a08069942475ef820f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-04-13 01:05:36 +00:00
Jorim Jaggi
9ac8c2756a
Merge "Fix doc issue linking internal class" into tm-dev am: 331f163d20 am: 7e9cd5cfd3
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17693836
Change-Id: Iaaab4bfb8ec771a3d22dd14ca500dcc6a4ac47a5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-04-12 15:27:08 +00:00
Yurii Zubrytskyi
bb014567f5
frameworks/base - Tiramisu is now 33
...
Removed deprecated at birth APIs
Test: build and boot
Bug: 225745567
Change-Id: I8a40f4a08e521a7c9632d7652ff1f51fb137b34d
2022-04-12 08:25:15 -07:00
Jorim Jaggi
331f163d20
Merge "Fix doc issue linking internal class" into tm-dev
2022-04-12 12:50:54 +00:00
Tiger Huang
3b7edc48ce
Merge "Fix WindowInsets#getStableInsets" into tm-dev am: 06b93cf997 am: 201f94fee6
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17691529
Change-Id: I05dd6c875d4a9c3a87391ba6ff356d606f015f11
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-04-12 06:46:21 +00:00
Jorim Jaggi
4e87d6ff0a
Fix doc issue linking internal class
...
Fixes: 148043444
Change-Id: If43ebe0ec38cc00379d8db79481ef2c3116ce867
2022-04-11 22:25:56 +02:00
Tiger Huang
ed3f2e3803
Fix WindowInsets#getStableInsets
...
WindowInsets#getStableInsets should return system bar insets as if
system bars are visible, regardless of the window flags.
Fix: 228807465
Test: See if a window with FLAG_LAYOUT_NO_LIMITS or FLAG_FULLSCREEN can
receive all the system bar insets.
Change-Id: Ib8fff5ba78c8f52141a048027821ef182d2f7992
2022-04-11 17:53:21 +08:00
Siarhei Vishniakou
d6233c3f24
Merge "Add nullability annotations to some InputDevice APIs"
2022-04-08 14:20:19 +00:00
Naomi Musgrave
adc80a9f95
Merge ""Revert "Temporarily exclude Launcher from sandboxing; to be reverted once"""
2022-04-08 13:27:39 +00:00
Tony Huang
9074b73ec7
Merge "Remove getSfInstance usage from ViewRootImpl" into tm-dev
2022-04-08 06:41:24 +00:00
Tony Huang
c87f607da5
Merge changes from topic "presubmit-am-8892555377a6429fb522f9a877d124f5"
...
* changes:
[automerge] Remove getSfInstance usage from ViewRootImpl 2p: a825a5c0d9 2p: 739cdfdd86
[automerge] Remove getSfInstance usage from ViewRootImpl 2p: a825a5c0d9
Remove getSfInstance usage from ViewRootImpl
2022-04-08 06:41:24 +00:00
Shan Huang
cbcbdca252
Merge changes from topic "presubmit-am-9522a5e1392b4268a1792fcf81596629" into tm-mainline-prod am: 285f6a18cd
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17300004
Change-Id: I161bff2626d4f7bac884f5179bd735783cc4766a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-04-08 04:32:04 +00:00
Shan Huang
be460cbac4
Merge "Create OnBackInvokedCallbackInfo to wrap callback and its priority." into tm-dev
2022-04-08 04:07:53 +00:00
Shan Huang
285f6a18cd
Merge changes from topic "presubmit-am-9522a5e1392b4268a1792fcf81596629" into tm-mainline-prod
...
* changes:
[automerge] Create OnBackInvokedCallbackInfo to wrap callback and its priority. 2p: b353af0387
Create OnBackInvokedCallbackInfo to wrap callback and its priority.
2022-04-08 04:07:53 +00:00
Siarhei Vishniakou
3d7833776c
Add nullability annotations to some InputDevice APIs
...
In a previous CL, we fixed a null dereference bug. Here, we add the
nullability annotations.
Bug: 227733127
Test: build only
Change-Id: I8db92e6c95993d0e1715632fac55f3d30e3c4d37
2022-04-07 16:55:58 -07:00
Naomi Musgrave
b1b6def858
"Revert "Temporarily exclude Launcher from sandboxing; to be reverted once""
...
This reverts commit 5824b89763 .
Reason for revert: Launcher has removed their dependency on Display#getRealSize
Bug: 181219241
Change-Id: I9bbf2b511a5b92eea6365bbd2a594238e01f1b36
Test: atest FrameworksMockingCoreTests:android.view.DisplayTest
2022-04-07 19:39:27 +00:00
Tony Huang
cdba2b05c1
[automerge] Remove getSfInstance usage from ViewRootImpl 2p: a825a5c0d9 2p: 739cdfdd86
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17636144
Bug: 222696368
Change-Id: Ib415bbdfdbab5b83c3ecba6db9fec5ef0013ca8b
2022-04-07 10:16:51 +00:00
Tony Huang
739cdfdd86
[automerge] Remove getSfInstance usage from ViewRootImpl 2p: a825a5c0d9
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17636144
Bug: 222696368
Change-Id: Id13e48a5feb0895c6e2b55c373855d57be728f39
2022-04-07 10:16:43 +00:00
Tony Huang
a825a5c0d9
Remove getSfInstance usage from ViewRootImpl
...
The getSfInstance usage on ViewRootImpl is target to reduce jank
when moving split divider, but legacy split is going to be depracated
and it didn't used on new split too so we can remove whole related
codes safely.
Bug: 222696368
Test: build pass
Change-Id: Icf9b543bdd1d4bee54efb3be852722f247d1bd47
2022-04-07 18:15:27 +08:00
TreeHugger Robot
32c547cc8f
Merge "Allowing SurfaceViewHost to show up in layout inspector" into tm-dev am: 579f8a6234 am: e905f440ee
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17162546
Change-Id: If91e2d2081f00c026967370a12ca220744421f10
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-04-07 10:03:21 +00:00
Riddle Hsu
ead1c76209
Merge "Pass background color from transition info to remote animation" into tm-dev am: a3348272e7 am: 3aebad7d0c
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17400164
Change-Id: I36cbb1bd6cfcd8a99cafce11d19709eda1bc2540
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-04-07 10:01:08 +00:00
TreeHugger Robot
579f8a6234
Merge "Allowing SurfaceViewHost to show up in layout inspector" into tm-dev
2022-04-07 09:28:47 +00:00
Riddle Hsu
a3348272e7
Merge "Pass background color from transition info to remote animation" into tm-dev
2022-04-07 08:41:17 +00:00
Shan Huang
b2a16e3b59
[automerge] Create OnBackInvokedCallbackInfo to wrap callback and its priority. 2p: b353af0387
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17300004
Bug: 224856664
Change-Id: Ic2f36da275375429da3e7555f2b020c6c4caf76f
2022-04-07 05:11:55 +00:00
Shan Huang
b353af0387
Create OnBackInvokedCallbackInfo to wrap callback and its priority.
...
Main motivation is to store a back callback's exact priority value in WM. This is required by the IME migration (ag/17076160) to compare the priority levels of IME window callback and focused window callback in BackNavigationController.
This also consolidates the WindowState#mSystemOnBackInvokedCallback and WindowState#mApplicationOnBackInvokedCallback fields into one field, as tracking two fields for one callback was error prone. We had to remember to clear the application / system field when the other field is set, and failing to do so has resulted in bugs such as b/222675481.
Bug: 224856664
Test: atest BackNavigationControllerTest
Test: atest WindowOnBackInvokedDispatcherTest
Test: m -j and test back behavior throughout the system on apps that
opted in and out.
Change-Id: Ic57113610d934f33d2c9ca4cef59f39a9b87e832
2022-04-07 05:11:42 +00:00
Tiger Huang
0f2c3931b9
Merge "Update touch mode regardless of mStopped" into tm-dev am: 88fdb7aa46 am: 34df8d94c9
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17607661
Change-Id: I44556987a91cef61541a50645729ce06f1d51002
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-04-07 02:52:15 +00:00
Tiger Huang
88fdb7aa46
Merge "Update touch mode regardless of mStopped" into tm-dev
2022-04-07 02:17:08 +00:00
Sunny Goyal
87ec28b2ed
Allowing SurfaceViewHost to show up in layout inspector
...
Bug: 191298629
Test: Verified on device
Change-Id: I83c74423b6f33f45cdd93926badb2cad32c7a86d
2022-04-07 00:37:17 +00:00
Shan Huang
1bb7c8cf96
Merge "Dispatch KEYCODE_BACK to the full input pipeline in compat callback." into tm-dev am: d47a172963 am: 2830b6c681 am: 6214bc055c
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17411191
Change-Id: Icb1cbbcc99fa8096c5475364bafb6ed7fefac2ac
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-04-06 18:17:39 +00:00
Shan Huang
d47a172963
Merge "Dispatch KEYCODE_BACK to the full input pipeline in compat callback." into tm-dev
2022-04-06 17:38:38 +00:00
Tiger Huang
df309af84e
Update touch mode regardless of mStopped
...
The very first state of touch mode is obtained from addToDisplay. It
should be applied in the first performTraversal regardless of mStopped.
In this way, when an app window is re-created at the background, the
touch mode state can still be up-to-date.
Fix: 227843343
Test: 1. Open Chrome and go to the homepage.
2. Change the theme via the 3-dot menu > Settings > Theme.
3. Go back to the homepage and see if any button is focused.
Expected behavior: no button looks focused.
Change-Id: I2681e2436dd265abe9cd9bdd56ee5799fa30d89b
2022-04-06 18:26:27 +08:00
Presubmit Automerger Backend
d6be71efda
[automerge] Extend providedInternalInsets to be type specific 2p: 72e2997f31
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17352110
Bug: 215411414
Change-Id: I740537725a6ebae3fa8a7a785e5f6ba43d3633a6
2022-04-06 07:58:50 +00:00
Yunfan Chen
72e2997f31
Extend providedInternalInsets to be type specific
...
This change will change the providedInternalInsets from a single insets
to a insets array. The one adding the insets can make use of the array
to apply different insets to the window when calculating the provided
insets by the window for different insets types.
With that, the task bar can provide zero insets for the tappable element
type when stashed.
Bug: 215411414
Test: DisplayPolicyTests
Change-Id: I84cd7ef6a2bc19229d3c09f752f65c83eb5c7dde
2022-04-06 16:55:54 +09:00
Rob Carr
169f3d8c61
Merge "ViewRootImpl: Ensure seqId only increases" into tm-dev
2022-04-06 04:53:55 +00:00
Rob Carr
ae5454ccf4
Merge changes from topic "presubmit-am-402aa9e0c5db4b77854cdb590a812293" into tm-mainline-prod
...
* changes:
[automerge] ViewRootImpl: Ensure seqId only increases 2p: 25bdf74a0b
ViewRootImpl: Ensure seqId only increases
2022-04-06 04:53:55 +00:00
Rob Carr
1e5db63686
Merge changes from topic "presubmit-am-402aa9e0c5db4b77854cdb590a812293"
...
* changes:
[automerge] ViewRootImpl: Ensure seqId only increases 2p: 25bdf74a0b 2p: 1be469ea07
[automerge] ViewRootImpl: Ensure seqId only increases 2p: 25bdf74a0b
ViewRootImpl: Ensure seqId only increases
2022-04-06 04:53:55 +00:00
Haoyu Zhang
855cde92eb
Merge "Scribe: fix handwriting is not initiated in WebView" into tm-dev am: ef233d0fad am: 37b5f122c9
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17464394
Change-Id: Ic10614e8d7a0e0ec0d4ba853b3a0db2614cde646
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-04-06 01:05:50 +00:00
Haoyu Zhang
ef233d0fad
Merge "Scribe: fix handwriting is not initiated in WebView" into tm-dev
2022-04-06 00:18:12 +00:00
Naomi Musgrave
a0f559a6e9
Merge "Revert "Temporary flag for Launcher to debug their usage of sandboxed display APIs"" into tm-dev am: 6fbe7b2017 am: e130f22dfd am: a2433b2b8d
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17587083
Change-Id: Ic14a38b155dea9da1afa215758ec62c34bfc8898
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-04-05 19:53:55 +00:00
Siarhei Vishniakou
3291866eb4
Merge "Store VelocityTracker strategy in ViewConfiguration"
2022-04-05 16:58:28 +00:00
Robert Carr
484082db35
[automerge] ViewRootImpl: Ensure seqId only increases 2p: 25bdf74a0b 2p: 1be469ea07
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17571369
Bug: 161810301
Bug: 227561299
Change-Id: Ia80a2cd52a4071c967542532bf8c8df9a844ffb2
2022-04-05 16:52:53 +00:00
Robert Carr
25bdf74a0b
ViewRootImpl: Ensure seqId only increases
...
We could process an earlier scheduled MSG_RESIZED after
a later executed relayoutWindow. In this case we might
accidentally move the seqId backwards, which could mess
up our logic. While we are touching this area, we
take the opportunity to ensure SyncHandlers execute
in the order they were added.
Bug: 161810301
Bug: 227561299
Test: Existing tests pass
Change-Id: I8e5ceea1ef34e4da94807582c89a33df95772c04
2022-04-05 16:52:28 +00:00
Naomi Musgrave
65474b0f43
Revert "Temporary flag for Launcher to debug their usage of sandboxed display APIs"
...
This reverts commit 253696fea3 .
Reason for revert: remove from tm-dev
Bug: 206649452
Change-Id: I013f08dfba89eb89e7713dddc1f4f894e335df62
(cherry picked from commit 608a679783 )
2022-04-05 14:30:13 +00:00
Jon Eckenrode
c9158f92de
Merge "Revised the API documentation of the getLocationOnScreen, getLocationInWindow, and getLocationInSurface methods of View." into tm-dev am: 3d1fe11556 am: d6bc85ff43
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17524196
Change-Id: I7647359406805169ed81ec87a941179649213ee2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-04-04 13:41:48 +00:00
Jon Eckenrode
3d1fe11556
Merge "Revised the API documentation of the getLocationOnScreen, getLocationInWindow, and getLocationInSurface methods of View." into tm-dev
2022-04-04 13:31:41 +00:00
Yunfan Chen
e24cf8bb4b
Merge "Provide gesture and tappable element insets for caption" am: 268eff33ec am: 3cd3a85988 am: 0c0ed6f1c1 am: 00c67a2569 am: 535c72e78c
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2052567
Change-Id: I9a1219c810e88c940f8636716e8ab739e5459011
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-04-04 04:30:08 +00:00
Yunfan Chen
00c67a2569
Merge "Provide gesture and tappable element insets for caption" am: 268eff33ec am: 3cd3a85988 am: 0c0ed6f1c1
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2052567
Change-Id: I5507131ce08964e99dca2bfa4b416ff7010481a6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-04-04 03:59:51 +00:00
Yunfan Chen
3cd3a85988
Merge "Provide gesture and tappable element insets for caption" am: 268eff33ec
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2052567
Change-Id: I1e6bf195c6783ba547915653fb3451598cfeb972
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-04-04 03:30:58 +00:00