Commit Graph

3598 Commits

Author SHA1 Message Date
TreeHugger Robot
39165354e1 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-01-27 04:27:55 +00:00
Chris Li
6c76dc017f Merge "Move disabled shelltransit flicker tests to flaky" 2022-01-26 14:48:53 +00:00
TreeHugger Robot
b9728c63a4 Merge "Enable Bubble flicker test with Shell transition" 2022-01-26 12:45:49 +00:00
Chris Li
63be3c89bb Move disabled shelltransit flicker tests to flaky
So that we can keep track of the status, and move it back to presubmit
after it becomes stable

Bug: 214452854
Test: pass existing
Change-Id: I60453789676cda9eb0892b601806d398af7bdc82
2022-01-26 18:27:49 +08:00
Chris Li
85174deb62 Enable Bubble flicker test with Shell transition
The failure should be fixed with ag/16678935

Bug: 213866869
Bug: 205288792
Bug: 214452854
Test: pass existing with shell transition enabled
Change-Id: I2f8696a14d5f2537858e92f05edc2ef7629e4afe
2022-01-26 14:07:14 +08:00
Wei Sheng Shih
e8e313d496 Merge "Allow app to receive onSplashscreenExit even for empty splash screen." 2022-01-26 01:33:58 +00:00
Bill Yi
7f4ad1ee94 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I301d3d0bbf282a8aba9e10d57e22050e938ee222
2022-01-26 01:27:24 +00:00
Winson Chung
ef4713d4d0 Merge "Remove the previous animation split tasks container when recreating" 2022-01-25 19:50:59 +00:00
Tom Natan
26b7cb8e11 Merge "[1/n] Letterbox Education: Add UI layouts" 2022-01-25 14:22:32 +00:00
Tiger Huang
dc94a72272 Merge "Remove the frame number from WindowManagerService" 2022-01-25 14:11:20 +00:00
Tiger Huang
3932df1165 Merge "Let the client compute the surface size on its own" 2022-01-25 14:09:25 +00:00
wilsonshih
946a4063f7 Allow app to receive onSplashscreenExit even for empty splash screen.
Allow developers to customize the exit animation for empty style splash
screen, there is a target sdk version check to prevents apps from
crash if the app didn't do null pointer check for #getIconView.

Bug: 205907456
Test: atest SplashscreenTests
Change-Id: I235f25fdf42b7177a6e195d3ffc07b92690e6f79
2022-01-25 20:40:23 +08:00
tomnatan
51127d083d [1/n] Letterbox Education: Add UI layouts
Test: N/A
Bug: 207010227
Change-Id: I9806121fcd0c6b3432dd5faf98b99bf9cfb747f5
2022-01-25 09:07:03 +00:00
Winson Chung
7fa945fcc9 Remove the previous animation split tasks container when recreating
Bug: 197919703
Test: Invoke split and swipe up a couple times, ensure the sf dump
      doesn't show multiple lingering split containers layers
Change-Id: Iad8b9d9a0d75bdaaa2a7255a33208c2c0c3fc25b
2022-01-25 05:28:19 +00:00
Chris Li
d4de0febd4 Merge "Enable flicker test group1 with Shell transition" 2022-01-25 02:20:55 +00:00
TreeHugger Robot
c5900ec571 Merge "Support refactored Region class" 2022-01-24 20:44:54 +00:00
Nataniel Borges
b03abbe07a Support refactored Region class
For use in KotlinJS (winscope) the Region class cannot have multiple constructors. JS doesn't support method or constructor overload.

This CL make the tests compatible with the newer class version

Bug: 216111397
Test: atest WMShellFlickerTests
Change-Id: Ifa5f8c6e0063185e2986019b3a27f24c93fe05d2
2022-01-24 18:53:22 +01:00
Tiger Huang
96c3e87e9e Remove the frame number from WindowManagerService
The frame number at the server side is not used anymore since BLAST.

Bug: 161810301
Test: presubmit
Change-Id: I01c6fb0750799aa94766f2582ce6ac031c9426cf
2022-01-24 21:43:28 +08:00
Tiger Huang
0456e9d5cb Let the client compute the surface size on its own
This is a step to move the layout logic to the client side. We won't
obtain the surface size from the server then.

This CL also moves the logic about adjusting the LayoutParams of
wallpaper to the client side.

Bug: 161810301
Test: presubmit
Change-Id: I3a81e174035c67a285cab449c0701ee2fe6f6a24
2022-01-24 21:40:45 +08:00
Tony Huang
e660522187 Merge "Cleanup the legacy split screen (2/n)" 2022-01-24 06:56:51 +00:00
Tony Huang
0feb3c43a8 Cleanup the legacy split screen (2/n)
Remove WINDOWING_MODE_SPLIT_SCREEN_PRIMARY and SECONDARY used on
tests and replace them by WINDOWING_MODE_MULTI_WINDOW or other
migrate way.

