Commit Graph

8866 Commits

Author SHA1 Message Date
TreeHugger Robot 32ba3c1125 Merge "Using squared hypot to optimize some comparisions" into ub-launcher3-qt-dev 2019-05-21 19:48:37 +00:00
Sunny Goyal 878aa33567 Using squared hypot to optimize some comparisions
Change-Id: Ia5b99c2e60eedf02dea26857819f0e13127db4e2
2019-05-20 15:20:47 -07:00
TreeHugger Robot 2445ca0777 Merge "Fix bug where FolderIcon stays visible during swipe up to home animation." into ub-launcher3-qt-dev 2019-05-20 20:16:47 +00:00
TreeHugger Robot 692b5a26d9 Merge "Swipe up to home into FolderIcon animation bug fixes." into ub-launcher3-qt-dev 2019-05-20 20:10:18 +00:00
Jon Miranda ae975a613d Swipe up to home into FolderIcon animation bug fixes.
- Fixes clipping issues.
- Fixes badge being shifted.

Bug: 124510042
Change-Id: I2520d963fb2041a049650c2b8c12ddb3de7b8d87
2019-05-20 11:10:25 -07:00
Sunny Goyal 1b40b731b2 Using different resource size for touch region in landscape
Bug: 132917885
Change-Id: Ib702fd17fecff980db2e1d00f05cd055bcc3185a
2019-05-20 10:09:26 -07:00
Jon Miranda e543818bb6 Fix bug where FolderIcon stays visible during swipe up to home animation.
This can happen when opening an app from a folder, and then immediately
swiping up back to home.

This happens because when we swipe up to go home, there's a race condition
where the folder close animation finishes and sets the FolderIcon to VISIBLE
right before FloatingIconView sets it to INVISIBLE.

