Commit Graph

1655 Commits

Author SHA1 Message Date
Andy Wickham 9f7e434244 Fixes issue where back tutorial animation didn't always appear.
Specifically, when switching from right to left edge, the
animation disappeared. This change forces the animation
to restart whenever you switch to another tutorial.

Bug: 148542211

Change-Id: Ie74c636a4afd1018c7c8e6998a1e7a176bf8099e
(cherry picked from commit e725b6fe56)
2020-04-15 06:06:55 +00:00
TreeHugger Robot c505a95aaf Merge "Fixing issue with removing tasks immediately after boot" into ub-launcher3-rvc-dev 2020-04-14 21:46:23 +00:00
TreeHugger Robot 04455cdf42 Merge "Trigger onTaskAppeared when a task started from recents becomes ready." into ub-launcher3-rvc-dev 2020-04-14 21:30:23 +00:00
Winson Chung 1c32f49199 Fixing issue with removing tasks immediately after boot
- Due to tasks only being loaded in the task list and not in the
  task hierarchy, ensure that we listen to the task list callback
  to invalidate the cached list as well.

Bug: 144892997
Change-Id: I0aa2ac0e629b8883410ebafbdc4ca2d5d9bc0fca
2020-04-14 21:03:40 +00:00
lumark 9494f58409 Trigger onTaskAppeared when a task started from recents becomes ready.
Launcher can now receive onTaskAppeared callback from
RecentsAnimationController to get remote animation target when in quick
switch mode.

Note: This CL just demonstrates how to receive callback and then
calling removeTask & finish recents animation,
in order to really improve quick switch flicking, launcher side needs
to implement the rest of logic to animate task's remote animation target
to make task switching more smoothly.

Bug: 152480470
Test: WIP
Change-Id: Id0371db7339cfe84942cc905a89b0a2c1fab62ec
(cherry picked from commit bec41bc5b9)
2020-04-14 20:51:40 +00:00
TreeHugger Robot a8c63ecb13 Merge "Revert regression where we no longer reverse translation for RTL" into ub-launcher3-rvc-dev 2020-04-14 18:07:26 +00:00
Tony Wickham 047a54a21f Merge changes I01790ce5,I938e23af into ub-launcher3-rvc-dev
* changes:
  Remove all apps arrow after getting to all apps 5 times
  Refactor some onboarding-related shared prefs into a class
2020-04-13 18:59:57 +00:00
Vinit Nayak 316807737f Add additional logs for swipe after unlock
Bug: 146964271
Change-Id: I2eaff8deb52f5e79ffffff0e3dae1d45a2cba7cb
2020-04-13 11:26:48 -07:00
Tony Wickham 6322000721 Remove all apps arrow after getting to all apps 5 times
- Instead of ScrimView implementing StateListener, added
  mAccessibilityLauncherStateListener.
- Added allAppsStateListener to determine whether we
  reached all apps 5 times.

Bug: 151768994
Change-Id: I01790ce577879eab2e4568fcda19d0245b256d13
2020-04-10 21:14:30 -07:00
Tony Wickham 133cd54474 Refactor some onboarding-related shared prefs into a class
Bug: 151768994
Change-Id: I938e23af8c1874714e02fe34d0f9f82bb21d00a2
2020-04-10 21:06:08 -07:00
TreeHugger Robot 9398772fb8 Merge "Removing tracing for fixed bug" into ub-launcher3-rvc-dev 2020-04-10 20:48:57 +00:00
Tony Wickham b214bd0cb1 Revert regression where we no longer reverse translation for RTL
Change-Id: I6de15c983eaf7ece244f2b2ba7e9f9c80bdab92b
2020-04-09 18:06:03 -07:00
vadimt e206b031a6 Removing tracing for fixed bug
Bug: 152658211
Change-Id: Idc1643a879fca47a50bd58090bbb72a284fd8d59
2020-04-09 16:41:01 -07:00
TreeHugger Robot 260f52d41f Merge "Log InputConsumer name instead of type" into ub-launcher3-rvc-dev 2020-04-09 21:30:50 +00:00
TreeHugger Robot 2f70230817 Merge "Notify SysUi of NavBar region user interacts with" into ub-launcher3-rvc-dev 2020-04-09 21:09:55 +00:00
Tony Wickham 94ea8fa77e Log InputConsumer name instead of type
Also slightly optimize getName() by using StringBuilder

Change-Id: I7037ba0204378a716bc292d5ced710e0ac37bb78
2020-04-09 20:49:02 +00:00
Sunny Goyal e396abf502 Moving model data structures to a separate file
Change-Id: I77ad7a5219e72d2e0d6c1803de2ac3ed6a65a8f7
2020-04-09 13:20:39 -07:00
Vinit Nayak dcbed4b5a3 Notify SysUi of NavBar region user interacts with
SysUi can then adjust things like disabling
the edge back gesture region or re-drawing the
home handle in the correct positions.

Fixes: 150250451
Test: Tested quickswitch manually with
test apps fixed to different rotations.
Ensured back only showed when rotation of
touch and display matched.

