Commit Graph

18253 Commits

Author SHA1 Message Date
Kevin 502847f7eb Add app to overview anim for Recents Go.
This CL adds the first iteration of window animation to go from
the app back to recents provided that the view is ready to be
visible to the user.

Bug: 114136250
Test: Go to recents, launch app, press overview to go back to recents
Change-Id: Ic0567e7c87fa964bdad25d07eca61b78407a9ff5
2019-03-18 17:15:15 -07:00
vadimt 2ec9f290bf Hopefully reducing flakes by waiting for SysUI objects
Looks like when orientation change is involved, it takes some time for
SysUI object to reappear.

Change-Id: Id08d385ea1a535d8bcd87b123f0373cd28d90a92
2019-03-15 19:54:51 -07:00
Tony Wickham 9893578356 Merge "Don't close popup container if touch came from nav bar" into ub-launcher3-master 2019-03-15 22:36:33 +00:00
TreeHugger Robot 9b4c82cbf9 Merge "Add activity interface to Recents Go view" into ub-launcher3-master 2019-03-15 22:19:21 +00:00
Kevin 5163b58d52 Add activity interface to Recents Go view
Add an interface for recents to activity logic that can be set on the Go
recents view. This CL includes a method for the logic that should occur
when leaving recents due to having no tasks remaining.

As the view has no knowledge of the containing activity (could be
Launcher or could be a separate activity), this interface must be set
externally.

Bug: 114136250
Test: Remove all tasks, see that it goes to home when l3goIconRecents is
the default launcher
Change-Id: I110abab49c22e245b98a1f9b91b0b0f052886098
2019-03-15 15:09:38 -07:00
Tony d5a3df7b83 Don't close popup container if touch came from nav bar
Moved EDGE_NAV_BAR from quickstep package to launcher3

Bug: 127917144
Change-Id: Ic619ea49896ca8e49a9a539b7dc7d682291241b7
2019-03-15 17:08:51 -05:00
Kevin ddb9fe1177 Follow frameworks_intermediates change in gradle
Change directory of framework intermediates prebuilts based off recent
change in location.

Test: Build from IDE
Change-Id: Icda11ca1526a12cc72be65052c5b1ce8c342c059
2019-03-15 13:39:00 -07:00
TreeHugger Robot d082129ef8 Merge "Switching swipe-up to overview to using test info provider" into ub-launcher3-master 2019-03-15 18:52:25 +00:00
vadimt d64b4f44da Switching swipe-up to overview to using test info provider
Also moving test provider to Quickstep to have access to the new info;
and now Launcher3 doesn't have it.

Bug: 123904290
Change-Id: I653376610e83839d102beb9c0604950dd314e8ba
2019-03-15 11:42:06 -07:00
TreeHugger Robot f1d72926dc Merge "Make QSB_ON_FIRST_SCREEN a boolean." into ub-launcher3-master 2019-03-15 16:22:21 +00:00
Jon Miranda 7143ba6fec Make QSB_ON_FIRST_SCREEN a boolean.
Bug: 118140522
Change-Id: Ic8e47e71f538b0b0caff6f630566665d05a65522
2019-03-15 09:11:54 -07:00
TreeHugger Robot 1235b0ee1e Merge "Number of DEBUG_STATES was 1 less than necessary" into ub-launcher3-master 2019-03-15 01:24:49 +00:00
TreeHugger Robot 72ac60d551 Merge "Remove f/b based jars out of the Android.mk" into ub-launcher3-master 2019-03-15 01:24:00 +00:00
Jonathan Miranda fb53843dc6 Merge "Set window corner radius to 0 for app tranition anims in multi-window mode." into ub-launcher3-master 2019-03-14 23:16:41 +00:00
Tony 40f1d863f6 Number of DEBUG_STATES was 1 less than necessary
Change-Id: I0a9289f9bcf99df0d9a466ad3ff00996192921f2
2019-03-14 18:03:55 -05:00
Hyunyoung Song 319b5a6ace Remove f/b based jars out of the Android.mk
Benefit! we would not get merge conflict when one of these jars update
and we need to do code merge.

Change-Id: Ia6a4a632474a7b19aaede1d20d1373902da1400c
2019-03-14 13:44:14 -07:00
TreeHugger Robot 44ba75fd0b Merge "Adding logging for showing DWB toast" into ub-launcher3-master 2019-03-14 20:24:06 +00:00
vadimt c28aa1a197 Adding logging for showing DWB toast
We generate an event upon every invocation of Overview with at least one
DWB toast.

