Commit Graph

8560 Commits

Author SHA1 Message Date
TreeHugger Robot
b3ca6aee2c Merge "Changing min sdk to 25" into ub-launcher3-master 2019-01-29 20:43:01 +00:00
TreeHugger Robot
5aabc55780 Merge "Add springs for recents dismiss animations." into ub-launcher3-master 2019-01-29 20:35:02 +00:00
Jon Miranda
86f6c449a7 Add springs for recents dismiss animations.
Bug: 111698021
Change-Id: If518ba5946ea6fada67f549f2f29e1ab1c89969d
2019-01-29 12:13:57 -08:00
Sunny Goyal
8c48d8bea6 Changing min sdk to 25
Change-Id: I0d28069967854357ca755bf25dec19d4979bdecf
2019-01-29 11:29:52 -08:00
TreeHugger Robot
584b9fa4bf Merge "Fix ToggleableGlobalSettingsFlag on user builds" into ub-launcher3-master 2019-01-29 19:25:11 +00:00
Tony Wickham
776c7e63d3 Fix ToggleableGlobalSettingsFlag on user builds
TogglableFlags are not initalized if !IS_DEBUG_DEVICE. Thus,
trying to read from the ContentProvider produces a NPE.

Also make ENABLE_TASK_STABILIZER global again now that this
fix is in place.

Bug: 123429711
Change-Id: I252e9b3ef4e802e769865f13b14487a36b8e1f82
2019-01-29 11:01:22 -08:00
TreeHugger Robot
9752705e92 Merge "Fix bugs with quickstep springs." into ub-launcher3-master 2019-01-29 18:35:03 +00:00
Sunny Goyal
703ee9f675 Passing proper velocity information when simulating touch events on recents view
Change-Id: I488b8d61c47e49dbdc65b16e2470b171912efc3f
2019-01-28 16:46:48 -08:00
Sunny Goyal
8b2b4e24ee Adding support for swipe and hold to overview from home screen to all-apps
- After the atomic animation ends, overview jumps slightly because the
  normal -> all apps transition puts it at a different position than
  normal -> overview

Bug: 111926330
Change-Id: I6ca359b3ef2fc4d0b6b96229d8bf118bd0db9649
2019-01-28 15:51:19 -08:00
Jon Miranda
f82fd49244 Fix bugs with quickstep springs.
* Listeners weren't getting called properly. We add one listener to the
SpringbjectAnimator and then use that to dispatch to the other listeners.

* We fast finish on both double swipe cases to prevent the shelf from
  ending in an invalid state. This causes a visual jump but this can be
  addressed in follow up CL.

Bug: 111698021
Change-Id: Ifeb55da9dd253d062122a8e1577f94044f688641
2019-01-28 15:47:59 -08:00
TreeHugger Robot
989732be57 Merge "Unifying the two different state listeners" into ub-launcher3-master 2019-01-28 20:34:32 +00:00
Tony Wickham
07f164dc2e Merge "Swipe up to go home, swipe and hold to go to overview" into ub-launcher3-master 2019-01-28 19:59:54 +00:00
Sunny Goyal
7f45514d15 Unifying the two different state listeners
Bug: 123376689
Change-Id: I61d4865044a1bd27ee78002a4083a686233740b7
2019-01-28 11:56:54 -08:00
Tony Wickham
18759647f0 Swipe up to go home, swipe and hold to go to overview
- Pause (swipe and hold) detection based on velocity and acceleration,
  so it feels immediately responsive
