Commit Graph

18796 Commits

Author SHA1 Message Date
Jon Miranda
df94de9343 Fix SDK check to use Utilities.ATLEAST_Q.
Bug: 131315856
Change-Id: Ie1d00d85dd01da7e57f28e16f51a49962d734927
2019-05-08 10:05:57 -07:00
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
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
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
50c484994f Merge "Removing pressing home button twice" into ub-launcher3-qt-dev 2019-05-06 18:09:41 +00: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
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
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
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
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
TreeHugger Robot
b07a30f8d6 Merge "Fixing FloatingIconView position and rotation in rotated layout" into ub-launcher3-qt-dev 2019-05-03 18:53:25 +00:00
vadimt
0030834239 Temporary hacks to make tests pass on Taimen
Change-Id: I66a81a0407be13c15596c63f21773f8e2dea5d2d
2019-05-03 11:42:43 -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
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
a3c0a082f9 Temporarily using magic constant to avoid closing all apps by scrolling
Change-Id: Ic99c8ad85525e37563b3f1debb125073055ac2f0
2019-05-02 18:38:57 -07:00
Vadim Tryshev
7e39a5fe67 Merge "Disabling testPredictionExistsInAllApps" into ub-launcher3-qt-dev 2019-05-03 01:01:27 +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
Vadim Tryshev
23bd90c442 Merge "Fixing jank in folder animation." into ub-launcher3-qt-dev 2019-05-02 23:53:14 +00:00
Vadim Tryshev
a0739a9763 Merge "Enabling some tests that seem to pass locally" into ub-launcher3-qt-dev 2019-05-02 23:35:48 +00:00
Sunny Goyal
4cd79876ac Adding support for overriding hotseat Widget
Bug: 131360075
Change-Id: I94151cb2987d7decea283790ab9e87cb4627d40c
2019-05-02 16:30:36 -07:00
vadimt
33cf050852 Enabling some tests that seem to pass locally
Bug: 131116002
Change-Id: Idd158b3e55fb0591508aa1498e9f37c40091af70
2019-05-02 16:21:55 -07:00
TreeHugger Robot
4b52a0a1da Merge "Anti-alias TaskThumbnailView" into ub-launcher3-qt-dev 2019-05-02 23:19:08 +00: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
Vadim Tryshev
479c3d445e Merge "Enabling portrait widgets tests without converting to TAPL" into ub-launcher3-qt-dev 2019-05-02 23:02:04 +00: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
vadimt
0b927428d6 Enabling portrait widgets tests without converting to TAPL
Bug: 131116002
Change-Id: I61e3277d4ff7aec12c8e532ce8ed68d8cd2032e9
2019-05-02 15:18:01 -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
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
4ec8209c38 Merge "Check orientation changes on task item attaching" into ub-launcher3-qt-dev 2019-05-02 20:56:28 +00:00
TreeHugger Robot
b0d9ef6cdc Merge "Fix bug where we left recents right after entering" into ub-launcher3-qt-dev 2019-05-02 20:50:03 +00:00
TreeHugger Robot
79be2caf1d Merge "Add scrim under status bar and above thumbnails." into ub-launcher3-qt-dev 2019-05-02 20:41:15 +00:00
Kevin
b731c07e04 Check orientation changes on task item attaching
onConfigurationChanged is only passed down to views that are currently
attached. Naturally, a recycler view has some views in its pool that are
not attached and thus do not get the call when the orientation changes.
When this happens and the view is then attached later, it can be in an
incorrect orientation.

To fix this, we save the current orientation the task item is using and
check on attaching if it's still the same as the orientation the device
is in. If it isn't we then run the orientation change logic.

Bug: 131848689
Fix: 131848689
Test: Change orientation with some views not attached, see that they are
correct orientation when attached
Change-Id: I3dec501c332338444e321b4a50876c7840a5bc6e
2019-05-02 13:40:18 -07: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
Sunny Goyal
e414c65aab Merge "Updating the quickswitch direction in SEASCAPE" into ub-launcher3-qt-dev 2019-05-02 19:53:16 +00: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