Commit Graph

13651 Commits

Author SHA1 Message Date
TreeHugger Robot 5b1cd9cecb Merge "time_left_for_app: increasing limit" into ub-launcher3-master 2019-01-30 21:28:17 +00:00
vadimt 5c749392bd time_left_for_app: increasing limit
Bug: 123638440
Change-Id: I20a444edfdad737206fcbcb9ab5c2b7c1d1973da
Tests: emulated a string with this size
2019-01-30 13:17:36 -08:00
vadimt 21550b4673 Increasing char limit for string, per localization request.
Bug: 123638453
Change-Id: I40aea84f88cb91e4cd123fa0181894867c0e02f7
Tests: none
2019-01-30 13:04:07 -08:00
TreeHugger Robot 4229752c3b Merge "Split OverviewToAllApps for Go" into ub-launcher3-master 2019-01-30 20:59:02 +00:00
TreeHugger Robot 83be8b20dd Merge "Move ActivityControlHelper impl to upper level" into ub-launcher3-master 2019-01-30 20:27:39 +00:00
Tony Wickham 42dec18638 Merge "Make quick switch ("hook") more reliable" into ub-launcher3-master 2019-01-30 19:56:23 +00:00
vadimt 01e8871b54 Support for a test for pausing an app via Overview.
Bug: 117888000
Change-Id: If9fc76ddfbc756acf39ad5209904d3099c2e4e5f
Tests: on the Nexus side
2019-01-30 11:39:56 -08:00
TreeHugger Robot abdb80a6d0 Merge "Adding dismiss-all method" into ub-launcher3-master 2019-01-30 19:06:06 +00:00
TreeHugger Robot bc7011a5d2 Merge "Fixing AOSP TaplTestsLauncher3.testAllAppsFromHome test" into ub-launcher3-master 2019-01-30 18:41:58 +00:00
TreeHugger Robot 43d984b766 Merge "Fix swiping up to Overview in landscape mode" into ub-launcher3-master 2019-01-30 18:41:36 +00:00
vadimt 8ac8d29121 Adding dismiss-all method
See the bug.

Bug: 123259701
Change-Id: I4b41d2cfe14c53db1a99cb6a693d3047057fa925
Tests: testOverview
2019-01-30 10:36:52 -08:00
TreeHugger Robot d655eb2fe8 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2019-01-30 04:19:42 +00:00
Bill Yi 2aeee4ba55 Import translations. DO NOT MERGE
Change-Id: Ic9282c2ed62a6ac88e8e61f309f1dfffdf1e487a
Auto-generated-cl: translation import
2019-01-29 19:35:37 -08:00
vadimt 44d227a5b8 Fixing AOSP TaplTestsLauncher3.testAllAppsFromHome test
On the AOSP target, there are not enough apps to make App Apps
scrollable. Moving the test to QS Tapl tests.

Change-Id: I95e196bafdbd0fee77705554890a7c3cda7ac92a
Tests: the affected test
2019-01-29 17:23:25 -08:00
Tracy Zhou f13380543f Finish recents animation when user long swipes to all apps.
Change-Id: I4b7c419236f3a31f882d8bf5a7f526cb7310215a
Fixes: 123601356
Test: Long swipe to all apps. Release and swipe down to home. Make sure live tile is gone.
2019-01-29 17:19:45 -08:00
Tony Wickham 023f404a12 Make quick switch ("hook") more reliable
- Add max orthogonal displacement to MotionPauseDetector to avoid
  pausing when swiping left or right
- When gesture in ambiguous between swipe up for home or swipe over
  for the new task, base the decision on the faster velocity component
- Disable recents freescroll mode when dispatching motion from the nav
  bar. This way recents handles it naturally and we don't need custom
  logic to snap to the next page at the end of the gesture.
- Fix a bug where you couldn't hook to start a new task when SWIPE_HOME
  was disabled