Bug: 199236198
Test: atest WmTests
Test: atest DragAndDropPolicyTest
Change-Id: I41b25392d710eeea42edf75b3c9bca20a7d8a887
2022-01-24 11:58:04 +08:00
Nataniel Borges
b4d3a16ee4 Merge "Demote flaky flicker tests from presubmit" 2022-01-23 17:54:51 +00:00
Nataniel Borges
ba142e0089 Demote flaky flicker tests from presubmit
The test flakiness is significantly slowing down presubmit

Bug: 209843622
Test: atest FlickerTests WMShellFlickerTests
Change-Id: I096e9f69e6de8ff73d527db533e76e8da44fdcb0
2022-01-22 18:23:25 +01:00
Galia Peycheva
92edc518ff Add WMS support for keep-clear areas
Test: atest DisplayContentTests#testKeepClearAreasMultipleWindows
Test: atest WindowStateTests#testKeepClearAreas
Bug: 183746978
Change-Id: I974bf4254003467c8aa9a4f7aa618ab96985dd38
2022-01-22 08:50:02 +01:00
Treehugger Robot
c2b9af3ac8 Merge "Create owner test files for subpackages" am: 9e8cfbac2c am: 05bc30f21c am: a39bb54fdd am: 9e5539c793
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1952387

Change-Id: Idee1d783a52db16a7fb7aeadb11b69564e72aca5
2022-01-21 16:14:52 +00:00
Treehugger Robot
9e5539c793 Merge "Create owner test files for subpackages" am: 9e8cfbac2c am: 05bc30f21c am: a39bb54fdd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1952387

Change-Id: I94c28df75a0af1ea24dcc388fee84c093268ffd0
2022-01-21 15:56:50 +00:00
Treehugger Robot
a39bb54fdd Merge "Create owner test files for subpackages" am: 9e8cfbac2c am: 05bc30f21c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1952387

Change-Id: I5a4f26de3f474fe5794d94ca1f581b317ac1bb37
2022-01-21 15:46:05 +00:00
Vadim Caen
e0b59d46ce Merge changes Ifc2ed99b,Ibd7fc78e
* changes:
  Integration of back gesture animation on Sysui (BackNav 2/n)
  Server infrastructure for back nav animation (BackNav 1/n)
2022-01-21 13:36:58 +00:00
Jerry Chang
c6eec4fd57 Merge "Support to merge transition to remote handler while in split screen mode" 2022-01-21 07:00:29 +00:00
Ben Lin
5636d17fbe Merge "PiP: Disable enterSplit for now." into sc-v2-dev am: b80e7c46da am: 6c5c7f6fb8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16458641

Change-Id: Iad546b3ae5d1e9363e99caa3661f5f7044d9d415
2022-01-20 23:36:23 +00:00
Ben Lin
6c5c7f6fb8 Merge "PiP: Disable enterSplit for now." into sc-v2-dev am: b80e7c46da
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16458641

Change-Id: Ieff5dcb48b157c401818ff981b1b1eedc15183cc
2022-01-20 23:13:14 +00:00
Vadim Caen
737bd6d0be Integration of back gesture animation on Sysui (BackNav 2/n)
This CL contains the BackAnimationController, on WMShell, which
controls the gesture based animation.

When the gesture is done, the animation is done. It will be handed over
to a TransisionHandler (in the next CL)

Test: atest WMShellUnitTests:BackAnimationControllerTest
Bug: 131727607
Change-Id: Ifc2ed99bfd51079f12a83468ca44e4aa19460e47
2022-01-20 12:38:04 +01:00
Nataniel Borges
4e4babec1a Create owner test files for subpackages
Now failures can be automatically directed to the correct buganizer components and forwarded directly to the correct assignees, instead of being all created into the Winscope for further triage

Test: check owners file
Change-Id: I6876a702b4f46443328aab027f7fee994b2bb819
2022-01-20 10:21:40 +00:00
Jerry Chang
f37bfeaa2f Support to merge transition to remote handler while in split screen mode
Support to merge transition to activating remote transition while in
split screen. Like the case openning a normal app from overview during
split screen mode, it'll trigger a new app openning transition which
should be merged back to the remote transition running in launcher side
to finish the recent animation.

If a split dismissing transition was triggered right after recent
transition finished. It might be a no-op transition and thus won't
callback startAnimation. So also reset split screen state and visibility
when finishing transition.

Bug: 206487881
Test: enable shell transition and enter split screen, observed the
      transition switching to normal app won't hang.
Change-Id: I9bac5eab844f7835c69f9aad17a5c50dc01a76fa
2022-01-20 08:13:58 +00:00
Bill Yi
9845202a05 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-01-20 03:43:43 +00:00
Ben Lin
eab029ce8d PiP: Disable enterSplit for now.
Bug: 206645013
Test: Enter split button no longer appears
Change-Id: I6237dd1c88f50733ab24e45806c413d5777032e9
2022-01-20 02:15:21 +00:00
Mady Mellor
b30264fa27 Merge "Handle channel changes for bubbles" 2022-01-20 00:49:32 +00:00
Hongwei Wang
c59c1af734 Merge "Add PICTURE_IN_PICTURE_SHOW_SETTING UI event log" 2022-01-19 19:38:18 +00:00
Riddle Hsu
82e778219b Merge "Use animation end bounds in previous rotation for closing" 2022-01-19 18:51:34 +00:00
Lais Andrade
41fd16dfb7 Merge "Deprecate boolean settings for haptic feedback and vibrate when ringing" 2022-01-19 17:24:40 +00:00
Riddle Hsu
509eb388cc Use animation end bounds in previous rotation for closing
The surface of closing change will be put in a rotated surface
in previous rotation, so the animation bounds also need to be
in same rotation.

