Commit Graph
78507 Commits
Author SHA1 Message Date
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
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
Amin Shaikh 7523723f7d Merge "Add overlayable test resource for launcher3" into ub-launcher3-qt-dev
am: 227b6e021c

Change-Id: I2613814d2fbedf843b463594608f97f50b48a20a
2019-05-06 08:21:57 -07:00
TreeHugger Robot 227b6e021c Merge "Add overlayable test resource for launcher3" into ub-launcher3-qt-dev 2019-05-06 13:49:01 +00:00
Amin Shaikh fd329d19f9 Add overlayable test resource for launcher3
Test: make RunLauncherRoboTests
Change-Id: I36b4869d44e8896ef59dce6c554ef94a1fe4d9ec
2019-05-06 09:34:38 -04:00
Tony 5bc79a2f6b Fix recents attached state when quick switching
Don't wait for drag slop before determining whether we are likely
to quick switch (xDisplacement > yDisplacement). One glaring issue
is that we only pass drag slop when swiping up, not sideways...
so to pass drag slop going sideways we actually had to pass touch
slop (24dp vs 10dp) and by that point the adjacent task was probably
visible if you swiped fast, and thus we faded it in. Now we only
look at raw displacement for purposes of determining whether we are
likelyToStartNewTask, which should be much more consistent.

Bug: 129985827
Change-Id: I31f8a9830681851093de2ce159da1a1dc4f7ef6a
2019-05-05 16:26:22 -07:00
android-build-team Robot 7b8c7a5d7b Snap for 5533215 from 4561247d39 to rvc-release
Change-Id: I2a3b776854c6013fa1b9cf94140ea1a2ccfaf9e4
2019-05-04 23:09:08 +00:00
android-build-team Robot fab2797e29 Snap for 5533229 from 4c8e5dd275 to qt-release
Change-Id: I9fdc320ca58eda8e13043a4b458df9e2af96db95
2019-05-04 23:05:13 +00:00
Sunny Goyal eb47efd942 Merge "Updating floating animation target if layout changes during the animation" into ub-launcher3-qt-dev
am: 56b3dfaa04

Change-Id: I3c71d0bf5bca0ae3abaab7b0bd50099391c8298f
2019-05-04 12:46:07 -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 9d779036b6 Merge "Calling onTransitionEnd when starting a user controller animation so that any transient property is cleared" into ub-launcher3-qt-dev
am: a962578718

Change-Id: I9b6f8a0013c044740451e47a48d2be00d2257861
2019-05-04 11:51:03 -07: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 adb0aed539 Adding utility method to get adaptive icon scale
am: 905262c1a7

Change-Id: I59443194bc022c4e5984cd20dd038d50e102c4f3
2019-05-04 01:10:33 -07:00
Sunny Goyal 4561247d39 Merging ub-launcher3-qt-dev, build 5528135 am: 4c8e5dd275
am: 93e77f6ac4

Change-Id: I86c9ead56d47fb9a22a328aef54e918511206f64
2019-05-03 22:06:39 -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 ce3929033c Merging ub-launcher3-qt-dev, build 5528135
am: 4c8e5dd275

Change-Id: I9db1b1aaa48a84bbe8fb87e1d31d9c987f6b3ed8
2019-05-03 20:39:20 -07:00
Sunny Goyal 93e77f6ac4 Merging ub-launcher3-qt-dev, build 5528135
am: 4c8e5dd275

Change-Id: Ic9ece52afbf3b61453a17bc4f85f79093622852c
2019-05-03 17:27:08 -07:00
vadimt 6abdf7bd10 Enable BindWidgetTest, RequestPinItemTest
am: 1bdb0f4046

Change-Id: Ic590ee4334d18a810fe97ede7babad58975ab7e3
2019-05-03 15:21:19 -07:00
vadimt 1bdb0f4046 Enable BindWidgetTest, RequestPinItemTest
Comparing only widget provider class names, as package names (sometimes)
switch to the test package, not to the ones in Launcher.

Bug: 131116593
Change-Id: Ieeed69432303a86fcefb194d509cdaf9d4513f3a
2019-05-03 13:49:52 -07:00
Vadim Tryshev f3aed6d22b Merge "Temporary hacks to make tests pass on Taimen" into ub-launcher3-qt-dev
am: 7ff19aa560

Change-Id: Iffd29c6af69172f03143c1e67fa67d685bd0ec8d
2019-05-03 12:26:19 -07:00
Sunny Goyal 1f5f124d85 Merge "Fixing FloatingIconView position and rotation in rotated layout" into ub-launcher3-qt-dev
am: b07a30f8d6

Change-Id: I401cd9b689fb8c0af1c8dc52c5c33875450d4fb1
2019-05-03 12:09:15 -07:00
Vadim Tryshev 7ff19aa560 Merge "Temporary hacks to make tests pass on Taimen" into ub-launcher3-qt-dev 2019-05-03 19:04:23 +00: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