Commit Graph

34630 Commits

Author SHA1 Message Date
Vadim Tryshev 94dbfb9bdb Merge "Not using magic constants for navbar height" into ub-launcher3-qt-dev 2019-05-09 00:42:15 +00:00
Kevin 249e19fde9 Fix 1.5x layout values
Some of the values in the 1.5x scale layout dimens were incorrect. This
fixes them so that they are correctly roughly 1.5x the 1.0x dimens while
still being aligned to the 4 dp grid.

Test: Test on walleye_svelte, more closely aligns mocks
Change-Id: I26d2e216c67c523799e3a159d864718da211cec1
2019-05-08 17:41:37 -07:00
Jon Miranda 5b1c210e17 Merge "Fix SDK check to use Utilities.ATLEAST_Q." into ub-launcher3-qt-dev
am: 032fe14127

Change-Id: I8d7564969f222d9afb7f60068ed3822d59d24379
2019-05-08 17:21:52 -07:00
Kevin 73dfb3fb72 Merge "Fix bug skipping certain animations from ending" into ub-launcher3-qt-dev
am: 827b8ada0d

Change-Id: I028e93ae0acd8d3a00ad99010dbaf1f018aeb74c
2019-05-08 17:21:27 -07:00
Vadim Tryshev 21323efbf0 Merge "Not starting calculator from TaplTestsLauncher3.testAppIconLaunchFromAllAppsFromHome" into ub-launcher3-qt-dev
am: 758be45bac

Change-Id: I9cfc6f63174e176fdefba311f6e92bb6cc3cc987
2019-05-08 17:21:02 -07:00
vadimt 1b383af652 Not using magic constants for navbar height
Change-Id: I6783b8a2ebb059ce35748d8c3e818cbe732ff40d
2019-05-08 17:20:34 -07:00
Kevin fe634af0c4 Apply insets correctly to fallback Recents Go
Insets were not being correctly consumed by the root view in the
fallback recents activity. This CL properly passes on the system insets
to the recents view so that tasks flow under the system insets.

Bug: 131853975
Test: Have separate default launcher, go to recents, go to landscape,
tasks scroll under status bar
Change-Id: I16f78da896522c5cf41951817747a24cd5cfe32c
2019-05-08 16:58:01 -07:00
TreeHugger Robot 032fe14127 Merge "Fix SDK check to use Utilities.ATLEAST_Q." into ub-launcher3-qt-dev 2019-05-08 23:45:41 +00:00
TreeHugger Robot 827b8ada0d Merge "Fix bug skipping certain animations from ending" into ub-launcher3-qt-dev 2019-05-08 23:36:00 +00:00
Vadim Tryshev 758be45bac Merge "Not starting calculator from TaplTestsLauncher3.testAppIconLaunchFromAllAppsFromHome" into ub-launcher3-qt-dev 2019-05-08 23:23:41 +00:00
vadimt b9300ef849 Not starting calculator from TaplTestsLauncher3.testAppIconLaunchFromAllAppsFromHome
Not sure why, but starting calculator sometimes fails. Let's see if
this changes anything.

Change-Id: I2934a388afe7e95bdaeb38151a2676b3297b6e94
2019-05-08 16:00:33 -07:00
Kevin 308759f60f Merge "Ensure Recents Go layout finishes before remote anim begins" into ub-launcher3-qt-dev
am: 09edbf3c73

Change-Id: I1039e883982e0bcb6d04e85b9787419a29e2ccdd
2019-05-08 15:54:38 -07:00
Kevin 41d3a2a1d7 Fix bug skipping certain animations from ending
endAnimations forces an end to all running animations. This also removes
it from the list which changes the list while we're iterating over it.
This fixes the issue.

Bug: 132285006
Test: Manual test w/ build forcing endAnimations
Change-Id: I0ee9917866dafe00ef3122dd9a43259d19fb9f79
2019-05-08 15:30:33 -07:00
TreeHugger Robot 09edbf3c73 Merge "Ensure Recents Go layout finishes before remote anim begins" into ub-launcher3-qt-dev 2019-05-08 22:20:53 +00:00
Kevin 07e12ee573 Polish app => recents animation (4/5)
Add the vertical ease in component to the app => recents animation. In
addition to animating over all task views, this should also animate over
the closing app surface so that the surface movement matches the
thumbnail as it moves to cover it. As a result, we take in the
transformation matrix thats passed in to the app surface and apply the
vertical motion to it.

Bug: 132112131
Test: Manual
Change-Id: I77c6716082af6ee722b96a2c362e16030cec8b8b
2019-05-08 15:11:25 -07:00
Miranda Kephart 9aecc38aef Allow fling invocation for assistant
am: 4743da3864