Bug: 111926330
Change-Id: If63aa2bb32b57c3f401c5df8b3f6f4efec97b1fa
2019-01-29 17:11:12 -08:00
Kevin 701b82c838 Move ActivityControlHelper impl to upper level
This CL moves the implementations of ActivityControlHelper from an inner
class to an upper level class in preparation to override the
implementation-specific logic for Go.

Bug: 114136250
Test: Manual test NexusLauncher, Launcher3QuickStepGo
Change-Id: Ic4b004f57cde263414c8dc57fe5c868dabc00dbe
2019-01-29 14:54:34 -08:00
Kevin 3d5551a18e Split OverviewToAllApps for Go
This CL swaps out the current OverviewToAllApps touch controller with
the Go specific implementation. Moreover, since we only use this class
in landscape, we rename it to LandscapeStatesTouchController to avoid
confusion.

Bug: 114136250
Test: Manual test NexusLauncher, Launcher3QuickstepGo, Go recents
Change-Id: I6025cfe9f400705a4666fd92298a08a0c0ef7202
2019-01-29 13:13:04 -08:00
TreeHugger Robot b3ca6aee2c Merge "Changing min sdk to 25" into ub-launcher3-master 2019-01-29 20:43:01 +00:00
TreeHugger Robot 5aabc55780 Merge "Add springs for recents dismiss animations." into ub-launcher3-master 2019-01-29 20:35:02 +00:00
Jon Miranda 86f6c449a7 Add springs for recents dismiss animations.
Bug: 111698021
Change-Id: If518ba5946ea6fada67f549f2f29e1ab1c89969d
2019-01-29 12:13:57 -08:00
TreeHugger Robot 8d4430a1d7 Merge "Splitting TaplTests into a pure AOSP and QS parts" into ub-launcher3-master 2019-01-29 20:10:51 +00:00
Sunny Goyal 8c48d8bea6 Changing min sdk to 25
Change-Id: I0d28069967854357ca755bf25dec19d4979bdecf
2019-01-29 11:29:52 -08:00
vadimt dc2f2dc639 Splitting TaplTests into a pure AOSP and QS parts
This will allow running as many as possible automatic checks on AOSP
launcher and moving most AOSP tests that use TAPL to where they belong
to: Tapl Tests.

Bug: 110103162
Test: Running the test suites
Change-Id: I9192354e6097698d4b942c5682b79664ecc2336d
2019-01-29 10:53:34 -08:00
TreeHugger Robot 9752705e92 Merge "Fix bugs with quickstep springs." into ub-launcher3-master 2019-01-29 18:35:03 +00:00
Sunny Goyal 703ee9f675 Passing proper velocity information when simulating touch events on recents view
Change-Id: I488b8d61c47e49dbdc65b16e2470b171912efc3f
2019-01-28 16:46:48 -08:00
TreeHugger Robot 0428616762 Merge "Adding support for swipe and hold to overview from home screen to all-apps" into ub-launcher3-master 2019-01-29 00:04:59 +00:00
Sunny Goyal 8b2b4e24ee Adding support for swipe and hold to overview from home screen to all-apps
- After the atomic animation ends, overview jumps slightly because the
  normal -> all apps transition puts it at a different position than
  normal -> overview

Bug: 111926330
Change-Id: I6ca359b3ef2fc4d0b6b96229d8bf118bd0db9649
2019-01-28 15:51:19 -08:00
Jon Miranda f82fd49244 Fix bugs with quickstep springs.
* Listeners weren't getting called properly. We add one listener to the
SpringbjectAnimator and then use that to dispatch to the other listeners.

* We fast finish on both double swipe cases to prevent the shelf from
  ending in an invalid state. This causes a visual jump but this can be
  addressed in follow up CL.

