Commit Graph

14731 Commits

Author SHA1 Message Date
Sunny Goyal ffd60be5cb Initial change for using input monitor for swipe up handling
Change-Id: Ie2cf982e86d7e47435db933bff13b29d45926c8b
2019-04-02 17:21:33 -07:00
Tony Wickham f242463256 Merge "Update logging for quick switch" into ub-launcher3-master 2019-04-02 22:17:33 +00:00
Tony Wickham 8eacdc0c0b Update logging for quick switch
Now we log direction based on end velocity, instead of only using
Direction.UP or DOWN based on end state. We also log the page index
that we are switching to, or -1 if it's the task we came from.

Bug: 127840207
Change-Id: I038d7c461957f25c55d3cdee01cc3e955ca4c4fa
2019-04-02 14:33:44 -07:00
Hyunyoung Song 68e208c3d2 Merging ub-launcher3-master, build 5429374
Test: Manual **

Bug:111926330 [Quickstep 2] Nav bar, gestures, edge-to-edge, and OEM updates
Bug:114136250 Have a more spartan RecentsActivity on android go
Bug:118085499 UI looks different for Contacts widgets in widget screen
Bug:122843905 Polish app opening transition
Bug:126596417 [Gesture Nav] Can't quick switch from home screen
Bug:128129398 Navigation bar should be at the bottom in landscape
Bug:128348746 Gestural Nav enable/disable state should be logged to pixel launcher clearcut logging
Bug:128531133 Make TAPL diagnostics clearer
Bug:129146690 [Gesture Nav] Rounded Corners on Pixel (sailfish) flicker during Quickswitch
Bug:129328259 [Regression] Suspended app icons turn full colour during open animation
Bug:129434166 Lab-only flake: drag to workspace doesn't happen
Bug:129474866 Gesture nav crash: Can't set scaleX to infinity
Bug:129571305 [Fully Gestural Navigation] Go home on swipe up from Recents and App Drawer
Bug:129697378 [Many tests broken, PTL ASAP] "Can't detect navigation mode"Merge branch 'ub-launcher3-master' into merge_5429374
Change-Id: I458c40075bc40d22f658e02ea0673d1de452f3ce
2019-04-02 14:02:38 -07:00
TreeHugger Robot a2acb43421 Merge "Fix issue with nav bar mode check in tests" into ub-launcher3-master 2019-04-02 19:08:16 +00:00
Winson Chung e809f3d78e Launcher landscape gesture nav
Bug: 128129398
Test: Rotate to landscape, ensure you can use gesture nav
Change-Id: I4630cbae9bf1cbabd83fb72d5eb09c9a435950e9
(cherry picked from commit 38b76942d6)
2019-04-02 11:39:43 -07:00
Winson Chung efd4eb98a2 Fix issue with nav bar mode check in tests
- Don't use the version with the baked in resource constant

Bug: 129697378
Change-Id: I9b7235d10d9493273495a507ddd662a01d8870c3
2019-04-02 11:22:32 -07:00
Tracy Zhou a3643e54a7 Fix live tile overlay clipping part of the screen during swipe up to home animation
Change-Id: I72cd99d145a251a8607ec40abcbc9b58fe32e938
Fixes: 128711026
Test: Manual
2019-04-02 11:10:30 -07:00
TreeHugger Robot 0d90039f08 Merge "Swipe up from nav bar in OVERVIEW or ALL_APPS to go home" into ub-launcher3-master 2019-04-01 21:48:08 +00:00
Tony e243a9493e Swipe up from nav bar in OVERVIEW or ALL_APPS to go home
Add NavBarToHomeTouchController, which intercepts touches from the nav bar
region when in overview or all apps.

Swiping up from all apps translates it up and slightly fades out app icons,
then letting go springs towards home screen.

Swiping up from overview translates it to the right, then letting go springs
towards the left where it lives in the home state.

Both cases have a strong deceleration while swiping.

Bug: 129571305
Bug: 111926330
Change-Id: I5b7de05f15f0300233343fa2d69fcad624e070f8
2019-04-01 15:48:51 -05:00
Jon Miranda bba6451b5f Refactor app open animation so that FloatingIconView tracks window.
Before, the window used to track the FloatingIconView. With this refactor,
both app open and app close use the same update method.

With the refactor, we can now use adaptive icons to morph the icon into the
size of the window.

