Commit Graph

33301 Commits

Author SHA1 Message Date
Winson Chung a668e4b4e3 Merging from ub-launcher3-rvc-dev @ build 6492476 am: 6e0d05fc41
Change-Id: I716c478823391f08a39f5cf011250fe81bc449cd
2020-05-16 02:53:33 +00:00
Winson Chung 3cc9e2dcc1 Merging from ub-launcher3-rvc-dev @ build 6492476 am: 6e0d05fc41
Change-Id: I831ea10a2a90a4714920a0fd765f4ce3d10761aa
2020-05-16 02:53:17 +00:00
Adam Cohen b66675a36d Delegate horizontal scrolls from the Hotseat to the Workspace
=> Before this change, scrolling horizontally on the the hotseat area was a no-op
=> This is a mild usability issue (or arguably WAI) for the default grid, but for larger grids it feels really broken as you have to reach very high just to scroll to another page.

issue 156507399

Test: manual. Also verified that swipe up still works and goes through the same code path.

Change-Id: I760aca473dd36bc8cfb906cb58e897e2ab7fd1d9
2020-05-15 16:57:37 -07:00
TreeHugger Robot bc5919ee3b Merge "Log last appeared task id instead of target" into ub-launcher3-rvc-dev am: 04f476dcb0
Change-Id: Ia01dbdc7014c5d5e61e2dd9a89a112d40751c70c
2020-05-15 22:36:52 +00:00
thiruram 85c31e2e29 Rename @LauncherUiEvent to @UiEvent to be consistent with other UiEvents. am: 2e7f24c118
Change-Id: I087039bf286e3d5ffd07894c38e21cdfff4e9948
2020-05-15 22:36:42 +00:00
TreeHugger Robot 04f476dcb0 Merge "Log last appeared task id instead of target" into ub-launcher3-rvc-dev 2020-05-15 22:22:43 +00:00
thiruram 2e7f24c118 Rename @LauncherUiEvent to @UiEvent to be consistent with other UiEvents.
Change-Id: I049a238f717cc2a6b0bbb4755794bc4de2935b97
2020-05-15 21:42:46 +00:00
Tony Wickham 39f2f1029b Log last appeared task id instead of target
Might be slightly more useful (e.g. if we
need to compare against last started task id)

Change-Id: I3617be270bec6841fbd943e681de78ada549ff84
2020-05-15 16:32:04 -05:00
TreeHugger Robot 4a4152253f Merge "Add dumpsys input where it was missing" into ub-launcher3-rvc-dev am: ce8c2306a3
Change-Id: I3fa4f760117f8c72a8c811a18a34024d509f6f6e
2020-05-15 21:14:04 +00:00
Sunny Goyal b9abae9f0f Using taskView simulator for animation a task to recentsView
Also applying transform params in DeviceLockedInputConsumer directly
instead of going through AppWindowAnimationHelper

Bug: 156398988
Bug: 155816922
Change-Id: I791e1a9feb07c4fb787130f8d040a4f404faf734
2020-05-15 14:07:29 -07:00
TreeHugger Robot ce8c2306a3 Merge "Add dumpsys input where it was missing" into ub-launcher3-rvc-dev 2020-05-15 21:00:02 +00:00
TreeHugger Robot bb907f7ced Merge "Deference mAppPredictor on destroy" into ub-launcher3-rvc-dev am: 9027a04514
Change-Id: I058c51bd5972b84ee9864c4befffd8c3f093aa87
2020-05-15 20:32:37 +00:00
TreeHugger Robot 9027a04514 Merge "Deference mAppPredictor on destroy" into ub-launcher3-rvc-dev 2020-05-15 20:17:42 +00:00
vadimt bb6f5f5242 Add dumpsys input where it was missing
Bug: 156287114
Change-Id: Ie0a71e8dc261abfde4eec3ce882786d77a870c32
2020-05-15 13:12:37 -07:00
TreeHugger Robot b9c9aab27f Merge "Remove debug logs, root cause found." into ub-launcher3-rvc-dev am: 2d78b783cc
Change-Id: I524101aecd8e15eed8b0f296fa0c6cdcd1f9e9e3
2020-05-15 19:18:07 +00:00
TreeHugger Robot 2d78b783cc Merge "Remove debug logs, root cause found." into ub-launcher3-rvc-dev 2020-05-15 19:03:06 +00:00
Samuel Fufa 4dd6ab3ca1 Deference mAppPredictor on destroy
+ Also remove PredictionModel.mCachedComponentKeys

Bug: 156747920
Bug: 156041043
Test: Manual