To fix it, in OverviewState#onStateEnabled we call
AbstractFloatingView#closeAllOpenViews(animate=false). Then we added logic
to cancel any Folder closing animation (which there is,
from WindowTransformSwipeHandler#onLauncherStart) and to just close the
folder right then and there.

Bug: 132588097
Change-Id: I4379431815e7cbddede5ea0213fe9323f001484b
2019-05-20 10:01:15 -07:00
Sunny Goyal 0334047553 Updating SDK check now that the version code is finalized
Change-Id: I2b8d65885f83154f7500adb520b1eed1da5c4a4e
2019-05-17 16:57:23 -07:00
TreeHugger Robot d3b0e8ed61 Merge "Add more logging and commands to service dump" into ub-launcher3-qt-dev 2019-05-17 21:34:21 +00:00
Winson Chung 9fe9a155ca Add more logging and commands to service dump
Change-Id: I03d5ea5aac618eba7e0e5a1555e45a165918bb60
2019-05-17 14:23:09 -07:00
TreeHugger Robot b05fbb8915 Merge "Add getOverviewFullscreenProgress() to LauncherState" into ub-launcher3-qt-dev 2019-05-17 20:39:42 +00:00
Tony 5406817028 Add getOverviewFullscreenProgress() to LauncherState
- BackgroundAppState sets this to 1, all other states set it to 0
- QuickSwitchState extends BackgroundAppState, and calculations for
  fullscreen scale/translation are moved to BackgroundAppState
- Move fullscreen progress logic out of WindowTransformSwipeHandler
  and into the launcher activity controller, which uses the new
  RecentsView.FULLSCREEN_PROGRESS property to animate it

Bug: 130020567
Change-Id: If6265fcce3749050be354742e7d2c418d11ee9bb
2019-05-17 16:21:02 -04:00
TreeHugger Robot 098febafaa Merge "Make folder backgrounds opaque" into ub-launcher3-qt-dev 2019-05-17 20:13:12 +00:00
Jon Miranda 3f411e7ae4 Add padding between nav bar and hotseat in vertical bar layout.
- Set to match the workspace padding on the opposite side of the
  screen.

Bug: 130521490
Change-Id: I26fd71bb146c56a647397a040dbbac9d1556c3fe
2019-05-16 17:16:21 -07:00
Hyunyoung Song 0d51988d6e Merge "Add developer options for grid change for Styles Bug: 118758696" into ub-launcher3-qt-dev 2019-05-16 22:08:43 +00:00
Jon Miranda c2968da372 Fix bug where FloatingIconView did not use IconShape normalization scale.
This fix allows for a clean tradeoff between the FIV and the original icon
in all icon shapes.

Bug: 130292844
Change-Id: Ief2eec2673161e0f9d32d8710713a1f01880040d
2019-05-16 14:21:28 -07:00
Hyunyoung Song 58de5de42a Add developer options for grid change for Styles
Bug: 118758696

Change-Id: I66cd36cda495d339e0c2550f0957e3fbcddca477
2019-05-16 13:38:38 -07:00
Hyunyoung Song d8c71598ee Make folder backgrounds opaque
Bug: 130451254
Change-Id: I3b15d97e44e4ccc2968cfb4402d2479cca958afe
2019-05-15 17:12:39 -07:00
Sunny Goyal dedda05568 Using a proxy activity for startActivityForResult
This ensures that the home task is never blocked by a different task

Bug: 74500048
Change-Id: I01fd26f1d6242e39b2d8fabac5e064b748aebe62
2019-05-15 16:33:06 -07:00
Sunny Goyal 62f53ddafb Merge "Enabling fake rotation by default" into ub-launcher3-qt-dev 2019-05-15 18:39:37 +00:00
Sunny Goyal 41d51a0a15 Enabling fake rotation by default
Fake rotation is only enabled if homescreen rotation is not enabled

Bug: 131360075
Change-Id: Ie56fc4b46b38d3a599ec6da3d506a971e73b0394
2019-05-15 11:21:34 -07:00
Jon Miranda ffaca2e162 Fix landscape app open/close animations.
Bug: 123900446
Bug: 124510042
Change-Id: I3db80d6f8064ce26f97cdede63c0d25499416e98
2019-05-15 10:46:33 -07:00
Jon Miranda 4028575ba0 Fade in badges on top of icons after swipe up animation.
Bug: 123900446
Change-Id: I54e367e0be72781e24d13ec6ea64dbddd85fb0bd
2019-05-15 09:37:24 -07:00
Jon Miranda a03f96caef Tone down foreground springs until they are properly tuned.
Change-Id: I8c66bc9b4828da82d5dcf74d1479795c4d75ed7c
2019-05-14 14:21:19 -07:00
TreeHugger Robot 348b0ad3cb Merge "Center align foreground during app open, use springs during app close." into ub-launcher3-qt-dev 2019-05-14 20:38:03 +00:00
TreeHugger Robot 4fbfb4123a Merge "Using model-time scrolling in all apps" into ub-launcher3-qt-dev 2019-05-14 20:34:15 +00:00
Jon Miranda 4b8b5fd4e4 Center align foreground during app open, use springs during app close.
Bug: 123900446
Change-Id: Ic4ffed28f6ba8782c3d8dfa031ebd70022c4c520
2019-05-14 12:57:05 -07:00
TreeHugger Robot 0e78900d48 Merge "Ensure app widget ids are restored after database is sanitized." into ub-launcher3-qt-dev 2019-05-14 17:45:38 +00:00
vadimt 3d13f303ee Using model-time scrolling in all apps
This should solve flakes when the test thread wakes up too rarely to
inject enough touch events.

Change-Id: I461583d35eb4bfe0192b81c242aacf8d20e353d1
2019-05-14 10:40:22 -07:00
Jon Miranda c7206caf6e Ensure app widget ids are restored after database is sanitized.
Previously, it was possible for AppWidgetsRestoredReceiver to
start the restore process before work profile has finished restoring which
resulted in the work profile items being removed from the workspace.

Bug: 131315856
Change-Id: I2f295a1ca91f1996522bcc8052aa139979526e3b
2019-05-14 17:30:04 +00:00
Hyunyoung Song e751d90c44 Implement 3 shades of folder icon/container fill color
Bug: 130451254

Change-Id: I36d885a2b0247f1bb84cb98073459853ae723331
2019-05-14 10:15:11 -07:00
TreeHugger Robot 0098e382fb Merge "Fixing insets mapping in 3-button and 2-button mode" into ub-launcher3-qt-dev 2019-05-13 18:31:22 +00:00
TreeHugger Robot 06892dcfab Merge "Swipe up to home animation changes." into ub-launcher3-qt-dev 2019-05-13 18:11:40 +00:00
TreeHugger Robot ba39e91dfd Merge "Use LauncherApps#getAllPackageInstallerSessions to get all sessions." into ub-launcher3-qt-dev 2019-05-13 18:07:48 +00:00
Jon Miranda a3c0b0aa68 Swipe up to home animation changes.
* Tracks either the top or bottom of the rect for the fling/spring in the
Y direction.
- This allows us to have the icon always animate downwards.

* Scales the spring velocity for the Y component.

Bug: 124510042
Change-Id: I47571f906c8aa1beca4dd703d67d013ab6a1161f
2019-05-13 10:58:54 -07:00
Jon Miranda c2e54bc210 Use LauncherApps#getAllPackageInstallerSessions to get all sessions.
This new API allows us to get the package installer sessions for the main
user as well as the managed profile, which will allow us to restore
work profile items on the workspace.

Bug: 131315856
Change-Id: Id76e815a76d1c715bc160776fd87d75bba92ff93
2019-05-13 10:52:26 -07:00
Sunny Goyal 7a39b1bc5f Fixing insets mapping in 3-button and 2-button mode
Bug: 131360075
Change-Id: If6e3a4fbb011fc313efeb91686a9d787761862c5
2019-05-13 10:29:11 -07:00
TreeHugger Robot 952fdb3e70 Merge "Add some floating views that should hide back button" into ub-launcher3-qt-dev 2019-05-13 17:19:33 +00:00
Tony f941f8493d Add some floating views that should hide back button
Change-Id: I5c8b7803d2ab8347d11786d84128f6f431b4cbfc
2019-05-13 11:15:54 -05:00
Jon Miranda 5bbc3b7054 Force hide notification dot until fade animation is complete.
When the animation is complete, the notification dot animates in.

Bug: 123900446
Change-Id: Ie98342f2945ac4e42fb810b4334ef03a734ebef2
2019-05-12 18:19:30 +00:00
Jonathan Miranda 57730ed095 Merge "Initial app open/close polish using tuned values." into ub-launcher3-qt-dev 2019-05-10 17:30:46 +00:00
Jon Miranda 2da1da3076 Initial app open/close polish using tuned values.
* Rect and radius now match the app window size.

Bug: 124510042
Bug: 122843905
Change-Id: Ibc85bfe1d75d01cefe00b6bf32557e04a0ee4716
2019-05-10 10:11:35 -07:00
Alex Mang 9b39df068e Merge "Adding query length parameter to protobuf" into ub-launcher3-qt-dev 2019-05-10 17:04:57 +00:00
vadimt 24d31d4b6e Disabling updating All Apps during a long-press recognition
This is supposed to eliminate test flakes in the lab.

When an app gets updated while all apps is opened, all-apps will be
re-laid-out.

If the layout happens while we are recognizing a long-press on an app
icon in all Apps, the long-press won't be recognized.

In the lab, this happened so frequently that it caused considerable
flakiness. Even after we started running tests in airplane mode, this
still keeps happening. The bug refers an example with airplane mode on.

The fix will be also mildly beneficial for users.

Bug: 132177321
Change-Id: Ie7c7473fe94b8af83f04cd719286bae69e2d9de0
2019-05-09 15:48:32 -07:00
Alex Mang 68c67540cd Adding query length parameter to protobuf
Bug: 131940434
Change-Id: Iaa7ca520406df882e154db3662a190607eb61b23
2019-05-09 15:13:52 -07:00
Vadim Tryshev 94dbfb9bdb Merge "Not using magic constants for navbar height" into ub-launcher3-qt-dev 2019-05-09 00:42:15 +00:00
vadimt 1b383af652 Not using magic constants for navbar height
Change-Id: I6783b8a2ebb059ce35748d8c3e818cbe732ff40d
2019-05-08 17:20:34 -07:00
Jon Miranda df94de9343 Fix SDK check to use Utilities.ATLEAST_Q.
Bug: 131315856
Change-Id: Ie1d00d85dd01da7e57f28e16f51a49962d734927
2019-05-08 10:05:57 -07:00
Tony Wickham 3acd837949 Merge "Always place notification dots directly on adaptive icon path" into ub-launcher3-qt-dev 2019-05-06 21:57:34 +00:00
Tony Wickham e1cb93f957 Always place notification dots directly on adaptive icon path
- Calculate point on icon path nearest to top right corner, and
  use that as center for the dot
- Cleanup code related to dot offset

Test:
Set each style (different icon shape) and verify dot is in correct
placement for each of:
- Folders
- Icons in folders
- Icons in all apps
- Icons on workspace

Bug: 124414511
Change-Id: I036ed3677e8af222f00d4fad4a36a7e4d9b49ad9
2019-05-06 10:42:55 -07:00