Commit Graph

14731 Commits

Author SHA1 Message Date
Vinit Nayak ca1d523734 Merge "Add GroupedTaskView for gestures in staged split." into sc-v2-dev 2021-08-17 23:26:53 +00:00
Tony Wickham 3974edc46a Don't draw taskbar background during gestures
In this case, the ScrimView for BackgroundAppState will handle drawing behind the whole screen, and prevents taskbar from drawing the rounded corners on top of TaskViews.

Added a hack to defer resuming last task by a frame to ensure taskbar is drawing first.

Test: Quick switch to an app, ensure it isn't covered by the taskbar's rounded corner
Bug: 196257194
Change-Id: Ibc81d80bc3bf1d908e6912b179cbcafbdcc56c0f
2021-08-17 15:07:50 -07:00
Tony Wickham 157d3b950d Draw rounded corners above the taskbar
- Increase height of taskbar window, but not contentInsets
- Draw the inverted corners as part of TaskbarDragLayer#dispatchDraw() (which handles the background already)

Test: visual

Bug: 196257194
Change-Id: I51d992078579e877c85a1d71ee4c00d85fd9db2e
2021-08-17 15:06:18 -07:00
Vinit Nayak 17c4b33db6 Add GroupedTaskView for gestures in staged split.
* Currently only works for portrait 50/50 split
* Have gesture swipe animation flow use multiple
TaskViewSimulators, one for each app in split
* Added new APIs in shell to query for actively running
tasks to determine if we're in split screen
* Lots of UI polish needed during gesture
* Launching into staged split after live tile ends
not implemented yet.

Bug: 181704764
Change-Id: Ib90e99e1e10b19121e8709385e1334b9380d6502
2021-08-17 13:46:43 -07:00
TreeHugger Robot 30a62d835e Merge "Import translations. DO NOT MERGE ANYWHERE" 2021-08-17 20:15:56 +00:00
TreeHugger Robot f8d92e0a48 Merge changes I2cc102d7,Ifba9aa59 into sc-v2-dev am: 54ce7e6cf8 am: 4079cdbb74
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15465222

Change-Id: I07e79c417528a08896ce07213e5476d771de545c
2021-08-17 19:55:01 +00:00
TreeHugger Robot 4079cdbb74 Merge changes I2cc102d7,Ifba9aa59 into sc-v2-dev am: 54ce7e6cf8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15465222

Change-Id: I9de621c74f2a47f893d309031ea61e0b25763fcf
2021-08-17 19:39:18 +00:00
TreeHugger Robot 6a384092a3 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-08-17 19:31:34 +00:00
Nick Chameyev d1b2bd4b6f Merge "Add quick search bar width unfold animation" into sc-v2-dev am: caa713bc1a am: 8b7226abee
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15547447

Change-Id: I5e51979f6eb8d08205ee35ff49f1e6354d23f2f7
2021-08-17 19:15:27 +00:00
TreeHugger Robot 54ce7e6cf8 Merge changes I2cc102d7,Ifba9aa59 into sc-v2-dev
* changes:
  Only show Taskbar Edu once (first time an app is opened).
  Adds initial Taskbar Edu implementation.
2021-08-17 19:13:31 +00:00
Nick Chameyev 8b7226abee Merge "Add quick search bar width unfold animation" into sc-v2-dev am: caa713bc1a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15547447

Change-Id: I97f1262eb7302cbf7c244cd187969fb3822c4d60
2021-08-17 18:21:59 +00:00
Nick Chameyev caa713bc1a Merge "Add quick search bar width unfold animation" into sc-v2-dev 2021-08-17 17:58:50 +00:00
Alex Chau eaa6d682d4 Support different task icon margin for grid tasks
- Focused and non focused grid now have differnt margin between icon and snapshot
- The overall margin above snapshot is still the same
- Invoke updateChildTaskOrientations when focus task changes to update the margin
- Also lowered the row spacing according to spec

Bug: 194194694
Test: manual
Change-Id: I25267bef19d5a8b1dc1cf96fc1babdc3ebc39330
2021-08-17 18:33:21 +01:00
Andy Wickham b8eac86b63 Only show Taskbar Edu once (first time an app is opened).
Bug: 180605356
Test: Manual
Change-Id: I2cc102d7ce36e0b1c2c75482e2bbb97218618e61
2021-08-17 09:57:55 -07:00
Andy Wickham 13f3ffed95 Adds initial Taskbar Edu implementation.
Currently it just pops up with one placeholder image for splitscreen.
The Next button doesn't do anything.

Screenshots:
Light: https://screenshot.googleplex.com/B27CwBcwobHTghN.png
Dark: https://screenshot.googleplex.com/48EuJZv8evd5RGW.png

Known issues:
 - Back gesture is picked up behind by the app behind the taskbar.
 - When the flag is enabled, the Edu shows up each time you open
   an app, rather than only the first time.

