Commit Graph

3608 Commits

Author SHA1 Message Date
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
Thales Lima
242c8c0b0f Merge "overview: rebalance hidden tasks in grid" into sc-v2-dev 2021-08-16 19:16:30 +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
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
348065811f Merge "Constrain scroll amount" into sc-v2-dev 2021-08-14 00:57:13 +00:00
Lucas Dupin
b259a896f5 Constrain scroll amount
Test: scroll vertically and horizontally
Fixes: 196309367
Change-Id: Ibf16fb72cf95e29ed820d5f511e764a388c93bb0
2021-08-13 15:57:41 -07:00
Dave Mankoff
78f9648aec Merge "Changes to the signature of PluginManagerImpl." into sc-v2-dev 2021-08-13 21:12:40 +00:00
Dave Mankoff
630ae94833 Pass main executor to PluginInstanceManager.Factory.
Bug: 194781951
Test: manual
Change-Id: I1667023887e0c8d1dc86fce1717a3032b6721684
2021-08-13 10:18:01 -04:00
Dave Mankoff
1d5e1dc8d1 Pass Executor to to PluginInstanceManager.Factory.
Bug: 194781951
Test: manual
Change-Id: I6dc699869d041aab8f5d1e7a128b4f67adfd78dc
2021-08-13 10:16:09 -04:00
Dave Mankoff
13f50b9898 Changes to the signature of PluginManagerImpl.
Bug: 194781951
Test: manual
Change-Id: Iafc5232dfdb1cc1c554de925c2f0d2ad5f6439e2
2021-08-13 10:01:42 -04:00
Ben Lin
99b5d13952 Merge "Do not set user active hints when Shell Transition is on." into sc-v2-dev 2021-08-13 01:09:19 +00:00
Ben Lin
1e49216401 Do not set user active hints when Shell Transition is on.
Previously, we hint at user active in order to let the launcher know at
an earlier time that the user is about to go home, to provide PiP a
shelf offset. However with Shell Transitions, this is now being done
instantly as the launcher activity is resumed right as user touches down
on the gesture pill. We then no longer need this for shell transitions.

Bug: 165793917
Test: Enable Shell Transitions, go home to enter PIP, and open another
app - see that PIP auto moves downward now that shelf height has changed

Change-Id: I347c885425ce820a42ebfcc15082862d04aa1a7d
2021-08-12 15:17:31 -07:00
Alex Chau
2886a13d7a Clean up test logging and ScreenRecord
Bug: 194114179
Bug: 193125090
Test: manual
Change-Id: I086d011a39b74a24d5629d43dc74b741fcf5994e
2021-08-12 11:34:27 +01:00
Nick Chameyev
02c0c924a6 Merge "Add unfold animation to launcher icons and widgets" into sc-v2-dev 2021-08-11 18:04:03 +00:00
Nick Chameyev
5e8dbe77e8 Add unfold animation to launcher icons and widgets
Adds unfold animation to launcher which translates
icons and widgets from the center to the sides on
foldable devices.

Bug: 193794541
Test: manual
Change-Id: I9d6e018a0451d342f02dddea47bc180781c31d43
2021-08-11 16:10:18 +01:00
Tracy Zhou
255887ccdc Merge "Taskbar should animate immediately when tapping a live tile" into sc-v2-dev 2021-08-11 04:24:12 +00:00
Lucas Dupin
f006d37acf Merge "Act on scrim visibility" into sc-v2-dev 2021-08-11 02:59:05 +00:00
Tracy Zhou
ae0c16dd0c Taskbar should animate immediately when tapping a live tile
Fixes: 194728948
Test: manual
Change-Id: Ia2bf9e4d050367ac08e3308a308f19f04577c49e
2021-08-10 16:30:29 -07:00
Lucas Dupin
e4a9469156 Act on scrim visibility
The scrim visibility drives whether the launcher window is opaque or
not. We should track it and apply the flag instead of trying to catch it
through other Launcher life cycles.