Change-Id: Ie4ea3063835a09fc12ab1d4f8b504b3a9555fa9b
2020-04-09 12:48:42 -07:00
Sunny Goyal 3d0d2292fe Merge "Adding All Apps action even when launcher is not in foreground" into ub-launcher3-rvc-dev 2020-04-09 18:01:09 +00:00
Sunny Goyal 512a2c1dbe Adding All Apps action even when launcher is not in foreground
> Also avoids additional binder call on resume/pause
> Removes a system API which needs to be mocked for robo tests

Change-Id: I23d0cba62c17f7659121c53d1804df40f5069005
2020-04-09 02:48:40 -07:00
Becky Qiu e32f484693 [Overview Actions] Update Overview UI to match new spec.
See spec in the design: https://docs.google.com/presentation/d/1gXWNdCRXvXuEhgDmE0TX2KYqCxIQBXVtWKdl4pKrno8/edit#slide=id.g6f30ae9caf_14_4

Test: local
Bug: 139828243
Change-Id: I6e01dd5de4e4d9ccb4ec7febe81b3e789119bfa0
2020-04-08 15:01:01 -07:00
Vinit Nayak 16cd3677bc Add onQuickSwitchToNewTask(int rotation)
ag/10830421
ag/10831581

Fixes: 150250451
Change-Id: I2d6dbdd0fc7637949bb5ff7707c414f14dbf6d49
2020-04-08 13:43:36 -07:00
Winson Chung 641fa0659e Merge "Fix issue with delegate consumers being overwritten" into ub-launcher3-master 2020-04-08 04:07:49 +00:00
Winson Chung a726df9208 Fix issue with delegate consumers being overwritten
- Whenever the delegate consumer sets itself as active, it will cancel
  the base consumers which can cause onConsumerInactive() which will
  clear the active consumer.  Instead, we should only clear the active
  consumer, and in the case where isConsumerDetachedFromGesture() is
  checked, only check the active consumer before resetting.

  ie.
  base ic (detached) -> on touch up (do nothing) -> onConsumerInactive (active == base) -> reset
  base ic (detached), wrapped ic (active) -> onConsumerInactive (active != base) -> on touch up (active == wrapped) -> reset
  base ic (detached, active), wrapped ic -> on touch up (do nothing) -> onConsumerInactive (active == base) -> reset
  base ic (not detached) -> on touch up (active == base) -> reset
  base ic (not detached), wrapped ic (active) -> onConsumerInactive (active != base) -> on touch up (active == wrapped) -> reset
  base ic (not detached, active), wrapped ic -> on touch up (active == base) -> reset

Change-Id: I2d623c501d9c9799dadcf2005f34e1e0062c113f
2020-04-07 17:39:23 -07:00
TreeHugger Robot 931d1084b5 Merge "[Overview Actions] Resizes the select mode UI and adds animations." into ub-launcher3-master 2020-04-07 18:58:36 +00:00
TreeHugger Robot badd58ce06 Merge "Removing some new object creation during touch handling" into ub-launcher3-master 2020-04-07 08:10:21 +00:00
Sunny Goyal acd17dfc18 Removing some new object creation during touch handling
> Motion various transformation methods to Orientation Handler
> Moving orientation handler to quickstep package

Bug: 150300347
Bug: 151269990
Bug: 149610456
Change-Id: I28434c1d1f62a3b85f3583740f0a8f827513fab3
2020-04-07 00:27:16 -07:00
Becky Qiu c343cb8658 [Overview Actions] Resizes the select mode UI and adds animations.
Demo video: https://drive.google.com/a/google.com/file/d/1m0CasV2tQEGNelcjwvFRUlTeyBd7WhM6/view?usp=sharing

Spec: https://docs.google.com/presentation/d/1gXWNdCRXvXuEhgDmE0TX2KYqCxIQBXVtWKdl4pKrno8/edit#slide=id.g6f30ae9caf_14_4
Test:local
Bug:139828243

Change-Id: Iaecad62365c687f78494edd235b2e11433fe6907
2020-04-06 17:58:34 -07:00
Tracy Zhou 5d35b86558 Merge "Switch to public API for surface view when rendering preview" into ub-launcher3-master 2020-04-06 22:51:49 +00:00
Tracy Zhou bb353d3741 Switch to public API for surface view when rendering preview
Bug: 152003916
Test: Manual
Change-Id: I539ed2876d869366fa7635f4467d19e8488b7a1a
2020-04-06 14:39:52 -07:00
TreeHugger Robot 839d0d712c Merge changes from topic "all-apps-arrow" into ub-launcher3-master
* changes:
  Add all apps education bounce animation
  Update vertical drag handle (all apps arrow)
2020-04-06 20:09:45 +00:00
Tony Wickham 5edf9e2923 Update vertical drag handle (all apps arrow)
- Change drawable to match specs, using ShadowDrawable to
  add shadow when necessary based on workspace theme.
- New drawable is 18dp by 6dp; add support for different
  width vs height, and decouple from workspace page
  indicator (which is still 24dp tall).

