Commit Graph

17852 Commits

Author SHA1 Message Date
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
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
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 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
Winson Chung c049c80e41 Merge "Fix issue with black flash when swiping up" into ub-launcher3-master 2019-01-10 23:43:35 +00:00
Winson Chung 469864e49e Fix issue with black flash when swiping up
- Ensure we update the background paint whenever the thumbnail is
  bound to the task view (we still draw with the background paint when the
  thumbnail has not yet loaded)
- Ensure that the dim is applied to the background paint even before
  the thumbnail has loaded

Bug: 122612839
Test: Kill launcher, launch overview
Change-Id: Ia09ff49e4641b6a02a37cec3f94f74c2b0b8fd24
2019-01-10 15:31:21 -08:00
vadimt 1b094db2e1 Not precalculating launcher package in Tapl
It may change (say from 'need to choose' or 'nexus launcher' to
launcher3) during the test execution.

Test: Launcher3:com.android.launcher3.ui.AllAppsIconToHomeTest, fallback recents, TaplTests
Change-Id: I529dd5e28749012731af05edd0adaa4b7d205581
2019-01-10 14:54:02 -08:00
TreeHugger Robot be3430a7a6 Merge "Split out recents logic from UiFactory" into ub-launcher3-master 2019-01-10 21:17:29 +00:00
Kevin ec6e41dda1 Split out recents logic from UiFactory
This CL splits out RecentsView specific logic from UiFactory and
overrides it in the Go IconRecents version, stubbing out much of the
functionality.

Bug: 114136250
Test: Manual test NexusLauncher, Launcher3GoQuickstep
Test: Build Launcher3GoIconRecents
Change-Id: I043f7f2b2581831f1a74a80110e9c4c25231c046
2019-01-10 12:57:15 -08:00
TreeHugger Robot dc893208e8 Merge "Better diagnostics for waitForLauncherObject" into ub-launcher3-master 2019-01-10 20:40:04 +00:00
TreeHugger Robot ce08d22f35 Merge "Rename goingToHome to goingToRecents" into ub-launcher3-master 2019-01-10 20:39:17 +00:00
vadimt b4b88afda0 Better diagnostics for waitForLauncherObject
AOSP tests still fail, that's why.

Test: LauncherInstrumentation.getWorkspace
Change-Id: I98610040e571b5a7cb656908cfea328f1ae08c2c
2019-01-10 12:00:08 -08:00
Tony e873c9623c Rename goingToHome to goingToRecents
Bug: 111926330
Change-Id: I92890828e74f99768723976a0415f234eb2de5f4
2019-01-10 11:46:39 -08:00
Winson Chung 04e888d60c Merge "Moving some more stuff behind the live tile feature flag" into ub-launcher3-master 2019-01-10 19:37:54 +00:00
TreeHugger Robot 4aa8862bd0 Merge "Adding content provider for exposing launcher grid settings" into ub-launcher3-master 2019-01-10 18:02:05 +00:00
Winson Chung 5e35040c75 Moving some more stuff behind the live tile feature flag
- With live tiles disabled, we are still calling
  LauncherLayoutListener.update with shouldFinish=true, which can cause
  the layout listener to be closed prior to the screenshot being taken
  and shown.  When we enable live tiles, it should obliviate the need to
  switching to screenshot as well.

Bug: 122612839
Change-Id: I5c951ba2a486051016e9fed49e7f8f5dd015f8ea
2019-01-09 18:13:19 -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