Commit Graph

653025 Commits

Author SHA1 Message Date
Beverly Tai
cd0a7abf9d [automerger skipped] Merge "Update unpaused udfps alpha when showing udfps bouncer" into sc-dev am: b6d44227eb -s ours am: d6af8c5580 -s ours
am skip reason: Merged-In I86a73dacfd2fc4f5b910e1e1e4f6535e91d00da3 with SHA-1 148d62f833 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15692790

Change-Id: I2a56b00ff1c81ee76bf9afa9f41781e581b84140
2021-08-31 16:23:59 +00:00
Beverly Tai
d6af8c5580 [automerger skipped] Merge "Update unpaused udfps alpha when showing udfps bouncer" into sc-dev am: b6d44227eb -s ours
am skip reason: Merged-In I86a73dacfd2fc4f5b910e1e1e4f6535e91d00da3 with SHA-1 148d62f833 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15692790

Change-Id: I114f70ef0b9a7e331fe5a4a63a1450ae2a6d0946
2021-08-31 16:08:22 +00:00
Issei Suzuki
c062a0216b Merge "Remove force transition logic when keyguard is occluded." into sc-v2-dev 2021-08-31 16:01:03 +00:00
TreeHugger Robot
964abd77da Merge "Refine WindowInsets logs" into sc-v2-dev 2021-08-31 15:56:51 +00:00
Beverly Tai
b6d44227eb Merge "Update unpaused udfps alpha when showing udfps bouncer" into sc-dev 2021-08-31 15:52:21 +00:00
Riddle Hsu
0bacfbaaf9 Merge "Provide referrer package with respect to package visibility" into sc-qpr1-dev am: 40c778d3c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15684587

Change-Id: If0e629f213bf7e6384cd4318fa1864a38d7f1493
2021-08-31 15:32:16 +00:00
Riddle Hsu
40c778d3c2 Merge "Provide referrer package with respect to package visibility" into sc-qpr1-dev 2021-08-31 15:17:32 +00:00
TreeHugger Robot
3702f2db37 [automerger skipped] Merge "Fix one more import for ContextThemeWrapper." into sc-qpr1-dev am: 1bc5c4fe62 -s ours
am skip reason: Merged-In Ie14285b614318a99098f4457d7564a25724cde6b with SHA-1 fff8e21975 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15713462

Change-Id: I15760cfb98ddf38fa8777700f57b7aa647aa5647
2021-08-31 12:14:10 +00:00
TreeHugger Robot
1bc5c4fe62 Merge "Fix one more import for ContextThemeWrapper." into sc-qpr1-dev 2021-08-31 11:56:52 +00:00
Jing Ji
fdd58be715 Merge "Use ArrayMap instead of SparseArray to manage the ProviderKey" into sc-dev am: d5ea86eaf0 am: 9fd02e1b76
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15664720

Change-Id: Iecb1bc15167e2c3b51826fd5bc36d96affe1a559
2021-08-31 06:13:04 +00:00
Jing Ji
9fd02e1b76 Merge "Use ArrayMap instead of SparseArray to manage the ProviderKey" into sc-dev am: d5ea86eaf0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15664720

Change-Id: Ic1e72abe6ee64f763ec67c8c84de88c386943791
2021-08-31 06:04:45 +00:00
Jing Ji
d5ea86eaf0 Merge "Use ArrayMap instead of SparseArray to manage the ProviderKey" into sc-dev 2021-08-31 05:48:08 +00:00
TreeHugger Robot
77b764bcd7 [automerger skipped] Merge "Fix IME flickering when swiping out to home" into sc-dev am: 933d70b498 -s ours am: 5f0c3dbcfb -s ours
am skip reason: Merged-In I044257b5ac0d92dd06dae8eba996ea0ac6f1e659 with SHA-1 807094a3e9 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15716276

Change-Id: I6fe44d3885570b8cd66b83ee76c2759f55fe4bd2
2021-08-31 04:17:09 +00:00
TreeHugger Robot
5f0c3dbcfb [automerger skipped] Merge "Fix IME flickering when swiping out to home" into sc-dev am: 933d70b498 -s ours
am skip reason: Merged-In I044257b5ac0d92dd06dae8eba996ea0ac6f1e659 with SHA-1 807094a3e9 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15716276

