Commit Graph

1351 Commits

Author SHA1 Message Date
Sunny Goyal
4ed58d6c03 Adding tests for fallback recents when a 3rd party launcher is installed
Change-Id: I1d4da13cc779f49832008b12b9628d01631faffe
2018-10-09 14:25:01 -07:00
Sunny Goyal
b4e287a77c Only considering tap on recents view if finger didn't move
Bug: 114450749
Change-Id: Id99fd8c024140025b14973205f9080daa86db522
2018-10-04 10:01:08 -07:00
TreeHugger Robot
674e947979 Merge "Cancelling previous touch interaction when a new touch starts" into ub-launcher3-master 2018-10-03 23:35:27 +00:00
Vadim Tryshev
7590edef0a Merge "Make @QuickstepOnOff and @PortraitLandscape available to all UI tests." into ub-launcher3-master 2018-10-03 17:23:43 +00:00
Vadim Tryshev
6ffb2c8faa Make @QuickstepOnOff and @PortraitLandscape available to all UI tests.
Also, fix rotation as Portrait as starting poin for all tests, to avoid
tests running in unexpected configuration.

Bug: 115645301
Test: run all Nexus tests
Change-Id: I3ab0e91db111eeefda77af2960c43962a119de0c
2018-10-02 17:32:01 -07:00
Winson Chung
f8e04b6464 Break out of quickscrub if task fails to launch
- Return the user to their previous state if quickscrub fails to launch
  the new task (ie. if it finishes itself mid-launch).

Bug: 117163033
Change-Id: If03cf0431be40d9b81dfcc5dffcb2bf4844bbbd2
2018-10-02 23:22:09 +00:00
Sunny Goyal
6c3f44b663 Cancelling previous touch interaction when a new touch starts
Bug: 79220524
Change-Id: I7157dcdc7af92e1e5689da56c87961a82a0e6a05
2018-10-02 11:29:49 -07:00
Hyunyoung Song
be2307bbea Reduce falsing on swipe down for notification shade.
b/116879058

Change-Id: If3dde635cdff09faf27dbab2cd022b9d246c7c2b
2018-10-01 11:41:37 -07:00
TreeHugger Robot
ff2d0d0a9e Merge "Defer removing the task view until the app has drawn" into ub-launcher3-master 2018-09-28 18:30:56 +00:00
Winson Chung
2660ca5d0e Ensure that we don't additionally crop the launcher surface
- Now that we are controlling the launcher app surface as well while
  swiping up into overview, skip applying the crop to any opening
  remote animation targets.

Bug: 70341013
Test: Swipe up, and ensure everything still works
Change-Id: I87b4021c0fc0e2997185d4d12f26b2e06999ff57
2018-09-27 18:26:52 +00:00
TreeHugger Robot
08a915c0ce Merge "Add some gesture logging to track down quickscrub launch issue" into ub-launcher3-master 2018-09-26 23:44:44 +00:00
Winson Chung
665bc46d54 Add some gesture logging to track down quickscrub launch issue
- Keep rudimentary log of the last few gestures for dumping with the BR
- Also renaming updateInteractionType since we only use it to change
  to the quickscrub starting interaction type now, which is less
  confusing

Bug: 112783625

Change-Id: Ic024684caf2841cd7c09df9481163ea0c0ae03bd
2018-09-26 23:33:36 +00:00
Hyunyoung Song
48cb7bc7a4 Move IconNormalizer/ShadowGenerator/LauncherIcons to icons package
Bug: 115891474

Sending out the package name changing CL first before I make
LauncherIconsHandler and tests around it.

Change-Id: Ic10479a06333e1435b392a7072cd08782e710cbd
2018-09-26 11:57:37 -07:00
Winson Chung
c533f315ca Defer removing the task view until the app has drawn
Bug: 111896388
Change-Id: I8c900e56fcbbdc400dce646c50f8f14b1da4e17f
2018-09-25 18:18:18 -07:00
TreeHugger Robot
8e95c9b5e6 Merge "Scaling down the icon in same path as scaling up" into ub-launcher3-master 2018-09-25 23:50:22 +00:00
Sunny Goyal
11137385a3 Scaling down the icon in same path as scaling up
If for some reason, the animation is not created (eg in case of forced rotation),
we should also skip scaling down the icon so that the final UI is always in
a consistent state.

Bug: 78793089
Change-Id: Ie3e8b6d14b05ee983bc5e12401c1fa078034e392
2018-09-25 14:26:25 -07:00
Sunny Goyal
8c79668069 Merge "Using velocity tracker for computing the velocity of motion events" into ub-launcher3-master 2018-09-25 21:15:26 +00:00
Tony
6379d5370b Use task insets rather than launcher insets when swiping down
This fixes the issue where dragging down on full screen apps was
offset by the status bar even though it shouldn't be.