Bug: 123892673
Change-Id: Ia24f4be8e9f0f6ab6d31095b8367b73fb6c8cd7f
2019-03-14 12:22:29 -07:00
Vadim Tryshev aaffa2385f Merge "Creating provider for test gesture dimensions." into ub-launcher3-master 2019-03-14 17:29:34 +00:00
TreeHugger Robot c7a89b0bfd Merge "Revert "Use GestureDetector in WorkspaceTouchListener"" into ub-launcher3-master 2019-03-14 04:29:55 +00:00
Siarhei Vishniakou e7a1e25906 Revert "Use GestureDetector in WorkspaceTouchListener"
This reverts commit 7c8fb786fa.

Reason for revert: Chatted with Sunny, the concern was brought up that this is risky and will create potential for dogfood confusion with the new gesture navigation that is getting rolled out soon. So we can try to reland this in a few weeks.

Change-Id: I4f09cc9982164195dc42cd6e4714ede767cce786
2019-03-14 01:16:28 +00:00
vadimt 09df0831da Creating provider for test gesture dimensions.
Start with answering only whether the provider will answer any other
questions.

Bug: 123904290
Change-Id: I7b3ba8c7689f937d8bc1d470b00574ab4340130d
2019-03-13 17:52:42 -07:00
TreeHugger Robot 65b1cdbdea Merge "Fade to empty view when no tasks for Recents Go" into ub-launcher3-master 2019-03-13 22:55:15 +00:00
Kevin 3cb12c8d20 Fade to empty view when no tasks for Recents Go
This CL adds a view for when there are no tasks and fades into/out of it
appropriately based off changes to the adapter.

Bug: 114136250
Test: Add task, remove task, see empty view shows up properly.
Change-Id: I47d0bbfb19d56f5f0de5bec3c0ac2b5cfb63253f
2019-03-13 15:46:41 -07:00
Sunny Goyal 1e6641fc74 Merge "Removing fade animation on swipe up" into ub-launcher3-master 2019-03-13 22:05:27 +00:00
TreeHugger Robot da60846197 Merge "Revert "Temporarily make TouchInteractionService direct boot unaware"" into ub-launcher3-master 2019-03-13 20:28:46 +00:00
Tony Wickham 1ccc31379e Revert "Temporarily make TouchInteractionService direct boot unaware"
This reverts commit 3a4f503e5d.

Reason for revert: SystemUI now expects our service to be direct boot aware

Change-Id: I6f7906046e79f83848cb46f5cce63c827d9fbf4d
2019-03-13 20:19:08 +00:00
TreeHugger Robot fbef999385 Merge "Add thumbnails to the task view." into ub-launcher3-master 2019-03-13 20:09:03 +00:00
Kevin 100e1263e2 Add thumbnails to the task view.
This CL adds thumbnails to the task view so that the labels are next to
a combined view with the thumbnail to the left and the icon at the
bottom right.

Due to the way launcher creates shadows on icons, the icons are actually
smaller than desired, so there need to be further changes to determine
the appropriate scale in order to have the bottom of the icons be flush
with the snapshot's bottom.

Bug: 114136250
Test: Launch l3GoIconRecents, see thumbnails + icon
Change-Id: Ief1cf54634544b9e310c68588998901871efda44
2019-03-13 12:59:39 -07:00
Jon Miranda 87beed6404 Handle other SystemShortcut view types.
Bug: 127807969
Change-Id: Ifcc24e9261ddc730bcddd5724a230910daafce17
2019-03-13 10:02:59 -07:00
Tracy Zhou 6f064f9d3f Fix NPE caught in FallbackRecentsTest
Change-Id: Ia586bebd9a24e5bbfcbed50c7c260134911e073b
Fixes: 128464669
Test: N/A
2019-03-12 22:37:33 -07:00
Tracy Zhou ec2713e153 Merge "Log back key events from Overview in live tile mode." into ub-launcher3-master 2019-03-13 05:22:54 +00:00
Jon Miranda 5bc0dd0708 Fix bugs related to swipe up to home animation.
- Added ConstantState support for FolderAdaptiveIcon and
  ShiftedBitmapDrawable.
- Quick fix for NPE in Workspace#mapOverCellLayout while I investigate
  further.

