Commit Graph

18510 Commits

Author SHA1 Message Date
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
vadimt 7d7979df1e Not using reflection for app-usage API
Bug: 118319143
Test: Manual
Change-Id: I304c2d92f2cddccb6f187436cfd5465d06a14867
2019-03-11 20:19:56 +00:00
TreeHugger Robot a7c2fa9013 Merge "Add landscape support for DeviceProfile#getItemLocation." into ub-launcher3-master 2019-03-11 19:00:21 +00:00
Jon Miranda 0bd63d11e8 Add landscape support for DeviceProfile#getItemLocation.
Also updated to use better estimates for portrait.

Bug: 123900446
Change-Id: I39d9ccec9a936bc0b5800ae77e7f88c4cfec1372
2019-03-11 11:50:07 -07:00
Tony Wickham 28d43c580a Send onGestureStarted() when continuing a quick switch gesture
When continuing the gesture, we set mPassedTouchSlop = true in order to
make the second gesture responsive/fluid. However, we only call
notifyGestureStarted() when passing that slop, meaning we don't call it
in this case. Now we call it immediately on touch down when continuing
the previous gesture.

This cleans up a lot of inconsistent state issues, such as not creating
the launcher animation controller as part of the second quick switch
gesture.

Bug: 111926330
Change-Id: I03c3ed9a8d364fbfdc2d04bafb58a63bf61e2f63
2019-03-11 10:28:48 -07:00
Tony Wickham 0aa0e2737e Merge "Quickly fade in QSB when swiping up when SWIPE_HOME = false" into ub-launcher3-master 2019-03-11 17:21:54 +00:00
Tony Wickham 836602e313 Quickly fade in QSB when swiping up when SWIPE_HOME = false
Now that the "hook" gesture is supported for old quickstep to switch
apps, we need to fade out the QSB so it doesn't overlap the TaskView we
are switching to.

Bug: 111926330
Change-Id: Ie04c7909f6b96d12c810b438db89eedf8ea5bdeb
2019-03-11 08:46:49 -07:00
Jonathan Miranda ecd891b689 Merge "Fix bug where folder items preview remain in low res state." into ub-launcher3-master 2019-03-11 15:07:02 +00:00
TreeHugger Robot 8f8fae4b46 Merge "Add task item view for Recents Go." into ub-launcher3-master 2019-03-09 02:20:05 +00:00
Kevin c0a67af456 Add task item view for Recents Go.
Add a task item view for the recycler view to inflate when task data
updates. Currently, the adapter only binds the icon and label.
Thumbnails will be handled in a separate CL.

Bug: 114136250
Test: Manual test Launcher3GoIconRecents
Change-Id: Iaff2001fbbf0a3fc6f5781f90b336bee43f9076e
2019-03-08 17:42:53 -08:00
TreeHugger Robot b3ae56b880 Merge "Removing unnecessary system RPC for checking flags on every touch event" into ub-launcher3-master 2019-03-09 01:28:35 +00:00
Sunny Goyal c1edfa7328 Removing unnecessary system RPC for checking flags on every touch event
Change-Id: I8116bef952dbd49d1bad6c8844149538a6d0fa6b
2019-03-08 17:20:00 -08:00
Siarhei Vishniakou 7c8fb786fa Use GestureDetector in WorkspaceTouchListener
Replace the current callback logic in WorkspaceTouchListener with the
use of GestureDetector.
That means, platform api is now going to be used for detecting long
press.

There now are some unused variables and unneeded code in this file. It
will be cleaned up in a follow-up CL.

Test: long press on empty home screen
Bug: 126596502
Change-Id: I57302b403f7d7118f2156166d8c707ab3f9ccefd
2019-03-08 17:06:52 -08:00
TreeHugger Robot 5f094590f2 Merge "Add task thumbnails to the Recents Go loader." into ub-launcher3-master 2019-03-09 00:41:56 +00:00
Jon Miranda e6f3fa47d6 Fix bug where folder items preview remain in low res state.
- We update the ranks of all folder items after loading, to ensure there are
  no gaps caused by removed folder items. This also ensures that we load
  the high resolution icons for all preview items.