Change-Id: I56dac1c6ac0a1bb93363342006232fc1ba42a3b4
2020-05-15 11:33:27 -07:00
Vinit Nayak 9c62e18660 Remove debug logs, root cause found.
Bug: 146964271
Change-Id: I38ed3b4b1a90fa1ff9a3aa4bb5547300ddd92358
2020-05-15 10:04:51 -07:00
TreeHugger Robot 987e375312 Merge "Prevent all apps prediction update while visible" into ub-launcher3-rvc-dev am: e241f6c243
Change-Id: I46f4afd992fd15c4c9b82a8bc4b85ba923598024
2020-05-15 10:43:06 +00:00
TreeHugger Robot e241f6c243 Merge "Prevent all apps prediction update while visible" into ub-launcher3-rvc-dev 2020-05-15 10:31:56 +00:00
TreeHugger Robot 0239366456 Merge "Switch to new protocol for hybrid hotseat" into ub-launcher3-rvc-dev am: 63cbfc6118
Change-Id: I6a5a9b07c2cc7b0d350da559bf56986d4e8a3ab8
2020-05-15 08:35:24 +00:00
TreeHugger Robot 63cbfc6118 Merge "Switch to new protocol for hybrid hotseat" into ub-launcher3-rvc-dev 2020-05-15 08:25:50 +00:00
Samuel Fufa 6793dae692 Prevent all apps prediction update while visible
Test: Manual
Bug: 156418702
Change-Id: Iaa5468d7c600e6568ac1e35108c586752d6658b6
2020-05-14 23:13:19 -07:00
vadimt 7e4d19f842 Rename closeEvents to reduce confusion
Change-Id: I73f083c568846ec8f96b4b403afdaf10d75a106e
2020-05-14 19:52:01 -07:00
TreeHugger Robot 90b22110d8 Merge "Prevent AllApps scroller activation in NORMAL state" into ub-launcher3-rvc-dev am: 9de282c862
Change-Id: I3f5aef42242543bba6bc7743c635d08eee649e81
2020-05-15 01:10:14 +00:00
TreeHugger Robot 9de282c862 Merge "Prevent AllApps scroller activation in NORMAL state" into ub-launcher3-rvc-dev 2020-05-15 00:52:32 +00:00
Samuel Fufa d12d6ab98a Switch to new protocol for hybrid hotseat
- create predictor from items in bgModel instead of scanning views
- Launcher no longer checks for duplicates before sending pin/unpin events
- sending cached items from last prediction to reduce UI shuffle
- Switch to using UserCache to persist and read ComponentKey

Bug: 148814143
Bug: 156413231
Bug: 156200931
Change-Id: Ide6330bed8eb7f0c6fbec1d1ac21e7f67a9b2be2
2020-05-14 17:27:34 -07:00
Vinit Nayak c40352ef8c Override Rect#contains() to include bottom right
In landscape, the lowest coordinate touch registered
is the actual lowest pixel possible by the screen.
For portrait/seascape the lowest coordinate
is (lowest pixel possible - 1). The difference of the
one pixel makes Rect#contains() return false since
only top left Rect points are inclusive and bottom
right points are exclusive.

Fixes: 156333291
Test: Always able to smoothly go to overview from
landscape.

Change-Id: I6beddad99ae076a167d2a5f5e5acc6e466bff544
2020-05-14 17:26:15 -07:00
vadimt 4507024997 Avoid truncation of input trace am: 5670d462de
Change-Id: Ib65add6a36d0985dbffdb3fee4f72ebffd7e8f4e
2020-05-15 00:03:33 +00:00
vadimt 5670d462de Avoid truncation of input trace
Bug: 156287114
Change-Id: Iac0f93d4e8082907210bd6312d1c046ff1f49dba
2020-05-14 14:25:38 -07:00
James O'Leary 3ed973c034 Merge "Compose gesture integrated fully into Launcher" into ub-launcher3-rvc-dev am: 4cb77a60aa
Change-Id: Ib138be3ddb8a1740d9ade68fa460be5bc50980c0
2020-05-14 20:26:00 +00:00
Adam Cohen ced96bbc6c Merge "Don't require the center task id to adjust status bar when swiping up" into ub-launcher3-rvc-dev am: 1682d0d71b
Change-Id: I2b6958b751180a7f176386ff28a25650c8f5f46a
2020-05-14 20:25:45 +00:00
James O'Leary 4cb77a60aa Merge "Compose gesture integrated fully into Launcher" into ub-launcher3-rvc-dev 2020-05-14 20:20:13 +00:00
Adam Cohen 1682d0d71b Merge "Don't require the center task id to adjust status bar when swiping up" into ub-launcher3-rvc-dev 2020-05-14 20:15:51 +00:00
Winson Chung d6eae2aee0 Merge "Update shelf offset earlier when in gesture nav" into ub-launcher3-rvc-dev am: 054b0ae358
Change-Id: I87925bb3e54d74c08ea35d748b207af7f30dc780
2020-05-14 19:17:10 +00:00
Winson Chung 054b0ae358 Merge "Update shelf offset earlier when in gesture nav" into ub-launcher3-rvc-dev 2020-05-14 18:55:25 +00:00
Adam Cohen 18aa37ca68 Don't require the center task id to adjust status bar when swiping up
b/155029378

