Commit Graph

1493 Commits

Author SHA1 Message Date
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
TreeHugger Robot
80a6d72bc2 Merge "Add icon recents fragment for IconRecents" into ub-launcher3-master 2019-01-09 02:28:04 +00: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
Kevin
2f6cb3167d Add icon recents fragment for IconRecents
Split out overview_panel from recents and override it with IconRecents
version to replace the recents view entirely.

Currently, on the IconRecents build variant, as expected, this hits a
class cast exception since many quickstep classes assume the overview
panel is an instance of RecentsView. All other variants build and push
fine.

Bug: 114136250
Test: Build + push NexusLauncherDebug, Launcher3Go,
Launcher3GoQuickstep, Launcher3GoQuickstepIconRecents
Change-Id: I3ac7331772e53ee81cb1735a709b4fb7b3bdb78c
2019-01-08 09:55:13 -08:00
TreeHugger Robot
ea3ff5e338 Merge "Add build variant for go-specific recents." into ub-launcher3-master 2019-01-07 23:56:29 +00: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
Kevin
2857871b7f Add build variant for go-specific recents.
This CL sets up the source directories to build a Go version of
quickstep recents/icon recents. This is accomplished by splitting the
quickstep resources/sources into two groups: the base source and
sources that should be overridden (recents_ui_overrides). The new Go
recents variant then takes the base and combines it with the sources
in go/quickstep which should replace the ones in recents_ui_overrides.

As of now, no classes have been moved yet, so there
are only placeholder files.

In addition, this modifies the make and gradle files to reflect the new
sources.

Bug: 114136250
Test: build all targets via tapas, build all APKs from IDE
Change-Id: I6d0a4d93ab1c38d4ffc28fd21823caadd96d23f7
2019-01-07 14:37:02 -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
Jorim Jaggi
37a089d716 SyncRtTransactionApplier -> SyncRtTransactionApplierCompat
Bug: 118118435
Change-Id: I37bba45db79890f5d7ae6c1d1d63422a89230b35
2019-01-04 12:22:13 -08:00
Dave Mankoff
5b3bf3b814 Track when plugins are disabled due to crashes.
Bug: 120901833
Test: atest SystemUITests
Change-Id: I243d79290a5162371dd46abd0115f73deda62b3e
(cherry picked from commit 727813f87b)
2019-01-04 12:22:13 -08:00
Winson Chung
5045f44cb1 Updating shared lib for context wrapper.
Change-Id: Ie468a23c177028ad4d1b4b90f177a29e5e72d960
2019-01-04 12:22:11 -08:00
TreeHugger Robot
224fe1170e Merge "Keep the current page pointing to the running task when applying loadPlan" into ub-launcher3-master 2019-01-04 19:52:15 +00:00
Sunny Goyal
43798deadb Keep the current page pointing to the running task when applying loadPlan
Change-Id: I178f4fb6b75eea9e8d47fa9700798a34117537a6
2019-01-04 11:38:40 -08:00
Jon Miranda
e018711aac Add spring to shelf for home <-> overview <-> all apps state transitions.
Added new SpringObjectAnimator class that wraps an ObjectAnimator so the
Object can be controlled via the Animator or via a SpringAnimation. It extends
ValueAnimator so that it remains compatible with AnimatorPlaybackController.

Code is behind feature flag toggle QUICKSTEP_SPRINGS.

Bug: 111698021
Change-Id: I1b20179ede37e89a6a6bb2a45d407cc74c99ac4e
2019-01-04 11:12:53 -08:00
Hyunyoung Song
e5f39898a9 Merge "Do not animate icon if work profile is disabled Bug: 119884907" into ub-launcher3-master 2019-01-04 01:58:03 +00:00
Hyunyoung Song
ef468d80d8 Do not animate icon if work profile is disabled
Bug: 119884907

Change-Id: I14977581dcb42b5fb2fe21f628a4d91945fdd614
2019-01-03 17:23:43 -08:00
TreeHugger Robot
4225924086 Merge "Keeping task list stable across multiple task switches" into ub-launcher3-master 2019-01-04 00:07:44 +00:00
Sunny Goyal
849d7e6c41 Keeping task list stable across multiple task switches
Change-Id: I3b334a8c8fb13ad54bc19e782cae016fe3c78ff6
2019-01-03 15:50:05 -08:00
TreeHugger Robot
9b0a75b742 Merge "Fix issues with recents with floating nav bar" into ub-launcher3-master 2019-01-03 23:39:44 +00:00
Sunny Goyal
2f979d2639 Fixing task cache was incorrectly set when partial list was requested
Change-Id: Ic3ef49930e38b6a66a2871baada122f81865644f
2019-01-03 15:15:58 -08:00
Tony
afd8392b21 Fix issues with recents with floating nav bar
- Set padding based on insets (same as noraml nav) rather than
  available height (more than normal nav)
- Fill whole screen for quick switch

Bug: 111699315
Change-Id: Ia1392cc0b1ed3600635dbce76d8b945f0337d7cf
2019-01-03 17:15:12 -06:00
Tony
c2a137630a Scale corner radius when swiping down on a task
Now the corner radius matches the window when the task fills the screen.

