Commit Graph

1669 Commits

Author SHA1 Message Date
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
Winson Chung affe2bc261 Merge "Revert "Revert "Specify display ID while calling getNavBarPosition()""" into ub-launcher3-master 2018-12-06 19:58:25 +00:00
Winson Chung 5466f284f3 Merge changes from topic "rounded_corners_ub_launcher" into ub-launcher3-master
* changes:
  Revert "Revert "Correct 🕳️ 👊👊👊👊👊👊""
  Revert "Revert "Rounded corners on app transitions""
2018-12-06 19:58:25 +00:00
Winson Chung 54228d70b4 Merge "Revert "Revert "Updating shared lib for rounded corners.""" into ub-launcher3-master 2018-12-06 19:58:25 +00:00
Winson Chung 995478aee3 Revert "Revert "Correct 🕳️ 👊👊👊👊👊👊""
This reverts commit 33226ec0e1.

Reason for revert: Most test devices have the platform changes

Change-Id: Ic3f1c144537d127c690c7949f7144dedf0611c49
2018-12-06 19:37:16 +00:00
Winson Chung 506565aaa0 Revert "Revert "Specify display ID while calling getNavBarPosition()""
This reverts commit 5859f7d62c.

Reason for revert: Most test devices have the platform changes

Change-Id: I86b61f07f873e0d231aaac322001065730436233
2018-12-06 19:37:01 +00:00
Winson Chung 5f593c382f Revert "Revert "Updating shared lib for rounded corners.""
This reverts commit de72d339e5.

Reason for revert: Most test devices have the platform changes

Change-Id: Ibe7e22c5073f2405483945ac726e528bef88fbc9
2018-12-06 19:36:52 +00:00
Winson Chung c7565862e2 Revert "Revert "Rounded corners on app transitions""
This reverts commit 2c9b1043a6.

Reason for revert: Most test devices have the platform changes

Change-Id: I1e608395b186df3148562afa7c1d791e3c9e2eb5
2018-12-06 19:36:10 +00:00
TreeHugger Robot 0cbe34b297 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2018-12-06 17:11:12 +00:00
Bill Yi c4e957cb9b Import translations. DO NOT MERGE
Change-Id: Ica50c5055efc0de3a9783184977b7d8f78441bf1
Auto-generated-cl: translation import
2018-12-06 07:47:42 -08:00
Vadim Tryshev 2e8205d3f9 Desaturating thumbnails for tasks over their usage limit
Bug: 118319143
Test: Manual
Change-Id: Iae78c42fb392a49d734d35a80f6331438149d458
2018-12-05 17:08:24 -08:00
Winson Chung de78d7ca78 Merge "Revert "Updating shared lib for rounded corners."" into ub-launcher3-master 2018-12-04 18:44:18 +00:00
Winson Chung 441fc5353e Merge changes from topic "rounded_corners_ub_launcher" into ub-launcher3-master
* changes:
  Revert "Rounded corners on app transitions"
  Revert "Correct 🕳️ 👊👊👊👊👊👊"
2018-12-04 18:44:18 +00:00
Winson Chung 2c9b1043a6 Revert "Rounded corners on app transitions"
This reverts commit d0ab1d0578.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Id37615986fc859f3f2d9344402b737926fb7b9a5
2018-12-04 18:42:47 +00:00
Winson Chung 5859f7d62c Revert "Specify display ID while calling getNavBarPosition()"
This reverts commit 6f43bc63f4.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Ia5c728abd4690acad721b1edcab3f42b7b073cd7
2018-12-04 18:40:59 +00:00
Winson Chung de72d339e5 Revert "Updating shared lib for rounded corners."
This reverts commit 8bcc8d627a.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I310c428980640f54a5590763f57f01cac2ef061b
2018-12-04 18:40:56 +00:00
Winson Chung 33226ec0e1 Revert "Correct 🕳️ 👊👊👊👊👊👊"
This reverts commit aaf859f238.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Iedd45033adb29664107471f7af6b0249e5370470
2018-12-04 18:40:54 +00:00
Tiger Huang 6f43bc63f4 Specify display ID while calling getNavBarPosition()
Navigation bar can show on non-default display now. So the caller
should specify which display the desired navigation bar is on.

Bug: 117474929
Test: atest Launcher3Tests
Change-Id: Ibb22e51730ab145a42a129b4d964299acd4efd56
(cherry picked from commit f1bb3a4d4c)
2018-12-04 10:14:44 -08:00
Winson Chung 8bcc8d627a Updating shared lib for rounded corners.
Change-Id: I75acb5b0edbda214ff88698b2ca93716d3b69fe0
2018-12-04 10:13:21 -08:00
Lucas Dupin aaf859f238 Correct 🕳️ 👊👊👊👊👊👊
🕳️ 👊👊👊👊

Bug: 111514493
Change-Id: Ie770de06dabe42e5e620ac9c7ec9da256f3d58f5
Fixes: 116745318
2018-12-03 20:50:52 -08:00
Lucas Dupin d0ab1d0578 Rounded corners on app transitions
Test: Manualy launch an app
Test: Press home when activity is on top of the stack
Test: Quick scrub
Test: Swipe up on the home button, swipe down
Bug: 111514493
Fixes: 116745318
Change-Id: I66d25bc433061ede46107ea9651c198614306692
(cherry picked from commit faa443308e)
2018-12-03 20:50:43 -08:00
TreeHugger Robot d5edac3d31 Merge "Moving composing task content description to resources" into ub-launcher3-master 2018-11-30 19:32:02 +00:00
Vadim Tryshev 49db73a7c1 Moving composing task content description to resources
Bug:118319143
Test: Manual
Change-Id: Iedcf3d90191614011b9b7d35afabb17a5b5953b3
2018-11-30 11:24:14 -08:00
Tony 6cfb0edb41 Fix end state when animating launcher after swipe up from an app
Previously we were comparing the controller's progress at the time of
the end of the animation... which is always 1. Instead, we should be
comparing the effective final progress based on the interpolator.

