Commit Graph

1641 Commits

Author SHA1 Message Date
TreeHugger Robot
d0d8e2c6d2 Merge "Implement fallback recents activity for Go" into ub-launcher3-master 2019-02-19 23:26:53 +00:00
TreeHugger Robot
f913db949e Merge "Removing support for long swipe to all-apps" into ub-launcher3-master 2019-02-19 22:53:00 +00:00
Kevin
750bbe08da Implement fallback recents activity for Go
Implement recents activity for Go for when the default launcher does not
have recents implemented. To do this, we factor out some common recents
activity functionality from RecentsActivity and extend it to make a Go
specific activity that pops in the icon recents fragment.

Bug: 114136250
Test: Manual test NexusLauncher and Launcher3QuickstepGo by installing a
quickstep-less launcher and setting it to default
Change-Id: I936568489e8966da4a62e4b779ae660a220f2aeb
2019-02-19 14:12:42 -08:00
Tony Wickham
8d7778fa37 Merge "Dispatch ACTION_POINTER_UP to recents view" into ub-launcher3-master 2019-02-19 21:47:06 +00:00
Sunny Goyal
3432a2afa5 Removing support for long swipe to all-apps
Change-Id: I29e6b2d283126e584de6e49b6f658c153d582d6b
2019-02-19 13:07:37 -08:00
TreeHugger Robot
06ed106de2 Merge "Some live tile and state fixes" into ub-launcher3-master 2019-02-19 20:24:21 +00:00
Tony Wickham
aa66a288c3 Dispatch ACTION_POINTER_UP to recents view
Bug: 123539954
Change-Id: I298599445d644eb82e05a116ce85425d239839fe
2019-02-19 11:35:25 -08:00
Winson Chung
201840ba23 Merge "Disable Launcher when starting in a managed profile" into ub-launcher3-master 2019-02-19 18:38:56 +00:00
Sunny Goyal
462551be9c Some live tile and state fixes
> Removing LayoutListener which was causing relayouts in the middle of
  the transitions
> Fixing some logging in MultiStateCallback
> Using an overlay to draw the hole for the live tile

Bug: 124451190
Change-Id: I91351f76ec7cc2793a835f40002bfd912939d40d
2019-02-18 14:59:18 -08:00
Winson Chung
9fea3de8f5 Disable Launcher when starting in a managed profile
- The launcher package is automatically enabled for work profiles due to
  DPM interpreting it as a critical component since it does not have any
  launchable activities. Once enabled, it is possible for an explicit
  broadcast to update smartspace or assistant state to trigger the process
  to be created for the work profile user, which ends up initializing logic
  which may call into LauncherApps (which is not allowed from the work
  profile).

  As a workaround, we disable the launcher application immediately upon
  detecting that it is running in a work profile.

Bug: 120550382
Change-Id: I72c52fe598d41440a1fb59304b494a000277384b
2019-02-15 15:59:08 -08:00
Vadim Tryshev
266415f11e Merge "Unifying setup for AOSP and Nexus Tapl Tests" into ub-launcher3-master 2019-02-15 20:33:08 +00:00
vadimt
e12f5c3b8b Unifying setup for AOSP and Nexus Tapl Tests
Test: TaplTestsQS
Change-Id: Ib699566f13980bd89335ad17b2a694e37b83e2ae
2019-02-15 12:08:19 -08:00
TreeHugger Robot
d202bf40bf Merge "App to home animation zooms into the app icon." into ub-launcher3-master 2019-02-15 02:05:27 +00:00
TreeHugger Robot
a18f2b1470 Merge "Fixing alt-tab is properly dispatched to the RecentsView" into ub-launcher3-master 2019-02-15 01:36:31 +00:00
Jon Miranda
0128d3f6e0 App to home animation zooms into the app icon.
- Created FloatingIconView which is now used by both the app close and
  app open animation.
- getItemLocation in DeviceProfile is used to get an item's final location
  since getLocationOnScreen may return a View's location mid-animation.
- Added getFirstMatchForAppClose which is optimized to return for best
  visual animation.
- Also fixes app open RTL bug.
- Next CL will use AdaptiveIcons and FolderShape reveal animator to match
  the app icon to the app window.

