Commit Graph

60459 Commits

Author SHA1 Message Date
Alex Chau 05f8591019 Merge changes from topic "allapps_bottomsheet_motion" into tm-dev am: d8f81e9bf4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16967984

Change-Id: I529406e91a0328b28fbfe18c930b795cacfdb3f0
2022-02-23 19:33:09 +00:00
Brian Isganitis 4f695a5c35 Put taskbar all apps in separate overlay window and stash taskbar. am: a1370bfc5f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16988304

Change-Id: Idc091c3ad962c754a03d8bfe1eebe8c6a23c304d
2022-02-23 19:33:06 +00:00
TreeHugger Robot fe9c4caa14 Merge "Fix Launcher icons not animated during unfold" into tm-dev am: 0f3b6511aa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16968686

Change-Id: I4ed1b9cfee27fcab767fc5ba962f886be68e772a
2022-02-23 19:22:56 +00:00
Alex Chau d8f81e9bf4 Merge changes from topic "allapps_bottomsheet_motion" into tm-dev
* changes:
  Tune AllApps bottom sheet VisD and motion
  Put taskbar all apps in separate overlay window and stash taskbar.
2022-02-23 19:11:51 +00:00
Thales Lima 9b3f0f40a3 Merge "Create new logic for grid migration" into tm-dev am: bfb275bf21
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16976104

Change-Id: Id5cf2daa4357d59482bd2008c70f3f886b1744bf
2022-02-23 18:32:58 +00:00
Alex Chau d41a60cbed Merge "Disable flakey fallback recents test" into tm-dev am: 82166fa6d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16984327

Change-Id: I81229ca746c4bba6db9e43e837f65796542f0114
2022-02-23 18:23:41 +00:00
Vinit Nayak 58c27cce73 Remove Taskbar and Taskbar EDU flags.
Bug: 219035565
Change-Id: I643b5d006b5759723418901ffeb463fa04a82cbc
(cherry picked from commit ec4adc1d5a)
2022-02-23 18:14:28 +00:00
TreeHugger Robot 9f7ceb1c91 Merge "Fix jump in animation for hotseat while re-arranging icons" into tm-dev am: 49cb99a420
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16967985

Change-Id: I05ccfa5901e84dd103348ae16dad28cb1edb2408
2022-02-23 18:14:14 +00:00
Thales Lima bfb275bf21 Merge "Create new logic for grid migration" into tm-dev 2022-02-23 18:07:06 +00:00
Schneider Victor-tulias f520135880 Fix icon loading null pointer. am: 2763365eb6 am: b9135abb81
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16980647

Change-Id: I4cb9ecd45cf65b810bab33062d5f9f8a345c5ab9
2022-02-23 17:57:02 +00:00
TreeHugger Robot 807bc122b6 Merge "Fix Launcher icons not animated during unfold" into tm-dev am: 0f3b6511aa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16968686

Change-Id: Id0f3632adce08880ff73008d9d7c2827262fdd7f
2022-02-23 17:28:49 +00:00
Alex Chau 2a1c15123f Merge "Disable flakey fallback recents test" into tm-dev am: 82166fa6d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16984327

Change-Id: I1008fc5e3fd6144806533dff051c4aabfe0aafd7
2022-02-23 17:27:03 +00:00
TreeHugger Robot 185ceecbbc Merge "Fix jump in animation for hotseat while re-arranging icons" into tm-dev am: 49cb99a420
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16967985

Change-Id: If51c5c2c7fc34a0584f59aa684125f2294383362
2022-02-23 17:24:19 +00:00
Schneider Victor-tulias b9135abb81 Fix icon loading null pointer. am: 2763365eb6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16980647

Change-Id: I7b129993ac68b649fdbf2ee75fc289d3df0bf3f1
2022-02-23 17:17:53 +00:00
Alex Chau b8c22e1155 Tune AllApps bottom sheet VisD and motion
- Make AllApps bottom sheet solid and appears from bottom
- Teleport AllApps bottom sheet as user drag to reduce drag range
  - Consider teleport interpolation for state transition sdetection
- Tuned workspace motions for AllApps bottom sheet (no translate, shrink)
- Add portrait vertical translate for tablet portrait including taskbar AllApps
- Updated bottom sheet handle and created common variables for other bottom sheets