Bug: 128460496
Change-Id: I5ec02e25dcf9f17aeb37928e675a033bdc8819ae
2019-03-12 17:43:49 -07:00
TreeHugger Robot 46e4d78774 Merge "Use GestureDetector in WorkspaceTouchListener" into ub-launcher3-master 2019-03-12 23:45:54 +00:00
Tracy Zhou e8edaff41a Log back key events from Overview in live tile mode.
Change-Id: If633df84fc46f8b2c80785f983ac5b77a5553747
Fixes: 127837913
Test: N/A
2019-03-12 16:27:05 -07:00
Sunny Goyal 58ddac1d09 Removing fade animation on swipe up
Fade animation is no longer required as the transform is also handled on
the main thread. So we will get the RecentsAnimaiton always after Launcher
has drawn

Change-Id: Ieb05406c9a5b9132b0518155bdbda16c1f73a6ec
2019-03-12 16:24:05 -07:00
TreeHugger Robot a086df0047 Merge "Stress test for starting Launcher via gestures" into ub-launcher3-master 2019-03-12 22:34:01 +00:00
TreeHugger Robot e50274d15a Merge "Implement swipe to delete on Recents Go" into ub-launcher3-master 2019-03-12 22:31:24 +00:00
Kevin 013af455b1 Implement swipe to delete on Recents Go
Introduce a ItemTouchHelper.Callback implementation that hooks up remove
logic to swiping right on task items. Additionally, tighten the
modification access to the task list in TaskListLoader so it is harder
to mis-use.

Bug: 114136250
Test: Removed app via swiping
Change-Id: I9b6e2783d1f6d56e655e9b7ffa9af85328f98159
2019-03-12 15:10:22 -07:00
Jon Miranda 270d29c43e Only get drawable on the background thread, everything else on main thread.
Bug: 128259687
Change-Id: I6230bfdc292e9a43ab935cfb6debb7a6fac4d4f7
2019-03-12 14:59:04 -07:00
TreeHugger Robot f820d5d817 Merge "Fixing launcher UI not reapplied properly when IDP changed as a result of display changes" into ub-launcher3-master 2019-03-11 23:07:07 +00:00
TreeHugger Robot 0dd484bede Merge "Fix crash when trying to load SystemShortcut drawable." into ub-launcher3-master 2019-03-11 22:49:18 +00:00
Jon Miranda a014ffa3ec Set window corner radius to 0 for app tranition anims in multi-window mode.
Otherwise we see a jump from corner radius to 0 corner radius when the
animation completes.

Change-Id: I46a65342d4ea531dc16c866aee305478067959d3
2019-03-11 15:27:10 -07:00
TreeHugger Robot e8692ecc79 Merge "Add TaskInputController for Recents Go" into ub-launcher3-master 2019-03-11 22:22:26 +00:00
Tracy Zhou 0bef2bf84c Merge "App icon transitions with app window in overview" into ub-launcher3-master 2019-03-11 22:15:22 +00:00
Kevin 1ae97d81f6 Add TaskInputController for Recents Go
Add TaskInputController, a class handling input logic for the Recents Go
view. This CL hooks up the tap to launch logic with swiping + clear all
to be added in a later CL.

Bug: 114136250
Test: Build Launcher3IconRecentsGo and tap apps; see that they launch
task
Change-Id: I03e14a6f66307b9c6239cdeaec95d09f160fa3e0
2019-03-11 15:05:52 -07:00
Jon Miranda 93e0594b3d Fix crash when trying to load SystemShortcut drawable.
Bug: 127807969
Change-Id: I9d7e8bf5b6b45fe6ad61984ab2c0326926076d75
2019-03-11 14:05:41 -07:00
Tony Wickham adbd4d6c1d Merge "Send onGestureStarted() when continuing a quick switch gesture" into ub-launcher3-master 2019-03-11 20:47:09 +00:00
vadimt c1f88db00a Stress test for starting Launcher via gestures
Ideally, we should have a race condition tests, but with the new
single-threaded model, this requires more work. This is a temporary
measure.

Change-Id: Ie180883f4b186e4c4087dc77fed1e4d946402465
2019-03-11 13:38:46 -07:00
Vadim Tryshev 51f3759c34 Merge "Not using reflection for app-usage API" into ub-launcher3-master 2019-03-11 20:25:28 +00:00