Change-Id: I43873e466d05a6a5fe1dec9e72b423025742eb18
2021-08-31 04:04:08 +00:00
Jerry Chang
bf71bb09b8 Merge "Draw rounded corners beside split divider bar" into sc-v2-dev 2021-08-31 03:50:53 +00:00
TreeHugger Robot
933d70b498 Merge "Fix IME flickering when swiping out to home" into sc-dev 2021-08-31 03:48:58 +00:00
Ming-Shin Lu
0b44f104b3 Fix IME flickering when swiping out to home
When switching tasks between different users (i.e. primary and
work-profile user), if the source task has shown IME, when going to
the target task, IMMS will first unbind the current input method of
the current user and hide the soft-keyboard and the window token
by HIDE_SWITCH_USER reason, and then re-bind the input method of
the target user when focused to the target task.

If the hide soft-keyboard somehow being delayed and comes after the
target task has been focused and be the next IME target, user will
see the window removal transition on top of this IME target window.
(i.e. launching Google chat apps with IME shown from work-profile
 and then swiping out to home screen)

Even if we disable window animation in Activity#onDestory in IME
client side, the next relayout can come before that, so window exit
transition still happens.

To fix this timing issue, add animateExit parameter in
WindowManagerInternal#removeToken for IMMS not to perform window exit
animation and to hide the window surface permanentaly, so we can
avoid the window surface becoming visible again unexpectedly during
relayout.

Fix: 197494607
Fix: 195449326
Test: atest WindowTokenTests#\
        testRemoveWindowToken_noAnimateExitWhenSet
Test: manual as issue steps:
1. Enter Google chat
2. Start typing a message
3. Swipe home
4. Expect no IME surface flicker happens

Merged-In: I044257b5ac0d92dd06dae8eba996ea0ac6f1e659
Change-Id: I044257b5ac0d92dd06dae8eba996ea0ac6f1e659
2021-08-31 03:43:10 +00:00
Wei Sheng Shih
421c7d25b8 Merge "Send request top ui to SystemUI when creating splash screen." into sc-v2-dev 2021-08-31 01:25:37 +00:00
Ryan Lin
988a050fcb Merge "Fix rotation test faiulre on foldable devices" into sc-v2-dev 2021-08-31 01:21:46 +00:00
Ady Abraham
c1d91ef5d2 Merge "DisplayManagerGlobal: fix native refresh rate callback registration" into sc-qpr1-dev am: c265f32026
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15689742

Change-Id: I1f37e1e8c0c3a6ced87634d195e795284578e3de
2021-08-31 00:31:42 +00:00
Ady Abraham
c265f32026 Merge "DisplayManagerGlobal: fix native refresh rate callback registration" into sc-qpr1-dev 2021-08-31 00:14:03 +00:00
Julia Reynolds
798e21e401 Revert "Don't restore notification channel if its sound is unavailable" am: cc547d33e5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15718202

Change-Id: I65ed82759ab2a721331700a7856b8a993aff02eb
2021-08-30 23:20:05 +00:00
TreeHugger Robot
c94c3639dc Merge "Make QS pull down consistent with shade" into sc-v2-dev 2021-08-30 21:25:58 +00:00
Julia Reynolds
cc547d33e5 Revert "Don't restore notification channel if its sound is unavailable"
This reverts commit 6a5ca92e75.

Reason for revert: This is affecting notification channels that are using the system sound and is resulting in users losing most of their notification settings

Change-Id: I350cf8190eec6296a597bef38b711900336ddf75
Fixes: 197129198
2021-08-30 20:30:57 +00:00
TreeHugger Robot
6cd63468c0 Merge "Revert "Support immersive mode with task bar"" into sc-v2-dev 2021-08-30 20:02:09 +00:00
TreeHugger Robot
dbc02859d0 Merge "Update unpaused udfps alpha when showing udfps bouncer" into sc-qpr1-dev am: 2747904ead
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15693008

Change-Id: If9b20aa8d56ffbab6aaae7bb936d7dd7cea66cb0
2021-08-30 19:09:20 +00:00
TreeHugger Robot
95e215dbae Merge "AnimateKeyguardInDelay should use the animator duration scale" into sc-qpr1-dev am: 872ae9e154
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15686697

