Commit Graph

13651 Commits

Author SHA1 Message Date
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
Jon Miranda 86730d09bc Merge "Swipe up to home animation changes." into ub-launcher3-qt-dev
am: 06892dcfab

Change-Id: I1d2fc6ce1d34b1983734f438c5601e6c085eedd0
2019-05-13 11:17:27 -07:00
TreeHugger Robot 06892dcfab Merge "Swipe up to home animation changes." into ub-launcher3-qt-dev 2019-05-13 18:11:40 +00:00
George Hodulik 489e12a762 Merge "Use strings "home" and "overview" rather than GEL" into ub-launcher3-qt-dev
am: 88986b357d

Change-Id: I1925c0a07517c70e0f41d3530e2ea37589ec1801
2019-05-13 11:08:28 -07: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
TreeHugger Robot 88986b357d Merge "Use strings "home" and "overview" rather than GEL" into ub-launcher3-qt-dev 2019-05-13 17:53:30 +00: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
Hyunyoung Song b1ec2e6e4a Merge "Revert "Use new not-deprecated builder constructors for AppTarget"" into ub-launcher3-master 2019-05-13 17:08:36 +00:00
Hyunyoung Song 35885b3ca4 Revert "Implement scrim method"
This reverts commit 904c429b99.

Bug: 130451254
Test: manual

Reason for revert: found a better way to extract scrim colors without going through OverviewProxy

Change-Id: I435b7b20f87fbf2fc4e6b7415b981ce2fa4f8eab
2019-05-13 16:54:13 +00:00
Hyunyoung Song b7f227505e Revert "Implement scrim method"
am: 2aa9647321

Change-Id: Ic78eef65b46c5eeae4a16b2eb5481c326cd248e4
2019-05-13 02:16:16 -07:00
Perumaal S 64941fd9c6 Add proactive hints container
This replaces all other chips containers and causes minimal
layout overhead: It is strictly within the task itself and
causes zero jank or space issues.

Screenshots:
https://drive.google.com/corp/drive/folders/1-3ZNCJtWc9_cgmP1nNd8U1yvpCr6GGoq
Test: manual
Change-Id: I5e22a34c4dc1ac3e73c4d5c913befc2360cb388e
2019-05-12 14:56:25 -07:00
Hyunyoung Song 91cca54937 Revert "Use new not-deprecated builder constructors for AppTarget"
This reverts commit 426d3650ae.

Reason for revert: the revert CL can be cp'ed to ub-launcher3-master to fix the build breakage until new sdk drop happens on master.

Change-Id: I59dcbb20fc9b700623d72ba047a471745dfac847
2019-05-11 09:31:25 +00:00
Hyunyoung Song 2aa9647321 Revert "Implement scrim method"
This reverts commit d849ef084c.

Reason for revert: not needed

I was too eager to merge this CL. It turns out all I need is these
three constants and doesn't actually need the aidl change.

public static final int MAIN_COLOR_LIGHT = 0xffdadce0;
public static final int MAIN_COLOR_DARK = 0xff202124;
public static final int MAIN_COLOR_REGULAR = 0xff000000;

Change-Id: Iafd539a06455ba0878a6d3750f3c7194f8919fbf
2019-05-11 07:50:34 +00:00
Lucas Dupin 596d93f36c Implement scrim method
am: d849ef084c

Change-Id: Ie74fc91eabe58b89e0d02e281b788d39ba52a5bd
2019-05-10 23:56:53 -07:00
Lucas Dupin d849ef084c Implement scrim method
Bug: 130451254
Test: make
Change-Id: Ifd66f9e53dd86d21fe66e4617cc4b209fecd7328
(cherry picked from commit 904c429b99)
2019-05-11 05:29:39 +00:00
George Hodulik f2695899f3 Merge "Use new not-deprecated builder constructors for AppTarget" into ub-launcher3-qt-dev
am: 7d7c3c6aff

Change-Id: I6078b3c1c1d679a9b7ca936d92ee91f521705786
2019-05-10 17:40:38 -07:00
George Hodulik 426d3650ae Use new not-deprecated builder constructors for AppTarget
Bug: 132458790
Test: Builds now
Change-Id: I20109d868d2ddd4434bc7b2e812219ec853161d8
2019-05-10 17:11:15 -07:00
Jonathan Miranda e8deb9ce63 Merge "Initial app open/close polish using tuned values." into ub-launcher3-qt-dev
am: 57730ed095

Change-Id: I478a00fb48c4e0cef8a7086428f5afbae9b16f6a
2019-05-10 10:41:07 -07: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
Govinda Wasserman 9b99128350 Merge "Implements the new subscript proactive suggestions style" into ub-launcher3-qt-dev
am: c8dc2ecb4a

Change-Id: Iccf2010b768ecd25a7b4784a72cdce8d53d05d5b
2019-05-10 09:50:55 -07:00
Govinda Wasserman c8dc2ecb4a Merge "Implements the new subscript proactive suggestions style" into ub-launcher3-qt-dev 2019-05-10 16:30:04 +00:00
Govinda Wasserman ede5052227 Implements the new subscript proactive suggestions style
Change-Id: I89575a315f1468bde2a0f7894cd19b1124afa840
2019-05-10 10:40:10 -04:00
TreeHugger Robot cf2393e056 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2019-05-10 07:40:17 +00:00
TreeHugger Robot 0f07b87420 Merge "Import translations. DO NOT MERGE" into ub-launcher3-qt-dev 2019-05-10 07:34:58 +00:00
Bill Yi 229ecc4224 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Iee3e02b60f19e7230c327b7bfe324ba72195de01
2019-05-09 23:30:10 -07:00
Bill Yi 3d4ae35081 Import translations. DO NOT MERGE
Change-Id: I89b0e8ca9c0fe116df9745bf5b5b184bdec242a6
Auto-generated-cl: translation import
2019-05-09 23:28:30 -07:00
Tony 918863083b Add ScreenPinnedInputConsumer
When screen pinning is active, swipe up and hold to stop it.

