Commit Graph

11894 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
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
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
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
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
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
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
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
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
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
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
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
ce08d22f35 Merge "Rename goingToHome to goingToRecents" into ub-launcher3-master 2019-01-10 20:39:17 +00: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
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
TreeHugger Robot
d7f9990a47 Merge "Reusing LayoutListener instead of creating a new one everytime" into ub-launcher3-master 2019-01-10 01:17:25 +00:00
Sunny Goyal
8304c32077 Reusing LayoutListener instead of creating a new one everytime
Bug: 122345781
Change-Id: Ica43849030afb497b0444e9ce474e7c3bdb9ee73
2019-01-09 16:43:00 -08:00
Sunny Goyal
276fb35bd9 Avoiding new view creation and additional layout during app launch
Change-Id: Ia9589b70bcdc64a2174b52aabaa1ab392800a081
2019-01-09 16:19:09 -08:00
Hyunyoung Song
1d3e37ecf2 Merge "Refresh icon cache for recents when rro overrides the adaptive icon path" into ub-launcher3-master 2019-01-09 20:13:14 +00:00
TreeHugger Robot
c8a926941f Merge "Fix flickering when long swiping from an app" into ub-launcher3-master 2019-01-09 20:12:26 +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
Tony Wickham
44e6534e5f Fix flickering when long swiping from an app
Since we update the progress of the launcher anim when
recents scrolls, we were essentially jumping back to
the overview state every couple frames. Now we don't
update that shift once we're in long swipe mode.

Bug: 111926330
Change-Id: Ib751becb70df71679ff7557f113d6339a39777d0
2019-01-09 10:57:37 -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
Jon Miranda
7e390c3b17 Revert "Revert "Add spring to shelf for home <-> overview <-> all apps state transitions.""
This reverts commit 2bdac8f7e5.

Reason for revert: Reverting and added fix to crash

Change-Id: I20508eb05c85ba5dfba52630aa9becea270f890b
2019-01-08 16:43:45 -08:00
Tony Wickham
1ff1231baf Merge changes I13dfced7,I1ff160cf into ub-launcher3-master
* changes:
  Scale adjacent task icon during swipe up
  Scroll recents side to side during swipe up from an app
2019-01-08 21:08:08 +00:00
Tony Wickham
678e295ce4 Scale adjacent task icon during swipe up
Bug: 111699315
Change-Id: I13dfced7b32213590b1be267e6ddd1a2a0caddab
2019-01-08 20:54:32 +00:00
Sunny Goyal
d6d503827b Moving some system calls off the main thread
Bug: 122345781
Change-Id: I7ab364ac62ea56b7355b86cae3d8d731cc9b2506
2019-01-08 11:01:51 -08:00
Sunny Goyal
e23c213abb Task stabilization improvement
> Using that task stach changes for maintaining the task order instead of
  using the UI load signals.
> On fast task switches, temporary task changes do not contribute to the task
  order. Only the final task is braught to the top of the list
> Removing and add tasks do not reset the order

Change-Id: I576cb4ffeec66e115acd327d58c59920c149aaca
2019-01-07 14:39:15 -08:00
Tony Wickham
ce9cbda1b7 Scroll recents side to side during swipe up from an app
- Swiping straight up and down works the same as before.
- We dispatch the MotionEvents to RecentsView so that it scrolls if you
  swipe side to side as you swipe up.
- As RecentsView scrolls, we offset the window to match the position of
  the first task
- If you scroll or fling towards the previous app, it will settle on it
  and launch it.

Bug: 111699315
Change-Id: I1ff160cfc3ca66302a2506d18a4788015de75b94
2019-01-07 16:24:08 -06:00
Winson Chung
0a9261b3f3 Merge changes from topic "ub-context-compat" into ub-launcher3-master
* changes:
  SyncRtTransactionApplier -> SyncRtTransactionApplierCompat
  Track when plugins are disabled due to crashes.
  Updating shared lib for context wrapper.
2019-01-05 00:20:23 +00:00
TreeHugger Robot
e754bad967 Merge "Revert "Add spring to shelf for home <-> overview <-> all apps state transitions."" into ub-launcher3-master 2019-01-05 00:13:53 +00:00
Jonathan Miranda
2bdac8f7e5 Revert "Add spring to shelf for home <-> overview <-> all apps state transitions."
This reverts commit e018711aac.

Reason for revert: investigating crash

Change-Id: I157b61a9f1bd46e2fcd3f2f883d3b5c23ca314af
2019-01-05 00:04:20 +00:00
Sunny Goyal
3ae337e5fb Fixing quick switch with task stabilization
> Using the scroll of the current page instead of page 0
> Starting switch from current page instead of page 0
> Disable task flip animation accordingly

Change-Id: I29b9c6dafca1e856e634f471aa2b1b667158a790
2019-01-04 14:49:52 -08:00