Change-Id: Id2e00c6c7105a70acecf2e2c7634b25352baea4b
2019-05-08 14:17:51 -07:00
Kevin e590014834 Polish app => recents animation (3/N)
This CL takes the current scale down animation and updates its
interpolators and durations to match the UX spec. In addition, we move
the core logic to a helper method as the whole remote animation will
have other animations as well in the future.

Bug: 132112131
Test: Manual
Change-Id: I68b1d623b1b2c980dc34e41bbb5460cc021b5887
2019-05-08 14:06:55 -07:00
Miranda Kephart 4743da3864 Allow fling invocation for assistant
Bug: 132269601
Test: manual
Change-Id: Ieb8fb6ade28d947ab8ca9ef901937dc7f3ca7a1d
2019-05-08 16:43:37 -04: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
Jeff Chang 38b6a7f903 Hide the split-screen request for secondary display task.
am: 860b9208c1

Change-Id: I6af6d1692449fbdafcb5a57694d994ab449e517e
2019-05-08 05:57:49 -07:00
Jeff Chang 860b9208c1 Hide the split-screen request for secondary display task.
Currently, we cannot support the split-screen mode on the secondary
display. To prevent confused,disallowing split-screen request on
non-primary display tasks first.

Bug: 118266305
Test: 1. Use the ActivityViewTest to launch an application on virtual display.
      2. Check if the split-screen button exist on recent app.

Change-Id: Ifa6d70a1920aa4f33d260e37a3737e102949114e
2019-05-08 20:24:09 +08:00
Vadim Tryshev fccb0e4203 Merge "Reducing flakiness of swipe gestures" into ub-launcher3-qt-dev
am: e627accf26

Change-Id: Icb687b59cc4550d4c93faab1071de212ec027961
2019-05-07 19:39:48 -07:00
Vadim Tryshev e627accf26 Merge "Reducing flakiness of swipe gestures" into ub-launcher3-qt-dev 2019-05-08 01:30:07 +00:00
Kevin 1b4b960ff1 Polish app => recents animation (2/N)
This CL moves the core "app to overview" animation logic into
the main view as the newer animation would need to animate over several
of the main view's children and so the animation logic needs knowledge
of those children.

Bug: 132112131
Test: Build and test, functions as before
Change-Id: I9cbde55a582bee62e0a97e38c5fdf1d5841502db
2019-05-07 18:01:23 -07:00
Vadim Tryshev 080f818642 Reducing flakiness of swipe gestures
Swipe to home now injects a fixed number of points even if the test
thread wakes up irregularly, and sends model (not actual) time in
events.

Bug: 132173901
Bug: 132107664
Change-Id: I0a19bbc2a0c3312f353ad49ebe496eef1f172276
2019-05-07 17:53:24 -07:00
Kevin f95e84a385 Polish app => recents animation (1/N)
As part of building out a better remote app to overview animation, we
first separate out the logic so that we only do the default layout
animation when coming from a Launcher state (i.e. from home or all
apps) and only then, so coming from an app no longer leads to the tasks
animating.

We do this with a simple flag that indicates that recents will be
using a remote animation.

Bug: 132112131
Test: Go to app, go to recents. No layout animation.
Test: Go to home, go to recents. Layout animation works as normal
Change-Id: I30988d944571fd5317d0c9d13e2a99b167c1291b
2019-05-07 17:09:43 -07:00
Kevin 141ab952e7 Ensure Recents Go layout finishes before remote anim begins
We would like to assume a correct up-to-date layout for Go recents
before the remote animation begins to ensure correctness of the app to
overview transition and allow for animating all the newly laid out task
views in sync.

We do this by checking if recents is the remote target we are animating
to and if so, checking if the view is ready.  If it is not, then we
delay the remote animation until the layout is finished and everything
is attached.

Bug: 132112131
Fix: 132108983
Test: Run Recents Go, have no tasks in recents, open app, press
overview to go to recents
Test: Test on AOSP and NexusLauncher that animations to Launcher work as
before (both to recents and to home)
Change-Id: Id74d90cffc9fe5db1dbb5fe63b8819c7436fef21
2019-05-07 15:05:39 -07:00
Miranda Kephart 0f042741da Change haptic on Assistant gesture to '13'
am: 808cd8dfdb

Change-Id: I7f3d4d6d3cf6018e88b1a1b8b63e8f20a1e60523
2019-05-07 14:52:01 -07:00
Miranda Kephart 808cd8dfdb Change haptic on Assistant gesture to '13'
Fixes: 130303405
Test: manual
Change-Id: Ic116e0920782c2f138740ae377c0039eaff5540d
2019-05-07 15:31:55 -04:00
Vadim Tryshev 0ad045a932 Merge "Fixing AppPredictionsUITests" into ub-launcher3-qt-dev
am: bb036f8e5a

Change-Id: Ib2e5d7f63f9c5fb1dc8ad501a16b627accae1205
2019-05-06 16:50:45 -07:00
Vadim Tryshev bb036f8e5a Merge "Fixing AppPredictionsUITests" into ub-launcher3-qt-dev 2019-05-06 23:30:49 +00:00
Tony Wickham 325c0485a9 Merge "Update sysui flags" into ub-launcher3-qt-dev
am: 78d4059fab