Bug: 111698021
Change-Id: Ifeb55da9dd253d062122a8e1577f94044f688641
2019-01-28 15:47:59 -08:00
Sunny Goyal e0c5f5d0ab Fixing jump when swiping up because startDisplacement was getting reset in the middle
Change-Id: I6b8be9505ec2bd22bbc76efe81b6f00231645267
2019-01-28 13:02:57 -08:00
TreeHugger Robot 989732be57 Merge "Unifying the two different state listeners" into ub-launcher3-master 2019-01-28 20:34:32 +00:00
Tony Wickham 07f164dc2e Merge "Swipe up to go home, swipe and hold to go to overview" into ub-launcher3-master 2019-01-28 19:59:54 +00:00
Sunny Goyal 7f45514d15 Unifying the two different state listeners
Bug: 123376689
Change-Id: I61d4865044a1bd27ee78002a4083a686233740b7
2019-01-28 11:56:54 -08:00
TreeHugger Robot 80d03d1fa4 Merge "Move overview component logic from OverviewCommandHelper" into ub-launcher3-master 2019-01-28 19:43:32 +00:00
Tony Wickham 18759647f0 Swipe up to go home, swipe and hold to go to overview
- Pause (swipe and hold) detection based on velocity and acceleration,
  so it feels immediately responsive
- Don't show shelf during swipe; peek when swipe pauses
- Disallow long swipe
- If swiping to go home (we didn't detect a pause), animate window and
  launcher together (not final animation, but mechanism is in place)
- Guarded by SWIPE_HOME flag

Bug: 111926330
Change-Id: Ie4af04517c6688e3d649c2971a1aad197837cb3b
2019-01-28 11:37:33 -08:00
Kevin 2a9e3a66bc Move overview component logic from OverviewCommandHelper
OverviewCommandHelper previously managed both updating the current
overview component and interfacing inputs to switch to the
overview activity. This CL splits out the former to a separate
class so that the responsibilities are more focused and the code
can be reused more easily.

Test: Manual test NexusLauncher, Launcher3QuickStepGo by switching to
overview
Change-Id: I4e90918703f351d235f3cb0a45079cbb31b753ab
2019-01-25 15:17:36 -08:00
Tracy Zhou 7eebfc5649 Merge "Make bounce animations less aggressive" into ub-launcher3-master 2019-01-25 20:36:23 +00:00
Vadim Tryshev 44ecb9d7cb Fix swiping up to Overview in landscape mode
Bug: 121280703
Change-Id: I9802c6f547a592be891e7c4f5e8db8dadaa0425d
Tests: TaplTests, locally modified to force Landscape
2019-01-25 12:29:42 -08:00
Hyunyoung Song b3ef909b5b Merge branch 'ub-launcher3-master', build 5258802
Test: Manual

Bug:111697218  [Quickstep 1.1] Integrate PiP / Live Tiles into Quickstep
Bug:111698021  [Quickstep 1.1] Improve motion within Quickstep
Bug:111699315  [Quickstep 2] Improve Quickscrub / switch gesture
Bug:111926330  [Quickstep 2] Nav bar, gestures, edge-to-edge, and OEM updates
Bug:112324288  Pixel launcher keeps on crashing when trying to remove a widget
Bug:114136250  Have a more spartan RecentsActivity on android go
Bug:117332845  testPendingWidget_autoRestored is failing on TAP
Bug:118206886  Add fallback launcher mechanism
Bug:118319143  1Digital Wellbeing - Implement showing app's remaining time in Launcher
Bug:119500058  Tests switch Launcher to a state without icons
Bug:120628042  Add race condition repro tests
Bug:122262084  Expose Launcher grid customization options
Bug:122262946  Each app installed from playstore occupies new workspace
Bug:122345781  Inflation happens and a binder call during swipe up gesture, that may cause jank
Bug:122347746  Jank in app closing animation for Maps on taimen
Bug:122472687  Recents icon shape should change when theme changed.
Bug:122545624  Iconloaderlib: make createIconBitmap in BaseIconFactory a public method
Bug:122612839  Flash of old snapshot when swiping up
Bug:122662526  Test broken: can't swipe back from AllApps to Overview
Bug:122809947  [C2][F2] Launcher keeps restarting after Setup wizard, it impacts testing seriously.
Bug:65162781  Status bar gradient sometimes slides up when unlocking
Change-Id: I22774df74963efb9189ea2a8bf3cdace6361c988
2019-01-24 22:33:58 -08:00
TreeHugger Robot 90048de773 Merge "Disable window corner rounding on some devices" into ub-launcher3-master 2019-01-25 00:31:52 +00:00
Lucas Dupin a2074857dc Disable window corner rounding on some devices
Bug: 122347746
Test: visual; on taimen, marlin and walleye
Change-Id: If6ac1c75297dd25ad40d3ec61537e8793bceceb7
2019-01-24 16:19:49 -08:00
Tracy Zhou c49f3de3bd Make bounce animations less aggressive
Users have reported that both home and shelf bounce animations are pretty aggressive. We should limit the number of times that we show bounce animations for both quickstep and non quickstep users so that they can have a less disturbing experience.

Change-Id: I445fc9c7c6ac8a9c0ef34381fa672bf1b0203737
Fixes: 123356757
Test: Manual test
2019-01-24 15:48:20 -08:00
TreeHugger Robot f81da5f4ee Merge "Removing querying whether DWB time limit is for a group" into ub-launcher3-master 2019-01-24 23:07:48 +00:00
vadimt d4c45e8104 Removing querying whether DWB time limit is for a group
This API is removed for Q.

Bug: 118319143
Test: Manual
Change-Id: I1605ba14a914bfe018c4a2f6d974afaea7e51e05
2019-01-24 13:52:49 -08:00
Kevin Han 57f88bd0ec Revert "Remove OverviewToAllAppsController for Go"
This reverts commit 792fcc3aec.

Reason for revert: This class actually manages more than just overview to all apps transitions, and Go needs some form of this for landscape transitions state transitions

Change-Id: I073dcc94dda06ff8d87166d2674927df8f2418f5
2019-01-24 20:36:04 +00:00
Kevin 792fcc3aec Remove OverviewToAllAppsController for Go
Go's recents does not support an overview to all apps transition (as
there will be no hotseat and swiping will be used to navigate the view
itself). As a result, we never need the controller, so we don't take in
the class as a source and do not add it as a touch controller.