Fixes: 195365607
Test: tap on home button while launching app from overview
Change-Id: I2a00b86b602b5dd12c901433b92adcf0170be15e
2021-08-10 14:18:50 -07:00
TreeHugger Robot
49ee541bc5 Merge "Tune swipe up resistance" into sc-v2-dev 2021-08-10 17:09:56 +00:00
TreeHugger Robot
874d9aff0e Merge "Don't call TaskView.onRecycle when moving focused task to front" into sc-v2-dev 2021-08-10 16:53:51 +00:00
Lucas Dupin
830b12efad Merge "Adjust all apps zoom level" into sc-v2-dev 2021-08-10 15:21:10 +00:00
Lucas Dupin
f168bb7aaf Adjust all apps zoom level
The All Apps scrim fades in early, covering part of the zoom animation.
We need to adjust the max zoom in order to make All Apps consistent with
Overview, -1, and Shade.

Test: pull up the all apps drawer
Fixes: 195992422
Change-Id: Ia7bbe17fe7f227dd0a16ba7d21b402cff57176f0
2021-08-09 17:45:22 -07:00
Vinit Nayak
1a8f7120c1 Add logs when runningTaskView after re-binding tasks is null.
Bug: 195430732
Change-Id: If776c834bc2b06000230d853aeff58094e1fe88c
2021-08-09 13:42:40 -07:00
Alex Chau
be767c9108 Don't call TaskView.onRecycle when moving focused task to front
- onRecycle removes the icon cache resulting on icon disappearing when entering overview
- only call necessary view transform reset in moveFocusedTaskToFront

Bug: 195415765
Test: quick switch, launch app then swipe up
Change-Id: Iadb7287ea307a3a4aa0acce2e37837142aeb90db
2021-08-09 19:06:01 +01:00
Alex Chau
1338dd7e71 Add logs to MotionPauseDetector
- Add logs to MotionPauseDetector to confirm if the current 700ms timeout is enough for tests

