Commit Graph

1954 Commits

Author SHA1 Message Date
Vadim Tryshev
bb036f8e5a Merge "Fixing AppPredictionsUITests" into ub-launcher3-qt-dev 2019-05-06 23:30:49 +00: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
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
752df2ce3b Merge "Fix recents attached state when quick switching" into ub-launcher3-qt-dev 2019-05-06 17:44:35 +00: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
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
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
Vadim Tryshev
2c99205461 Merge "Reenabling switching between nav modes in tests" into ub-launcher3-qt-dev 2019-05-03 17:42:20 +00:00
vadimt
c655d7a52d Disabling testPredictionExistsInAllApps
It fails in the lab, and locally, when being run as a part of the whole
test suite.

Bug: 131772711
Change-Id: Ida5f384eb7115303e1315928822566150e1d852c
2019-05-02 17:39:22 -07:00
Tony Wickham
51d7948fcd Anti-alias TaskThumbnailView
The aliasing is more noticeable now that we have rounded corners

Change-Id: I32ab82d1c0be55ef7b60813a13c07913cdd201b5
2019-05-02 16:03:33 -07:00
Tony Wickham
06fbb5ec8f Merge "Don't draw task insets or corners in multi window mode" into ub-launcher3-qt-dev 2019-05-02 21:03:00 +00:00
TreeHugger Robot
6a2c585073 Merge "Adding support for blocking gesture nav on a particular activity" into ub-launcher3-qt-dev 2019-05-02 20:15:49 +00:00
Sunny Goyal
69300227c4 Adding support for blocking gesture nav on a particular activity
Bug: 129796627
Change-Id: I939598f62924fb113e913e0309247d8a2088bf8a
2019-05-02 13:02:22 -07:00
Tony Wickham
54acd8a29a Don't draw task insets or corners in multi window mode
Test (all in multi window and non-multi window):
- Quick switch from home screen
- Quick switch from an app
- Swipe up from an app (slowly)
- Swipe down on a task (slowly)

Bug: 131689686
Change-Id: I69bf6dd1a34904cdf5ec7febea8f858012e2a0ac
2019-05-02 12:31:02 -07:00
Sunny Goyal
1f2bb9d0b7 Updating the quickswitch direction in SEASCAPE
Change-Id: I9b4ff52971a70e2eae0567c2430916b0deaebd32
2019-05-02 12:11:40 -07: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
TreeHugger Robot
36abdcbc10 Merge "Exclude TaskViews from system gestures" into ub-launcher3-qt-dev 2019-05-02 16:35:27 +00:00
Tony
f1d8260e2d Exclude TaskViews from system gestures
Test:
- Enter overview
- Swipe from right edge (no TaskView) goes back
- Swipe from left edge on top of TaskView scrolls to it
- Now swipe from either edge scrolls
- Swipe outside carousel goes back

Bug: 129297464
Change-Id: I0abd444a6e8d8daf79a824c94bdd05c01dfe19cb
2019-05-02 09:23:06 -07:00
Tony Wickham
1a468145ab Allow touches on launcher while animating to home
Previously we only proxied if the end target was recents (now we do it
for home as well) and only proxied to the controllers, not to all views.
We still only proxy to controllers for touches in the nav bar, but
otherwise we dispatch touches through normal view hierarchy.

Tests while animating home:
- Swipe down for notifications
- Swipe up for all apps
- Long press icon or wallpaper for shortcuts
- Tap a folder to open it
- Tap an icon to launch it (currently no animation plays, looking into
  it separately)

Bug: 131775822
Change-Id: I705b7a657b6d17bc0e24ed4fb44ecfb0f319e942
2019-05-02 09:21:47 -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
Vadim Tryshev
f57c62c091 Merge "Remove tracing for fixed bugs" into ub-launcher3-qt-dev 2019-05-01 23:39:34 +00:00
vadimt
8649cf29e4 Remove tracing for fixed bugs
Bug: 129434166
Bug: 131170582
Change-Id: Ia9b356594001d96c69ffbb7f8b767b2f54ed5feb
2019-05-01 16:10:56 -07:00
Sunny Goyal
c7fefa6151 Disabling flaky test
Bug: 131772711
Change-Id: I98a20223845aa66c77e7a4b6fc1b9415ed046a86
2019-05-01 15:53:56 -07:00
vadimt
50af77bc46 Reenabling prediction tests
Bug: 131188880
Change-Id: Ie06a39a206a84cdf9384560c0d8498e51af957e5
2019-05-01 14:54:28 -07:00
vadimt
bcf0d1e082 Reenabling switching between nav modes in tests
Bug: 130558787
Bug: 131419978
Bug: 131630813
Change-Id: I8d62c7f2b33ac94bd4f899f7c8ed00c8293841e7
2019-05-01 14:35:04 -07:00
Vadim Tryshev
dffb214d0f Merge "Not using Contacts app" into ub-launcher3-qt-dev 2019-05-01 19:53:42 +00:00
TreeHugger Robot
428617ebe7 Merge "Setting predition enabled/disabled state based on callbacks from the service" into ub-launcher3-qt-dev 2019-05-01 19:51:21 +00:00
vadimt
f1e0c90a3b Not using Contacts app
Bug: 131628231
Change-Id: If877cc95879263330b7bbd344ddd3a526a5e6fac
2019-05-01 12:21:56 -07:00
Winson Chung
d16f87f52d Merge "Removing screen pinning flag check" into ub-launcher3-qt-dev 2019-05-01 04:07:05 +00:00
TreeHugger Robot
989f3747e2 Merge "TaskView controls currently drawn insets and radius" into ub-launcher3-qt-dev 2019-05-01 03:41:23 +00:00
Tony Wickham
737d67fa0f TaskView controls currently drawn insets and radius
Previously this was controlled by TaskThumbnailView. Having TaskView
handle it allows it to update its outline provider to match the
thumbnail when setting fullscreen progress.