Change-Id: I18110b5a3b914839860931187f39cfa11182b3e2
2018-11-29 11:35:16 -08:00
Winson Chung 6478d4f41b Merge "Updating shared lib for display id change." into ub-launcher3-master 2018-11-28 19:21:27 +00:00
Winson Chung a682accb9e Updating shared lib for display id change.
Change-Id: Ie4c5362cc89f6e5cc146c70912c1d8dfa6fd781a
2018-11-28 10:53:43 -08:00
lumark 0072844e7f Modify TaskSystemShortcut.SplitScreen for API change.
Using View#getDisplay().getDisplayId() into
IWindowManager.overridePendingAppTransitionMultiThumbFuture()
for multi-display support.

Bug: 119530958
Test: manual
Change-Id: Icde73b2545f879771a62030c8151a86a324fa593
(cherry picked from commit 233622d907)
2018-11-28 18:50:41 +00:00
TreeHugger Robot aa576bce02 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2018-11-28 03:42:42 +00:00
Vadim Tryshev 84ed4d256a Merge "Prototype for the DWB toast in Overview" into ub-launcher3-master 2018-11-28 01:45:31 +00:00
Vadim Tryshev a8492330ac Prototype for the DWB toast in Overview
No UX spec is ready, so using some placeholder layout.
No attention to string localization since I feel that strings may
change, compared to current mocks.
Not using remaining-time API, as it is not ready.

Bug:118319143
Test: Manual
Change-Id: I50cff9099677db543e95963f058d3e89eab07d8f
2018-11-27 17:20:22 -08:00
TreeHugger Robot 429395f043 Merge "Moving autority definition to a separate file, so that it can be easily customized using android studio" into ub-launcher3-master 2018-11-28 00:59:35 +00:00
Sunny Goyal 4276e7b649 Moving autority definition to a separate file, so
that it can be easily customized using android studio

Change-Id: I17f4f4511c2af5d382727769d1b74413f233d500
Bug: 120079798
2018-11-27 23:20:32 +00:00
Bill Yi bb90b10769 Import translations. DO NOT MERGE
Change-Id: I3cf21f4d95dc22c8cf1b762ccf9e695b84737574
Auto-generated-cl: translation import
2018-11-27 11:13:43 -08:00
Winson Chung a634c9d56c Merge "Updating shared lib jar for freeform call." into ub-launcher3-master 2018-11-26 22:06:20 +00:00
Winson Chung ed85dbd963 Updating shared lib jar for freeform call.
Change-Id: If4b4496ff85ffb18e3f499ed4b6a8eb97552e231
2018-11-26 11:32:14 -08:00
Evan Rosky a639c79112 Add a dev-mode freeform option to recents menu
When the developer option for freeform is enabled, provides
a "Freeform" option in the recents task overlay menu. This
is sort-of an analog to the freeform option in N recents;
however, since recents now is part of home, there's no
straightforward way to have multiple freeforms at a time,
so this really is only useful for developers.

Bug: None
Test: manual - enable freeform in dev settings, then pick
      Freeform from recent task overlay menu.
Change-Id: I5d8e95aaffb8fe43e655f705cacdd51859c95d3b
(cherry picked from commit 9beb6bf251)
2018-11-26 18:34:47 +00:00
Sunny Goyal fe8e4a90be Moving some methods from various activities to the base interface
This allows creating some custom views in the absence of
activity context

Bug: 118758696
Change-Id: I23999290e972a2a8cbd725a521a4e0c7c2e5023e
2018-11-19 13:04:35 -08:00
Winson Chung 1296cf26f2 Updating shared lib for fw api change.
Change-Id: I42c6c85693d7f1c2b7a38de5f3dd05f43612b504
2018-11-14 10:36:27 -08:00
Tony Wickham c8d1716a9c Merge "Creating a new dismiss animation while one is pending is now valid" into ub-launcher3-master 2018-11-14 02:43:39 +00:00
Tony Wickham 026a5db8fd Merge "Fix quick switch when swiping right on back button" into ub-launcher3-master 2018-11-14 02:43:15 +00:00
Tony Wickham cad49c6721 Creating a new dismiss animation while one is pending is now valid
It used to be an invalid state to create a new dismiss animation while
one was pending, because the only way to do it was to swipe up. However,
now there are a number of places we create the dismiss animation, e.g.:
- When entering split screen
- Clear all
- Uninstalling an app

So now, instead of calling this an illegal state, we simply cancel the
previous pending dismiss if it exists.

Bug: 118880699
Bug: 118400078
Change-Id: I4d073f7e9d50e832ba4ae55391530040a0fac50c
2018-11-13 15:47:29 -08:00
Tony Wickham bdc5f3d9e6 Fix quick switch when swiping right on back button
Deferring the window tracking when touching down on the back button means that
we don't set isQuickSwitch before setting the state to FAST_OVERVIEW, making it
not scale up to be full screen. To fix this, we reapply the state when preparing
QuickScrubController for quick switch.

Change-Id: Ib3dcf300c45a00673ff9337f98d16d4e8cdf1ea0
2018-11-13 15:31:57 -08:00
TreeHugger Robot 4194f242ae Merge "Fix quick scrub skipping more than one page" into ub-launcher3-master 2018-11-13 18:04:10 +00:00
Tony Wickham 873264c71b Fix quick scrub skipping more than one page
There was a race condition where we were getting onQuickScrubProgress
before onQuickScrubStart. If we got enough of those, we were jumping
some pages before the block is set in onQuickScrubStart (which also adds
its own page jump). Now we don't send any onQuickScrubProgress() to
QuickScrubController until we have sent onQuickScrubStart()

Bug: 118636260
Change-Id: I60084850b0b1baad34112ab5945fce81cc3a3c53
2018-11-13 17:58:31 +00:00
Winson Chung 4e362ea0f5 Clear click listener when the icon is removed.
- The click listener should be removed, otherwise, it can still active
  and clickable when the TaskView is bound to a new Task whose icon
  has not yet been loaded, which can cause crash.