Bug: 114136250
Test: Manual test Launcher3QuickstepGo, NexusLauncher,
Launcher3IconRecentsGo
Change-Id: I7fff9d1e8727bd978e84462436e37219c57f7af6
2019-01-23 17:12:44 -08:00
TreeHugger Robot 38e87e8010 Merge "Split LauncherAppTransitionManagerImpl for Go" into ub-launcher3-master 2019-01-24 01:07:34 +00:00
TreeHugger Robot 886f1a1115 Merge "Split OverviewState for IconRecents Go" into ub-launcher3-master 2019-01-23 23:37:41 +00:00
Kevin c4ad03b9ef Split LauncherAppTransitionManagerImpl for Go
Split LauncherAppTransitionManagerImpl common functionality into a base
quickstep app transition class and subclass for recents-specific
implementation. In addition, override the app transition manager to the
appropriate manager depending on the build.

Bug: 114136250
Test: Manual test NexusLauncher, Launcher3GoWithQuickstep
Test: Build Launcher3GoIconRecents
Change-Id: Iab1b5ae0c75af276879d5e12df95f62a514bf571
2019-01-23 14:59:19 -08:00
Kevin 932ab718fd Split OverviewState for IconRecents Go
Split common functionality in OverviewState so that it can be reused in
both implementations for IconRecents Go and non-Go.

Bug: 114136250
Test: Manual test NexusLauncher, Launcher3GoWithQuickstep
Test: Manual test IconRecentsGo (gets to recents screen w/o crashing)
Change-Id: Ibff5d3573b3b22dcdfda1b0662d4dd219d2e382f
2019-01-23 13:01:57 -08:00