Bug: 77979532
Change-Id: I8cb17778c4ae66b1821e86dd757626f875a27d2d
2018-09-24 15:31:40 -04:00
Hyunyoung Song
f58cf5e337 Disable scrolling noti shade on abstract floating view with swipe down
interactions already doing something else.

Bug: 116143342

Change-Id: If3716de0eb1f7b508c3b74dbe2593ba62fffcf74
2018-09-19 17:05:09 -07:00
Hyunyoung Song
24b209c65a Swipe down on status bar
Bug: 111839343

Change-Id: I5332dc098af980b4d4ef45b095586d68975ad98c
2018-09-18 11:11:04 -07:00
Sunny Goyal
4d8ec15fb5 Using velocity tracker for computing the velocity of motion events
Change-Id: I14f2f970825a2936f4bb285834405d67daf8667c
2018-09-13 09:50:47 -07:00
TreeHugger Robot
64d5f27f03 Merge "Do not ask for rotation lock when controlling quickscrub from launcher activtiy" into ub-launcher3-master 2018-09-11 17:25:44 +00:00
Sunny Goyal
05fbc53817 Do not ask for rotation lock when controlling quickscrub from launcher activtiy
When controlling from launcher activtiy, there is no activity focus change, and rotation
lock is not required.

Bug: 114074832
Change-Id: Ia976f9daa9b0f87d3493138d12cb37a490b8b1bd
2018-09-10 16:53:14 -07:00
Sunny Goyal
c6043e4568 Fixing Launcher stuck in BACKGROUND_APP state when using overview button
When using overview button, we skip the activtiy animation, which leads
to wrong state. Instead always running the animation and changing the endpoints
accordingly.

Change-Id: Id071b4e74da42c78760519aa29644621afc822e2
2018-09-07 13:46:47 -07:00
Sunny Goyal
0c98d0c05f Updating the SystemUI jar as per API changes
Change-Id: I7c7099da2146618113a22b5ec43acebf90bad783
2018-09-07 10:11:34 -07:00
Sunny Goyal
cf300fc980 Creating a separate state for launcehr as background app
This makes is simpler to control the swipe to overview UI, and ties the
transition with the state machine

Bug: 113287120
Bug: 79755195
Bug: 112203163
Change-Id: I3041dbb659b46ccea6284855addc91e370815be6
2018-09-05 17:32:50 -07:00
Vadim Tryshev
6b597b823d Merge "Revert "Avoiding crash upon pressing Alt-Tab"" into ub-launcher3-master 2018-09-05 23:30:47 +00:00
Vadim Tryshev
b187a92599 Revert "Avoiding crash upon pressing Alt-Tab"
This reverts commit af34f4115b.

Reason for revert: Broke swipe from app

Change-Id: I2c6ff179c9731205633aa96395719f544d3575fb
2018-09-05 23:29:44 +00:00
TreeHugger Robot
5e238bb16e Merge "Avoiding crash upon pressing Alt-Tab" into ub-launcher3-master 2018-09-05 22:15:13 +00:00
Vadim Tryshev
af34f4115b Avoiding crash upon pressing Alt-Tab
Having invalid downPos leads to incorrect calculations, causing crash.

Bug: 113287120
Test: Alt-Tabbing?
Change-Id: I44cf733d97da4938bd2bbff28b1c08009f3f602a
2018-09-05 15:04:28 -07:00
Bill Yi
07f81e00f3 Import translations. DO NOT MERGE
Change-Id: I55f66fb29371969630a7c86c2f47bc8f1d6e9f0b
Auto-generated-cl: translation import
2018-09-04 16:15:46 -07:00
Winson Chung
8989a2263b Kicking the trim memory callback off the main thread
- It can cause a deadlock with other synchronized calls on a background
  thread that use a MainThreadInitializedObject

Bug: 112744388

