Commit Graph

18115 Commits

Author SHA1 Message Date
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
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
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
TreeHugger Robot 3d996ace68 Merge "Using hourglass icons for DWB toast" into ub-launcher3-master 2019-01-18 21:01:38 +00:00
vadimt 534178c926 Using hourglass icons for DWB toast
Bug: 118319143
Change-Id: I67018db3ceb8b6c0d863a46c9a9148013c68c1f7
Tests: Manual
2019-01-18 12:50:08 -08:00
Kevin 5ec7b98c66 Add icon recents view for Go
Add a specific view for Go's icon recents. We also add a few properties
for use in future refactors.

Bug: 114136250
Test: Build Launcher3GoIconRecents
Change-Id: I9852679256158344ab276d1c477f55b7dd2d6a52
2019-01-18 11:22:49 -08:00
TreeHugger Robot 8efd678269 Merge "Optimizing :enter - :exit pairs." into ub-launcher3-master 2019-01-18 18:56:52 +00:00
TreeHugger Robot 6a874a583e Merge "Switching from mDevice.pressHome() to mLauncher.pressHome()" into ub-launcher3-master 2019-01-18 18:35:50 +00:00
TreeHugger Robot ce1ffc320f Merge "Add more diags for b/117332845" into ub-launcher3-master 2019-01-18 18:34:59 +00:00
TreeHugger Robot 4bf9336d5f Merge "Implementing available part of UX spec for DW toast" into ub-launcher3-master 2019-01-18 00:30:13 +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
vadimt 759db43f3b Implementing available part of UX spec for DW toast
See https://docs.google.com/presentation/d/1AepsnLeKcRhjMW35SkB5yMKO3u6waigug8Tyfe0LO5o/edit#slide=id.g4c5ab81849_0_0

Also using time formatting code copy-pasted from Google DWB app.

Bug: 118319143
Tests: Manual
Change-Id: I84392d7655f402e38cf4c46ae530d06f755a7df8
2019-01-17 12:57:02 -08:00
Kevin 69d05656c6 Split PortraitOverviewStateTouchHelper for Go
Split out the logic in PortraitOverviewStateTouchHelper that is
dependent on the recents view implementation. This is done through a
separate helper class that we override on Go to stub out most of the
behavior.

This results in the Go version not supporting swipe transitions from
the recents state which is desired since we would otherwise risk
confusion over whether the swipe should go to the view or to the
transition (note that we will also take out the hotseat in this state).

Bug: 114136250
Test: Manual test NexusLauncher and l3goWithQuickstep
Test: Build l3goWithQuickstepIconRecents
Change-Id: I9b0e9c05171d279d03bbcb7f05344fa425f34b3e
2019-01-17 10:19:43 -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
TreeHugger Robot 2e4672db8f Merge "Handle null ItemInfo.title for widget list" into ub-launcher3-master 2019-01-16 19:29:39 +00:00
Jonathan Miranda 45d9c63d0b Revert "Remove scrim fade animation when returning to launcher."
This reverts commit dad8d4434d.

Reason for revert: Bottom scrim is still visible so it creates a hard line when animation starts

Change-Id: If3e2a8e0965d40924a475f077d3c42e64d4d382d
2019-01-16 19:20:10 +00: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 982ff0714f Fixing swipe from background gesture
Change-Id: I5e49dca41308292250d8485faa4df56605cd94ce
Tests: StartLauncherViaGestureTests, TaplTests
2019-01-14 15:54:24 -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
vadimt 579c8c200d Switching from mDevice.pressHome() to mLauncher.pressHome()
Using mDevice.pressHome() was a workaround for the shifted-search bug.

Change-Id: I740db2109af531c55f8ab59a42998bdc329fb72e
Tests: affected tests
2019-01-11 17:32:05 -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
TreeHugger Robot 683f925393 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2019-01-11 22:41:10 +00:00
Bill Yi 3f4596c966 Import translations. DO NOT MERGE
Change-Id: I0b697bc4b99b99e44f905f60fd1ee9a39be246c3
Auto-generated-cl: translation import
2019-01-11 14:10:36 -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
vadimt 367a485599 Fixing menu tests when context menu caption is the first line
The tests mistakenly took the caption (if on top) as the first context
menu item.

Change-Id: Ibd3264814f2c818742ab164503bf7136fedcde31
Tests: com.android.launcher3.ui.ShortcutsToHomeTest
2019-01-11 13:26:02 -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 3acb84b2a0 Merge "Not precalculating launcher package in Tapl" into ub-launcher3-master 2019-01-11 19:33:02 +00: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
Tony Wickham c42ff8142a Merge "Always set mPassedInitialSlop = true in onQuickStep()" into ub-launcher3-master 2019-01-11 00:42:19 +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
Tony Wickham 9e94793b24 Always set mPassedInitialSlop = true in onQuickStep()
This way we always start tracking the window when the system tells
us to, if we're not already.

Change-Id: Id9c1f0d9672f43d877f114839b1489a83ac713ef
2019-01-10 16:25:25 -08:00