Commit Graph

33301 Commits

Author SHA1 Message Date
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
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
Vadim Tryshev 2a9d8f67ac Merge "Reenabling switching between nav modes in tests" into ub-launcher3-qt-dev
am: 2c99205461

Change-Id: I07040b5da89c565ad026b6c50abd9b991df238ca
2019-05-03 11:51:04 -07: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
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