- FolderIconPreviewVerifier#setFolderInfo was not always called
- Init mGridSize with [1, 1] to prevent divide by zero error in case
  setFolderInfo is not called

Bug: 126268196
Change-Id: I856489968665a39303e2922c78cf90f2b3ee6ebb
2019-03-08 12:43:09 -08:00
Kevin b9ebd812a4 Add task thumbnails to the Recents Go loader.
This CL adds thumbnails to the content loading for Recents Go so that
they are fully loaded before recents show. We utilize the underlying
recents model thumbnail cache to make the loading faster.

Bug: 114136250
Test: Build Launcher3GoIconRecents
Change-Id: Ib21f617e83d307621364c2eeb6fef84aad49814b
2019-03-08 12:07:01 -08:00
Jon Miranda 2ca0aa7076 Fix testChangeDefaultColumnTest.
I split testMigrateProfileId into two tests: one testing the migration
and one testing changing the default column test.

Since testChangeDefaultColumnTest does not migrate any profile ids, the
correct answer is indeed 1 and not 6. Next time I will be sure to run the
tests first :).

Change-Id: I7557e198072ed134c8b42d6187afcb93d388c5a1
2019-03-08 10:58:52 -08:00
TreeHugger Robot 652b9ab5c9 Merge "Revert "Revert "Temporarily make TouchInteractionService direct boot unaware""" into ub-launcher3-master 2019-03-08 16:47:02 +00:00
Jon Miranda 2bc6b934ac Add launcher support for restoring work profile items onto workspace.
Bug: 111301511
Change-Id: I40decf4c763401c97afcc2bfa7954a1f3a03f536
2019-03-07 18:55:16 -08:00
Vadim Tryshev b2b6fbbe66 Merge "Logging switching Quickstep on and off for tests" into ub-launcher3-master 2019-03-07 01:21:41 +00:00
vadimt 7977961f73 Logging switching Quickstep on and off for tests
Change-Id: I9ff70850a86542715b5ef88c1f2a492bd3797ab1
2019-03-06 17:08:13 -08:00
Tony Wickham 1c22a2c7a2 Revert "Revert "Temporarily make TouchInteractionService direct boot unaware""
This reverts commit 84062d4b5d.

Reason for revert: We want TouchInteractionService to be direct boot unaware until engineers can flash to a build where sysui expects it to be direct boot aware (sorry for the churn...).

Change-Id: I27c00257819751af52df40467d5a63dc106e1917
2019-03-07 00:34:01 +00:00
vadimt 28b1988289 Attempt to disable assistant and seeing if this helps with lab tests
Change-Id: I4950eeee06555ca199208f678f670c3406b38d5a
2019-03-06 16:22:47 -08:00
Sunny Goyal 371ea051d1 Fixing launcher UI not reapplied properly when IDP changed as a result of display changes
> Removing unnecessary check when binding model data as its safe to bind old data,
  we should just not persist it (that check is already there in model writer)
> Adding additional check in model bind to skip old bind if there are multiple binds

Bug: 126259547
Bug: 118441555
Change-Id: Ic250d2af13797d3e70c6e1fc70da65ebe6ab8d70
2019-03-06 15:41:29 -08:00
Sunny Goyal 826405d095 Merge "Using the new contract for some systemUI constants" into ub-launcher3-master 2019-03-06 21:40:12 +00:00
TreeHugger Robot 5ac7eb1e37 Merge "Updates to app to icon animation, and turns on ADAPTIVE_ICON_WINDOW_ANIM flag." into ub-launcher3-master 2019-03-06 21:34:44 +00:00
Jon Miranda 4334874f1f Updates to app to icon animation, and turns on ADAPTIVE_ICON_WINDOW_ANIM flag.
- getFirstMatchForAppClose now only looks at the current page, since switching
  pages is disruptive and the animation for app closing to an icon on a
  different page is unclear.
- Searches for package name and user id (in case of work profile app)
  instead of component name to handle shortcuts and trampoline activities.

- Adaptive icon background drawable is now always centered

- Fix crash that occurs when ADAPTIVE_ICON_WINDOW_ANIM is off. We were trying
  to set FolderAdaptiveIcon as the background drawable. Simplest solution is
  to not use folder as a search criteria when the flag is off.