Bug: 130828539
Change-Id: I343050d2a224ac723143cd3be4f78bc321f1a026
2019-05-09 18:10:10 -05:00
Lucas Dupin 904c429b99 Implement scrim method
Bug: 130451254
Test: make
Change-Id: Ifd66f9e53dd86d21fe66e4617cc4b209fecd7328
2019-05-09 14:35:13 -07:00
George Hodulik 7cf4b40a97 Use strings "home" and "overview" rather than GEL
Bug:129421797
Test: Flashed to QP1A.190508.001, installed launcher with change.
      Observed both home and overview predictions were as expected.

Change-Id: I127d489eae382f4cee75afdd6d615d6d7a8227ee
2019-05-09 14:23:23 -07:00
Tony 9aaa92672d Move InputConsumers to new inputconsumers package
Change-Id: I3318784523b8ff1b9468cbfed3a2682985274ea8
2019-05-09 14:37:37 -05: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
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
Miranda Kephart 4743da3864 Allow fling invocation for assistant
Bug: 132269601
Test: manual
Change-Id: Ieb8fb6ade28d947ab8ca9ef901937dc7f3ca7a1d
2019-05-08 16:43:37 -04: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
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 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 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 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
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
Sunny Goyal 4c8e5dd275 Merging ub-launcher3-qt-dev, build 5528135
Test: Manual

Bug:119847865 'CANCEL' option does not disappear immediately after adding Gmail widget to Home page
Bug:123874711 APR: StrictMode Violation in systemui: at android.view.SurfaceControl
Bug:128364741 Launcher surface cropped during gesture in multiwindow mode
Bug:129297366 [Gesture Nav] Swipe up to home: Forced adaptive icon switches to normal during animation
Bug:129297464 [Gesture Nav] Exclude edges from most Launcher / Overview states.
Bug:129434166 Lab-only flake: drag to workspace doesn't happen
Bug:129796627 [Gesture Nav] Allow disabling home gesture for Tips app for first-time setup
Bug:129883568 Update task view outline with task thumbnail progress
Bug:130558787 [Tests broken/flaky] home button not visible to accessibility in 2-button mode
Bug:130618737 Home, Back key, Recent Key not working in All app page. (Will pop up under layer app.)
Bug:130689544 Unable to quickswitch apps under landscape mode
Bug:130802487 [Gestural Navigation Bar] Swipe up for home not working
Bug:130828765 [Gesture Nav] App launch is not smooth in landscape mode when fully gestural navigation is ON
Bug:130905838 [Gesture Nav] Implement a11y gesture
Bug:131088901 In multiwindow mode, swipe up navigation to overview screen not working.
Bug:131116002 Convert tests to TAPL and enable them
Bug:131170582 [Flaky test] TaplTestsLauncher3.testDragShortcut
Bug:131188880 [Failing test] AppPredictionsUITests.testPredictionExistsInAllApps
Bug:131242470 Swipe up to home is broken in RTL
Bug:131310726 Pixel QSB – app titles are black and long press overlay is white
Bug:131360075 [Gesture Nav] Polish/finish landscape
Bug:131367388 Recents Go order is occasionally reversed
Bug:131419978 [Massive test failure] Switching to 3-button mode results in 2-button mode (at least on Crosshatch)
Bug:131420412 java.lang.AssertionError: http://go/tapl : App didn't start: BySelector [PKG='\Qcom.android.chrome\E']
Bug:131427332 Thumbnail views sometimes don't update to orientation in Recents Go
Bug:131434765 [Android Go - Mediatek] KB3 "Recents" button no longer works
Bug:131436393 When quick switching and grabbing again before animation complete, task scales up slightly
Bug:131552865 Can't swipe up for home
Bug:131610834 Align recents Go layout to 4/8 dp grid
Bug:131626311 System bars should not clip Recents Go items
Bug:131628231 Disable com.google.android.contacts
Bug:131630813 FallbackRecentsTest failing in 0-button mode
Bug:131636735 Additional white space for top item is too large
Bug:131686863 Don't clip children while swiping task items out on Recents Go
Bug:131689686 Disable window corners when quickswitching in multiwindow mode
Bug:131708240 When Go Recents is empty, the first tap to go to recents doesnt do anything
Bug:131772711 [Failing test] AppPredictionsUITests.testPredictionsDisabled
Bug:131775822 Allow touches on launcher while animating to home
Bug:131779031 Anti-alias thumbnail rounded corners in Recents Go
Bug:131809649 The going home animation goes to quick shortcut if app is in the folder
Bug:131834685 Status bar left side not readable when white thumbnail is behind it
Bug:131848689 Recents Go: Off screen thumbnails don't change orientation
Bug:69236787 Expanding an app folder is slow if there are many folders on the same desktop
Change-Id: I2218d330f4959a3dbc13e48e61e93c36989fd052
2019-05-03 10:02:59 -07:00