Bug: 118834133
Change-Id: Ifd9fd8fe99b6177851d366f0c21f8fad59f1950e
2018-11-12 19:21:31 +00:00
Bill Yi f1982fcaae Import translations. DO NOT MERGE
Change-Id: I22579d4f7492047b291e6c6a7f73508ccad3af2d
Auto-generated-cl: translation import
2018-11-10 00:27:25 -08:00
Sunny Goyal 1a9cbd3c88 Moving BaseIconCache to icon lib
Change-Id: I4fb56dcd6231a848d152e690edaf8885efbc995a
2018-11-08 15:18:25 -08:00
Vadim Tryshev b63bcf1113 Merge "Adding animation when opening app usage settings" into ub-launcher3-master 2018-11-06 22:26:38 +00:00
Sunny Goyal 066ace1b88 Replacing setAlphaComponent with setAlphaComponentBound for better animation interpolation
setAlphaComponent throws expetion for invalid range, which can cause brashes in overshoot
interpolation

Bug: 118390004
Change-Id: Ic9c5ff3d660eba353b982c4c47ccfaf329b3e296
2018-11-06 09:59:03 -08:00
Sunny Goyal d7239fcc52 Removing UserManagerCompat wrapper for getting baded label
This removes some crass dependency on Launcher compat implementation
making it easier to move iconCache to a separate library

Change-Id: If5fab0c82d98089cde6f54b6a374fb7bb2db5ae8
2018-11-05 17:33:15 -08:00
TreeHugger Robot 8ac8d73530 Merge "Split out launcherProtos from sysui_shared.jar" into ub-launcher3-master 2018-11-06 01:14:56 +00:00
Hyunyoung Song 0ae3888ad1 Split out launcherProtos from sysui_shared.jar
Bug: 113043444
Change-Id: I3115cdc7871b0f77601e399df01cdde0dde87c6e
2018-11-05 17:01:54 -08:00
Jon Miranda dad8d4434d Remove scrim fade animation when returning to launcher.
Since the DragLayer translates downwards, we no longer need the scrim fade
animation to avoid the hard scrim line.

Bug: 117677608
Change-Id: I4cd524d798579289d61bfe296f6de42bd22b0cb7
2018-11-05 15:09:09 -08:00
Hyunyoung Song 08584e18d6 Merge "Add StatsLog*Manager for logging. Bug: 113043444" into ub-launcher3-master 2018-11-05 20:04:59 +00:00
Hyunyoung Song fc00747909 Add StatsLog*Manager for logging.
Bug: 113043444

Verification: (19) is our event classifier number
11-05 11:24:28.188   932   994 I statsd  : { 1541445868000000000 766293363001 (19)0x10000->1[I] 0x20000->0[I] 0x30000->0[I] 0x40000->[S] 0x50000->1[I]  }

Change-Id: I75403837f9fa8e51efa012fb708bce7efc9c4488
2018-11-05 11:41:38 -08:00
TreeHugger Robot dd44c8cd08 Merge "FeatureFlag: quick scrub is now quick switch" into ub-launcher3-master 2018-11-01 21:39:04 +00:00
Tony 50876bfac7 FeatureFlag: quick scrub is now quick switch
- Scale down current task and translate it to the left
- Translate previous task in from the left
- This is a toggle; quick switch again returns to the first task

Currently this is implemented by repurposing onQuickScrub(progress) to update the positions
of the first two pages. This makes tracking velocity a bit difficult; if we want to go down
this path in the long run we should probably track velocity properly on MotionEvents.

Change-Id: I4445b5f08b6e88e71cbb5e30b1f1d45c5f1edc68
2018-11-01 17:26:31 -04:00
Vadim Tryshev 56e56095f7 Adding animation when opening app usage settings
Bug: 118319143
Test: manual test on a prototype
Change-Id: I33eab24f180daa60bba221df585469d141526b4b
2018-10-31 13:55:04 -07:00
Tracy Zhou 470da4e3e4 Finish LauncherLayoutListener when launcher transition animation ends.
In QuickScrub mode, the right task gets clipped out at the end of the animation. This is because LauncherLayoutListener continues to clear out where CurrentRect is, while the app surface is not displaying. We want to finish the listener after the transition animation.

Bug: 111697218
Test: Manual test

Change-Id: I4dd5f5cbcec0574082fd1463e07c116a9e9305d3
2018-10-30 14:58:03 -04:00
Winson Chung f107c9ef6d Fixing regression in background task loading.
Bug: 117603579
Test: Take systrace, ensure that we aren't loading thumbnails on the UI
      thread

Change-Id: I4b522246a5ab12dc37c1dffdccd05232bbc1f6fe
2018-10-29 10:51:10 -07:00
TreeHugger Robot a96f916504 Merge "Moving Plugin and feature flags UI to androidX" into ub-launcher3-master 2018-10-25 20:25:09 +00:00
Sunny Goyal eae0514f1a Moving Plugin and feature flags UI to androidX
> Combining both preference into a single screen
> Adding plugin preference screen so quickstep build

Change-Id: I3d2ff3ebdac3c774659e79ecb81be6f75f765eb0
2018-10-25 13:07:42 -07:00
Bill Yi 934a1cb6f4 Import translations. DO NOT MERGE
Change-Id: I598aeef629ca1a842172b6108c64f29aadb9f06a
Auto-generated-cl: translation import
2018-10-25 06:26:36 -07:00
Tracy Zhou 8deb4c667e Merge "Support Live Tile in Quickstep (Pt1) - Z ordering" into ub-launcher3-master 2018-10-25 00:55:17 +00:00
Vadim Tryshev e10fedb5f3 Merge "Adding code to open DWP settings of a recent task" into ub-launcher3-master 2018-10-24 21:56:23 +00:00
Tracy Zhou d43e7c2fd4 Support Live Tile in Quickstep (Pt1) - Z ordering
- Place Launcher above app surface.
- Use LauncherLayoutListener to clear the area where the current task is in order to punch a hole and reveal the app view underneath

Bug: 111697218
Test: Manual test

Change-Id: I4d4e0f1113a8e60566257c030ae9b591789eb3b3
2018-10-24 14:24:54 -07:00
Vadim Tryshev 3514a22313 Adding code to open DWP settings of a recent task
Will transition to an API for opening settings if this CL lands:
ag/5338673.

