Commit Graph

14731 Commits

Author SHA1 Message Date
Tracy Zhou 1780cee0fe Add testSplitFromOverview test (for phones)
Design doc: go/split_tapl

Bug: 238553914
Fixes: 239082974
Test: run this test
Change-Id: I6b67ede6d62a9fb48222aa4d15fe29ccd1d0fa06
2022-07-27 04:18:50 +00:00
Sukesh Ram c4430c9cd7 Fix crash on long press of prediction row icons
Changed icon long click listener to use secondary display's long
click listener instead of launcher's.

Bug: 239616635
Test: Manual
Change-Id: I9a4679ba82cacb5e2648481274876dbfc95d80ce
2022-07-27 00:05:35 +00:00
Jeremy Sim a424ef4ccb Merge "Add comment regarding Overview TaskViews" into tm-qpr-dev am: caacd73cfa am: 8e18921036
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19388388

Change-Id: Ie905ff91c5115f7a41d7ad78cc81ec9b326012bf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 23:40:45 +00:00
Jeremy Sim 8e18921036 Merge "Add comment regarding Overview TaskViews" into tm-qpr-dev am: caacd73cfa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19388388

Change-Id: I8ba556c2e851e0c28b952f574221b19d08dd0f12
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 23:21:05 +00:00
Jeremy Sim caacd73cfa Merge "Add comment regarding Overview TaskViews" into tm-qpr-dev 2022-07-26 23:00:20 +00:00
vadimt 47f347b1cf Moving all sources that are shared between Launcher and TAPL in one directory
This will help SysUI test team (who uses TAPL) to set up Gradle build for their tests.

Bug: 202567877
Test: presubmit
Change-Id: I95c267e46cf675ac44dc27b07d0a1143ab761e35
2022-07-26 15:43:00 -07:00
Tony Wickham 2897897329 Have All Set aniamted background extend edge-to-edge am: 96431570d4 am: bb76b99c56 am: 434abd78ca
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19429240

Change-Id: Ic532dc97efe418301d70e8c37a028015ab7e6f9c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 19:53:54 +00:00
Evan Rosky 13a86c43ac Make shell-transit flag public
So it can be accessed by tests in other packages

Bug: 238328090
Test: N/A just increasing visibility
Change-Id: I5c270e1bdd315010c169d4cfcd82e3cce6d12442
2022-07-26 12:49:11 -07:00
Tony Wickham 434abd78ca Have All Set aniamted background extend edge-to-edge am: 96431570d4 am: bb76b99c56
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19429240

Change-Id: I9f1141f2a0b8447ca57ec03416f19460fe2c8a60
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 19:35:52 +00:00
Tony Wickham bb76b99c56 Have All Set aniamted background extend edge-to-edge am: 96431570d4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19429240

Change-Id: Ideffeaa3d083feaa0a3d8e110d25c0b1eb5c3153
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 19:19:24 +00:00
Schneider Victor-tulias 2d1a071f16 Merge "Fade out the taskbar icons when animating to overview in 3 button nav." into tm-qpr-dev am: f6003ff070 am: de490c6bb1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19051009

Change-Id: I3c105a7632851acbb36be8607b51c23d9d3b2a0c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 19:05:19 +00:00
Schneider Victor-tulias de490c6bb1 Merge "Fade out the taskbar icons when animating to overview in 3 button nav." into tm-qpr-dev am: f6003ff070
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19051009

Change-Id: Ibe73df1c56a315bc9d057bd825df532c46872069
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 18:35:23 +00:00
Schneider Victor-tulias f6003ff070 Merge "Fade out the taskbar icons when animating to overview in 3 button nav." into tm-qpr-dev 2022-07-26 17:29:33 +00:00
TreeHugger Robot d33659576c Merge "Space out 3 button nav on taskbar" into tm-qpr-dev am: 5e6fe32818 am: 2a8906bfba
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19272533

Change-Id: I2ea492fac54d0fabf1af92500e2ad102855c4c79
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 17:21:17 +00:00
Winson Chung 5569f6accd Merge "Prevent setting max layer above the input consumer" into tm-qpr-dev am: c6fb382132 am: a1ddc4becb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19398454

Change-Id: I3bd0ac2836eed425e6be809f63f5f26249fe8847
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 17:20:18 +00:00
TreeHugger Robot 2a8906bfba Merge "Space out 3 button nav on taskbar" into tm-qpr-dev am: 5e6fe32818
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19272533

Change-Id: I2eddc38eaa756d6f5cb5b36ccd516d8ad7cc3de0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 16:54:10 +00:00
Winson Chung a1ddc4becb Merge "Prevent setting max layer above the input consumer" into tm-qpr-dev am: c6fb382132
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19398454