Movement/interpolators are still the same as the original except for the
alpha and the clip animation. To ensure a perfect tradeoff, we wait for the
icon to match the size and shape of the window before crossfading.
Currently it is set up so that the tradeoff happens when the animation is
15% done, but this can be tuned later.

Bug: 122843905

Change-Id: I7d3edbefffb15fe26958a62ab33cf23dc1203908
2019-04-01 13:19:28 -07:00
Hyunyoung Song 1ac6c84bda Add the config constant to SysUINavigationMode class
Bug: 128348746

Change-Id: I369e70bbd038ff0f75def83cadd98efce3f39385
2019-03-29 14:33:29 -07:00
Tony Wickham 9c436be5fa Merge "Update task view corner radius to match window as it goes fullscreen" into ub-launcher3-master 2019-03-29 20:36:40 +00:00
Tony 443ce071e2 Update task view corner radius to match window as it goes fullscreen
Bug: 129146690
Change-Id: I61f24d2ce07fd05653887626887e1ddaddee61d7
2019-03-29 14:06:03 -05:00
TreeHugger Robot 7f5083b7af Merge "Making navigation mode listener a singleton so that the change is dispatched everywhere synchronously." into ub-launcher3-master 2019-03-29 18:05:24 +00:00
TreeHugger Robot f74882d988 Merge "Fix TaskView scale being 0" into ub-launcher3-master 2019-03-29 18:05:04 +00:00
TreeHugger Robot 5996842fa3 Merge "Removing unused instant apps methods" into ub-launcher3-master 2019-03-29 17:25:10 +00:00
Tony 85c8c46736 Fix TaskView scale being 0
Before, we reset zoom scale to 1 but didn't reset curve scale. Thus,
if curve scale had never been set (i.e. we hadn't yet scrolled recents),
the task view scale would be 0.

Example problem:
1. Open Calculator or other app
2. Force stop launcher
3. Swipe up
The recents-scale-down animation was incorrect because the computed scale
was 0, and thus recents didn't scale down at all throughout the swipe.

Change-Id: I8dd3c73a231033fa633e8df2df3bf9a1c0a67263
2019-03-29 16:44:52 +00:00
Sunny Goyal 5743f8635b Making navigation mode listener a singleton so that the change is dispatched
everywhere synchronously.

Change-Id: Iee8c5957d78dfad3fb03e814de0367adcaa0c98b
2019-03-29 09:36:45 -07:00
vadimt 9b4671f806 Temporarily ignoring flaky test checking mDevice.pressRecentApps()
Change-Id: I60fba4425e10fca5b06dd72f4d98aedc1b9a578e
2019-03-28 18:41:20 -07:00
Vadim Tryshev 09b9144746 Merge "Preparing QuickstepOnOff for running in 3 navigation modes" into ub-launcher3-master 2019-03-28 23:50:25 +00:00
vadimt c5b06f4cf6 Preparing QuickstepOnOff for running in 3 navigation modes
Change-Id: I7855e756c9886a21bfc2584cf42e7921147fb256
2019-03-28 16:02:47 -07:00
Tony e4c2e2b86c Add QuickSwitchTouchController on home
- Added QuickSwitchState, which we animate to when swiping right
  on the nav bar from NORMAL state
- Task launches when the state transition to QuickSwitchState ends

Bug: 126596417
Change-Id: Id66650401d817703fc6d044fb26a25cccbc07e11
2019-03-28 15:09:25 -05:00
Winson Chung bd91b11b83 Merge "Launcher landscape gesture nav" 2019-03-28 17:16:06 +00:00
Tony 101807d8e7 Fix SwipeDetector positive vs negative for HORIZONTAL direction
Previously left was considered positive and right considered negative.
Now left and down are negative, and right and up are positive.

For RTL, left is positive and right is negative.

Change-Id: Ia31e8c687c8c2716fc632b2fe88aa8955b934bce
2019-03-27 19:45:04 -05:00
Tony e06fef45a4 Move some classes to packages
Added states/ and touchcontrollers/ packages

Change-Id: I8d59c47770c24c9edd1b7ce879e6a80ca8b88c71
2019-03-27 19:45:04 -05:00
Tony 1787ee9596 Peek overview on motion pause, then animate fully on touch up
Add AnimationComponents.ATOMIC_OVERVIEW_PEEK_COMPONENT, and rename
previous ATOMIC_COMPONENT to ATOMIC_OVERVIEW_SCALE_COMPONENT.

When SWIPE_HOME is enabled:
- Overview lives to the left of Workspace, which is encoded in
  LauncherState.NORMAL.getOverviewScaleAndTranslation().
- Create atomic animation based on ATOMIC_OVERVIEW_PEEK_COMPONENT
  and OVERVIEW_PEEK state when swiping and holding from home screen.

Bug: 111926330
Change-Id: Iab6dbef7238dae15b3036d4b2a026b781eee6b4b
2019-03-27 19:45:04 -05:00
Jon Miranda 8f02dbc674 Merging ub-launcher3-master, build 5412858
Test: Manual

Bug: 111926330
Bug: 125362112
Bug: 127366543
Bug: 128531133
Bug: 129270535
Bug: 129297366
Bug: 129421279

Change-Id: Ib4059b7a14106b1859a3d8d6c7c4ef253f29ed7a
2019-03-27 16:08:08 -07:00
Sunny Goyal ee89e5da7d Removing unused instant apps methods
Change-Id: I82bf86a8604cdb64853e7d0d6f4cbca275f5fa7a
2019-03-27 15:39:00 -07:00
TreeHugger Robot 75949941b9 Merge changes I5e65dde3,I497c0292 into ub-launcher3-master
* changes:
  Add translationX to overview state
  Add FLAG_DONT_ANIMATE_OVERVIEW to AnimatorSetBuilder
2019-03-27 20:56:58 +00:00
Tony bc23440d73 Add translationX to overview state
States return ScaleAndTranslation instead of float[].

Also separate overview translate interpolator from overview scale interpolator.

Change-Id: I5e65dde3f436055ff5e7f5736f1a4b712377b9cb
2019-03-27 14:36:48 -05:00
Tony 9244f518f2 Add FLAG_DONT_ANIMATE_OVERVIEW to AnimatorSetBuilder
This allows us to specify when a second animation will handle the overview
animation, so it doesn't conflict with existing state transitions.

Bug: 125362112
Change-Id: I497c02924862bfba558c107bee3c88a9f40ec0f1
2019-03-27 14:21:06 -05:00
TreeHugger Robot f86a776602 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2019-03-27 07:31:51 +00:00
Bill Yi 3092a21532 Import translations. DO NOT MERGE
Change-Id: I3bfe6c1b97612ecc829e361fc70d98b9318da417
Auto-generated-cl: translation import
2019-03-26 22:14:07 -07:00
Winson Chung a5354e02a2 Use system recent tasks stabilization
Bug: 111926330
Test: Swipe to last task, ensure it resets task list on timeout or interaction

Change-Id: Id09215a4cfdea63a4be6fb69fced163ad3bc10bd
2019-03-26 16:56:04 -07:00
Winson Chung f25461c337 Updating to nav bar mode
Bug: 127366543
Test: Manual
Change-Id: I602539e5d6161c5bf6056bb60679b7ef1f168e3e
(cherry picked from commit 18841823ed)
2019-03-26 14:52:10 -07:00
Winson Chung 38b76942d6 Launcher landscape gesture nav
Bug: 128129398
Test: Rotate to landscape, ensure you can use gesture nav
Change-Id: I4630cbae9bf1cbabd83fb72d5eb09c9a435950e9
2019-03-26 21:14:20 +00:00
Winson Chung 18841823ed Updating to nav bar mode
Bug: 127366543
Test: Manual
Change-Id: I602539e5d6161c5bf6056bb60679b7ef1f168e3e
2019-03-24 10:39:58 -07:00
Bill Yi 56635d4f85 Import translations. DO NOT MERGE
Change-Id: Ibed07a95d0eb703afc04a19e9c0018944ffaf9f7
Auto-generated-cl: translation import
2019-03-23 08:05:19 -07:00
Hyunyoung Song 039941d505 Merging ub-launcher3-master, build 5399829
Test: Manual

Bug:111301511 Launcher support for work profiles in Q
Bug:111926330 [Quickstep 2] Nav bar, gestures, edge-to-edge, and OEM updates
Bug:112934365 [STOP SHIP BUG] Sysui Navigation Bar Prototype Tracking
Bug:114136250 Have a more spartan RecentsActivity on android go
Bug:118140522 [Clarification] Has no effect on QSB even after disabled Feature flag for QSB_ON_FIRST_SCREEN
Bug:118319143 Digital Wellbeing - Implement showing app's remaining time in Launcher
Bug:118441555 [LauncherState] Restarted Launcher looks strange
Bug:120114697 [MSIME] no ClientCallbackImpl.onHideSoftInput received when press home key.
Bug:122593881 Better support for cleaning up the recents animation
Bug:123641382 App icon transitions with app window in overview
Bug:123892673 Add user event logging when toast comes on overview carousel
Bug:123900446 App to home animation should zoom into the app icon
Bug:123904290 Remove magic constants from TAPL
Bug:124338231 Sometimes the swipe-up gesture from an app doesn't open Home
Bug:126259547 Google search box partially obscured when switching to Fold mode, moves under Hotseats in Unfold mode
Bug:126268196 Some app shortcuts become white circles when grouped inside directories
Bug:126417894 Sometimes theme change is NOT applied to QSB corner radius and folder shapes
Bug:126596502 [touchflow] Use platform long press in launcher
Bug:127807969 Launcher crashing while trying to access app info shortcut .
Bug:127837913 [logging] Gesture nav back button key event in overview mode
Bug:127917144 It doesn't go back to previous screen when pressing back key while app context menu is opened.
Bug:128259687 Unable to use the device once ANR observed in pixel launcher
Bug:128460496 ToT Pixel Launcher Crash
Bug:128464669 [Broken test] FallbackRecentsTest.goToOverviewFromApp: Attempt to invoke virtual method 'void com.android.quickstep.views.LiveTileOverlay.setIcon(android.graphics.drawable.Drawable)' on a null object reference
Bug:128681467 [STOPSHIP] Revert to old WAllpaperPickerGoogle without ThemePicker for Beta 2, 3, 4, 5, 6
Bug:129067053 Stop showing "App in grayscale" for apps over limit
Bug:129113713 Launcher ClearApps CUJ is failing

Change-Id: I3f428e10ce9b0a8ffe1e4e4fa16cc7decff62ca7
2019-03-22 20:13:35 -07:00
TreeHugger Robot c8d33f8b61 Merge "Removing graying apps in Overview" into ub-launcher3-master 2019-03-22 21:38:30 +00:00
vadimt 0ed1797fad Removing graying apps in Overview
The reason is that there is no API that reports that an app is grayed.
Not showing DWB toast for apps that ran over their limit because they
shouldn't be in Overview.

Bug: 129067053
Change-Id: Ia04e17aa85ca015b7932496ad5e730fe61b4be69
2019-03-22 12:17:48 -07:00
Tracy Zhou e790b217e1 Properly clean up screenshot of recents animation upon cancelation
Bug: 122593881
Test: Manual
Change-Id: Ia9ce1ede08309a0898c622bcd07a9e076443d98a
(cherry picked from commit 2bd3a0225b)
2019-03-21 18:06:36 +00:00
Tony Wickham 8cfe0fe091 Merge changes If11fea2d,Ia7e1eebe,Iafa89db1 into ub-launcher3-master
* changes:
  Remove redundant resumeLastTaskForQuickstep() and use resumeLastTask() directly
  Fix some state issues with home and quick switch gestures
  Apply spring forces to animate to the final position for swipe home
2019-03-20 21:37:07 +00:00
TreeHugger Robot 5d6b7f4517 Merge "Replace translationYFactor with just translationY" into ub-launcher3-master 2019-03-20 20:46:26 +00:00
Tony bfc9dde03e Replace translationYFactor with just translationY
Now that we don't have quick scrub, the only state that has a non-zero translation is all apps,
which just uses that to have a slight parallax. This is much simpler to define in terms of pixels
like other states do.

Change-Id: I108c8505d85591399256b3475f7566ff51e2c5ad
2019-03-20 15:36:31 -05:00
Vadim Tryshev e8d2ef6cd0 Merge "Revert "Using startActivityForResult to open DWB properties"" into ub-launcher3-master 2019-03-20 18:27:31 +00:00
Vadim Tryshev e73b0ec69d Revert "Using startActivityForResult to open DWB properties"
This reverts commit b480fe45ce.

Reason for revert: Conflicts with gestural navigation

Change-Id: I109fb855829b68d265458f9b3833482df2b59095
2019-03-20 18:07:11 +00:00
TreeHugger Robot a761a0d585 Merge "Stop using magic constant 0.1 for switching from home to all apps" into ub-launcher3-master 2019-03-20 02:55:52 +00:00
vadimt 174a330d5d Stop using magic constant 0.1 for switching from home to all apps
Bug: 123904290
Change-Id: Ide4561adb2bb59c805cd9fd48f25440e68d91c7b
2019-03-19 19:17:40 -07:00