Commit Graph

33301 Commits

Author SHA1 Message Date
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
TreeHugger Robot 0428616762 Merge "Adding support for swipe and hold to overview from home screen to all-apps" into ub-launcher3-master 2019-01-29 00:04:59 +00: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
Sunny Goyal e0c5f5d0ab Fixing jump when swiping up because startDisplacement was getting reset in the middle
Change-Id: I6b8be9505ec2bd22bbc76efe81b6f00231645267
2019-01-28 13:02:57 -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
TreeHugger Robot 80d03d1fa4 Merge "Move overview component logic from OverviewCommandHelper" into ub-launcher3-master 2019-01-28 19:43:32 +00: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
bohu 612bb6be7c 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
2019-01-27 13:40:21 -08:00
android-build-team Robot 8d5d60c49b Snap for 5262136 from b3ef909b5b to qt-release
Change-Id: Icc0b2ba2dcf1ea008d952f6cbb23408455f6903e
2019-01-27 04:07:22 +00:00
Kevin 2a9e3a66bc Move overview component logic from OverviewCommandHelper
OverviewCommandHelper previously managed both updating the current
overview component and interfacing inputs to switch to the
overview activity. This CL splits out the former to a separate
class so that the responsibilities are more focused and the code
can be reused more easily.

Test: Manual test NexusLauncher, Launcher3QuickStepGo by switching to
overview
Change-Id: I4e90918703f351d235f3cb0a45079cbb31b753ab
2019-01-25 15:17:36 -08:00
Tracy Zhou 7eebfc5649 Merge "Make bounce animations less aggressive" into ub-launcher3-master 2019-01-25 20:36:23 +00:00
Vadim Tryshev 44ecb9d7cb Fix swiping up to Overview in landscape mode
Bug: 121280703
Change-Id: I9802c6f547a592be891e7c4f5e8db8dadaa0425d
Tests: TaplTests, locally modified to force Landscape
2019-01-25 12:29:42 -08:00
vadimt 3f8591f003 Removing diagnostics
Now that b/117332845 is fixed

Bug: 117332845
Change-Id: If8c137b9c7cc386dfc5b5af4b81a3efbfa33f770
Tests: None
2019-01-25 10:35:53 -08:00
TreeHugger Robot d182943d3d Merge "Updating folder shape when icon shape changes" into ub-launcher3-master 2019-01-25 17:24:13 +00:00
Hyunyoung Song b3ef909b5b Merge branch 'ub-launcher3-master', build 5258802
Test: Manual

Bug:111697218  [Quickstep 1.1] Integrate PiP / Live Tiles into Quickstep
Bug:111698021  [Quickstep 1.1] Improve motion within Quickstep
Bug:111699315  [Quickstep 2] Improve Quickscrub / switch gesture
Bug:111926330  [Quickstep 2] Nav bar, gestures, edge-to-edge, and OEM updates
Bug:112324288  Pixel launcher keeps on crashing when trying to remove a widget
Bug:114136250  Have a more spartan RecentsActivity on android go
Bug:117332845  testPendingWidget_autoRestored is failing on TAP
Bug:118206886  Add fallback launcher mechanism
Bug:118319143  1Digital Wellbeing - Implement showing app's remaining time in Launcher
Bug:119500058  Tests switch Launcher to a state without icons
Bug:120628042  Add race condition repro tests
Bug:122262084  Expose Launcher grid customization options
Bug:122262946  Each app installed from playstore occupies new workspace
Bug:122345781  Inflation happens and a binder call during swipe up gesture, that may cause jank
Bug:122347746  Jank in app closing animation for Maps on taimen
Bug:122472687  Recents icon shape should change when theme changed.
Bug:122545624  Iconloaderlib: make createIconBitmap in BaseIconFactory a public method
Bug:122612839  Flash of old snapshot when swiping up
Bug:122662526  Test broken: can't swipe back from AllApps to Overview
Bug:122809947  [C2][F2] Launcher keeps restarting after Setup wizard, it impacts testing seriously.
Bug:65162781  Status bar gradient sometimes slides up when unlocking
Change-Id: I22774df74963efb9189ea2a8bf3cdace6361c988
2019-01-24 22:33:58 -08: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
TreeHugger Robot f530c4032b Merge "Adding meta-data for grid options provider" into ub-launcher3-master 2019-01-25 01:07:44 +00:00
TreeHugger Robot 90048de773 Merge "Disable window corner rounding on some devices" into ub-launcher3-master 2019-01-25 00:31:52 +00:00
Lucas Dupin a2074857dc Disable window corner rounding on some devices
Bug: 122347746
Test: visual; on taimen, marlin and walleye
Change-Id: If6ac1c75297dd25ad40d3ec61537e8793bceceb7
2019-01-24 16:19:49 -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
Sunny Goyal 6dda58a31b Adding meta-data for grid options provider
Bug: 122262084
Change-Id: I4b07f17eb9bad351a48e2d612159fbe2d33cf1dd
2019-01-24 15:40:55 -08:00
TreeHugger Robot f81da5f4ee Merge "Removing querying whether DWB time limit is for a group" into ub-launcher3-master 2019-01-24 23:07:48 +00:00
vadimt d4c45e8104 Removing querying whether DWB time limit is for a group
This API is removed for Q.

