Commit Graph

8848 Commits

Author SHA1 Message Date
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
Winson Chung 0e44900863 Continue gestures on interaction after recents animation finishes
- Detect when start of the next task is interrupted with another gesture
  (after finishing the recents animation but before the next task is
  launched), and ensure that the next gesture is continued with another
  other activity input consumer (but without actual remote animation
  targets)

Bug: 128376812
Test: Introduce artificial delay in recents animation finish, try to quick
      switch quickly

Change-Id: I057a0b2c4b7e8636467e37f5bbc8800b46c24345
2019-05-06 10:17:49 -07:00
Sunny Goyal 56b3dfaa04 Merge "Updating floating animation target if layout changes during the animation" into ub-launcher3-qt-dev 2019-05-04 19:39:20 +00:00
Sunny Goyal a962578718 Merge "Calling onTransitionEnd when starting a user controller animation so that any transient property is cleared" into ub-launcher3-qt-dev 2019-05-04 18:45:36 +00:00
Sunny Goyal abb55950f6 Updating floating animation target if layout changes during the animation
Bug: 131360075
Change-Id: Id71e154aa59177955baa9daab00ecf11ee7d8c43
2019-05-04 11:38:47 -07:00
Sunny Goyal 905262c1a7 Adding utility method to get adaptive icon scale
Change-Id: I5ff190c3b794bb13309375782ccd420e85b59091
2019-05-03 21:31:46 -07:00
Sunny Goyal 9cc1b2f242 Calling onTransitionEnd when starting a user controller animation so
that any transient property is cleared

Bug: 80529128
Bug: 131360075
Change-Id: I613a0df4a06861be1c7195e1473c907489de1d1a
2019-05-03 11:56:18 -07:00
Sunny Goyal 878f6d3871 Fixing FloatingIconView position and rotation in rotated layout
Bug: 131360075
Change-Id: I4e39f35df99a07e00f3e86865b330d91e9461da0
2019-05-03 11:35:10 -07:00
vadimt 04f356fe17 Fixing jank in folder animation.
This continues ag/6410337

Bug: 69236787
Test: Manual
Change-Id: Iac9f7ab21bf3741846b9721d4c8235e8fc49f7fb
2019-05-02 15:40:18 -07:00
Jonathan Miranda a34072b76b Merge "Use original BubbleTextView icon for legacy stamped forced adaptive icons." into ub-launcher3-qt-dev 2019-05-02 22:15:45 +00:00
Tony Wickham da9cf0f66b Merge changes I705b7a65,I98a2e71a into ub-launcher3-qt-dev
* changes:
  Allow touches on launcher while animating to home
  End window animation to home when handler invalidated
2019-05-02 18:25:30 +00:00
Sunny Goyal ae6e318711 Initial changes to creating a fake landscape Launcher UI
Workspace and hotseat are drawn in rotated UI giving the impression that the
device is in Portrait, even though it is in landscape

Bug: 131360075
Change-Id: I29c4068af25fd4dcf7039b9a45886e864a137977
2019-05-02 10:59:28 -07:00
Tony Wickham a429fdbbe6 End window animation to home when handler invalidated
We did this already for mCurrentShift, which is used for all animations
except home animation. Now we do it for the home animation as well to
ensure we are properly cleaned up for the next interaction.

Test: Swipe up to home and double tap nav region before animation
finishes. Before, this would return to the app you swiped up from but
was in a broken state where subsequent swipes were ignored. Now we
jump to the home screen and remain there.

Bug: 130802487
Change-Id: I98a2e71a1791f5580451c94a35af98da193ff12f
2019-05-02 09:08:15 -07:00
Jon Miranda a9622f38cc Remove shortcuts/deepshortcuts as targets for swipe up to icon animation.
We'll add it back when b/129067201 is fixed.

Bug: 131809649
Change-Id: I6f009a84b86717f86394da6fb8540eb3f226419a
2019-05-02 08:55:38 -07:00
Jon Miranda 27530c99e2 Use original BubbleTextView icon for legacy stamped forced adaptive icons.
Bug: 129297366
Change-Id: Ic71c42e603cc361b716ba65067a772d19ef394f7
2019-05-02 08:45:27 -07:00
Alex Mang 35bda496f3 Merge "Clear should not show after Widget Configuration activity" into ub-launcher3-qt-dev 2019-05-01 23:59:09 +00:00
Vadim Tryshev f57c62c091 Merge "Remove tracing for fixed bugs" into ub-launcher3-qt-dev 2019-05-01 23:39:34 +00:00
Hyunyoung Song 497708c297 Clear should not show after Widget Configuration activity
Bug: 119847865

TL;DR;;
When configuration activity starts, simply make everything in drop
target bar invisible.

Change-Id: I37d067168368de4ee43b54e5dc95f958f5e94623
2019-05-01 16:33:31 -07:00
vadimt 8649cf29e4 Remove tracing for fixed bugs
Bug: 129434166
Bug: 131170582
Change-Id: Ia9b356594001d96c69ffbb7f8b767b2f54ed5feb
2019-05-01 16:10:56 -07:00