Commit Graph

2096 Commits

Author SHA1 Message Date
Sunny Goyal c7b214bf50 Merge "Disabling horizontal swipes if the app has draggable content at the bottom" into ub-launcher3-qt-dev
am: f4fa4be5d6

Change-Id: I863b97d7073b492fafef18cd2389d1e1aaec6d46
2019-05-30 15:37:31 -07:00
Sunny Goyal 38d8a63d07 Disabling horizontal swipes if the app has draggable content at the bottom
Bug: 133844237
Change-Id: I67a4140d56f87c464e436d394da77127a965c3e5
2019-05-30 15:13:09 -07:00
Vadim Tryshev 443f835070 Merge "Adding debug tracing for a lab-only issue" into ub-launcher3-qt-dev
am: 5f642bf783

Change-Id: Ib5ca0a16c36a704c0e7717d6dfdd4abba82b2f34
2019-05-30 11:18:54 -07:00
vadimt 26185e1fed Adding debug tracing for a lab-only issue
Task doesn't get resumed upon clicking at it.

Bug: 133765434
Change-Id: I8c5c1308041949d94c6982c78b8337ea81ad400f
2019-05-30 10:30:32 -07:00
Sunny Goyal 82fda10b26 Merge "Overview - Add motion to the footer shown on overview tasks." into ub-launcher3-qt-dev
am: 1d7b2a0672

Change-Id: I786cf2ca04a33d86070786f57c7d94f74af60751
2019-05-29 17:36:43 -07:00
Sunny Goyal 1d7b2a0672 Merge "Overview - Add motion to the footer shown on overview tasks." into ub-launcher3-qt-dev 2019-05-30 00:18:38 +00:00
Zak Cohen 3f6019fde4 Overview - Add motion to the footer shown on overview tasks.
The motion mirrors the icon view.

Bug: 125844074
Test: manual
Change-Id: Ib980657763aa82c45319c7c93be652f6fc89ffe4
2019-05-29 16:54:36 -07:00
Jon Miranda 04b7fa18e7 Merge "Fix bug where shape reveal progress gets started too early." into ub-launcher3-qt-dev
am: 1dbec0ef43

Change-Id: I934cccd1c0c79902938c5e3c3e9454cb0d45bfce
2019-05-29 15:14:50 -07:00
TreeHugger Robot 1dbec0ef43 Merge "Fix bug where shape reveal progress gets started too early." into ub-launcher3-qt-dev 2019-05-29 21:57:41 +00:00
Jon Miranda cbafc082f9 Merge "Animate workspace upwards when opening an app." into ub-launcher3-qt-dev
am: fafe347533

Change-Id: I0e645edd227aad7a46e7de082dbe63c8683cb258
2019-05-29 14:56:55 -07:00
Jon Miranda 87fd26fb21 Merge "Add staggered springs animation when swiping up to home." into ub-launcher3-qt-dev
am: ea068967ae

Change-Id: I67bb1689ca5b0154dd6480db55fac8105c8617d4
2019-05-29 14:56:40 -07:00
TreeHugger Robot fafe347533 Merge "Animate workspace upwards when opening an app." into ub-launcher3-qt-dev 2019-05-29 21:53:32 +00:00
TreeHugger Robot ea068967ae Merge "Add staggered springs animation when swiping up to home." into ub-launcher3-qt-dev 2019-05-29 21:47:27 +00:00
Jon Miranda 119a586245 Animate workspace upwards when opening an app.
Bug: 123900446
Change-Id: I3d08985f8362038f50728e91e2fedf1c97e326ff
2019-05-29 14:39:01 -07:00
Jon Miranda c69d1ffd92 Add staggered springs animation when swiping up to home.
Bug: 123900446
Change-Id: I275e34c6dca5b026f272ab216b18651c0df27bc4
2019-05-29 14:32:49 -07:00
Jon Miranda 928fc8d1e2 Fix bug where shape reveal progress gets started too early.
* This caused the shape to not match the window size on app close.

Bug: 123900446
Change-Id: Iaa2c06f19c535f72ae4c080b4bc847d336f1a77d
2019-05-29 14:19:16 -07:00
Vadim Tryshev a417f95921 Merge "Increasing wait time after mode switch." into ub-launcher3-qt-dev
am: 5a93e5d895

Change-Id: I6d1f172c7c130d0d09bc58a2360ef167a97608a7
2019-05-29 13:45:06 -07:00
vadimt b06f9f8c78 Increasing wait time after mode switch.
This is temporary. Apparently, it takes time for Sys UI to update after
the mode switch.