Bug: 180605356
Test: Manual
Change-Id: Ifba9aa59abf1501b5f8ddebb3fcc13df85f6efaa
2021-08-17 09:57:47 -07:00
Nick Chameyev 4ba48cdb8b Add quick search bar width unfold animation
Adds unfold animation to quick search bar in launcher
which changes the width of the quick search bar
from 70% to 100%.

Bug: 193795041
Test: manual
Change-Id: I8c55ca1cc5b5894847503beac8ecd8adec3e5674
2021-08-17 16:58:57 +01:00
Tony Wickham 2f245001b7 Merge changes from topic "taskbar-crop-tasks" into sc-v2-dev am: 40f86763bc am: 8372c17e9a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15587788

Change-Id: I41769ca27299760614bf370135a79b094347c42d
2021-08-17 15:26:56 +00:00
Tony Wickham 8372c17e9a Merge changes from topic "taskbar-crop-tasks" into sc-v2-dev am: 40f86763bc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15587788

Change-Id: I485467f809b6cd571915a7d5cfebc1a485987842
2021-08-17 15:14:09 +00:00
Tony Wickham 40f86763bc Merge changes from topic "taskbar-crop-tasks" into sc-v2-dev
* changes:
  Extend taskbar color to entire screen in overview
  Use WindowBounds#insets instead of WindowInsets in DeviceProfile
2021-08-17 14:52:50 +00:00
Dave Mankoff 40e4ae6d1b Merge "Updates to constructor of PluginInstanceManager.Factory" into sc-v2-dev am: 6eeb12e3eb am: 04b24f0976
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15558875

Change-Id: Ic592e3ff056b4b38c7ea85a2bdb4efa27855afad
2021-08-17 13:37:07 +00:00
Dave Mankoff 04b24f0976 Merge "Updates to constructor of PluginInstanceManager.Factory" into sc-v2-dev am: 6eeb12e3eb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15558875

Change-Id: Id308c83114e7ef42b665464b374609e2d31984ee
2021-08-17 13:20:23 +00:00
Dave Mankoff 6eeb12e3eb Merge "Updates to constructor of PluginInstanceManager.Factory" into sc-v2-dev 2021-08-17 13:07:50 +00:00
Bill Yi 1fbeb066f1 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I73ea13220c10502c794c16674a34ae336e788b89
2021-08-17 02:17:46 -07:00
Bill Yi 42476b5bb0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie3d9b9856af9a823121595b8f6c880d4a5b3c891
2021-08-17 02:12:27 -07:00
Bill Yi af65b6d3d2 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I945a5fbf0a31fe983fe20c6f173d80e6d9423e26
2021-08-17 02:11:45 -07:00
Bill Yi cea66b3a81 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1827e8d2469c9c7993b5b15ea5a964e1fa562dbb
2021-08-17 02:11:04 -07:00
Vadim Tryshev 5eddbd8551 Merge "Revert "Removing old workaround"" into sc-v2-dev am: 0ec3e647ba am: 01627fb235
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15587972

Change-Id: Ie09130f15909a44c36ddccd014b686f1b0fcaa9b
2021-08-17 01:32:24 +00:00
Vadim Tryshev 01627fb235 Merge "Revert "Removing old workaround"" into sc-v2-dev am: 0ec3e647ba
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15587972

Change-Id: I742efdbd334bc5c6ee57429facf150f03f658b08
2021-08-17 01:31:52 +00:00
Vinit Nayak bc90338c7d Merge "Add logs when clearing TaskViewId" into sc-v2-dev am: 2ad3d6b4c3 am: 974f20f333
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15584532

Change-Id: I71b0bfc78cca0cd719b903b6beaf04a342ffe264
2021-08-17 01:31:33 +00:00
Vadim Tryshev 0ec3e647ba Merge "Revert "Removing old workaround"" into sc-v2-dev 2021-08-17 01:20:24 +00:00
Vinit Nayak 974f20f333 Merge "Add logs when clearing TaskViewId" into sc-v2-dev am: 2ad3d6b4c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15584532

Change-Id: If371285b5388c3cbf4bb8d09b7cb2d40368d32af
2021-08-17 01:15:45 +00:00
Vinit Nayak 2ad3d6b4c3 Merge "Add logs when clearing TaskViewId" into sc-v2-dev 2021-08-17 00:59:41 +00:00
Tony Wickham 635e180e56 Extend taskbar color to entire screen in overview
Only when taskbar is unstashed in apps:
- Scrim workspace with the taskbar color when opening apps and in BackgroundAppState
- Crop opening apps to above the taskbar
- Crop TaskViews to above the taskbar during gestures

If taskbar is stashed in apps, behavior is the same as before, i.e. no scrim over the wallpaper and no cropping of tasks.

Added a field DeviceProfile#taskbkarPresentInApps to distinguish these cases. LauncherTaskbarUIController and TaskbarStashController ensure this value is set appropriately.