Change-Id: Ida613684919122b78e50af1b7b88c1be7ac14114
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 16:53:57 +00:00
TreeHugger Robot 5e6fe32818 Merge "Space out 3 button nav on taskbar" into tm-qpr-dev 2022-07-26 16:32:06 +00:00
Winson Chung c6fb382132 Merge "Prevent setting max layer above the input consumer" into tm-qpr-dev 2022-07-26 16:28:21 +00:00
Chavi Weingarten 254b0c4e94 Merge "Refactor SurfaceSyncer so it now returns a SurfaceSyncGroup" 2022-07-26 16:04:13 +00:00
Tony Wickham 96431570d4 Have All Set aniamted background extend edge-to-edge
There's already a separate ConstraintLayout for the content that needs
to have fitsSystemWindows="true", but the drawing can extend past system
insets.

Test: Run AllSetActivity, manually inspect layout/drawing
Fixes: 237052706
Change-Id: I8ff1e3a036fb5c6bfa8586b041c9e5eae55c321d
2022-07-26 16:03:04 +00:00
Alex Chau 2a9dafcce1 Merge "Revert "Move BaseActivityInterface task size methods to DevicePr..."" into tm-qpr-dev am: 66bac181ac am: eed67e721e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19398184

Change-Id: If4406214f9853f055719deda5674ea0e1fc3e958
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 10:29:02 +00:00
Alex Chau eed67e721e Merge "Revert "Move BaseActivityInterface task size methods to DevicePr..."" into tm-qpr-dev am: 66bac181ac
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19398184

Change-Id: Iaadadc947c57e60c445b78d8bbb763559704adc3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 09:58:49 +00:00
Alex Chau 66bac181ac Merge "Revert "Move BaseActivityInterface task size methods to DevicePr..."" into tm-qpr-dev 2022-07-26 09:36:18 +00:00
Tony Wickham 3a5a84a61d Merge "Hide the task icon during quick switch from home" into tm-qpr-dev am: bbfbe60f72 am: a137d19d6d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19369341

Change-Id: I9877018df0a1b5328ffbebcec6cdb0d5da81421e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 01:26:50 +00:00
Tony Wickham a137d19d6d Merge "Hide the task icon during quick switch from home" into tm-qpr-dev am: bbfbe60f72
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19369341

Change-Id: I4d8c28dcd55ba241bdf72fd108059c73044f4aa6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 00:58:36 +00:00
Tony Wickham bbfbe60f72 Merge "Hide the task icon during quick switch from home" into tm-qpr-dev 2022-07-26 00:43:55 +00:00
Tony Wickham a397f3784f Add @ScreenRecord to testSwitchToOverview
Test: N/A
Bug: 238461765
Change-Id: I0ff65e2ca7c5026d46e0e218a94a11cafe3f9648
2022-07-25 17:11:55 -07:00
Jeremy Sim 74f7789f8b Add comment regarding Overview TaskViews
Just adds a comment explaining the elevation of Overview TaskViews. No code changes.

Bug: 208650434
Test: None needed.
Change-Id: I19c434f8473237a4a0f6fe36deecc9c80e7b8a49
2022-07-25 22:04:37 +00:00
Vinit Nayak c7293179d0 Space out 3 button nav on taskbar
* Add additional margin on nav buttons if
there's overlap w/ contextual button
* End spacing is dependent on grid layout

Bug: 223724516
Test: Tested on unfolded with different
grid sizes.

Change-Id: Ie814f35cd1f35629744050ee3f7242c5a8599883
2022-07-25 13:15:11 -07:00
Bill Yi 5df85eaf7a Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-07-25 19:54:30 +00:00
Alex Chau 62572c04e2 Revert "Move BaseActivityInterface task size methods to DevicePr..."
Revert "Move BaseActivityInterface task size methods to DevicePr..."

Revert submission 19279487-baseactivityinterface

Reason for revert: As per discussion in ag/19341332, make sure DeviceProfile can properly react to inset changes before moving task size calculations there
Reverted Changes:
I30324d34c:Move BaseActivityInterface task size methods to De...
Ia9c1d0387:Move BaseActivityInterface task size methods to De...

Bug: 238593212
Change-Id: I0d40fdd4a5d4468494e30cef32a284479ddd2feb
2022-07-25 18:38:03 +00:00
Winson Chung 2f147bea6d Merge "Quick change to unblock launching freeform from overview" into tm-qpr-dev am: d59a6e053d am: 8a9aa40b4d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19403896

Change-Id: I1e3a7a62fb0858b4f3c8ab1afa1fa7d32f68aa71
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-25 17:42:02 +00:00
Winson Chung 8a9aa40b4d Merge "Quick change to unblock launching freeform from overview" into tm-qpr-dev am: d59a6e053d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19403896