Bug: 118319143
Test: manual test on a prototype
Change-Id: Ia40576e0cd6196bfb0a0e8657916bbadff4c0b59
2018-10-24 13:30:33 -07:00
Hyunyoung Song e3f664db79 Merge "Increase the touch slop for noti shade pull down. Bug: 116879058" into ub-launcher3-master 2018-10-24 20:01:20 +00:00
Hyunyoung Song 0638949fe9 Increase the touch slop for noti shade pull down.
Bug: 116879058

Change-Id: I3ff0491292e5238cd74bb6d97c0ab79711ad3af1
2018-10-24 10:18:00 -07:00
Winson Chung 0d9275deba Updating shared lib from package & class rename.
Change-Id: If3003c6e454ea60f30372f985fa7f34c9b6ed46d
2018-10-23 15:42:41 -07:00
Winson Chung ad6fd393f8 Don't assume there will be a running task
- During tests, if apps and launcher are killed, then there may be no
  running task

Change-Id: Iaef1c4ad0b31cec3c8da7d868e3e7b49d3b09faa
2018-10-23 15:11:42 -07:00
Winson Chung 445ab9d8cd Merge "Caching clean up, remove dependency on old shared lib loading/caching logic" into ub-launcher3-master 2018-10-23 19:59:21 +00:00
Winson Chung fd61e04424 Updating shared lib
Bug: 117603579
Change-Id: Ie4fbb962bc1ae3d13bfa7778aa505e1ad7ea8853
2018-10-23 11:44:36 -07:00
Winson Chung cc8dbf31db Caching clean up, remove dependency on old shared lib loading/caching logic
- Clarify caching policy, we only cache the last N task snapshots
- Pull out necessary logic from RecentsTaskLoadPlan (deprecated) into
  launcher class RecentTasksList which also manages the invalidation of
  the last loaded list
- Pull out logic from task loading logic in the shared lib into separate
  classes TaskThumbnailCache and TaskIconCache, and have each task view
  manage the load request for data

Bug: 117603579
Test: Thumbnails still load

Change-Id: I938e4dea19e7f5d24724c32194d254ca003e89aa
2018-10-23 00:01:07 +00:00
Vadim Tryshev 36bf5d6f24 Enable creating task shortcuts without inheriting
Bug: 117888000
Test: manual test with a prototype
Change-Id: Ib7edab875c18b60cafc912325bd4e1fa0b7f515c
2018-10-19 17:41:23 -07:00
Vadim Tryshev 3f007ce286 Merge "Enabling creating additional shortcuts by any launcher" into ub-launcher3-master 2018-10-19 18:49:24 +00:00
Vadim Tryshev 0ca6c30bf0 Enabling creating additional shortcuts by any launcher
Bug: 117888000
Test: manual test with a prototype
Change-Id: I4d678a6c35341e61c74ed295d2b2202c5eebe034
2018-10-19 11:39:02 -07:00
TreeHugger Robot 30dfe8add3 Merge "Fixing state not set properly when configuration changes and remote animation callback comes after threshold is crossed" into ub-launcher3-master 2018-10-19 18:08:42 +00:00
Winson Chung 6e11a2d9f2 Keep input consumer registered and rely on enabled state instead
Bug: 117224991
Test: Ensure swipe up still works
Change-Id: I719ce41959fca2157a3db614e90d404551299007
2018-10-18 22:53:41 +00:00
TreeHugger Robot 1ba4ee89be Merge "Modifying SystemShortcut to enable support for RemoteAction" into ub-launcher3-master 2018-10-17 23:55:24 +00:00
Tony Wickham a937981b87 Merge "Add AllAppsRow plugin interface" into ub-launcher3-master 2018-10-17 20:47:51 +00:00
Vadim Tryshev 9acafc228b Modifying SystemShortcut to enable support for RemoteAction
See the bug, comment #1 for details

Bug: 117888000
Test: manual test with a prototype
Change-Id: I0422df6006e2cfc7344fc3bee531341b11b1050e
2018-10-17 13:45:25 -07:00
Sunny Goyal 420d54544e Using a common class for observing secure settings
Bug: 117519297
Change-Id: Ie9d948130aea50bf10c9fc625fdb16f4cfc4712e
2018-10-17 12:07:13 -07:00
Tony Wickham 5c5c118c48 Add AllAppsRow plugin interface
Bug: 115877296
Change-Id: I750941f220d08ca9ee14067253253f6d81417101
2018-10-16 17:22:09 -07:00
Tracy Zhou dbccb545b5 Merge "Apply animation seen to onStateSetImmediately." into ub-launcher3-master 2018-10-16 19:03:51 +00:00
Tracy Zhou ff66e3a71f Apply animation seen to onStateSetImmediately.
Sometimes onStateSetImmediately gets called upon swipe up, especially when the phone just get unlocked.

Will add a test following this change.

Change-Id: I2d7117ae919663385b300433eceb063af09a5431
BUG: 113629419
Test: Manual
2018-10-16 18:38:54 +00:00
Sunny Goyal ba7dba3983 Fixing state not set properly when configuration changes
and remote animation callback comes after threshold is crossed

The transition length is updated when removeAnimations is received.
If the gesture delta is crossed before that, we were ending up in
long-swipe mode as due to an incomplete check.

Bug: 117549010
Change-Id: If5471c538ac51b84f176a1fad42112e84046da63
2018-10-15 15:31:10 -07:00
Winson Chung 7f96440ee0 Fix issue with side pages being visible momentarily when swiping up
- Apply the initial scale to overview while it is in the backround app
  state to ensure the side pages are positioned accordingly.  Since this
  affects the computation of the target rects for the overview
  animation, also ensure that we calculate those with the final target
  overview scale applied.

Bug: 117439562
Change-Id: I5e00cf1683e31b22cf937b966d52f8cbe745aaba
2018-10-12 14:46:13 -07:00
Winson Chung 181f9865ca Merge "Reduce extraneous loading of task snapshots/icons" into ub-launcher3-master 2018-10-11 23:09:42 +00:00
TreeHugger Robot e0c16831a8 Merge "Fixing dead lock in loading icon for recents" into ub-launcher3-master 2018-10-11 21:33:14 +00:00
Sunny Goyal 719f58b23f Fixing dead lock in loading icon for recents
> getBitmapInfo() is called on background thead which blocks
  on the main thread to get InvariantDeviceProfile