Change-Id: I3cce5674e6ed2113177658f9841748404ce8b6c2
2021-08-30 19:08:10 +00:00
TreeHugger Robot
2747904ead Merge "Update unpaused udfps alpha when showing udfps bouncer" into sc-qpr1-dev 2021-08-30 19:04:25 +00:00
TreeHugger Robot
2590c69bed Merge "New APIs for immersive audio" into sc-v2-dev 2021-08-30 18:57:15 +00:00
TreeHugger Robot
872ae9e154 Merge "AnimateKeyguardInDelay should use the animator duration scale" into sc-qpr1-dev 2021-08-30 18:53:53 +00:00
Tracy Zhou
e38e9d8793 Revert "Support immersive mode with task bar"
This reverts commit dc1bbc2d63.

Reason for revert: b/198050304
Fixes: 198050304

Change-Id: If5eec6f3749f0fe20fdf6b1b63fdc02e6ddcab57
2021-08-30 18:23:29 +00:00
Lucas Dupin
fb1862baf2 Make QS pull down consistent with shade
QS pull down was not being eased like the shade, or all apps drawer.
Now it's using the same interpolator.

Test: manually pull down QS from the top of the screen
Test: atest NotificationShadeDepthControllerTest
Test: atest ScrimControllerTest
Fixes: 196662148
Change-Id: I44387c6295d10633ebffa02b0e45c0144dd8ddfe
2021-08-30 17:57:37 +00:00
Bill Yi
81b968f843 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: 9ed31b86c2 -s ours am: dbab67d9a5 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15692931

Change-Id: If2d99f8e8966e664bb2b8e7e6d6fd80f53be744a
2021-08-30 17:45:37 +00:00
Bill Yi
5de85ec0d5 Merge changes from topic "presubmit-am-ebb30f757e84472c86693a80953f851a" into sc-qpr1-dev am: 8491a267f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15692931