Change-Id: I434b86af15d9987a448682684c790d89acab85dc
2019-05-29 13:05:06 -07:00
Bill Yi 9789beae0e Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I029f3fe3ecc187db70a0e86ed98f498f04be1d0a
2019-05-28 19:13:27 -07:00
Winson Chung 293d964024 Merge "Support individual lock task features" into ub-launcher3-qt-dev 2019-05-29 00:10:02 +00:00
Tony Wickham 5860288fc8 Merge "Continue scaling down recents past final position in 0 button mode" into ub-launcher3-qt-dev 2019-05-28 23:21:32 +00:00
TreeHugger Robot e34c91765f Merge "Improving swipe up interaction when device is locked" into ub-launcher3-qt-dev 2019-05-28 23:05:31 +00:00
Sunny Goyal 221895d06b Improving swipe up interaction when device is locked
When device is locked, only scale down the top task as a response to
the user interaction. When user flings or lifts his finger, the task
is dismissed to go to the lock screen

LockScreenRecentsActivity is an empty activity which starts on top of lock
screen and finishes immediately. This allows us to start a recents transition
with just the top activity as the animation target. This target is then used
for swipe up interaction

Bug: 133167096
Change-Id: I466ed142ea33d626c78cb9cc5f6311bad26b8d98
2019-05-28 15:55:07 -07:00
Zak Cohen 560fe07448 Chips container - Don't hard code the height of the chips container.
When the container was present, but empty, it was showing it's background.

Bug: 133783088
Change-Id: I97b65435d66e9ced7f5487dc50a00665794f8fcd
Tested: manual
2019-05-28 14:53:41 -07:00
Tony bef6a44e7b Continue scaling down recents past final position in 0 button mode
- Previously, we clamped the progress to 1 when reaching mTransitionDragLength.
  Now, we allow dragging all the way to the top of the screen, and store this
  new top progress in mDragLengthFactor (> 1f).
- Because the launcher animation controller is inherently bound to a progress
  between 0 and 1, we have to do a bit of trickery involving interpolators.
  Specifically, we normalize the progress to 0 to 1 by dividing by
  mDragLengthFactor, but then we set the interpolators to multiply their
  progress by mDragLengthFactor. The result is that the animation progress
  appears to go from 0 to mDragLengthFactor, just like the window progress.
- To avoid scaling too small, we start interpolating the progress at a certain
  point, ending at a specified max progress when reaching the top of the screen.

Bug: 131741395
Change-Id: Ie8b4b56d37249cd1456f93c110c26c78fe052dc0
2019-05-28 21:41:43 +00:00
vadimt 2d6cd80bc9 Launcher reports whe 0-button swipe-up gesture pause is detected.
This eliminates an unreliable timeout.

Also removing an unnecessary check for harness that is done by the
called method.

Change-Id: If954580060415cbb2952532c16ea0ae4dc7b9469
2019-05-24 19:28:40 -07:00
Sunny Goyal 55d1e44c47 Fixing user getting stuck in quick-switch state
If we are cancelled after the animation has completed, but before the deferred frame
was captured, we set the state as cancelled, and start the new consumer with the
existing recents controller.
But after the deferred frame, we finish the controller (and since the state was set to
cancelled, do not launch the new task)

Bug: 132756514
Change-Id: If30af713c76b6d895d0b01b93d31c0e1403b7214
2019-05-24 17:20:10 -07:00
TreeHugger Robot 3831fc99dc Merge "Making some fields accessible to subclasses" into ub-launcher3-qt-dev 2019-05-24 22:28:34 +00:00
Sunny Goyal c62699fd63 Merge "Removing prediciton loading state" into ub-launcher3-qt-dev 2019-05-24 22:01:09 +00:00
TreeHugger Robot 1625bf74dd Merge "Adding myself as an owner of test directories" into ub-launcher3-qt-dev 2019-05-24 18:06:28 +00:00
vadimt addaab60fa Adding myself as an owner of test directories
Change-Id: I3d6649a2b804715cebb80b8cac881ef227738088
2019-05-24 10:54:12 -07:00
TreeHugger Robot f54839bf35 Merge "Remove unnecessary dispatchInsets routing" into ub-launcher3-qt-dev 2019-05-24 00:31:18 +00:00
Sunny Goyal 4c96dd2cd0 Merge "Moving TestInformationProvider to Launcher3 so that it can be used for testing Launcher3 without quickstep" into ub-launcher3-qt-dev 2019-05-24 00:12:14 +00:00
Sunny Goyal 9820c05f2b Removing prediciton loading state
Also fixing test flakyness due to delayed prediction loading