Bug: 208599118
Test: manual on tablet AllApps, taskbar Allapps and handheld AllApps
Change-Id: I69dba5f155914cd012cc8ef3be1ef71fb2be5a40
2022-02-23 17:08:06 +00:00
Schneider Victor-tulias 88a81e5bcf Fix icon loading null pointer. am: 2763365eb6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16980647

Change-Id: I0da6fa2216d3b8e2c0a4b194d221328b56ff9bca
2022-02-23 16:55:55 +00:00
TreeHugger Robot 7c73c5b280 Merge changes from topic "presubmit-am-ddc50923f526483b85e0fd6e691a1b93" into tm-mainline-prod am: 09d3594f57
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16968686

Change-Id: Idbdb30eabca29962b18d4d5f7b850b959e08af60
2022-02-23 16:46:35 +00:00
Thales Lima 0a7ff8780f Create new logic for grid migration
Fixes 217564863
Test: manual, changing grids from Wallpaper & Style and checking against spec

Change-Id: I94cf77111b37810282527f1a212b6e4126d3eba1
2022-02-23 15:20:50 +00:00
Brian Isganitis a1370bfc5f Put taskbar all apps in separate overlay window and stash taskbar.
All apps should display below system UI components such as the
notification tray and power menu, so an overlay window is more
appropriate. As a result, all apps has a separate window activity
context, but some properties are delegated to the taskbar activity
context. Taskbar should also be stashed while all apps is open.

Change-Id: I593457708779d84a0ab8b949a966d247d0a2e1b7
Test: Manual
Bug: 216843189
Fix: 217383817
(cherry picked from commit 473b980bf9)
2022-02-23 15:06:56 +00:00
TreeHugger Robot 0f3b6511aa Merge "Fix Launcher icons not animated during unfold" into tm-dev 2022-02-23 14:03:39 +00:00
TreeHugger Robot 09d3594f57 Merge changes from topic "presubmit-am-ddc50923f526483b85e0fd6e691a1b93" into tm-mainline-prod
* changes:
  [automerge] Fix Launcher icons not animated during unfold 2p: d4a5bb244a
  Fix Launcher icons not animated during unfold
2022-02-23 14:03:39 +00:00
TreeHugger Robot 48eb613faa Merge changes from topic "presubmit-am-ddc50923f526483b85e0fd6e691a1b93"
* changes:
  [automerge] Fix Launcher icons not animated during unfold 2p: d4a5bb244a 2p: faca3573ea
  [automerge] Fix Launcher icons not animated during unfold 2p: d4a5bb244a
  Fix Launcher icons not animated during unfold
2022-02-23 14:03:39 +00:00
Alex Chau 82166fa6d8 Merge "Disable flakey fallback recents test" into tm-dev 2022-02-23 10:58:26 +00:00
wilsonshih a8fe8b448e Cancel recents animation when touch home key(2/2)
There should send an opening task transition to remote transition
handler to finish the recents animation. For now there is no opening
transition send to Shell because the exist home activity won't be
collected while start home activity.

To collect the home activity, do not set transient launch when start
recents animation if the top activity is home, so the home activity
would be paused. Then when user touch home key to cancel recents, the
home activity will be resumed so it can be collect to the transition.

When receive opening home activity while recents is running, enter
home and dismiss recents.

Bug: 207297486
Test: 1. Enable shell transition.
      2. Setup 3rd-party launcher as default home.
      3. Entering Recents from home.
      4. "adb shell input keyevent KEYCODE_HOME", verify recents
	 animation will be dismissed.
Test: atest NexusLauncherTests:com.android.quickstep.FallbackRecentsTest
Change-Id: I689032d1fa18aa9a923aaf89077dbd73c09721b7
2022-02-23 16:07:59 +08:00
Winson Chung 4c2e3310e6 Disable flakey fallback recents test
- Seems to be an existing failure in the recents animation not
  finishing, should disable to unblock folks

Bug: 218403080
Test: Presubmit
Change-Id: Ia42009666c67c29c1a78a2fe197bdce53dcb2ec8
2022-02-23 06:44:55 +00:00
Brian Isganitis 97e6318bd8 Merge "Put taskbar all apps in separate overlay window and stash taskbar." 2022-02-23 03:46:04 +00:00
Android Build Coastguard Worker 906b04e648 Merge cherrypicks of [16980647] into tm-release.
Change-Id: I9fd8dadb275c9694f8e11da14901bc63955472d7
2022-02-23 03:07:32 +00:00
Schneider Victor-tulias fe4e974a53 Fix icon loading null pointer.
Filtering out icon itemInfos with null component names when loading icons in bulk