Bug: 118319143
Test: Manual
Change-Id: I1605ba14a914bfe018c4a2f6d974afaea7e51e05
2019-01-24 13:52:49 -08:00
Kevin Han 57f88bd0ec Revert "Remove OverviewToAllAppsController for Go"
This reverts commit 792fcc3aec.

Reason for revert: This class actually manages more than just overview to all apps transitions, and Go needs some form of this for landscape transitions state transitions

Change-Id: I073dcc94dda06ff8d87166d2674927df8f2418f5
2019-01-24 20:36:04 +00:00
Kevin 792fcc3aec Remove OverviewToAllAppsController for Go
Go's recents does not support an overview to all apps transition (as
there will be no hotseat and swiping will be used to navigate the view
itself). As a result, we never need the controller, so we don't take in
the class as a source and do not add it as a touch controller.

Bug: 114136250
Test: Manual test Launcher3QuickstepGo, NexusLauncher,
Launcher3IconRecentsGo
Change-Id: I7fff9d1e8727bd978e84462436e37219c57f7af6
2019-01-23 17:12:44 -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
TreeHugger Robot 886f1a1115 Merge "Split OverviewState for IconRecents Go" into ub-launcher3-master 2019-01-23 23:37:41 +00: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
Kevin 932ab718fd Split OverviewState for IconRecents Go
Split common functionality in OverviewState so that it can be reused in
both implementations for IconRecents Go and non-Go.

Bug: 114136250
Test: Manual test NexusLauncher, Launcher3GoWithQuickstep
Test: Manual test IconRecentsGo (gets to recents screen w/o crashing)
Change-Id: Ibff5d3573b3b22dcdfda1b0662d4dd219d2e382f
2019-01-23 13:01:57 -08:00
android-build-team Robot cf1e4c3e92 Snap for 5251505 from 6542ba6c14 to qt-release
Change-Id: I3c535a79845ab31045cb5dfb1a93e834d6b7bb4b
2019-01-23 04:09:51 +00: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
Jonathan Miranda 494963c74a Merge "Revert "Remove scrim fade animation when returning to launcher."" into ub-launcher3-master 2019-01-22 21:12:37 +00:00
TreeHugger Robot c652afc0d9 Merge "Split out logic in RecentsViewStateController." into ub-launcher3-master 2019-01-22 20:33:24 +00:00
Santiago Etchebehere 222299e278 Merge "Don't render background in PreviewRenderer" into ub-launcher3-master 2019-01-22 20:05:46 +00:00
Kevin 231fe1cd7b Split out logic in RecentsViewStateController.
Split logic in RecentsViewStateController based off code that should be
shared and code that should not between Go icon recents and regular
quickstep recents. The Go version will maintain changes in
scale/translationY as per normal recents.

Bug: 114136250
Test: Manual test NexusLauncher, Launcher3GoQuickstep
Test: Build Launcher3GoIconRecents (no longer crashes immediately!)
Change-Id: Id060d6f8f0b68edee4becdf6b91b876bb8dbcefb
2019-01-22 11:52:53 -08:00
TreeHugger Robot 8689a4afc3 Merge "Split PortraitOverviewStateTouchHelper for Go" into ub-launcher3-master 2019-01-22 19:21:34 +00:00
TreeHugger Robot 1e4ba21705 Merge "Add icon recents view for Go" into ub-launcher3-master 2019-01-22 19:11:33 +00:00
Chih-hung Hsieh 6542ba6c14 [automerger skipped] Merge "Create OWNERS file in master branch" am: 7ac5a9e75a am: a2823e9249
am: f9f4893a5b -s ours
am skip reason: change_id I9a0f4ae526179f4e5bd7420b30d10c53c1b427bf with SHA1 72c8c311ba is in history

Change-Id: I3e773095f19634a39034855fb28ffc9ce7d2699b
2019-01-21 22:38:32 -08:00
Chih-hung Hsieh f9f4893a5b Merge "Create OWNERS file in master branch" am: 7ac5a9e75a
am: a2823e9249

Change-Id: I4fb5dd3d9e0713dbc48ea163ea0abbb64c257842
2019-01-21 22:34:25 -08:00
Chih-hung Hsieh a2823e9249 Merge "Create OWNERS file in master branch"
am: 7ac5a9e75a

Change-Id: I8faf7a4948cd3a59dce6230da7816c37e9f1f49a
2019-01-21 22:30:21 -08:00
Chih-hung Hsieh 7ac5a9e75a Merge "Create OWNERS file in master branch" 2019-01-22 06:21:36 +00:00
vadimt 2cf09dd500 Using "remaining time" API
Given the execution schedule restrictions, this will first use
reflection, and afterwards will switch to a "solid" API.

Bug: 118319143
Change-Id: I3410a043e81b09212cda256252d85ccf37381d6e
Tests: Manual
2019-01-18 18:34:12 -08:00
Chih-Hung Hsieh 6896b74a89 Create OWNERS file in master branch
Test: adding a meta file and doesn't affect build
Bug: 117838787
Change-Id: I9a0f4ae526179f4e5bd7420b30d10c53c1b427bf
Merged-In: I9a0f4ae526179f4e5bd7420b30d10c53c1b427bf
(cherry picked from commit 72c8c311ba)
2019-01-18 13:26:57 -08:00
TreeHugger Robot 3d996ace68 Merge "Using hourglass icons for DWB toast" into ub-launcher3-master 2019-01-18 21:01:38 +00:00