Bug: 129883568
Change-Id: I067fcdd31676af4d4792d18eaaac031c2ac0b18a
2019-04-30 20:26:50 -07:00
Jon Miranda
361ccf3490 Fix RTL bug when swiping up to home.
When you switch to RTL when an app is open, we try to use the BubbleTextView
that is no longer attached on the animation back to home. This causes the
item location to return the wrong values (since now the view doesn't have
valid padding/width we can use). In this case, we'll use the fallback
animation.

Bug: 131242470
Change-Id: I0ce27ee10bd6402cc6b2065813b034fc04592622
2019-04-30 14:04:16 -07:00
TreeHugger Robot
943ce93bd5 Merge "Enabling quick-switch gesture in landscape mode (2 button UI)" into ub-launcher3-qt-dev 2019-04-30 19:29:14 +00:00
Sunny Goyal
27283f7ea8 Setting predition enabled/disabled state based on callbacks from the service
> If no callback is received within a timeout, it is set to disabled

Bug: 131188880
Change-Id: Ie6022b190a2504739f1569a500d6f5cc1566d373
2019-04-30 12:06:25 -07:00
Jon Miranda
063211f620 Fix app open animation in landscape.
Bug: 130828765
Change-Id: Ic447d05a8fe2097a6afd0bfec73039a62bbf5a4b
2019-04-30 12:03:39 -07:00
Winson Chung
e6ef8dac28 Removing screen pinning flag check
- The flag may be inaccurate, revert to the activity manager check
  for now

Bug: 131552865
Test: Manual
Change-Id: If7c00ba7a1cbb726dcd65993451e82d76778fd4b
2019-04-30 18:19:24 +00:00
TreeHugger Robot
287f5d5aef Merge "Fix some MW visual issues" into ub-launcher3-qt-dev 2019-04-30 16:48:43 +00:00
Winson Chung
8d86cf0bcc Fix some MW visual issues
- Ensure that we don't apply apply crop from device coordinates (reset to
  surface coordinates)
- Disable rounded window corners in MW

Bug: 128364741

Change-Id: Ia91500ca97b44537829983945cd3d3cc82747aeb
2019-04-30 09:35:22 -07:00
TreeHugger Robot
32d475bca4 Merge "Add null check before removing live tile overlay" into ub-launcher3-qt-dev 2019-04-30 01:22:32 +00:00
Vadim Tryshev
9736474072 Merge "Disabling fallback overview tests until the bug is fixed" into ub-launcher3-qt-dev 2019-04-30 01:10:51 +00:00
Tony Wickham
de68f8097c Add null check before removing live tile overlay
Bug: 131630813
Change-Id: I6d2c39c61aa918b11dd3d15703fe6ca52c19778d
2019-04-30 00:31:38 +00:00
vadimt
de84db9890 Disabling fallback overview tests until the bug is fixed
Please reenable once fixed.

Bug: 131630813
Change-Id: Idb6f59c5e785180c96fce10365a2b070558abcdd
2019-04-29 16:28:29 -07:00
Vadim Tryshev
203dde3999 Merge "Disabling AppPredictionsUITests" into ub-launcher3-qt-dev 2019-04-29 23:03:17 +00:00
TreeHugger Robot
c6e7a38fb6 Merge "Adding support for accessibiliy gesture" into ub-launcher3-qt-dev 2019-04-29 21:54:41 +00:00
Sunny Goyal
4580149897 Adding support for accessibiliy gesture
Bug: 130905838
Change-Id: If796b6e6036c2f216abf87386d8eebcaa6368d02
2019-04-29 14:40:41 -07:00
Sunny Goyal
2acea9f872 Enabling quick-switch gesture in landscape mode (2 button UI)
Bug: 130689544
Change-Id: I6b424be4d80b3bf8263f456a024a81c63100030e
2019-04-29 14:33:56 -07:00
Sunny Goyal
0382dd76e8 Releasing SurfaceControl when they are no longer needed
Bug: 123874711
Change-Id: I9c06723a3e5d4a23b8a6c60352806bb12daba598
2019-04-29 12:04:11 -07:00