Change-Id: Icbfe6fe84de41eeb19f68014905154dfca988288
2018-08-27 17:00:34 -07:00
TreeHugger Robot
a42505c385 Merge "Using a placeholder icon shape instead of low-res/blurry icon" into ub-launcher3-master 2018-08-27 18:44:24 +00:00
Sunny Goyal
2b787e5bd6 Using a placeholder icon shape instead of low-res/blurry icon
Bug: 111142970
Change-Id: I867224464ae9c026f4dcb5256ef14fc39c8e751d
2018-08-27 10:43:46 -07:00
Winson Chung
6ed64355b4 Use clear-all recent tasks call
Change-Id: I1c93bffa0573d0a37a86b62f5a7ec948ac11799e
2018-08-22 16:16:16 -07:00
Sunny Goyal
018e3c4447 Update the shared lib for lambda definitions removal
Bug: 112849320
Change-Id: I9b8971a84368eee88bf6fc5a4c0e39b32e7ea891
2018-08-22 15:46:38 -07:00
Android Build Merger (Role)
b055da40fa [automerger] Revert "Use clear-all recent tasks call" am: dbbed57094
Change-Id: I9326766a3fe2b6334a885eebada339ea2e33a64c
2018-08-22 21:12:57 +00:00
Winson Chung
dbbed57094 Revert "Use clear-all recent tasks call"
This reverts commit 68df758665.

Reason for revert: Should be in master

Change-Id: I1a0d54c606c8cf1e52d5bdbfcd1acc6d0211ab49
2018-08-22 21:12:56 +00:00
Tony
c677417d7a Polish shelf tracking
- Offset distance based on where gesture started, so that the shelf is
  always under your finger even if you swiped up high on the nav bar
- Use the same distance when swiping down to launch a task as we use for
  swiping up from an app (so that the swipe feels more reversible)
- Allow swiping up in the gap between hotseat and overview, so there's
  no "dead zone"

Bug: 109709720
Change-Id: I828d82e8feb250fd31e382d42aeefcb11d4a07d5
2018-08-15 15:53:24 -07:00
Vadim Tryshev
b6398a1eb8 Sharing protocol constants between Launcher and TAPL
Bug: 110103162
Test: TaplTests
Change-Id: I5b2a2b8576a7a6ea4a156f00858711496d6b5bba
2018-08-14 19:53:43 -07:00
TreeHugger Robot
e1c4a90635 Merge "Migrating to android-x" into ub-launcher3-master 2018-08-14 22:53:40 +00:00
TreeHugger Robot
d7f266fee1 Merge "Removing static launcher activity dependency from FirstFrameAnimationHelper" into ub-launcher3-master 2018-08-14 22:30:00 +00:00
Sunny Goyal
d230307a95 Migrating to android-x
Change-Id: I9a774152d13a541e8496dd84f2469bfed407f86d
2018-08-14 15:22:12 -07:00
Winson Chung
7debc53f93 Skip logic to find the dominant color when loading recent task icons
- Also move some allocations in ColorExtractor into thread locals to reduce
  allocations

Bug: 78777731
Change-Id: I8819106d476a9af02e864135a2f44b55fe9219cd
2018-08-14 10:30:33 -07:00
Sunny Goyal
f0b6db7fa8 Removing static launcher activity dependency from FirstFrameAnimationHelper
Static dependency does not work in the presence of multiple activities and
when the main activity is not Launcher (eg in fallback recents). Instead
creating FirstFrameAnimatorHelper on demand for individual animations.

Change-Id: I17bb69bbaaca92f0db994fb56fd784302c57d543
2018-08-13 16:10:18 -07:00
TreeHugger Robot
b6ecb17356 Merge "Removing Launcher activity dependency on various animations" into ub-launcher3-master 2018-08-13 20:03:33 +00:00
Vadim Tryshev
3b5793fdf5 Support for running Overview tests with quickstep on and off
Bug: 110103162
Test: TaplTests suite
Change-Id: Ic479156f2973aeec5cc3d288e1c891b8086d9daa
2018-08-10 17:35:43 -07:00
TreeHugger Robot
d6ba50412b Merge "Adding overscroll in recents view" into ub-launcher3-master 2018-08-10 22:53:49 +00:00
Sunny Goyal
b7b0135c93 Adding overscroll in recents view
Bug: 109828536
Change-Id: I4fe94bd157c2b65f80604751e6f0f7d5d81d058d
2018-08-10 22:41:20 +00:00
Sunny Goyal
849c6a2b18 Removing Launcher activity dependency on various animations
(This cl reverts change-Id: I455edcd17bda83ab51c2c04fa40e66097a4d6975)

Various animations were marked for cancellation when launcher activity is
destroyed. This this does not work with multiple activities (Launcher,
fallback recents, shortcut confirmation). Also since launcher activity
handles configuration changes, the activity is not destroyed often.

Instead associating a target with various animations which automatically
cancels the animations when that target goes away.

Change-Id: I64cd095a28075561a9e20c9dcdeb9f90c18e1047
2018-08-10 13:31:46 -07:00