Test: Ensure tasks don't appear behind taskbar when it's unstashed; set ENABLE_SCRIM_FOR_APP_LAUNCH = true to test the whole screen scrimming when opening an app

Bug: 196257194
Fixes: 190681228
Change-Id: I481501457a5a6d49c380feea3db3b4058e4cf3f8
2021-08-16 16:50:52 -07:00
Vadim Tryshev f11d0fac78 Revert "Removing old workaround"
This reverts commit 714d071f76.

Reason for revert: Perhaps caused b/196876329

Change-Id: I0763c44d54134034885471ce74324a8c6c6c296e
Test: presubmit
Bug: 196876329
2021-08-16 22:54:30 +00:00
Vinit Nayak dda7772452 Add logs when clearing TaskViewId
Bug: 195430732
Change-Id: I0554f27e6b82d98dd585afb895b8ee5eababff9e
2021-08-16 14:56:56 -07:00
Thales Lima 47e0bfa104 Merge "overview: rebalance hidden tasks in grid" into sc-v2-dev am: 242c8c0b0f am: 65dc11d1b4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15453918

Change-Id: I0cbcf90477d70eef2bfd1680428c4997860488f1
2021-08-16 19:44:01 +00:00
Thales Lima 65dc11d1b4 Merge "overview: rebalance hidden tasks in grid" into sc-v2-dev am: 242c8c0b0f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15453918

Change-Id: I6616a2077517ed66de775cded571cfecccc78f20
2021-08-16 19:33:25 +00:00
Thales Lima 242c8c0b0f Merge "overview: rebalance hidden tasks in grid" into sc-v2-dev 2021-08-16 19:16:30 +00:00
Dave Mankoff 423112d1d7 Merge "Pass main executor to PluginInstanceManager.Factory." into sc-v2-dev am: 9847a6a75b am: 685338f7c6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15558874

Change-Id: I20cf971bd58253cb7e50da22fe411571fdcd711d
2021-08-16 15:43:05 +00:00
Dave Mankoff 191e328477 Merge "Pass Executor to to PluginInstanceManager.Factory." into sc-v2-dev am: d72a60f953 am: cc81d631b5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15558873

Change-Id: I21f5ec132f552eed8e097fd5307b61863cfdbe1a
2021-08-16 15:42:01 +00:00
Thales Lima 4a08ce60dc overview: rebalance hidden tasks in grid
The tasks that are not showing in the screen will be rearranged. This
doesn't change anything for tasks before the dismissed task because the
grid is already balanced there.

Fixes: 194189955
Test: manual with 10 tasks, normal and RTL mode
Change-Id: I07ddbb752110339751bd1ed6056fe9f645b5497f
2021-08-16 16:24:35 +01:00
Dave Mankoff 685338f7c6 Merge "Pass main executor to PluginInstanceManager.Factory." into sc-v2-dev am: 9847a6a75b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15558874

Change-Id: If1b3510161b952ef3df9876810f314dd771d84e1
2021-08-16 15:23:45 +00:00
Dave Mankoff cc81d631b5 Merge "Pass Executor to to PluginInstanceManager.Factory." into sc-v2-dev am: d72a60f953
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15558873

Change-Id: I23f99561eecd0d2f705d5a2166b9e1e17aa7666a
2021-08-16 15:22:34 +00:00
Dave Mankoff 9847a6a75b Merge "Pass main executor to PluginInstanceManager.Factory." into sc-v2-dev 2021-08-16 15:05:20 +00:00
Dave Mankoff d72a60f953 Merge "Pass Executor to to PluginInstanceManager.Factory." into sc-v2-dev 2021-08-16 15:04:52 +00:00
TreeHugger Robot 339f367922 Merge "Removing old workaround" into sc-v2-dev am: 77c08b045e am: 4a9bf5ab91
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15535538

Change-Id: If259b13ab777993002a471c541e80bd77e31e905
2021-08-16 10:50:35 +00:00
TreeHugger Robot 4a9bf5ab91 Merge "Removing old workaround" into sc-v2-dev am: 77c08b045e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15535538

Change-Id: I90431ad3e1773c909d94fc7b0aeacf77c439af24
2021-08-16 10:36:53 +00:00
TreeHugger Robot 77c08b045e Merge "Removing old workaround" into sc-v2-dev 2021-08-16 10:21:45 +00:00
TreeHugger Robot 53239c93a2 Merge "Removing old workaround" into sc-v2-dev am: e22e3aaa9a am: e46b0caee1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15534469

Change-Id: I4bcde01e4feba458ca4597409fddcd2c76980b46
2021-08-16 07:11:17 +00:00
TreeHugger Robot e46b0caee1 Merge "Removing old workaround" into sc-v2-dev am: e22e3aaa9a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15534469

Change-Id: Ie05de12b6a74e7cb7f0582791d264ae2557031dd
2021-08-16 07:01:19 +00:00