Change-Id: I6b78794553862a1072f40603df99692eecb6bd0f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-25 17:40:38 +00:00
Winson Chung d59a6e053d Merge "Quick change to unblock launching freeform from overview" into tm-qpr-dev 2022-07-25 17:30:14 +00:00
Winson Chung 8b0793f9ef Prevent setting max layer above the input consumer
- The leash is being set to max layer above the specified
  layer of the recents input consumer set by WM (in
  InputMonitor), revert this for legacy transitions

Bug: 239042246
Test: Swipe up to overview and quickly swipe again
Change-Id: I92ab2ae0917857b6b1154f6250e7fac6565a58f1
2022-07-25 16:21:49 +00:00
TreeHugger Robot 66eff5b891 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-07-23 05:32:43 +00:00
Winson Chung a44c6b53c0 Quick change to unblock launching freeform from overview
- Finish the recents animation before starting the freeform task
- Remove MultiWindowFactory abstraction now that freeform is the only
  implementation that uses that

Bug: 239429564
Test: Enable freeform in developer options, launch task into freeform
      from overview

Change-Id: I48069aee322f6a275d2cdae5345b196f8d682bac
Signed-off-by: Winson Chung <winsonc@google.com>
2022-07-23 05:29:14 +00:00
Jeremy Sim 37197f6493 Merge "Remove unused TaskOutlineProvider from TaskView class" into tm-qpr-dev am: 3430f7ade1 am: 80cb20a307
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19348203

Change-Id: Ifc706207825f8992a35e991c09eb420017fdb73c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-22 18:52:05 +00:00
Jeremy Sim 80cb20a307 Merge "Remove unused TaskOutlineProvider from TaskView class" into tm-qpr-dev am: 3430f7ade1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19348203

Change-Id: Ie96f3301a8f79398b53ae191a07e3388bb57e933
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-22 18:34:21 +00:00
Jeremy Sim 3430f7ade1 Merge "Remove unused TaskOutlineProvider from TaskView class" into tm-qpr-dev 2022-07-22 18:20:44 +00:00
Pat Manning d5e7ad4ae9 Set overview progress on fling to 1 only if going to overview state.
Test: manual
Bug: 202826469
Change-Id: I328577653d26c74de7d82149b2a393674a09561a
2022-07-22 15:35:59 +01:00
Ming-Shin Lu 30f891b014 Don't crop task with RemoteAnimaionTarget#contentInsets
..when willShowImeOnTarget is true, in case the task surface cropped by
the task bar insets since the task bar will end up stashed by IME
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: I8d802887bd382a7d6f6429e269501c924e81c51b
2022-07-22 13:09:22 +00:00
Jeremy Sim e5ba8fa7a5 Update animations for TM-QPR: OverviewSplitSelect > Home transition
The animation from OverviewSplitSelect to Home is now updated to the latest spec. See bug for details.
- New timings
- FloatingTaskView now translates out, instead of fading
- FloatingTaskView and SplitInstructionsView now disappear concurrently with the rest of Overview, instead of afterward

Fixes: 236761067
Test: Manual on tablet and phone
Change-Id: Iaa1c804a60859232f331950098b67968cc187e82
2022-07-21 20:46:43 -07:00
Bill Yi 68d305ec3c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I41d6f8a697f63784c8b5505efc5b981ebdcf4783
2022-07-21 20:00:05 -07:00
Bill Yi d74259083c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I16782934b76dd2d271cf0c56b403a7bfae33798e
2022-07-21 19:59:32 -07:00
Bill Yi 6b22fda8ef Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie90b213d29903c90bb50f7efb36e1f9df9b33a21
2022-07-21 19:58:58 -07:00
Tony Wickham 355b66d1ab Hide the task icon during quick switch from home
Test: manual
Fixes: 238753582
Change-Id: Ic1badf4479c5273fd4d182ef7da04797885a6a36
2022-07-20 15:29:24 -07:00
Schneider Victor-tulias f016c44adc Pause the AllSetActivity background animation more reliably.
- Pause the animation when the alpha <= 0.1f, rather than 0f
- Pause the animation when the AllSetActivity pauses
- Do not vibrate if the AllSetActivity is not resumed

Bug: 236924895
Test: manually launched AllSetActivity and swiped up at various speeds
Change-Id: I1019f680730cfc72e9ad305d7ae09cff8a1637be
(cherry picked from commit 5f6b07d31c)
2022-07-20 19:03:09 +00:00
Ming-Shin Lu 84539d4142 Remove hideCurrentInputMethod from RecentsAnimationController am: 4a48cf7827 am: 8d7527715a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19341387

Change-Id: I103d037cda70db55003ac513ae2299363d5ea664
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-20 16:48:57 +00:00