Bug: 123900446
Bug: 123541334
Change-Id: Ief75f63fc5141c1ee59d4773946d08794846cb31
2019-02-14 16:54:45 -08:00
Vadim Tryshev
6ffac2ea78 Merge "Sending state ordinals from Launcher to TAPL" into ub-launcher3-master 2019-02-14 22:35:52 +00:00
Sunny Goyal
b52ff2269b Fixing alt-tab is properly dispatched to the RecentsView
Change-Id: I14a5569877bc0e7fe3aa30d3cd1fa74920b3e9db
2019-02-14 13:49:57 -08:00
vadimt
42a88b9681 Sending state ordinals from Launcher to TAPL
This improves diagnostics.

Test: TAPL tests
Change-Id: I0ebb533513405372ea7c58a36910160cfb6d8368
2019-02-14 13:08:01 -08:00
Sunny Goyal
3f271d4b7f Deleting Quickscrub related logic
Bug: 124255113
Change-Id: Ic5f2338f1e3ae0a0cfb08f822dee0e01ae54a7b0
2019-02-14 11:40:03 -08:00
Tracy Zhou
435041de60 Merge "Fix live tile flashing" into ub-launcher3-master 2019-02-14 01:04:58 +00:00
Tracy Zhou
ef5d47e2df Fix live tile flashing
The launcher is in background app state while user swipes up from app before they reach Overview. In that state, translationY is set which triggers update to the live tile window that interferes with window rendering using LauncherLayoutListener.

Change-Id: I9c705a16e54dbb5d94ea97e2457e36ce28cf0e1a
Fixes: 124392764
Test: Manual
2019-02-13 16:46:35 -08:00
Sunny Goyal
8374b0dd8e Using the new Touch dispatcher
Change-Id: Ib3cf82f6e0360e6e9609a8a3930125883e6ea997
2019-02-13 16:36:42 -08:00
Tony Wickham
f7dccade26 Merge "Add timeout for motion pause detector" into ub-launcher3-master 2019-02-13 23:24:27 +00:00
Vadim Tryshev
0baa2b803a Merge "Quick plug to solve flakiness caused by switching QS on/off" into ub-launcher3-master 2019-02-13 18:45:35 +00:00
Sunny Goyal
534a73fe7e Merge "Removing use of onQuickstep event and determining the touchSlopPassed in Launcher" into ub-launcher3-master 2019-02-13 18:21:14 +00:00
Sunny Goyal
a002c6c19d Removing use of onQuickstep event and determining the touchSlopPassed in Launcher
Bug: 124255113
Change-Id: If6fe77c7086a30775f78ec2a86251cb6bcd3c4c4
2019-02-13 10:25:21 +00:00
Tracy Zhou
6e4058c5df Merge "Fix live tile regression in quick switch mode" into ub-launcher3-master 2019-02-13 08:34:32 +00:00
Tony Wickham
078ff8aa8b Add timeout for motion pause detector
If no motion is added for some time, assume motion has paused.

Change-Id: I12b5d55abb0ed2244a082853546224c683e073ea
2019-02-12 16:54:48 -08:00
TreeHugger Robot
5387c1109c Merge "Adding temporary workaround for for home click getting ignored" into ub-launcher3-master 2019-02-12 21:40:36 +00:00
Sunny Goyal
56e3685904 Adding temporary workaround for for home click getting ignored
Also fixing a concurrent modification exception is recents callback

Bug: 124239413
Change-Id: Id7bf17505843c8e20bdaa3fc89481acd4e94290a
2019-02-12 13:30:04 -08:00
Tracy Zhou
f11ffc7497 Fix live tile regression in quick switch mode
We registered a hook to call updateFinalShift() when recents view has scroll change to support scrolling recents side to side during swipe up from an app (ag/5514447). This breaks the current flow of quick switch in live tile mode where we close the LauncherLayoutListener upon quickswitch transition is finished. (Since updateFinalShift is called, we reopen LauncherLayoutListener.)

Further, live tile previously had an assumption that live tile can only go off screen on the right. Because getGlobalVisibleRect() has the limitation of only getting coordinates on the screen, our calculation to fill the missing offscreen part to transform app window does not work for the case when live tile is going off screen on the left (e.g. quick switch).

Fixes: 123915937
Test: Turn off quick switch and scrub from an app. Verify that live tile rendering is correct.

Change-Id: I5fa7e38b80309f083227240c24847f88a2c1cc28
2019-02-12 13:25:46 -08:00
Sunny Goyal
8a148aa9f7 Adding placeholder methods for upcoming aidl changes
Change-Id: I0f350a415dc97ffeb15e0a54c1f4c5c2263c8a71
2019-02-12 12:48:27 -08:00
TreeHugger Robot
edba28478c Merge changes Ibe5f1cdc,I219f48b2 into ub-launcher3-master
* changes:
  Increase icon cache version
  Not using reflection for app-usage API
