Commit Graph

8720 Commits

Author SHA1 Message Date
Winson Chung
41d58f7100 Add launcher logging of back button
Bug: 127848641
Test: adb shell setprop log.tag.UserEvent VERBOSE, then hit back
Change-Id: I020738280d2e51a8a192e577baf48c0b092f22f6
(cherry picked from commit df7d00328c)
2019-04-03 22:41:39 +00:00
TreeHugger Robot
131e0b1d18 Merge "Skipping touch dispatch when it happens withing the window gesture region" into ub-launcher3-master 2019-04-03 22:39:30 +00:00
Sunny Goyal
745df7c483 Skipping touch dispatch when it happens withing the window gesture region
> Those events are already proxied through the TouchInteractionService

Change-Id: If06483f208cbd462fdfdf01abba27bd937b766e7
2019-04-03 15:26:18 -07:00
Tony Wickham
93fbeb17ca Merge "Add system gesture exclusion rects for widget resize handles" into ub-launcher3-master 2019-04-03 21:55:10 +00:00
Tony Wickham
a5fb60aae8 Add system gesture exclusion rects for widget resize handles
Change-Id: I67cae5d4cb27e4db36811f62480e7ab89e79bf49
2019-04-03 21:07:13 +00:00
Sunny Goyal
65f2396ecd Merge "Adds the ability for Launcher3 to respond to QSB alpha change requests." into ub-launcher3-master 2019-04-03 20:20:12 +00:00
TreeHugger Robot
7da5bbeb71 Merge "Add logging for assistant gesture" into ub-launcher3-master 2019-04-03 19:54:20 +00:00
TreeHugger Robot
01ec89a2ac Merge "Use motion event time instead of system time when detecting motion pause" into ub-launcher3-master 2019-04-03 19:43:27 +00:00
Hyunyoung Song
ebc5f82ac5 Add logging for assistant gesture
Bug: 129867977
Change-Id: I6254bf06b7352f6076af229a581d4ebdd584a4a1
2019-04-03 12:31:42 -07:00
Tony
1274c7a3dc Use motion event time instead of system time when detecting motion pause
Bug: 129337684
Change-Id: Ie6e54658bf86094fbd9b6a8098e5ff147aafbfa7
2019-04-03 12:28:55 -07:00
Govinda Wasserman
24e489e5a3 Adds the ability for Launcher3 to respond to QSB alpha change requests.
Test: Tested locally
BUG:124063782
Change-Id: I8c4bfaa62d9608fcfffff5e30b2913f3a6fb2f75
(cherry picked from commit 827f0807d3)
2019-04-03 17:33:55 +00:00
Tony Wickham
e6e07fa8b1 Merge "Make sure overview visibilty is GONE when it stops peeking" into ub-launcher3-master 2019-04-02 23:47:28 +00:00
Tony Wickham
96d065d87d Make sure overview visibilty is GONE when it stops peeking
Bug: 129711952
Change-Id: Ib33c3d360e8810e5cbf59049dd90ba28957dbe8f
2019-04-02 16:00:13 -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
TreeHugger Robot
26fa2d2bfd Merge "Fix icon shape refresh for widgets list / legacy shortcut black bg issue" into ub-launcher3-master 2019-04-02 19:38:39 +00:00
Hyunyoung Song
2bf3f37f5a Fix icon shape refresh for widgets list / legacy shortcut black bg issue
Bug: 118085499
Change-Id: Ifc3c711815567f40f109e95bcb76c01f23b4a3a2
2019-04-02 11:00:50 -07:00
Vadim Tryshev
a8bd0527ef Merge "Improving TAPL diagnostics (contains changes in Launcher)" into ub-launcher3-master 2019-04-02 17:34:24 +00: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
vadimt
a734bd8d26 Improving TAPL diagnostics (contains changes in Launcher)
Bug: 128531133
Change-Id: Ice1ffecb39cf88afb546ceefdfca21abd879f35d
2019-04-01 13:43:46 -07: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
TreeHugger Robot
188106349c Merge "Add disabled boolean to FastBitmapDrawable constant state." into ub-launcher3-master 2019-03-29 19:48:33 +00: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
Jon Miranda
b6d686dceb Add disabled boolean to FastBitmapDrawable constant state.
Bug: 129328259
Change-Id: I70c1fc6d786b3fd2c51129624b947b313df69e7f
2019-03-29 10:49:43 -07:00
TreeHugger Robot
5996842fa3 Merge "Removing unused instant apps methods" into ub-launcher3-master 2019-03-29 17:25:10 +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
Tony Wickham
ae775276ac Merge "Add QuickSwitchTouchController on home" into ub-launcher3-master 2019-03-28 21:51:06 +00:00
TreeHugger Robot
7553695e1e Merge "Fix bug where folder icon dot anim plays every time." into ub-launcher3-master 2019-03-28 21:31:20 +00:00
Jon Miranda
ae9f62095a Fix bug where folder icon dot anim plays every time.
Change-Id: I6a7e075be62dfcea01c38b2a6a630427e1c5974a
2019-03-28 14:19:43 -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
TreeHugger Robot
794a68e998 Merge "Fix SwipeDetector positive vs negative for HORIZONTAL direction" into ub-launcher3-master 2019-03-28 20:07:06 +00:00
Tony Wickham
5d50fd8571 Merge "Recompute folder icon drawing params before computing its position" into ub-launcher3-master 2019-03-28 18:59:40 +00:00
TreeHugger Robot
95dc1fd28a Merge "Move some classes to packages" into ub-launcher3-master 2019-03-28 18:52:07 +00:00
TreeHugger Robot
2f9b438a3a Merge "Adding tracing for Lab-only flake: drag to workspace doesn't happen" into ub-launcher3-master 2019-03-28 18:43:17 +00:00
Tony
5cb5e40855 Recompute folder icon drawing params before computing its position
Otherwise the returned position could be empty, leading to the crash
in the bug (for example).