- Don't show shelf during swipe; peek when swipe pauses
- Disallow long swipe
- If swiping to go home (we didn't detect a pause), animate window and
  launcher together (not final animation, but mechanism is in place)
- Guarded by SWIPE_HOME flag

Bug: 111926330
Change-Id: Ie4af04517c6688e3d649c2971a1aad197837cb3b
2019-01-28 11:37:33 -08:00
Jonathan Miranda
d52b53e8e5 Merge "Add springs when snapping between pages on the workspace." into ub-launcher3-master 2019-01-28 19:31:23 +00:00
bohu
68c6254fb0 Revert "Make ENABLE_TASK_STABILIZER a toggleable via global settings"
BUG: 123429711

This reverts commit e346b2f910.
Reason: launcher crashes in user build

Change-Id: I57315a7969dd70aa615235ed8425d5b2a05545a6
(cherry picked from commit 612bb6be7c)
2019-01-28 04:48:23 +00:00
Tracy Zhou
7eebfc5649 Merge "Make bounce animations less aggressive" into ub-launcher3-master 2019-01-25 20:36:23 +00:00
TreeHugger Robot
d182943d3d Merge "Updating folder shape when icon shape changes" into ub-launcher3-master 2019-01-25 17:24:13 +00:00
Jon Miranda
71cb80cccb Add springs when snapping between pages on the workspace.
- Behind feature flag QUICKSTEP_SPRINGS
- Springs control settling the page and allow for overscroll for the
  first/last pages

Bug: 111698021
Change-Id: Ib4a9ef59463cc46e31ac0766bf7705612f6c63c1
2019-01-24 21:25:32 -08:00
Tracy Zhou
c49f3de3bd Make bounce animations less aggressive
Users have reported that both home and shelf bounce animations are pretty aggressive. We should limit the number of times that we show bounce animations for both quickstep and non quickstep users so that they can have a less disturbing experience.

Change-Id: I445fc9c7c6ac8a9c0ef34381fa672bf1b0203737
Fixes: 123356757
Test: Manual test
2019-01-24 15:48:20 -08:00
TreeHugger Robot
38e87e8010 Merge "Split LauncherAppTransitionManagerImpl for Go" into ub-launcher3-master 2019-01-24 01:07:34 +00:00
Sunny Goyal
90e3fbca62 Updating folder shape when icon shape changes
> Removing unnecessary threading logic and the code was running on main thread anyway

Bug: 118757840
Change-Id: I7a012db5a0dbe2c23bd6ff2cd39679a803731ee8
2019-01-23 16:43:26 -08:00
Kevin
c4ad03b9ef Split LauncherAppTransitionManagerImpl for Go
Split LauncherAppTransitionManagerImpl common functionality into a base
quickstep app transition class and subclass for recents-specific
implementation. In addition, override the app transition manager to the
appropriate manager depending on the build.

Bug: 114136250
Test: Manual test NexusLauncher, Launcher3GoWithQuickstep
Test: Build Launcher3GoIconRecents
Change-Id: Iab1b5ae0c75af276879d5e12df95f62a514bf571
2019-01-23 14:59:19 -08:00
TreeHugger Robot
95ee747f76 Merge "Adding more events for reproducing race conditions during Launcher start" into ub-launcher3-master 2019-01-23 00:10:40 +00:00
Santiago Etchebehere
222299e278 Merge "Don't render background in PreviewRenderer" into ub-launcher3-master 2019-01-22 20:05:46 +00:00
TreeHugger Robot
8efd678269 Merge "Optimizing :enter - :exit pairs." into ub-launcher3-master 2019-01-18 18:56:52 +00:00
TreeHugger Robot
ce1ffc320f Merge "Add more diags for b/117332845" into ub-launcher3-master 2019-01-18 18:34:59 +00:00
Santiago Etchebehere
3fc41e760a Don't render background in PreviewRenderer
ThemePicker will add the current wallpaper as background instead.

Bug: 122262084
Change-Id: Ib0781abd09afc98a56649888c59074888af1740e
2019-01-17 13:25:59 -08:00
TreeHugger Robot
866a8f984e Merge "Generalize SpringObjectAnimator." into ub-launcher3-master 2019-01-17 17:44:05 +00:00
Jon Miranda
60adc3fb83 Generalize SpringObjectAnimator.
This is in preparation for adding more springs to the state transitions.

Bug: 111698021
Change-Id: I32cd7894e940dae00895799280b244d68400d374
2019-01-16 15:15:56 -08:00
vadimt
13edcc304f Add more diags for b/117332845
Bug: 117332845
Change-Id: I1726e69e8d39e65a39c175f97fe76ef4fa6d5d2b
Tests: No
2019-01-15 13:44:58 -08:00
Hyunyoung Song
cbd01fc3dc Handle null ItemInfo.title for widget list
Bug: 122809947
Change-Id: I2f72fb0e152e93adbb4bc4204d5d688b273452ad
2019-01-15 11:45:33 -08:00
vadimt
cb863750e0 Adding more events for reproducing race conditions during Launcher start
Bug: 120628042
Change-Id: Ifcb6a170e3b227c690eff0255ca3e25cd5d491a5
Tests: StartLauncherViaGestureTests
2019-01-11 18:07:35 -08:00
TreeHugger Robot
ff9571b30f Merge "Adding API to set the current grid" into ub-launcher3-master 2019-01-11 23:29:53 +00:00
Sunny Goyal
7d892ff198 Adding API to set the current grid
Bug: 122262084
Change-Id: Ie356d4a90cf1e5a3715fde62cd3502384856e8b5
2019-01-11 15:09:06 -08:00
Jon Miranda
a77a8c3fa9 Fix bug where onStateTransitionEnd is not called when QUICKSTEP_SPRINGS=false.
We ignore the value of mSpringEnded if springs are disabled.

Bug: 122662526
Change-Id: I66ae98c8d8a4a52dabdf6f75c1fb6d1df0c45318
2019-01-11 14:03:58 -08:00
Tony Wickham
d32e4769fe Merge "Make ENABLE_TASK_STABILIZER a toggleable via global settings" into ub-launcher3-master 2019-01-11 20:40:07 +00:00
Tony Wickham
e346b2f910 Make ENABLE_TASK_STABILIZER a toggleable via global settings
Change-Id: I7ba7b8e0fb8b6b99564fa3ef06dfab06427d8856
2019-01-11 12:00:53 -08:00
TreeHugger Robot
1a956e812c Merge "Recycling taskViews instead of inflating & throwing them away everytime" into ub-launcher3-master 2019-01-11 07:20:55 +00:00
Sunny Goyal
9e4b32f6a3 Recycling taskViews instead of inflating & throwing them away everytime
Bug: 122345781
Change-Id: If86d22729a42b8d5200f24dbf37a568fb9b11a5b
2019-01-10 23:11:52 -08:00
TreeHugger Robot
f9e90aa261 Merge "Fix crash when rendering pending widget preview" into ub-launcher3-master 2019-01-11 02:18:57 +00:00
Winson Chung
0d5ca096a0 Fix crash when rendering pending widget preview
- The pending widget disabled icon drawable is created from the icon backed
  by a hw bitmap, and when a user long presses the widget, we attempt to
  draw the drawable using a canvas backed by a software bitmap.

Bug: 112324288
Test: Pick up a pending app widget
Change-Id: Ied49112a2b03d54691f6db7c65e9267c8bd8e91f
2019-01-10 18:05:15 -08:00
Tony Wickham
23c4fb8128 Merge "Track window rather than shelf when FeatureFlags.SWIPE_HOME = true" into ub-launcher3-master 2019-01-11 00:46:31 +00:00
Tony Wickham
68a716c5ca Track window rather than shelf when FeatureFlags.SWIPE_HOME = true
Bug: 111926330
Change-Id: I439a682df14e4f559aa62b7f589d17acdac1d367
2019-01-11 00:46:24 +00:00
vadimt
920cb92f80 Optimizing :enter - :exit pairs.
Doing so by not letting any events between XXX:enter and XXX:exit
events. This eliminates unnecessary permutations.

Example: 2 threads with 3 enter-exit pairs each would have produced 924
permutations before this, now only 20.

Bug: 120628042
Change-Id: Ia243d273a1d90202011679cc7520ea4c9e43918b
Tests: All tests that use race condition framework
2019-01-10 16:30:04 -08:00
Sunny Goyal
eff44f331c Adding content provider for exposing launcher grid settings
Bug: 122262084
Change-Id: I3e89e0a9400fb3e81f932af3606eb49c36d34894
2019-01-09 17:47:24 -08:00
TreeHugger Robot
238f324ebf Merge "Adding support for putting arbitary attributes in InvariantDeviceProfile" into ub-launcher3-master 2019-01-09 20:21:03 +00:00
Hyunyoung Song
b4d1ca4902 Refresh icon cache for recents when rro overrides the adaptive icon path
Bug: 122472687
Change-Id: I646c3918480740ea322e60252e3ceb006964567f
2019-01-09 11:37:12 -08:00
Jon Miranda
55a32272be Add remote animation for unlocking device.
Removed the workaround we had for animating sysui scrim based on SCREEN_OFF
and USER_PRESENT, since it is now properly handled via the unlock animation.

Bug: 65162781
Change-Id: I5341cc1d3b4f0761b8cf58fdc9fc1b895f2a128e
2019-01-09 10:54:28 -08:00
Tracy Zhou
5a763a25c9 Support live tile in Overview (Pt2) - Complete functionality
- Punch a hole (by erasing part of launcher where current task is rendered) to reveal app surface drawn underneath using surface transform. We use LauncherLayoutListener before reaching OVERVIEW threshold, and TaskView after threshold due to layering constraint (it's above Overview but below All Apps)
- Render live tile following user-trigger scrolling (horizontal and vertical) by tracking the task view rect.
- When user launches the current running app (through the live tile or icon in the app drawer), finish recents animation to app.
- When user launches another app (through Overview or other entry points where user opens an app), take a screenshot of the current running app, switch to screenshot mode and launch the other app.
- Refactor ClipAnimationController#ApplyTransform to consolidate transforming by progress and by getting the current rect of the app on the screen.

Bug: 111697218
Test: manual test

Change-Id: I0ad764399e872f181a9d65dc453f0175f2b58dd1
2019-01-08 23:21:18 -08:00