- Similar to DragView, FloatingIconView now uses BubbleTextView icon when
  adaptive icon support is not available. This handles legacy-treated apps.

Bug: 123900446
Change-Id: Idaf292bb39d78db511cf2ee04a16b191454846b3
2019-03-06 13:25:22 -08:00
Sunny Goyal b7dafa6a04 Using the new contract for some systemUI constants
Change-Id: I1a0351bc9b1ac5b8fe866a92c1bda93126189543
2019-03-06 12:32:24 -08:00
TreeHugger Robot f520c6ca8e Merge "Do not consume motion events when there is no assistant available" into ub-launcher3-master 2019-03-06 20:17:07 +00:00
Tracy Zhou 202014db2f App icon transitions with app window in overview
Fixes: 123641382
Test: Swipe up and hold from app when SWIPE_HOME is enabled or swipe up from app when it's not
Change-Id: I1bd35b1b96d66a3996f9b24c9a7e896535fa1ca0
2019-03-06 11:55:01 -08:00
Matthew Ng 04d58e841f Do not consume motion events when there is no assistant available
Bug: 112934365
Test: manual
Change-Id: If9254d974a34772357ce32d5ba2734db5a173f6b
2019-03-06 19:43:29 +00:00
Vadim Tryshev cd3df17d80 Merge "Slowing down gestures to get rid of flakiness" into ub-launcher3-master 2019-03-06 19:42:14 +00:00
vadimt 6cd7e864aa Slowing down gestures to get rid of flakiness
Change-Id: If36476e21629fba1a0cf26fb9d2c172097a9c0b5
2019-03-06 11:25:33 -08:00
Tony Wickham 40e0693234 Merge "Revert "Temporarily make TouchInteractionService direct boot unaware"" into ub-launcher3-master 2019-03-06 17:43:15 +00:00
Tony Wickham 84062d4b5d Revert "Temporarily make TouchInteractionService direct boot unaware"
This reverts commit 3a4f503e5d.

Reason for revert: need TouchInteractionService to be direct boot aware for the merge

Change-Id: I5b3c651df77f8df1d5f07245b062f2384cd760a0
2019-03-06 17:31:40 +00:00
Tracy Zhou 74130d2cea Merge "Make task launching interpolators consistent" into ub-launcher3-master 2019-03-06 01:42:40 +00:00
TreeHugger Robot c63e196ea1 Merge "Revert "Add launcher-log-proto-nano rule in Android.bp"" into ub-launcher3-master 2019-03-06 01:02:10 +00:00
TreeHugger Robot 6f74083520 Merge "Revert "Include Launcher3QuickstepLib for tapl"" into ub-launcher3-master 2019-03-06 01:02:08 +00:00
Vadim Tryshev 5b367af3ca Revert "Add launcher-log-proto-nano rule in Android.bp"
This reverts commit 0a13878b96.

Reason for revert: We decided to get launcher dimensions differently in the short-term

Change-Id: I875f0dab36922e7f85f4dff7af1ab1f22a9c4bd8
2019-03-06 00:52:00 +00:00
Vadim Tryshev bcde95efec Revert "Include Launcher3QuickstepLib for tapl"
This reverts commit 494dd8da82.

Reason for revert: Breaks ub tests

Change-Id: I8f0d4a67e7a4cae21f5c9448abcc4d614f730fa4
2019-03-06 00:44:53 +00:00
Tracy Zhou 797210acad Make task launching interpolators consistent
Fixes: 127532177
Test: Manual

Change-Id: I36aba881cc34c3d99af1dc1dd095c6082e2ea815
2019-03-05 16:38:12 -08:00
Tony Wickham 7550c1227e Merge "Fix some issues with MotionPauseDetector" into ub-launcher3-master 2019-03-05 22:00:24 +00:00
TreeHugger Robot cde9f450c4 Merge "Fixing some Launcher crashes because of using old model data even after launcher has reloaded" into ub-launcher3-master 2019-03-05 21:59:31 +00:00
Tony Wickham eb6cb3b943 Merge "Don't allow swipe up for all apps above shelf" into ub-launcher3-master 2019-03-05 21:59:14 +00:00