Bug: 129474866
Change-Id: I0d300d8022b50f83221a84c09a59b597bfa291dc
2019-03-28 12:34:13 -05: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
vadimt
0b339b5273 Adding tracing for Lab-only flake: drag to workspace doesn't happen
Bug: 129434166
Change-Id: I4433a4848b57da42412a9108a0965ff13c708c39
2019-03-27 17:42:25 -07:00
Sunny Goyal
ee89e5da7d Removing unused instant apps methods
Change-Id: I82bf86a8604cdb64853e7d0d6f4cbca275f5fa7a
2019-03-27 15:39:00 -07:00
TreeHugger Robot
8e8c46069c Merge "Fix translationX that should be translationY" into ub-launcher3-master 2019-03-27 22:21:41 +00:00
Tony
2ed8936da1 Fix translationX that should be translationY
Change-Id: Ie1dc8b327a312d206050926ea9f5572113727c57
2019-03-27 17:03:00 -05:00
Jon Miranda
83fb1b0ed8 Temp remove fade animation.
Bug: 129421279
Change-Id: I7c1a9906ea9dbf888c0f156cc21d10109d92e85d
2019-03-27 14:09:56 -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
Jonathan Miranda
d8b9264a1a Merge "Fix sizing of FloatingIconView so that it matches the workspace." into ub-launcher3-master 2019-03-27 17:17:16 +00:00
Jon Miranda
6f455b583f Fix sizing of FloatingIconView so that it matches the workspace.
* Added a cross fade at the end for text and shadows.
* Animate in FolderIcon bg/dot/text after swapping.

Bug: 129297366
Change-Id: Ieeb5d7b8fb389a2f7ee263d38b3021ffdefefd93
2019-03-27 09:42:50 -07:00
Winson Chung
e5af8f390a Merge changes from topics "launcher_nav_changes", "nav-bar-mode-fw-overlay-ub-launcher3-master" into ub-launcher3-master
* changes:
  Use system recent tasks stabilization
  Use own context instead of app context to get overlay resources
  Updating to nav bar mode
2019-03-27 02:50:38 +00:00