Bug: 151768994
Change-Id: Icfd0eac197ebc4d1f5bb799f8538c4bd99d800cd
2020-04-06 11:26:59 -07:00
TreeHugger Robot 34a9d75238 Merge "Removing support for fake landscape" into ub-launcher3-master 2020-04-05 23:22:41 +00:00
Andy Wickham 0fda3ba99c Removes WindowManager and DisplayManager from sandbox.
Adds the back gesture panel directly to the fragment
View hierarchy rather than a separate Window.

Bug: 148542211
Change-Id: I196a72d29217308a5bdb78fdcff1face5d475379
2020-04-04 00:32:06 +00:00
Sunny Goyal c4d3201538 Removing support for fake landscape
Bug: 111068105
Change-Id: If31d2f700ddee1d21541735de3a8006ee2a53c5c
2020-04-03 17:11:35 -07:00
TreeHugger Robot e124718af0 Merge "Allow delegate input consumer to clear consumer state" into ub-launcher3-master 2020-04-02 03:51:07 +00:00
Hyunyoung Song 7ac0ef1cb1 ItemInfo supports lite proto builder (1/n)
Bug: 144953948
Bug: 137777105

The new lite proto builder is used to send two types of logging to statsd
1) Snapshot logging
2) App launch, task launch, task dismiss

Statsd will be connected once platform CL is submitted

Change-Id: If606cee5288fe4bd6c522605ae84eb0f24174f5b
2020-03-31 20:52:36 -07:00
Sunny Goyal 514dfa2deb Changing actions button visibility to match clear-all button
> Removing translation when animating actions button

Change-Id: I6875e03f9c55f00232c605743348175ea132cb15
2020-03-30 16:46:06 -07:00
TreeHugger Robot 5c359efc5b Merge "Adding tracing for quick switch not working" into ub-launcher3-master 2020-03-30 19:14:44 +00:00
Tony Wickham c4822a3701 Merge changes I37a9dd3e,I6a386626 into ub-launcher3-master
* changes:
  Don't start task from quickswitch until scrolling finishes
  Fix flicker near end of quick switch
2020-03-30 17:57:24 +00:00
vadimt 459a6b091b Adding tracing for quick switch not working
Bug: 152658211
Change-Id: I61686452eb1eeffbfd8ab74c59532807968068ae
2020-03-30 10:25:04 -07:00
Sreyas a13250e927 Remove SetData from ImageApiImpl for sharing image.
Change-Id: I8a91df336921d824257b819538bc63784f64b873
2020-03-28 14:18:49 -07:00
Tony Wickham 62117d7b8c Don't start task from quickswitch until scrolling finishes
Before, we did this by extending the window/launcher animation to
match the scroller duration. But now that we are using springs to
control the scroller, that duration is not really accurate. So
instead, we now let the window/launcher move at its own pace, and
wait for both that animation and the scroller to finish before
calling onSettledOnEndTarget().

Bug: 147302669
Change-Id: I37a9dd3eea17ebe663c33c3a4478b1b53a63dcc2
2020-03-27 20:56:25 -07:00
Winson Chung 8287721114 Allow delegate input consumer to clear consumer state
- When we have multiple wrapped input consumers, mConsumer will be
  set to the wrapper while the caller can actually be the input
  consumer being delegated to (ie. other activity ic). So we should
  clear the consumer state if the caller is anywhere in the IC
  hierarchy.  This results in a separate issue where mGesture
  could be cleared during onConsumerAboutToBeSwitched() before being
  passed to the new consumer, so make a copy of the previous state
  just for passing to the new consumer.

Bug: 152318829
Change-Id: I4afcef5b18aa772889e9104f3977887893f174ea
2020-03-27 16:58:18 -07:00
Sreyas 1963d3f3ed OverviewActions: Adding action buttons to Oem quickstep.
Change-Id: Id5c0d8f1b41107535c1bac982b47f67eb2574c21
2020-03-27 16:42:10 -07:00
Samuel Fufa 0928456d55 Fix NPE on FeatureFlag.addChangeListener
Bug: 152400212
Change-Id: I64890370f1d638048b0340bcb537ffdbf7011681
2020-03-26 17:03:44 -07:00
Josh Tsuji 1e080b8c2b Merge "Ignore system gestures while bubbles are expanded." into ub-launcher3-master 2020-03-25 14:16:48 +00:00
TreeHugger Robot b2f76460b6 Merge "Removing base no-op implementation of depth controller" into ub-launcher3-master 2020-03-24 23:43:49 +00:00
Sunny Goyal 284a6cfdd7 Removing base no-op implementation of depth controller
Change-Id: Ibf46c0a147d2772033ad469b803e606376978cd7
2020-03-24 16:11:06 -07:00
Winson Chung 005fa3f5a7 Remove extra binder calls when not detecting gestures
- Previous refactoring meant that we were always fetching the running
  task to update the gesture state, even when you touch down in an
  area that is not in the gesture region (which is unnecessary).
  Also only transforming touch events (currently causes allocations)
  when we are actually handling a gesture.

Change-Id: I32e21c3e4d7113a782afce593711d9df62551bc8
2020-03-24 15:11:58 -07:00