Bug: 214504681
Test: adb shell setprop persist.debug.shell_transit 1; reboot
      Launch a landscape activity, and it launches a portrait
      activity in new task. The animation should not be cropped.
Change-Id: I680e335786beedc1cac8847cbc9db5fc1bb11807
2022-01-19 12:56:58 +08:00
Jerry Chang
1b7cf5a207 Merge "Consolidate recent animation in split screen with shell-transition" 2022-01-19 01:45:56 +00:00
Mady Mellor
d584c276bd Handle channel changes for bubbles
Bubbles in the overflow might not have an active notification associated
with them, this means if the user disables bubbles for that conversation
through settings we wouldn't be able to know and remove the bubble from
the overflow.

This change pipes the onNotificationChannelModified signal from
NotificationListenerService through sysui & to bubbles for both the
pipeline & NEM version & uses this signal to remove matching bubbles
from the overflow if appropriate.

Test: BubblesTest NewNotifPipelineBubblesTest NotificationEntryManagerTest NotifCollectionTest
Bug: 171235607
Change-Id: I3d4889ece13d550e0cceb20036718faee4887489
2022-01-18 15:53:15 -08:00
Lais Andrade
a01a1f6993 Deprecate boolean settings for haptic feedback and vibrate when ringing
Deprecate HAPTIC_FEEDBACK_ENABLED in favor or HAPTIC_FEEDBACK_INTENSITY,
and VIBRATE_WHEN_RINGING in favor or RING_VIBRATION_INTENSITY.

Introduce hidden flag
VibrationAttributes.FLAG_BYPASS_USER_VIBRATION_INTENSITY_OFF
to represent HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING in the
vibrator service. This is applied by:

- PhoneWindowManager, that converts HapticFeedbackConstants into
(VibrationEffect, VibrationAttributes).

- CellBroadcastAlertAudio, that triggers alerts using AudioAttributes
with flags FLAG_BYPASS_INTERRUPTION_POLICY (that translates to same flag
in VibratorManager, to bypass DnD) and FLAG_BYPASS_MUTE (that translates
to this new flag, to bypass the new alarm intensity settings).

The new flag is erased from request that are not from privileged apps,
similar to the other bypass flag. The public
HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING has also been
deprecated in T with a documentation explaining the removal of platform
support.

Remove SysUI dependencies on the deprecated settings, it should use the
USAGE_TOUCH attribute and rely on the vibrator service to apply the user
settings.

Keep other SysUI dependencies that needs to run in older Android
versions (like Launcher3).

Bug: 185351540
Test: VibrationSettingsTest + manual
Change-Id: I0372e4db19e09523795d7e79b9f7a15ae48a8cd9
2022-01-18 18:57:10 +00:00
Pablo Gamito
ab4a170645 Merge changes from topic "showBackground-api"
* changes:
  Support backgrounds during animations in shell
  Add API to show background behind animating windows
2022-01-18 15:55:59 +00:00
Vadim Caen
a4ca5286d2 Server infrastructure for back nav animation (BackNav 1/n)
This CL introduces the BackNavigationController that gathers the
required data to be passed to WMShell to create the back animation

These data are passed via the BackNavigationInfo Parcelable.

The CL also containes a basic screenshoting mechanism as a temporary
solution until a proper screenshoting infrastructure is created
(b/207481538).

Test: atest BackNavigationControllerTests
Bug: 131727607
Change-Id: Ibd7fc78e590794daf35f7718ddfa53e7f439813b
2022-01-18 10:42:21 +01:00
Chris Li
83d4efbbe3 Enable flicker test group1 with Shell transition
Except QuickSwitchBetweenTwoAppsForwardTest b/213867585

Bug: 214452854
Test: pass existing
Change-Id: Ic6d57b72d56906862a04685fa04117afe485c2b1
2022-01-18 16:15:17 +08:00
Nataniel Borges
77a4620a02 Update enter pip focus change test
Previously focus didn't change when entering PIP. On the latest versions it should transition to launcher.

Bug: 198124027
Test: atest WMShellFlickerTests
Change-Id: I323a455f23e912afd9eb6e43b365a289c5159331
2022-01-17 16:24:07 +01:00
Pablo Gamito
157738c8a0 Support backgrounds during animations in shell
This is required for the go/t-activity-transitions where we want to allow apps to fade to a clear background color and fade back in from the background to another activity

Test: atest FlickerTests
Bug: 202844659
Change-Id: Iea18a8e7d32a63da55ab3430c47f903da5cff807
2022-01-17 13:26:59 +01:00
Linus Tufvesson
46e6bc0ca9 Merge "Make Splash-screens touch opaque cross uid" 2022-01-17 10:19:03 +00:00