> getDefaultIcon() can be called on the main thread, which
  would get blocked on a previous call of getBitmapInfo()

Bug: 117588621
Change-Id: I6549398c7e0a49284fe59950965495074ab8cdd0
2018-10-11 13:59:20 -07:00
Winson Chung 4292c3038b Reduce extraneous loading of task snapshots/icons
- Skip handling loading visible task data after resetting overview, we
  currently keep the tasks bound to their task views (some calls are not
  synchronous with the lifecycle of recents, can be changed later), so
  the next call to loadVisibleTasks before the tasks have been loaded would
  load snapshots for old tasks
- Skip loading tasks if the previously requested load plan is still valid,
  this can happen because setCurrentTask() will be called multiple times
  during swipe up

Bug: 117603579
Change-Id: Ie58ded14dedbb3934d08163ca7939d89310c3ecf
2018-10-11 12:48:16 -07:00
Tony Wickham 76cce29d66 Add plugin support
- Add libs/plugin_core.jar
- Include plugin_core in Launcher3 build (it is already present other
  builds as part of the updated shared lib)
- Add PluginEnablerImpl that uses SharedPrefs to enable/disable plugin
  components
- Add src_plugins, where plugin interfaces will live. It has a build
  rule to create a jar that plugin projects will depend on.
- Copy PluginPreferencesFragment from sysui but using our implementation
  for PluginEnabler

Bug: 115877296
Change-Id: I3db54677eaceb10f92018c0f9d18920ad9ffac39
2018-10-10 14:02:56 -07:00
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
TreeHugger Robot 431ec79c99 Merge "Removing code duplication for getting swipe-up setting" into ub-launcher3-master 2018-08-09 19:49:20 +00:00
Winson Chung ad830cd2dc Use provided home content insets
- They should be correct now immediately after rotation

Bug: 112205777
Change-Id: I12c5b791b7115408bb34b5d0ae1e3023ce79c1bf
2018-08-09 18:20:24 +00:00
Tony Wickham 9c80147e70 Merge "Use default animation when launching a TaskView that's off screen" into ub-launcher3-master 2018-08-09 16:37:53 +00:00
Tony Wickham 9756df4564 Use default animation when launching a TaskView that's off screen
Now that pressing back launches the previously running task, it's
possible to get TaskView#launch() when the TaskView is not on the
screen (i.e. user scrolled before pressing back). In this case, we
shouldn't use the launch-from-recents animation, as that animation
assumes the task view is the current page or an adjacent one.

Change-Id: I7bec91c9437954061affdedc8cd9e48820ce7357
2018-08-08 17:55:10 -07:00
Tracy Zhou af82a882d7 Fix PIP window moving during quick scrub.
Bug: 110799409
Test: Manual
Change-Id: Ib7c7d87ddb5aee3149127415bfc31b9cd24dd16b
2018-08-08 15:50:52 -07:00
Sunny Goyal aad3359e8e Removing unused touch handling in PagedView so that it is similar to various platform class
Bug: 109828536
Change-Id: Ibaba3fb4298f2dc055d125acea5f4c47403bbef0
2018-08-08 12:12:46 -07:00
TreeHugger Robot 662f52b67f Merge "Unifying multiple definitions of MainThreadInitializedObject" into ub-launcher3-master 2018-08-08 19:07:09 +00:00
Sunny Goyal 7fee2a82e4 Merge "Launching last task when back button is pressed in overview" into ub-launcher3-master 2018-08-08 17:34:46 +00:00
Vadim Tryshev b02bcd4c76 Removing code duplication for getting swipe-up setting
This is between Tapl and Launcher

Bug: 110103162
Test: TaplTests suite
Change-Id: I5b458438834204ca257f45c707577b4d2793fb4e
2018-08-07 18:01:12 -07:00
Sunny Goyal 7244d45998 Unifying multiple definitions of MainThreadInitializedObject
Change-Id: I0e5addfe0353f971c76ffba8a0e2fbbce0f7e58e
2018-08-07 09:26:34 -07:00
Android Build Merger (Role) dc26977a26 [automerger] Use clear-all recent tasks call am: 68df758665
Change-Id: Ic8bcbef8d72e2ca48a2d6ffe4c0d7d40f2fba37c
2018-08-03 18:15:53 +00:00
Winson Chung 68df758665 Use clear-all recent tasks call
Bug: 80471073
Change-Id: Ibce9d521ba8d3903ff1f2fbdabfd391b15630bd7
2018-08-03 11:15:33 -07:00
Sunny Goyal e39690b218 Launching last task when back button is pressed in overview
Bug: 111158326
Change-Id: Ib38f12f177780d15dbee69e4a27c21aaa9a3e087
2018-08-02 13:35:38 -07:00
TreeHugger Robot 0b74a7fe5e Merge "Preventing state change duing the swipe up animation when the previous app transition is not complete" into ub-launcher3-master 2018-08-02 18:52:11 +00:00
Android Build Merger (Role) 26fbcb39da [automerger] Fix missing callback in fallback activity to re-enable high res loader. am: 37ff8be692
Change-Id: I7a4c81dab7150400f22fa8d4e784c981ba1e9ef2
2018-08-02 16:57:48 +00:00
Winson Chung 37ff8be692 Fix missing callback in fallback activity to re-enable high res loader.
Bug: 111515602
Change-Id: Ie4a9e709392ef9dad001651129a46d4caee0c2ae
2018-08-02 09:56:59 -07:00
Jonathan Miranda faf1086f33 Merge "Fix bug where icon appears large until transluscent activity finishes." into ub-launcher3-master 2018-07-31 18:41:16 +00:00
Matthew Ng 90646a5dd4 Tapping task icon in overview with scroll to it and open
Smaller devices or landscape with splitscreen can show more than one
task icon in overview. Tapping the icon when not in the middle will
scroll the task into the middle and open at the same time.