Change-Id: I10182d8ea09404a0c00b0de38dca066634629d13
2021-08-30 17:45:30 +00:00
Bill Yi
cf3ceaec98 [automerger skipped] [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 62d94f1c53 am: 75c6650af6 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15692931

Change-Id: Ic43d84a8b2b852e7db5826f26927a26e728797b8
2021-08-30 17:45:28 +00:00
Bill Yi
dbab67d9a5 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: 9ed31b86c2 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15692931

Change-Id: I0176cf3c96feb6e3edd7c1dcd9f845095b252b0f
2021-08-30 17:44:44 +00:00
Bill Yi
9ed31b86c2 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-08-30 17:28:45 +00:00
Bill Yi
8491a267f5 Merge changes from topic "presubmit-am-ebb30f757e84472c86693a80953f851a" into sc-qpr1-dev
* changes:
  [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 62d94f1c53
  Import translations. DO NOT MERGE ANYWHERE
2021-08-30 17:28:45 +00:00
TreeHugger Robot
445d71dc3c [automerger skipped] Merge "Fix broken launcher build to use the right import for ContextThemeWrapper." into sc-qpr1-dev am: 2ae305234d -s ours
am skip reason: Merged-In Ia36b77e3274191efa28c87cc0b2604a66906b604 with SHA-1 2ee44db719 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15713463

Change-Id: If721c994a1e27ad04f0a948ae8011b7c56b39e48
2021-08-30 17:02:09 +00:00
Jean-Michel Trivi
e9dd14e011 New APIs for immersive audio
- AudioManager: entry point for getting
 a Spatializer object, if supported
- Spatializer: entry point for spatializer
 capabilities, system APIs for configuration
 and compatibility with devices
- AudioAttributes: additions for behavior of
 a track for virtualization

Bug: 191404931
Test: atest AudioAttributesTest SpatializerTest
Change-Id: I06f8acdd979f8d4374042f8209082c79f49a1f75
2021-08-30 16:55:37 +00:00
TreeHugger Robot
2ae305234d Merge "Fix broken launcher build to use the right import for ContextThemeWrapper." into sc-qpr1-dev 2021-08-30 16:46:40 +00:00
Issei Suzuki
0fd19013e5 Remove force transition logic when keyguard is occluded.
This logic was introduced to fix the bug that calls couldn't be be picked
up when device is sleeping, but the problem is not reproducible anymore.

Bug: 182975035
Bug: 196355935
Test: Manual, and pass existing tests.
  1-1. Receive phone call while the screen is off.
  1-2. Check the phone activity responds to touch events.
  2-1. Set lock method (e.g. PIN or pattern)
  2-2. From the lockscreen, double tap power to launch camera.
  2-3. Take a photo.
  2-4. Tap a small preview photo image to launch the preview in full
       screen. Check no jarring during the transition.
Change-Id: I87f1b00e945f7cfd42d77d8f6621e951c23468d3
2021-08-30 18:21:31 +02:00
Ming-Shin Lu
6902904e97 Refine WindowInsets logs
- Add WM_DEBUG_WINDOW_INSETS ProtoLogGroup to use for logging
  general Insets logs in WM core.
- Refine InsetsSourceProvider#updateVisibility proto log format
  to add insets type information.
- Add InsetsSurceControl#toString to print control target info.

Bug: 197189357
Test: adb shell wm logging enable-text WM_DEBUG_WINDOW_INSETS
Test: atest ProtoLogImplTest \
            ProtoLogViewerConfigReaderTest \
            WmTests:ProtoLogIntegrationTest \
            LogDataTypeTest \
            protologtool-tests
Change-Id: I1f01ce4d9fe5cb17f7bd60a424689260682b1dfc
2021-08-30 22:43:46 +08:00
TreeHugger Robot
4ffd84fa3e Merge "Fix IME flickering when swiping out to home" into sc-qpr1-dev am: c300c9d74b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15683501

Change-Id: Ie130532ef5fd2032e49437f4d0aacc8e80f5f3b4
2021-08-30 12:40:43 +00:00
TreeHugger Robot
c300c9d74b Merge "Fix IME flickering when swiping out to home" into sc-qpr1-dev 2021-08-30 12:19:53 +00:00
Jerry Chang
5514e76d40 Draw rounded corners beside split divider bar
Draw rounded corners beside divider bar which inset with task bar if
the task bar is expanded.

Bug: 196272915
Bug: 182511830
Test: atest WMShellUnitTests
Test: manul check the rounded corners rendered in proper position.
Change-Id: I14c5a9416d52bf06b3e4c8ac843c5a65c0b940b8
2021-08-30 19:39:03 +08:00
Beverly
148d62f833 Update unpaused udfps alpha when showing udfps bouncer
This will make sure the alpha is updated correctly before
showing the udfps affordance.

This CL also updates the dumpsys to be more accurate of the
actual alpha value being used.

Test: manual, atest UdfpsKeyguardViewControllerTest
Bug: 197160246
Change-Id: I86a73dacfd2fc4f5b910e1e1e4f6535e91d00da3
2021-08-30 11:30:20 +00:00
Ming-Shin Lu
807094a3e9 Fix IME flickering when swiping out to home
When switching tasks between different users (i.e. primary and
work-profile user), if the source task has shown IME, when going to
the target task, IMMS will first unbind the current input method of
the current user and hide the soft-keyboard and the window token
by HIDE_SWITCH_USER reason, and then re-bind the input method of
the target user when focused to the target task.

If the hide soft-keyboard somehow being delayed and comes after the
target task has been focused and be the next IME target, user will
see the window removal transition on top of this IME target window.
(i.e. launching Google chat apps with IME shown from work-profile
 and then swiping out to home screen)

Even if we disable window animation in Activity#onDestory in IME
client side, the next relayout can come before that, so window exit
transition still happens.

To fix this timing issue, add animateExit parameter in
WindowManagerInternal#removeToken for IMMS not to perform window exit
animation and to hide the window surface permanentaly, so we can
avoid the window surface becoming visible again unexpectedly during
relayout.

Fix: 197494607
Fix: 195449326
Test: atest WindowTokenTests#\
        testRemoveWindowToken_noAnimateExitWhenSet
Test: manual as issue steps:
1. Enter Google chat
2. Start typing a message
3. Swipe home
4. Expect no IME surface flicker happens

Change-Id: I044257b5ac0d92dd06dae8eba996ea0ac6f1e659
2021-08-30 17:48:07 +08:00
Becky Qiu
40be02e521 Fix broken launcher build to use the right import for ContextThemeWrapper.
Bug: 195028385
Test: can build now.
Change-Id: Ia36b77e3274191efa28c87cc0b2604a66906b604
Merged-In: Ia36b77e3274191efa28c87cc0b2604a66906b604
(cherry picked from commit 2ee44db719)
2021-08-30 06:10:03 +00:00
Winson Chung
58b9ad0d37 Fix one more import for ContextThemeWrapper.
Bug: 195028385
Test: can build now.
Change-Id: Ie14285b614318a99098f4457d7564a25724cde6b
Merged-In: Ie14285b614318a99098f4457d7564a25724cde6b
(cherry picked from commit fff8e21975)
2021-08-30 06:09:22 +00:00