Change-Id: Ic149f39053ac1e4cfa1304d4dfd3ed0688b92410
2018-12-27 20:25:01 -08:00
TreeHugger Robot
3446fb65c4 Merge "Cleanup strings for iconoverride" into ub-launcher3-master 2018-12-27 06:30:39 +00:00
Hyunyoung Song
339a311d99 Cleanup strings for iconoverride
Bug: 120736782
Change-Id: I9745fe999cec3c4e1f442decb482ed916d0b871a
2018-12-26 20:59:57 -08:00
Tony Wickham
c87388c00d Move params for ClipAnimationHelper#applyTransform into TransformParams
This will help keep the code clean when we add more params, e.g. for
live tiles and for the scrolling gesture.

Bug: 111699315
Change-Id: Ia9df40ae85fe29911b957bd9b06b8c8a31f3be39
2018-12-22 00:04:29 +00:00
Tony Wickham
36b2dba1de TaskView has fullscreen progress instead of boolean
This way we can update the insets of the adjacent task throughout
the swipe up from an app.

Bug: 111699315
Change-Id: Ieeaa5b6667e44f82e7e097acb9f0552609b15809
2018-12-21 15:49:45 -08:00
Hyunyoung Song
a7a9583bb8 Remove IconShapeOverride
Bug: 120736782
Change-Id: Iee44f10ff2b9ec447ae74d9ad6a0aa3668c401d6
2018-12-19 17:16:56 -08:00
vadimt
943b28464d Test swiping up from a killed launcher
Bug: 121164587
Test: StartLauncherViaGestureTests
Change-Id: I01c5bfc0aa23418bad7d44b8d9cf8b95cbe0b320
2018-12-17 18:09:07 -08:00
Vadim Tryshev
57e98b8006 Merge "Adding tests that would reliably reproduce shifted search." into ub-launcher3-master 2018-12-17 23:21:55 +00:00
vadimt
00d4255272 Adding tests that would reliably reproduce shifted search.
This would guaranteed to repro b/118441555 before it was fixed.

The test doesn't use the most powerful feature of race condition
reproducer, which is enumerating all possible event sequences.

Instead, it uses explicit repro sequences, which makes the test much
faster.

Bug: 120628042
Test: The added test
Change-Id: I89a7a9964f160a8a20ba3d9dda2f248237713014
2018-12-17 14:41:20 -08:00
vadimt
195d5694e4 Not relying on activity manager when choosing a touch consumer.
Activity manager can report launcher activity as running when is hasn't
yet been resumed.

Bug: 120628042
Test: TaplTests, Fallback tests, manual tests
Change-Id: I6b382b17d05066a63360acc19e094674ecca7130
2018-12-13 12:41:53 -08:00
Winson Chung
381a75c194 Fix issue with sync rt applier
- Use the shared lib call to ensure that we always have the sync rt
  applier with viewroot.

Change-Id: I911362d105a2c0223693640a28d358caf6dd29d0
2018-12-11 13:04:38 -08:00
TreeHugger Robot
345273b6a5 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2018-12-11 19:02:34 +00:00
Bill Yi
80f5c19fd2 Import translations. DO NOT MERGE
Change-Id: I1539df9cc5f5633585a5714fc8069163d7edb951
Auto-generated-cl: translation import
2018-12-11 10:47:07 -08:00
Winson Chung
282ad21f71 Fix issue with swipe up animation stalling after swiping up
- When the launcher activity is killed, the next init will attempt to
  create a sync applier, which uses the ViewRootImpl of the target
  view. But when onActivityInit() is called, the recents view has not
  been attached to the hierarchy so the view root is not accessible.
  The SyncRtSurfaceTransactionApplier also ignores scheduling all
  updates when it has a non-existant view root, which leads to the
  app surface getting stuck midway during a swipe up (only affects the
  duration of the animation)

Bug: 119661847
Test: adb shell am force-stop com.google.android.apps.nexuslauncher
      then try and swipe up slowly

Change-Id: I8eef9fe38c55c0cb438d63b41c335f78679278a3
2018-12-10 19:08:44 -08:00
Lucas Dupin
b93e419e8b Speed up corner animation
The size of the window changes during the animation progress, making the
window look rounded for longer. What we want is to animate it from the
shape of the icon to the shape of the display.

Change-Id: Ib4889b697bf78cdc37c160130fde961650080fb7
Fixes: 120553563
Test: visual
2018-12-11 00:03:54 +00:00
TreeHugger Robot
ee6e6ea4b6 Merge "Moving TaplTests to AOSP" into ub-launcher3-master 2018-12-10 18:33:57 +00:00
Vadim Tryshev
ed01e28408 Moving TaplTests to AOSP
And fixing TAPL for AOSP.

Bug: 110103162
Test: TaplTests
Change-Id: Ib9fef02b789a9c7444643550d56b9dda4e085b03
2018-12-07 12:00:41 -08:00