Change-Id: I0fe261e9a1b8ab6ad7e6c6ea64125a9c7b38da39
Fixes: 110371874
Fixes: 111446332
Test: splitscreen, overview in landscape, tap non-centered task icon
2018-07-27 15:47:14 -07:00
Jon Miranda 4a2b9d5e36 Fix bug where icon appears large until transluscent activity finishes.
It appears large because the pressed state of the view increases the scale,
and we want to leave the pressed state until the activity is launched.

With the remote app transitions, we now have a callback for when the activity
is done launching so we then cancel the "stayPressed" state.

Bug: 111742067
Change-Id: I25725e908b12f4dd1256294a26232b289db2d057
2018-07-24 14:50:56 -07:00
TreeHugger Robot 1143469a79 Merge "Tapl library" into ub-launcher3-master 2018-07-24 19:39:54 +00:00
Vadim Tryshev 2ce6a13f60 Tapl library
The public API of the library has finalized; flakiness has been removed;
code polished.

Bug: 110103162
Test: TaplTests suite
Change-Id: Ic156bbfeedb1cb9c4a48ef907f97e396e8e81936
2018-07-20 14:43:05 -07:00
Tony Wickham ae71e086a2 Merge "Add null check before playing recents scale down anim" into ub-launcher3-edmonton-polish 2018-07-19 21:55:36 +00:00
Android Build Merger (Role) 8bf6064fe0 [automerger] Add null check before playing recents scale down anim am: 7cc878b5ae
Change-Id: Ie10ecb7da0307d17c408979d4f6a85906d278c11
2018-07-18 22:55:55 +00:00
Tony Wickham 7cc878b5ae Add null check before playing recents scale down anim
When swiping up to overview from an app, we scale down RecentsView in
launcher, synchronized with the app window. In rare cases, however,
there may not be any TaskViews in launcher, so we should just ignore
the launcher component in this case. For example, this happens in
LockTask mode.

Bug: 110703110
Change-Id: Ib6f836581a3e12babf4e26e272b77bb529f86fd4
2018-07-18 15:51:43 -07:00
TreeHugger Robot 7b8ed5a111 Merge "Defer starting the high-res thumbnail loader until quick step/scrub" into ub-launcher3-edmonton-polish 2018-07-18 22:15:15 +00:00
Android Build Merger (Role) 498a9bd559 [automerger] Defer starting the high-res thumbnail loader until quick step/scrub am: 8eb49e079e
Change-Id: I3b69862c42175d7680fd6a4878247c3cf7c0081f
2018-07-18 22:06:04 +00:00
Winson Chung 8eb49e079e Defer starting the high-res thumbnail loader until quick step/scrub
- When hitting the home button, we may be loading high-res thumbnails
  unnecessarily since the high-res loader is already enabled when
  Launcher is started.

Bug: 111515602
Bug: 111156069

Change-Id: I367993b4ddf653b816355df005c745caed5e794a
2018-07-18 15:05:54 -07:00
Matthew Ng eb9cc9dbd5 Animate the long press icon scale for task menu to match task view
Use scale listeners to track each other's icon scale to match them.

Test: go to recents and long press icon
Fixes: 110789415
Change-Id: I9bba3130ecf1d099db9708c84e709d16f5906c36
2018-07-17 11:21:23 -07:00
Android Build Merger (Role) 1f8cbcf1c6 [automerger] App menu icon launching app info hides taskview menu am: 00fec0d53b
Change-Id: I9a9367b8c6f41aba000f842df7d44171392639ec
2018-07-14 00:02:12 +00:00
Matthew Ng 00fec0d53b App menu icon launching app info hides taskview menu
Change-Id: I0b493229d18027adbb7c1ee15b38d859e0b3a434
Fixes: 111405044
Test: go to overview, tap icon, tap app info
2018-07-13 17:00:24 -07:00
Sunny Goyal 379e8e0fa2 Preventing state change duing the swipe up animation when the previous app
transition is not complete

> This state change causes the RecentsView to get reset making the first
task visible

Bug: 111404703
Change-Id: I8ff2577bf965fb4cdf736fb18683ded63ade1872
2018-07-12 15:15:00 -07:00
Sunny Goyal 32f91ab991 Proxying touch events from RecentsTouchConsumer to Launcher
While swipe-up animation is running, the user can quickly start
another touch gesture. In that case we keep the recents transtion active
and proxy all touch events to launcher.

Bug: 110901700
Change-Id: Ie3b448dfea00473082dc9143423d3596504a3fcc
2018-07-12 14:06:54 -07:00
Sunny Goyal 0a40a187b5 Merge "Exposing some private methods to easily customize arrow popup" into ub-launcher3-master 2018-07-12 18:45:27 +00:00
TreeHugger Robot 90218c4435 Merge changes from topic "am-3a638250-0228-430a-9592-99d4a7bd5036" into ub-launcher3-master
* changes:
  [automerger] Workaround for flicker between handoff from app to task view am: 35a6848fa8
  Workaround for flicker between handoff from app to task view
2018-07-12 17:33:22 +00:00
Hyunyoung Song 956ec4b0e5 Remove device profile dependency from UserEventDispatcher
Bug: 110122682

Change-Id: I31ba61e60e31f1cc84e6d0cf115193e45d9fcfdb
2018-07-11 23:31:01 -07:00
Sunny Goyal 87b5eb689b Exposing some private methods to easily customize arrow popup
Change-Id: I6f6dc0604a616f26c0879732a0237767ddbfdccc
2018-07-11 14:35:51 -07:00
Android Build Merger (Role) e946640883 [automerger] Workaround for flicker between handoff from app to task view am: 35a6848fa8
Change-Id: Idcffacc752663758ac38937819457195b637ed10
2018-07-11 18:00:11 +00:00
Winson Chung 35a6848fa8 Workaround for flicker between handoff from app to task view
- Defer finishing the recents animation for a couple frames until the
  frame has likely been pushed to sf and drawn, otherwise the reparenting
  of the app surface may happen before the task view is visible in
  Launcher.