Bug: 132993129
Bug: 131854153
Change-Id: I85f7afff0e3ee0ca9e40e92e91681f797a0bc2de
2019-05-23 17:01:19 -07:00
TreeHugger Robot a80180bfcb Merge "Set scroller to new max duration if snapping too slowly" into ub-launcher3-qt-dev 2019-05-23 21:53:06 +00:00
Tony Wickham 9b832295c3 Set scroller to new max duration if snapping too slowly
Change-Id: I87bfc8f767f7ae9cbe838c2a9ba229bec179f526
2019-05-23 14:42:24 -07:00
Winson Chung dd71ca0437 Support individual lock task features
- If screen pinning is enabled, disable gestures and wrap with input
  consumer to break out of screen pinning (existing logic)
- If Home & Overview are both disabled, disable gestures completely
- If only Home is disabled, then always launch the user into fallback
  recents (to simplify logic around breaking out of overview into Home)
- If only Overview is disabled, then prevent swiping from going into
  overview or from triggering overview from home
- Switch to using screen pinning flag check instead of binder call

Bug: 133113732
Bug: 131698989

Change-Id: Ie6f447520d4cc3fa1eaaf8427ee014851688bf37
2019-05-23 14:33:05 -07:00
Sunny Goyal 68ff2d91cf Making some fields accessible to subclasses
Bug: 132975416
Change-Id: Icc7043d8299c88fcf505068f8cabd4705d19010d
2019-05-23 14:16:06 -07:00
Sunny Goyal ab3963ddcf Moving TestInformationProvider to Launcher3 so that it can be used for
testing Launcher3 without quickstep

Also keeping the provider as disabled until needed

Change-Id: Ib5f459e02ae551724b390f3b74f43d601568d749
2019-05-23 14:02:33 -07:00
TreeHugger Robot 571e51161c Merge "Quick patch for PredictionUiStateManager.applyState interrupting allapps" into ub-launcher3-qt-dev 2019-05-23 20:53:27 +00:00
vadimt 0c1ed7cb4c Quick patch for PredictionUiStateManager.applyState interrupting allapps
Constructor of PredictionUiStateManager posts an action in 5 sec, which
may interfere with the process of opening all apps.

Waiting until the posted action happens.

Hopefully this will fix massive flakes.

Bug: 131854153
Change-Id: I6544eae1a3b063c03e78185826c05a76add1f71b
2019-05-23 12:36:32 -07:00
TreeHugger Robot 1b9afd4f73 Merge "Reading navigation_bar_gesture_height for bottom swipe region" into ub-launcher3-qt-dev 2019-05-23 17:53:24 +00:00
Sunny Goyal f5d02b069a Reading navigation_bar_gesture_height for bottom swipe region
Bug: 132917885
Change-Id: I39d266fc34a69c3ba50246b5a66350942a85becb
2019-05-23 10:42:24 -07:00
Vadim Tryshev 789fe60dc4 Merge "Reducing test wait time from 60 sec to 10 sec" into ub-launcher3-qt-dev 2019-05-23 17:33:53 +00:00
vadimt 40bbfbed0f Reducing test wait time from 60 sec to 10 sec
Bug: 112282235
Bug: 121279417
Change-Id: Id88e782145b5fdae42354f6fce830aa05b78857a
2019-05-23 10:23:41 -07:00
Tony Wickham eb64fd3946 Merge "Capture screenshot when animating to home" into ub-launcher3-qt-dev 2019-05-23 01:56:08 +00:00
Jonathan Miranda 16dfcb9588 Merge "Use spring to update window/icon scale for swipe up animation." into ub-launcher3-qt-dev 2019-05-23 01:49:23 +00:00
TreeHugger Robot a338daa261 Merge "Adding a utility class to cache views at an activity level" into ub-launcher3-qt-dev 2019-05-22 23:35:03 +00:00
Tony Wickham aa8b2d86fc Capture screenshot when animating to home
This is to ensure the task thumbnail is captured in the correct
orientation, rather than waiting until after the task pauses
which might be after the device rotates to portrait.

Also update the state to wait until screenshot is captured
before finishing the transition to home.

Test: testStressPressHome
Test: Swipe up from a forced landscape app, enter overview;
      ensure task view thumbnail is shown correctly

Bug: 132687470
Change-Id: I5cd5f4b2a413628a8bdcb456e2d132c1c2da5258
2019-05-22 15:44:04 -07:00
Sunny Goyal 5686333117 Adding a utility class to cache views at an activity level
Bug: 122345781
Change-Id: I9a939e0b19c06c1089c1ceb515f8b97fb5dbb49e
2019-05-22 14:23:12 -07:00