Test: manual
Fixes: 220380324
Fixes: 220345439
Change-Id: I0e6f9ae0a363d17497207c92eadcac64ca42693f
(cherry picked from commit 5597e4825d)
(cherry picked from commit 2763365eb6)
Merged-In:I0e6f9ae0a363d17497207c92eadcac64ca42693f
2022-02-23 03:07:18 +00:00
TreeHugger Robot 49cb99a420 Merge "Fix jump in animation for hotseat while re-arranging icons" into tm-dev 2022-02-23 02:40:11 +00:00
Android Build Coastguard Worker a44a130e1a Snap for 8211163 from 66ac96cd63 to tm-release
Change-Id: I1100184602e6e4cafd51348f20e0eb831acf63cd
2022-02-23 02:08:51 +00:00
Brian Isganitis 473b980bf9 Put taskbar all apps in separate overlay window and stash taskbar.
All apps should display below system UI components such as the
notification tray and power menu, so an overlay window is more
appropriate. As a result, all apps has a separate window activity
context, but some properties are delegated to the taskbar activity
context. Taskbar should also be stashed while all apps is open.

Change-Id: I593457708779d84a0ab8b949a966d247d0a2e1b7
Test: Manual
Bug: 216843189
Fix: 217383817
2022-02-22 17:03:17 -08:00
Mady Mellor 411e862175 Add a reason to the broadcast to collapse system dialogs
Test: manual - see other CL in topic
Bug: 218517365
Change-Id: I9aa686bb95f11b4eeab0139833876abaf8b80cad
2022-02-22 14:14:34 -08:00
vadimt 13839e4cc6 Preparing to using "platform-test-rules" library from Launcher tests
I want to include some stuff (like android.platform.test.rule.CrashDetector) but I want to land just the dependency part and see if I get postsubmit build problems that sometimes appear in obscure AOSP targets.

Test: presubmit
Bug: 187761685
Change-Id: I334b9f1029edbe8621df940900f43d0c5059373e
Merged-In: I334b9f1029edbe8621df940900f43d0c5059373e
2022-02-22 21:39:35 +00:00
Schneider Victor-tulias 2763365eb6 Fix icon loading null pointer.
Filtering out icon itemInfos with null component names when loading icons in bulk

Test: manual
Fixes: 220380324
Fixes: 220345439
Change-Id: I0e6f9ae0a363d17497207c92eadcac64ca42693f
(cherry picked from commit 5597e4825d)
2022-02-22 18:38:07 +00:00
TreeHugger Robot 9cc6e8a8be Merge "Fix crash when loading string cache" into tm-dev am: 66ac96cd63 am: e5b9e79af5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16966227

Change-Id: Ia1e64cb0d48d03235c0f71a62dd4d1506510a98e
2022-02-22 18:31:17 +00:00
TreeHugger Robot 704007d0b3 Merge changes from topic "presubmit-am-9245c992289e4c93a8c889e00e4e103a" into tm-mainline-prod am: eaa27f4ff4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16966227

Change-Id: Ib74f8e311606342c62aa3248dece318e97b77ddd
2022-02-22 18:20:07 +00:00
Jordan Demeulenaere 705bb55a0c Enable back gesture when a SyUI dialog is showing (2/2) am: 78ef3a5348 am: 35de1e5e2e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16976103

Change-Id: I57cfeb051f9bd48e469a0e532ccb8d36bea8e083
2022-02-22 18:14:43 +00:00
TreeHugger Robot e5b9e79af5 Merge "Fix crash when loading string cache" into tm-dev am: 66ac96cd63
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16966227

Change-Id: I66366cbe0d02bf46f3901ef787b83356eabaeb5d
2022-02-22 17:59:25 +00:00
TreeHugger Robot 66ac96cd63 Merge "Fix crash when loading string cache" into tm-dev 2022-02-22 17:29:08 +00:00
TreeHugger Robot b21ef1d1f8 Merge changes from topic "presubmit-am-9245c992289e4c93a8c889e00e4e103a"
* changes:
  [automerge] Fix crash when loading string cache 2p: 9b38947b32 2p: 942b4f4099
  [automerge] Fix crash when loading string cache 2p: 9b38947b32