Bug: 111299394
Test: Swipe up repeatedly from an app
Change-Id: I627dc085a5e376436b2b8eb5841c45fd36deff42
2018-07-11 11:00:03 -07:00
TreeHugger Robot 17b7d36594 Merge "Touch up/cancel over navigation bar will send down event to drag layer" into ub-launcher3-master 2018-07-10 19:48:24 +00:00
Matthew Ng 7068f56922 Touch up/cancel over navigation bar will send down event to drag layer
There is no events from nav bar to send to drag layer until crossing the touch
slop on move. If up occurs, sending the touch down event will clear floating
objects such as the folders.

Change-Id: I6095506f505535e04d59c403e539f37e27295470
Fixes: 111008382
Test: open folder, touch an empty space on nav bar
2018-07-10 12:38:55 -07:00
Sunny Goyal d7e217abb3 Animating task icon scale when using long swipe
> Separating the task icon animation and setter into 2 separate methods and calling each appropriately
> Using taskId instead of TaskView for ignoreSet as taskView can be reassigned

Bug: 110893730
Change-Id: I7bc958e53becffdf633766373b257ead2eeef2ad
2018-07-10 12:32:31 -07:00
TreeHugger Robot 070d23091a Merge "Dismiss pip will fade task in and snap to it" into ub-launcher3-master 2018-07-10 19:10:11 +00:00
Winson Chung ce368154ce Prevent extra call to set activity orientation.
- We can request the locked orientation for quickscrub only when we
  start quickscrub

Bug: 80500702
Change-Id: I2e83ff916f92959fccf79f1d6b987806338512f5
2018-07-03 21:51:06 +00:00
Sunny Goyal d0e360a858 Lazy loading LauncherAppState
Separating InvarantDeviceProfile out of LauncherAppState and creating
LauncherAppState only when it is actually used

Change-Id: I2ee55f53cae01f11203f94675bb5f70c65ad2b9d
2018-07-03 14:39:21 -07:00
Matthew Ng 87555c56dc Fixed small line that may appear opening task menu with decimal position
Round the y and x values to get correct position without showing a small
line when opening the task menu.

Test: increase the display and font size to large, go to overview and
tap icon
Fixes: 110415497

Change-Id: Ia41378863fb08fc72f5cd14b40f45769ab612d22
2018-07-03 15:25:31 +00:00
Sunny Goyal 7f920b8d5e Cleaning up build rules to simplify customizing derivative projects
> Using {packageName} instead of hardcoding com.android.launcher3 in AndroidManifest.xml
  for strings which are dependent on packageName
> Adding proguard rule to prevent obfuscating any overridable class
> Making it easier to extend SettingsActivity by overriding the fragment class

Change-Id: I5668c3f33b4cf20ad01d7f54b3d79cc0d268d391
2018-07-02 11:16:04 -07:00
Android Build Merger (Role) acbda3fe52 [automerger] Last minute swipe up overshoot tweaks am: d63e6dff28
Change-Id: I75d08b42fd6a62f6ab58ce51d1309f13392cd58b
2018-06-27 22:57:17 +00:00
Adam Cohen d63e6dff28 Last minute swipe up overshoot tweaks
b/109709720

Change-Id: Ie3831289a9af2ba4b03fcbb4f2cbb3f4c2431aec
2018-06-27 15:57:12 -07:00
Tony Wickham 969abca838 Merge "Swipe up overshoot always plays" into ub-launcher3-edmonton-polish 2018-06-27 21:00:54 +00:00
Android Build Merger (Role) 002560dee7 [automerger] Swipe up overshoot always plays am: cc3755da6e
Change-Id: I663d742f3349d52e74d84a6d4f5376588abf201c
2018-06-27 19:25:50 +00:00
Tony cc3755da6e Swipe up overshoot always plays
Instead of using an OvershootInterpolator, we adjust the end progress to > 1 and
add a second interpolator to settle back to 1. That way, even if the animation runs
starting very late, e.g. 1.0, it still has room to overshoot. We use this same
OvershootParams class to calculate an overshoot for a blocked long fling as well.

Bug: 109709720
Change-Id: I43152237e4350f93e7c462c22e68d09d05c1dd57
2018-06-27 12:25:35 -07:00
Android Build Merger (Role) a43a22dad7 [automerger] Revert "Add stagger and "springs" to app closing transition." am: f274996ef3
Change-Id: Ic3e64ddfcd62489548e0b929d899270d0fccf9e6
2018-06-26 23:26:35 +00:00
Jonathan Miranda f274996ef3 Revert "Add stagger and "springs" to app closing transition."
This reverts commit cd57901ca4.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I13e9d2db8f6d6118a1448ba04b67c81b4e485447
2018-06-26 23:24:20 +00:00
Android Build Merger (Role) c30621cff9 [automerger] Revert "Refactor "spring" code into one method." am: 6a2a1a91a0
Change-Id: I158aa43199f611917b2a2f24a05c0431c8017699
2018-06-26 23:00:46 +00:00
Jonathan Miranda 6a2a1a91a0 Revert "Refactor "spring" code into one method."
This reverts commit b83c71aa24.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I747dfc2ed63709f5f4032b4d4bd2cf3cd5d9e8ce
2018-06-26 23:00:44 +00:00
Matthew Ng 93ea9517fc Dismiss pip will fade task in and snap to it
Test: pip maps and dismiss when on overview
Fixes: 73097187
Change-Id: I6eedb8c2a57963f29d5655dd8f2bcdd350ed4792
2018-06-26 14:25:59 -07:00
Android Build Merger (Role) 012dad7523 [automerger] Revert "Tune app closing/launcher resume animation "spring" values." am: 5023771e05
Change-Id: I7216325a14ad1328311eecc59e7c99f79dc54521
2018-06-26 20:21:09 +00:00
Jonathan Miranda 5023771e05 Revert "Tune app closing/launcher resume animation "spring" values."
This reverts commit c9a7c50fac.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I7ed4270b742803265ed4e3e13b63688842e0b48c
2018-06-26 20:21:07 +00:00
Android Build Merger (Role) a39ad8044a [automerger] Tune app closing/launcher resume animation "spring" values. am: c9a7c50fac
Change-Id: I620eb8f6d2c86b64eb2ff2ed6df2efecfd80a169
2018-06-25 23:43:41 +00:00
Jon Miranda c9a7c50fac Tune app closing/launcher resume animation "spring" values.
Bug: 109828964
Change-Id: I64252667451f511b7affdde5ffb28812876e7f4c
2018-06-25 16:42:58 -07:00
TreeHugger Robot 563bc3d1fa Merge "Invoking splitscreen takes snapshot of task without scrim" into ub-launcher3-edmonton-polish 2018-06-22 23:21:00 +00:00
Android Build Merger (Role) 911f9257aa [automerger] Invoking splitscreen takes snapshot of task without scrim am: 26f02037cd
Change-Id: I91eb9037fb7b4e601c8d6edb3be7944e7f8b5d84
2018-06-22 23:10:24 +00:00
Matthew Ng 26f02037cd Invoking splitscreen takes snapshot of task without scrim
Change-Id: I456200f9f61f12b7b80a2604cfeffc2fa16711ce
Fixes: 109676098
Test: splitscreen in overview
2018-06-22 23:10:23 +00:00
TreeHugger Robot c22289b69e Merge "Touching outside the task in overview goes home" into ub-launcher3-edmonton-polish 2018-06-22 17:44:37 +00:00
TreeHugger Robot 7460b0cf75 Merge changes from topic "am-85252a0e-4c92-4f09-87df-0c1bbcacd786" into ub-launcher3-master
* changes:
  [automerger] Touching outside the task in overview goes home am: b5669efa36
  Touching outside the task in overview goes home