2019-02-12 18:08:39 +00:00
Sunny Goyal
beb5d7cadb Always initializing the TouchConsumer on the main thread
> Creating a separate shared state class instead of storing the full TouchConsumer
> Moving all RecentsAnimationCallback on the main thread, instead of routing it through
  the event queue

Bug: 124255113
Change-Id: I7891dfa4ad4a8d81152b7b36991682535fd54f46
2019-02-11 15:56:31 -08:00
vadimt
d4090431f5 Quick plug to solve flakiness caused by switching QS on/off
Will be followed by a better fix.

Test: Stress-testing with TAPL
Change-Id: Ie0ca1e9b7c6c9a885c752df5f76903898615e8fb
2019-02-11 10:52:31 -08:00
Lucas Dupin
330b857c42 Fixed corner radius during app launch
Change-Id: I9490bc359b93f9ca8b7c1dad2d93e90d0fba5ac8
Fixes: 122554807
Test: visual
2019-02-09 22:48:27 +00:00
Sunny Goyal
451987c5e6 One thread to rule them all
Moving all quickstep event handling to main thread and removing
multi-thread logic.
Using system input dispatcher for handling event queue to that
velocity tracker works properly on different threads.

Bug: 123833655
Change-Id: I7c5004c32411da4144103112905ff6b40ed700ab
2019-02-08 12:33:22 -08:00
vadimt
2341e5b09f Not using reflection for app-usage API
Plus, avoiding cross-user calls (pausing work profile apps is not
supported anyways).

Bug: 118319143
Test: Manual
Change-Id: I219f48b24e56ccc359384ff072d9aa57c545925f
2019-02-07 17:18:12 -08:00
Hyunyoung Song
91cdbe58a2 Merge "Revert "Not using reflection for all limit API"" into ub-launcher3-master 2019-02-07 20:15:49 +00:00
Hyunyoung Song
9ca02567dd Revert "Not using reflection for all limit API"
This reverts commit 8baf921416.

Reason for revert: Constant crash whenever entering recents view

Change-Id: I695aa43686367379b3921a2665db490f6ac983a1
2019-02-07 19:29:16 +00:00
TreeHugger Robot
fa8df691d1 Merge "Fix duration when scrolling back to launch LAST_TASK" into ub-launcher3-master 2019-02-07 00:56:57 +00:00
Lucas Dupin
1ea481ad83 Fix issue where animation progress would be overridden
Change-Id: I7ce6452a5cf412b74b404e8c3400b60660998f22
Fixes: 124001115
Test: visual
2019-02-06 22:21:53 +00:00
vadimt
8baf921416 Not using reflection for all limit API
Bug: 118319143
Test: Manual
Change-Id: I666f19450403f1020a52136a74aa97383c666345
2019-02-06 12:09:18 -08:00
Tony
3c477492de Fix duration when scrolling back to launch LAST_TASK
Bug: 111926330
Change-Id: Ief8b5eb3dc2c50a1a06ea9e3adbf89f6c1cf157b
2019-02-06 11:20:56 -05:00
Tony
f98121939d Allow for continuous scrolling to previous tasks
Starting a new touch interaction on the nav bar while going to a new task
cancels that animation to allow for continuous scrolling.

Specifically, the new interaction still creates a new touch consumer and
WindowTransformSwipeHandler, but reuses the previous RecentsAnimationState
in order to defer finishing it.

Bug: 111926330
Change-Id: Ia4f5f8dbb2b3ae70791676f1e3e5ce84deb22f74
2019-02-05 15:47:13 -05:00
Tony
51745853cb Fix launcher animation component not playing if springs are enabled
Change-Id: I9fe919034f41bb9db3e1acdfd8e87a31c4cf7865
2019-02-05 15:03:32 -05:00
TreeHugger Robot
de9a859c26 Merge "Disable tests relying on event sequence until gestural nav settles" into ub-launcher3-master 2019-02-05 00:34:12 +00:00
vadimt
7d67d53aaf Disable tests relying on event sequence until gestural nav settles
Bug: 120628042
Test: N/A
Change-Id: I3166c2660a5170434b33bbd5eddceddd483e7502
2019-02-04 14:18:24 -08:00
Vadim Tryshev
fe9b3e6a07 Merge "Updating sysui_shared" into ub-launcher3-master 2019-02-04 20:29:42 +00:00
Vadim Tryshev
453fb8b7d8 Merge "Support for a test for pausing an app via Overview." into ub-launcher3-master 2019-02-04 19:53:24 +00:00