Change-Id: I75d4e1b493cda4b667082503963bea902953d44f
2019-05-06 16:16:32 -07:00
vadimt f55e87c36b Fixing AppPredictionsUITests
Bug: 131772711
Bug: 131188880
Change-Id: Ic6556b26464766294ced7f85af716b0a4eb51ca1
2019-05-06 16:14:39 -07:00
Tony Wickham 78d4059fab Merge "Update sysui flags" into ub-launcher3-qt-dev 2019-05-06 23:02:03 +00:00
Sunny Goyal 1450acb596 Merge "Enabling assistant and accessibility gesture while lock screen is showing" into ub-launcher3-qt-dev
am: 33a2946b7f

Change-Id: I9600082875f27040bcf056ddf1b3db76ce68ae30
2019-05-06 15:19:47 -07:00
Tony Wickham cadbc274a6 Merge "Always place notification dots directly on adaptive icon path" into ub-launcher3-qt-dev
am: 3acd837949

Change-Id: I679169560a114690852fa8ecce0e80e9589592fc
2019-05-06 15:19:18 -07:00
TreeHugger Robot 33a2946b7f Merge "Enabling assistant and accessibility gesture while lock screen is showing" into ub-launcher3-qt-dev 2019-05-06 22:07:27 +00: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
Sunny Goyal 3539f32f97 Enabling assistant and accessibility gesture while lock screen is showing
This also enables the gesture when notification shade is down, as we do not have
a separate shate for that right now

Bug: 131847153
Change-Id: Ia1edaad197266fe01b5de7b2a6b46ca0ec6428bb
2019-05-06 14:55:39 -07:00
Tony Wickham 0c947f9770 Update sysui flags
- Launcher always controlls sysui flags during quickstep gestures.
  - If we passed window threshold (i.e. window isn't under system
    bars), use same flags as home screen
  - Else use sysui flags of the centermost TaskView
- Update sysui flags based on home animation progress as well
  (otherwise we weren't applying home screen sysui flags until
  the end of the animation if you ended the swipe before crossing
  the window threshold).
- Update sysui flags for quick switch from home
- Specify that the activity controller animation is user-controlled
  so we don't reapply state when re-setting  it. This happens when
  we get window insets, for instance, which we get when changing
  sysui flags.

Bug: 131360249
Bug: 130020567
Change-Id: If82dbf75fe663fd690b816cdc1c4366cc2bf75b1
2019-05-06 14:45:59 -07:00
Tony Wickham 7886c56a57 Reapply recents attached state in createActivityController()
There were a couple cases where swiping up showed the adjacent task
even though we had set it as detached from the app window.

Test:
- Launch an app from all apps, swipe to home
- Force stop launcher, swipe to home

Bug: 129985827
Change-Id: Ib8a836e3cc467d44be601d81e3a7d04d6487c968
2019-05-06 12:59:51 -07:00
Sunny Goyal 05aafaf77c Merge "Adding support for overriding hotseat Widget" into ub-launcher3-qt-dev
am: ef8ba7bb51

Change-Id: I0bb906e067ec16ab9f119fe566b6ea76dd378b80
2019-05-06 12:03:08 -07:00
Sunny Goyal ef8ba7bb51 Merge "Adding support for overriding hotseat Widget" into ub-launcher3-qt-dev 2019-05-06 18:54:14 +00:00
Vadim Tryshev 119e53c578 Merge "Removing pressing home button twice" into ub-launcher3-qt-dev
am: 50c484994f

Change-Id: I3178576a3544f4a32861930f3997776d3b725383
2019-05-06 11:13:54 -07:00
Vadim Tryshev 50c484994f Merge "Removing pressing home button twice" into ub-launcher3-qt-dev 2019-05-06 18:09:41 +00:00
Tony Wickham 2377b33e74 Merge "Fix recents attached state when quick switching" into ub-launcher3-qt-dev
am: 752df2ce3b

Change-Id: I501350e9961e26afbe527d6a322e2567af60ee7b
2019-05-06 10:53:50 -07:00
Winson Chung 458e7b5cb9 Continue gestures on interaction after recents animation finishes
am: 0e44900863

Change-Id: Iafc9d0a6c9daad4a9ff07e313e52a6804400b127
2019-05-06 10:47:37 -07:00
Tony Wickham 752df2ce3b Merge "Fix recents attached state when quick switching" into ub-launcher3-qt-dev 2019-05-06 17:44:35 +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
vadimt 16f2cd6cad Removing pressing home button twice
Bug: 124239413
Change-Id: I8c14c7e939bb4442cc830dcff3ec266ed8ed7186
2019-05-06 10:38:08 -07:00