2022-02-22 17:29:08 +00:00
TreeHugger Robot eaa27f4ff4 Merge changes from topic "presubmit-am-9245c992289e4c93a8c889e00e4e103a" into tm-mainline-prod
* changes:
  [automerge] Fix crash when loading string cache 2p: 9b38947b32
  Fix crash when loading string cache
2022-02-22 17:29:08 +00:00
Jordan Demeulenaere 35de1e5e2e Enable back gesture when a SyUI dialog is showing (2/2) am: 78ef3a5348
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16976103

Change-Id: Ia231cd5955f5e0debe38a79bea877b4d71fed770
2022-02-22 17:28:08 +00:00
Nicolo' Mazzucato 5765d42ada Fix jump in animation for hotseat while re-arranging icons
While re-arranging icons the hotseat remains in scale 1.0f, while the workspace reduces it's scale (as defined by SpringLoadedState.java). Previously, the code to aggregate animations was assuming hotseat and workspace always had the same scale.

MultiScaleProperty.get() was being used to set the starting value of the animation. Previously, it was returning the last aggregated value. However, this value was correct only for the workspace, but not for the hotseat. Returning the current view scale makes it always correct.

Bug: 220271046
Test: Dragged icons from hotseat to workspace, and verified animation didn't jump
Change-Id: Ic01776c1d8e3967624626ed7c44d194a06295790
2022-02-22 18:27:26 +01:00
Presubmit Automerger Backend 8be05707b4 [automerge] Fix Launcher icons not animated during unfold 2p: d4a5bb244a 2p: faca3573ea
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16968686

Bug: 197834977
Change-Id: Ibdb5584f1671e181c9d57882dad3815d6e0315ce
2022-02-22 12:49:45 +00:00
Presubmit Automerger Backend faca3573ea [automerge] Fix Launcher icons not animated during unfold 2p: d4a5bb244a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16968686

Bug: 197834977
Change-Id: I9484eef097b71118e2b3351f4169c169a6436355
2022-02-22 12:49:40 +00:00
Nicolo' Mazzucato d4a5bb244a Fix Launcher icons not animated during unfold
If icons are re-bound during the animation, they were not moved. I was able to reproduce this case 100% of times by folding, restarting launcher and unfolding. From a perfetto trace it seems that in this case `finishBindingItems` was called after the animation already started, therefore not registering any view.

With this cl, items are animated also after they are rebound.

Bug: 197834977
Test: folded -> restarted launcher -> unfolded -> verified icons are now moving towards the center
Change-Id: I5b001c502860c17d6ea5d54d099f04b2ddf1820a
2022-02-22 13:48:35 +01:00
Jordan Demeulenaere 78ef3a5348 Enable back gesture when a SyUI dialog is showing (2/2)
Test: Manual
Bug: 210270549
Change-Id: I8fbf9a90287cbd8d9ddad354e24bbc4d074bd0ef
2022-02-22 11:09:03 +01:00
Ming-Shin Lu cb60b65bc0 [ShellTransition]: invoke WMS#setRecentsAppBehindSystemBars to WM
With enabling shell-transition, in case of seeing status bar icon
blinking when hammer tapping on the navigation bar to trigger recents
animation quickly as CL[1] mentioned,

As the result, Launcher side still need to callback recents app
behind system bar status to signal WM if launcher should affect
system bar appearance with [1] introduced method
setRecentsAppBehindSystemBars.

Bug: 215504556
Test: manual as below steps
  1) Launching a app
  2) Hammer tapping on the navigation bar
  3) Expect the staus bar icon won't blinking

Change-Id: I4b41e06e559168a61a29fa6ea9f58b834a7f1a1c
2022-02-22 05:54:41 +00:00
Presubmit Automerger Backend a6118187c2 [automerge] Passing in the launch cookie for widget broadcast trampolines 2p: c519538bca
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16968688


Change-Id: I233643ee87042f59a104848d5b6e38a6ac3fa3a2
Merged-In: Ibfe9e5232317837f3111459212a4b016b5828ef4
2022-02-21 23:08:06 +00:00
Selim Cinek c519538bca Passing in the launch cookie for widget broadcast trampolines
The launch cookie can now be transfered via the broadcast

Fixes: 220290671
Test: add Photos widget, return properly to widget
Merged-In: Ibfe9e5232317837f3111459212a4b016b5828ef4
Change-Id: Ibfe9e5232317837f3111459212a4b016b5828ef4
2022-02-21 23:07:57 +00:00