Bug: 194114179
Test: atest NexusLauncherOutOfProcTests:com.android.launcher3.memory.MemoryTests#testAppLaunchFromWorkspace
Change-Id: Ifc3e8a24c245b1877e3fae5d2cb96636c34e8e4b
2021-08-09 15:56:11 +01:00
Alex Chau
26a5f7f8cb Tune swipe up resistance
- Make TaskView only scale between startResist scale and until maxResist scale's TaskView top touches 100% scale's TaskView top (https://drive.google.com/file/d/1r0qdP9TOTYw2upkJ-jEP8BAfLsrv8EOa/view)
- Tuned the scaling parameter for tablet

Bug: 194190263
Test: manual
Change-Id: Ibc3e82744c5a6a8ce4207dff30d80889c66aa038
2021-08-09 15:52:52 +01:00
Alex Chau
55861dc50b Merge "Only refresh DISABLED_NO_THUMBNAIL when thumbnail changes" into sc-v2-dev 2021-08-06 17:41:11 +00:00
TreeHugger Robot
5a25696bfd Merge "Prevent NPE when resetting divider bar visibility" into sc-v2-dev 2021-08-06 05:06:54 +00:00
Jerry Chang
6368746a3c Prevent NPE when resetting divider bar visibility
Fix: 195325902
Test: atest
com.android.launcher3.memory.MemoryTests#testActivityRecreation
--rerun-until-failure

Change-Id: I12c48fe2834a225c5f7d042be632ddd29135b7c5
2021-08-06 09:59:31 +08:00
TreeHugger Robot
9b762e9778 Merge "Invoke home via recents for fallback recents" into sc-v2-dev 2021-08-05 22:11:13 +00:00
Vinit Nayak
8d51468426 Invoke home via recents for fallback recents
Fixes: 194286702
Test: Go home from app and overview for
3P and normal launcher (test via separate recents activity
in debug menu)

Change-Id: Ifac4afbfa549265a80448ee460a780bf0984f9e1
2021-08-05 11:52:25 -07:00
Prabir Pradhan
be8d4adf00 Merge "Revert "Enable input window rotation flag"" into sc-v2-dev 2021-08-05 13:07:59 +00:00
Arthur Hung
312a44adba Revert "Enable input window rotation flag"
This reverts commit ee75a0f8be.

Reason for revert: This is causing touches on foldable/large screen devices to be registered in the incorrect orientation. b/195617582

Bug: 195617582
Change-Id: I221b5510f1acc56f855d5fc770bc09eab86a4f29
2021-08-05 13:07:15 +00:00
Alex Chau
42f914e254 Merge "Make icon drawable for non-focused grid tasks smaller" into sc-v2-dev 2021-08-05 09:57:19 +00:00
Alex Chau
974635127b Merge "Increase motion pause timeout for tests" into sc-v2-dev 2021-08-04 21:59:53 +00:00
TreeHugger Robot
b78e77f581 Merge "Storing form factor as part of backup and disabling restore if form-factor is different" into sc-v2-dev 2021-08-04 19:12:10 +00:00
Alex Chau
0dfe56cff1 Increase motion pause timeout for tests
- In cuttlefish occasionally MOTION_MOVE and MOTION_UP takes more than 300ms due to lag, increasing the motion pause timeout to avoid getting false signals in tests

Bug: 194114179
Test: atest NexusLauncherOutOfProcTests:com.android.launcher3.memory.MemoryTests#testAppLaunchFromWorkspace
Change-Id: I0a33f34b5bf96f4f7ae56020c5a27f4ef9a0ff64
2021-08-04 20:09:06 +01:00
Sunny Goyal
68031ca3f9 Storing form factor as part of backup and disabling restore if form-factor is different
Bug: 195301649
Test: Manual
Change-Id: I9a9c4bc9246f40af2209cb914b3966319bc78bff
2021-08-04 09:51:04 -07:00
Prabir Pradhan
d573948424 Merge "Enable input window rotation flag" into sc-v2-dev 2021-08-04 14:03:24 +00:00
Alex Chau
630562210e Only refresh DISABLED_NO_THUMBNAIL when thumbnail changes
- Avoid refreshing all overlay content which happens too frequently

Bug: 193125090
Test: atest NexusLauncherTests:com.android.quickstep.TaplTestsQuickstep#testOverviewActions
Change-Id: Idcfe19a518e621c55574baae3bbe1378b7f3d08f
2021-08-04 12:14:46 +01:00
Thales Lima
8d49c4bb29 navigation: don't run gesture animation if gestures are not enabled
Makes the animation when using 3 button navigation be closer to what we
have in non fallback mode, also fixing the problem when fallback recents
just started and don't have any views.

Fix 194487871
Test: manual with gestures, 2 button and 3 button nav

Change-Id: If3925d6bef1d14f51b86169d06607786972f5f1f
2021-08-04 09:24:12 +00:00
Alex Chau
ac9df38e9f Make icon drawable for non-focused grid tasks smaller
- Center the icon drawable in center of IconView with and allow a smlaler size to be set

Bug: 194194694
Test: dismiss focus task, swipe from app etc.
Change-Id: I2855249b13e2ccdb45f101bfb7afef4311f7b46f
2021-08-03 17:36:15 +01:00
TreeHugger Robot
f5c3dab525 Merge "Migrate from using taskIDs to taskViewIDs in RecentsView" into sc-v2-dev 2021-08-03 04:20:42 +00:00
TreeHugger Robot
144b16bbb1 Merge "Band-aid for getHomeActivities returning null" into sc-v2-dev 2021-08-02 19:20:01 +00:00
vadimt
42a7d1af83 Band-aid for getHomeActivities returning null
It can return null immediately after android.intent.action.ACTION_PREFERRED_ACTIVITY_CHANGED
notification.

Test: local
Bug: 187080582
Change-Id: I8625fdfc0add57fed832bdca4713747a005bf08c
2021-08-02 10:38:12 -07:00
Hongwei Wang
b999186b9e Merge "Check PiP permission before entering auto pip" into sc-v2-dev 2021-07-31 03:14:11 +00:00
Vinit Nayak
51a6c92174 Migrate from using taskIDs to taskViewIDs in RecentsView
* Follow up CL coming to introduce a TaskView that
can have multiple Tasks, so a taskID won't be particularly useful
in that scenario.

Bug: 192292305
Test: Manual, w/ and w/o live tile
Change-Id: I1900b999ac51aa99923239f2af400c90c71c3dae
2021-07-30 11:02:26 -07:00
Alex Chau
2095731650 Merge "Always treat FallbackRecentsView as visible if isInLiveTileMode is true" into sc-v2-dev 2021-07-29 22:44:30 +00:00