2018-06-22 17:44:37 +00:00
TreeHugger Robot f6ab06df8b Merge "Fetching assist data only if required by overlay" into ub-launcher3-edmonton-polish 2018-06-22 00:57:57 +00:00
Android Build Merger (Role) e98d0cec4a [automerger] Touching outside the task in overview goes home am: b5669efa36
Change-Id: Ib134345cae0afc91f22899fac20a8b93c5930dc1
2018-06-21 23:04:07 +00:00
Matthew Ng b5669efa36 Touching outside the task in overview goes home
There is also a deadzone area around the clear all button to tap easier.

Test: start overview click anywhere that is not the shelf or task
Change-Id: I187ff264444da542aca111b57d94c8199f5a0384
Fixes: 110232233
2018-06-21 16:03:48 -07:00
Android Build Merger (Role) eb12de06c3 [automerger] Fetching assist data only if required by overlay am: b44c6552b3
Change-Id: Ia6b34b90e9c8015e1e1d2c9c61dce22aa52c1729
2018-06-21 19:19:09 +00:00
Sunny Goyal b44c6552b3 Fetching assist data only if required by overlay
> Preloading assist data after the touch interaction is complete
> Fixing swipe-up callbacks called in case of quickscrub

Bug: 110532258
Change-Id: I472884ec96be877db5f38098fd0165d464e836ed
2018-06-21 12:18:33 -07:00
TreeHugger Robot 0d746f600b Merge changes from topic "am-dbbb1f28-c3b5-48d1-928e-896c408bee5e" into ub-launcher3-master
* changes:
  [automerger] Allow clear all button in overview be clickable if visible am: 330a634648
  Allow clear all button in overview be clickable if visible
2018-06-21 17:38:24 +00:00
TreeHugger Robot 03a190d284 Merge "Allow clear all button in overview be clickable if visible" into ub-launcher3-edmonton-polish 2018-06-21 17:38:24 +00:00
Android Build Merger (Role) cddbbc4e72 [automerger] Refactor "spring" code into one method. am: b83c71aa24
Change-Id: I94408b509d703f10b0af2c34c363c680e12128d0
2018-06-21 16:35:01 +00:00
Jon Miranda b83c71aa24 Refactor "spring" code into one method.
+ Increases the alpha duration of the staggered spring views.

Bug: 109828964
Change-Id: Id7dff9718dfcd5ca5653fdde36d3792201f483b5
2018-06-21 09:34:25 -07:00
Jonathan Miranda 48010091f4 Merge "Adjust interpolators when swiping from overview to all apps" into ub-launcher3-edmonton-polish 2018-06-21 00:30:02 +00:00
Android Build Merger (Role) 913171a692 [automerger] Adjust interpolators when swiping from overview to all apps am: 17be4e71b2
Change-Id: I8a95de51e5b74cb8d3c80539c2db8ec067e1b660
2018-06-20 23:58:34 +00:00
Tony Wickham 17be4e71b2 Adjust interpolators when swiping from overview to all apps
- All apps content fades in quickly so that icons are opaque by the time
  they are on screen
- Recents fades out late so that we don't see it as translucent while
  the transition is continuing (the translucent icon top of tranclucent
  task view looks bad, for instance)
- Fix colored scrim that appears over recents - was using 0 to 1 instead
  of 255

Bug: 79867407
Change-Id: I4f50423157f7870c8d0708f586a72e3e5a7b6559
2018-06-20 16:58:21 -07:00
Android Build Merger (Role) 15caa4e90f [automerger] Add stagger and "springs" to app closing transition. am: cd57901ca4
Change-Id: Iecc50b99ad23502212d6cd164b06ab83a9b5e177
2018-06-20 23:35:34 +00:00
Jon Miranda cd57901ca4 Add stagger and "springs" to app closing transition.
The "spring" is actually three sequential animations: 1) a slide,
2) an oscillation, and 3) a settle.

Bug: 109828964
Change-Id: I0a2c55f877446a6408952a1201636760283be57b
2018-06-20 16:35:19 -07:00
Android Build Merger (Role) 26a2393efb [automerger] Allow clear all button in overview be clickable if visible am: 330a634648
Change-Id: I0e2365170f4e9eb633e55b4525d9381391931694
2018-06-20 19:55:23 +00:00
Matthew Ng 330a634648 Allow clear all button in overview be clickable if visible
Test: enter overview, make sure clear all button is invisible, try to
tap its location
Fixes: 110432640

Change-Id: I7531e4c6cfdcc9a29d98da24a73c32b8080e013c
2018-06-20 12:54:36 -07:00
TreeHugger Robot 730155ea09 Merge "Fix bug where floating view is removed before window animation is complete." into ub-launcher3-edmonton-polish 2018-06-20 18:46:33 +00:00