Change-Id: I3cb65e82ab192b63d54291aad9e2395fa8dedaef
2020-05-14 11:31:28 -07:00
Tony Wickham 168d6da5cd Merge "Only set spring end value if animation wasn't canceled" into ub-launcher3-rvc-dev am: 62b8c1a5f9
Change-Id: I7058982b28d80e17827b7d0acdaec0e8823988a8
2020-05-14 18:24:03 +00:00
Tony Wickham 62b8c1a5f9 Merge "Only set spring end value if animation wasn't canceled" into ub-launcher3-rvc-dev 2020-05-14 18:22:13 +00:00
Winson Chung ceffbf644f Remove LockscreenRecentsActivity am: 1801d19bcd
Change-Id: I8c9aa9ce998391b20ceaf5bd3a9a11e1ddcedcb1
2020-05-14 18:18:22 +00:00
James O'Leary 74a2746b35 Compose gesture integrated fully into Launcher
- Support dismissing Compose via the reverse gesture from the appear
gesture
- Use Tony Wickham's ag/10204761 with some glue code to enable the
app below Compose panning in the same direction as the gesture as
Compose peeks in
- Add feature flag to use Compose hosted in a window (permits underlying
app panning)
- Use InterpolatingVelocityTracker to fix OtherActivityInputConsumer
processing swipes in the wrong direction ~20% of the time due to a bug
in VelocityTracker (see go/quirky-bubbles)

Change-Id: I3adbaee1763f21557fb628b60d03b0a03e7079ab
2020-05-14 14:18:19 -04:00
Winson Chung 034ce6fd94 Update shelf offset earlier when in gesture nav
- Provide a hint to Launcher to indicate it will be resumed when
  swiping home, which allows us to notify sysui before any potential
  pip invocation, reducing the likelyhood of two conflicting animations
  when entering pip

Bug: 156637223
Change-Id: Iae773e1aac88bbea6f74e1d1332417b448126471
2020-05-14 10:55:14 -07:00
Winson Chung 1801d19bcd Remove LockscreenRecentsActivity
- This activity would create another task (no longer in the same
  stack since we don't have activity type stacks) which was causing
  the camera to be occluded sometimes, which then cancels the recents
  animation
- Tweaking the animation slightly to match the movement of the closing
  the activity back to the lockscreen

Bug: 156514461
Test: Launch camera on the lockscreen and swipe up to dismiss (repeatedly)
Change-Id: I8aaac22767288d7fbf183683276c50acaaf831d2
2020-05-14 10:51:44 -07:00
Sunny Goyal 2746355984 Merging WindowSizeStrategy with BaseActivityInterface am: d9c0349c1a
Change-Id: I1bb7d1b6d1cbc25697017193034207a5184aeae7
2020-05-14 09:35:04 +00:00
Sunny Goyal d9c0349c1a Merging WindowSizeStrategy with BaseActivityInterface
Also converting BaseActivityInterface to an abstract class instead of interface
so that it can hold member variables

Change-Id: I04cab934137eb1d6f470c6a7618c50a2ed2c71c1
2020-05-14 01:22:25 -07:00
Samuel Fufa 24e3b6598e Prevent AllApps scroller activation in NORMAL state
Bug: 153663434
Test: Manual
Change-Id: I859d63fff08091961970d72f56853b50433f6d44
2020-05-13 20:41:35 -07:00
thiruram c60f41a352 Add LAUNCHER_FOLDER_LABEL_CHANGED events for folder label updates. am: f95f152971
Change-Id: I5793e81fa24dc827f0f99c07b37d8d4a32428277
2020-05-14 01:58:54 +00:00
thiruram f95f152971 Add LAUNCHER_FOLDER_LABEL_CHANGED events for folder label updates.
Sample Logs for all update combinations: https://docs.google.com/document/d/1CBP2yTcXdFhPdNG5ZmWFKSgd8mDbMevY-akVlUXPLDo/edit#bookmark=id.7y1p8n2dz8ge

Bug: 155410872
Bug: 152978018
Change-Id: I296b124b16aa07878f2cf7b74ab91f13b8e6cfbf
2020-05-13 17:36:10 -07:00
TreeHugger Robot dd366a71ce Merge "Adds LAUNCHER_FOLDER_LABEL_CHANGED event." into ub-launcher3-rvc-dev am: 77f5efe1a3
Change-Id: I04aaee9261774708170e97e5dec21d8bf1915002
2020-05-14 00:04:20 +00:00
TreeHugger Robot 77f5efe1a3 Merge "Adds LAUNCHER_FOLDER_LABEL_CHANGED event." into ub-launcher3-rvc-dev 2020-05-13 23:44:59 +00:00