Commit Graph

20478 Commits

Author SHA1 Message Date
thiruram c85095b0e9 Fixes missing WW logs for drag and drop events.
Change-Id: I31f8aa132d70b42c3b8213daf0bbd5c555cf3895
2020-05-27 16:35:14 -07:00
TreeHugger Robot 0f3a05f913 Merge "Avoid unnecessary predictor recreations." into ub-launcher3-rvc-dev am: fcfba815af
Change-Id: I560a4bc7efbea2c0c59fe81461a9bb244e6f127a
2020-05-27 21:36:54 +00:00
Hyunyoung Song e1d1887918 Merge "use LauncherAtom.ItemInfo.getDefaultInstance inside StatsLogManager" into ub-launcher3-rvc-dev am: cf0e79916d
Change-Id: I065cc8f574508e80f876363ed767dc8400a6eb8b
2020-05-27 21:36:47 +00:00
TreeHugger Robot fcfba815af Merge "Avoid unnecessary predictor recreations." into ub-launcher3-rvc-dev 2020-05-27 21:30:31 +00:00
Hyunyoung Song cf0e79916d Merge "use LauncherAtom.ItemInfo.getDefaultInstance inside StatsLogManager" into ub-launcher3-rvc-dev 2020-05-27 21:29:54 +00:00
Sunny Goyal 601f35d76a Updating swipe up on home animations am: a314d5ad58
Change-Id: I8ecea85b1358c3dc1149b3ec77141e0a8c083be0
2020-05-27 20:35:34 +00:00
TreeHugger Robot 95b92626d3 Merge "Using TaskViewSimulator for animating task launch" into ub-launcher3-rvc-dev am: 32f6cd1116
Change-Id: Ib21ab057d5f88ccd467f100b8c8b61f9ddd25622
2020-05-27 19:54:57 +00:00
Sunny Goyal a314d5ad58 Updating swipe up on home animations
> Scaling down home activity on swipe-up from home and spring back to place on cancel
> Fading out recents on swipe-up to home, so ensure that adjecent tiles also dissapear
> Instead of controlling alpha, controlling full transform for base and home task. This allows adding custom animation for home task on swipe up.
> Removing alpha hanging for fallback activity in baseSwipeHandler. Instead controlling full transform for home activity
> Adding feature flag to use QuickstepLauncher as 3P Launcher to make development easier.

Bug: 156398988
Change-Id: I69cc59f2c9c95d15df6926ba635e7d6c251dceb6
2020-05-27 19:49:46 +00:00
TreeHugger Robot 32f6cd1116 Merge "Using TaskViewSimulator for animating task launch" into ub-launcher3-rvc-dev 2020-05-27 19:35:44 +00:00
Samuel Fufa eec3d09828 Avoid unnecessary predictor recreations.
Bug: 156778758
Test: Manual
Change-Id: I1bb53273c1976f700596b5ec34697ed4e1788e55
2020-05-27 12:33:53 -07:00
Vinit Nayak 281193e996 Move content resolver call to constructor and cache
Changing fixed rotation enabled system setting flag
should be followed by a restart of launcher for it
to take effect.

Bug: 149571513
Change-Id: I84fbb654c325076571a038604fa929984d22f254
2020-05-27 12:21:40 -07:00
TreeHugger Robot e89e9c51bc Merge "Use device insets for multiwindow, else use thumbnail insets" into ub-launcher3-rvc-dev am: 6137535005
Change-Id: Ic0ec22deb764ba882eb1739e68d76c62a7113532
2020-05-27 19:19:09 +00:00
TreeHugger Robot 6137535005 Merge "Use device insets for multiwindow, else use thumbnail insets" into ub-launcher3-rvc-dev 2020-05-27 19:13:50 +00:00
Sunny Goyal e1e3f6ef5b Using TaskViewSimulator for animating task launch
Bug: 155816922
Bug: 156398988
Change-Id: I8d64322596e9d99df49b01cb9adfbfca6d95b89b
2020-05-27 18:42:49 +00:00
Tony Wickham 7c0f259baa Use device insets for multiwindow, else use thumbnail insets
This is consistent with what we do for the right/bottom clipped
insets already, and fixes cases where the device insets don't
match the thumbnail insets (e.g. for fullscreen apps).

Bug: 157097544
Change-Id: I630bb115cab571f3439bfbe8ded5affd924f7e64
2020-05-27 13:37:52 -05:00
TreeHugger Robot 39594cbed4 Merge "Keep recents attached to app window on continued switching" into ub-launcher3-rvc-dev am: 37a7d2af42
Change-Id: I97f63b2fd696f45da3eadfb7a03728dabd79c60b
2020-05-27 18:11:09 +00:00
Tony Wickham 1f3ecfaf52 Merge "Revert "Use splitscreen insets for multiwindow, else use thumbnail insets"" into ub-launcher3-rvc-dev am: 11a2d58bee
Change-Id: I6f2d11eea5c9b656a2a3fa5476ec1982dd040afe
2020-05-27 18:11:03 +00:00
Tony Wickham bda0600c02 Merge "Use splitscreen insets for multiwindow, else use thumbnail insets" into ub-launcher3-rvc-dev am: abaa39b9ea
Change-Id: I31cf36e09f13fc4ccc61c86911e575bc72c9b469
2020-05-27 18:10:56 +00:00
TreeHugger Robot 37a7d2af42 Merge "Keep recents attached to app window on continued switching" into ub-launcher3-rvc-dev 2020-05-27 18:07:11 +00:00
Tony Wickham 11a2d58bee Merge "Revert "Use splitscreen insets for multiwindow, else use thumbnail insets"" into ub-launcher3-rvc-dev 2020-05-27 18:05:58 +00:00
Tony Wickham a9aa2c6bb3 Revert "Use splitscreen insets for multiwindow, else use thumbnail insets"
This reverts commit c093b25c75.

Reason for revert: seems the flake isn't flaking after this change

Change-Id: I03c003103b610fcdd174fbf820c428d337d9109b
2020-05-27 18:01:30 +00:00
Tony Wickham abaa39b9ea Merge "Use splitscreen insets for multiwindow, else use thumbnail insets" into ub-launcher3-rvc-dev 2020-05-27 17:57:04 +00:00
Hyunyoung Song a451508818 use LauncherAtom.ItemInfo.getDefaultInstance inside StatsLogManager
Bug: 153611516
Change-Id: I8531df7ee61c336c9919f5ff137bb1e113c126ea
2020-05-27 09:59:04 -07:00
TreeHugger Robot f71079343a Merge "Add all apps education tutorial." into rvc-dev 2020-05-27 04:11:41 +00:00
Tony Wickham c093b25c75 Use splitscreen insets for multiwindow, else use thumbnail insets
This is consistent with what we do for the right/bottom clipped
insets already, and fixes cases where the device insets don't
match the thumbnail insets (e.g. for fullscreen apps).

Bug: 157097544
Change-Id: I25216fef0d804704e7c7bd84316f932767c2f110
2020-05-26 16:55:58 -05:00
TreeHugger Robot f3cfd0ccad Merge "Fix NPE when recents animation controller is null" into ub-launcher3-rvc-dev am: 0bef6c937a
Change-Id: I3ce85e6eea0bf8c0e0e274c8b45eb19fa0d3dafb
2020-05-26 19:10:04 +00:00
TreeHugger Robot 0bef6c937a Merge "Fix NPE when recents animation controller is null" into ub-launcher3-rvc-dev 2020-05-26 18:48:42 +00:00
Tony Wickham a47a8f1b1d Fix NPE when recents animation controller is null
If it's null, that means the animation was already canceled or
finished, so we don't need to finish it anyway.

Bug: 157383670
Change-Id: I9b0dde76d5756536d8d97bc3d7f13723f903a79c
2020-05-26 13:05:29 -05:00
Jon Miranda 46fd4ec625 Add all apps education tutorial.
* Added FeatureFlag.ENABLE_ALL_APPS_EDU
* When user swipes up on nav bar three times and goes to hint state
  consecutively, we show the new All Apps education tutorial.
* For now we block interaction while the animation is playing,
  and we remove the view when the animation is done.
* Future CL will leave view up until user successfully reaches All Apps state.

Bug: 151768994
Change-Id: I903e0a3914d0558950ecb8cd714d97ddc10ca06b
(cherry picked from commit 517cec5344)
2020-05-26 15:21:28 +00:00
TreeHugger Robot 69d772633d Merge "Import translations. DO NOT MERGE" into ub-launcher3-rvc-dev 2020-05-22 23:23:03 +00:00
Bill Yi 5051db820b Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I37782ef5afd3cf3606bef863f14731996ae9e0c9
2020-05-22 23:09:02 +00:00
Vinit Nayak 5d835bcdaa Enable RotationWatcher when home rotation is on
Update the PagedOrientationHandler when launcher
is allowed to rotate to ensure the correct one
gets set.

Fixes: 157173248
Change-Id: Iffb9df479fcccfb0fe2bd462167242b592949f69
2020-05-21 16:13:27 -07:00
Vinit Nayak b0961acdb6 Merge "Maintain fake nav bar position in overview for landscape" into ub-launcher3-rvc-dev am: c217c72bcc
Change-Id: I7b79762b31bfc34f67a5ec738c106694e725bb1c
2020-05-21 21:02:42 +00:00
Vinit Nayak c217c72bcc Merge "Maintain fake nav bar position in overview for landscape" into ub-launcher3-rvc-dev 2020-05-21 20:59:25 +00:00
Ben Lin e50d7a2f54 Don't set shelf height if we are in landscape.
Bug: 147155783
Test: Start PIP, Rotate launcher, stop getting height offset update
Change-Id: Ifc6c11882293228ffd19ac534ee59b1cf29d9a96
2020-05-21 13:13:27 -07:00
Vinit Nayak c609421f2a Maintain fake nav bar position in overview for landscape
NavBar defaults to display when quickswitch ends,
which is always portrait since home is now always
in portrait. We keep the same nav region that the
user used to swipe up to enter recents and reset once
they swipe to home.

Fixes: 156053957
Test: Swipe up from landscape app, then swipe up
from the same nav bar region to go home.

Change-Id: Ia4cf8172850b991aa5e145897622be3b2afa3779
2020-05-21 11:24:16 -07:00
Tony Wickham c613d9fe42 Update some TouchInteractionService logs am: c7c883a880
Change-Id: Ief38dc10c14dc628abb3a620f5793aefa1f107da
2020-05-21 07:10:43 +00:00
Tony Wickham 17312c3566 Keep recents attached to app window on continued switching
- LAST_TASK now has recentsAttachedToAppWindow = true, to match
  NEW_TASK. Though this does mean there's a small chance of
  seeing recents translating in if you swipe up and back down,
  this is preferable to seeing recents translate away if you
  swipe right and back left in two consecutive gestures.
- Until passing the touch slop for a new gesture, keep recents
  attached to the app window. This avoids cases where you
  could have recents view translate away mid-gesture, such as
  in the following case: swipe from A to B, swipe from B back
  to A, touch down during the transition back to A. Before this
  change, you would see recents translate away; with this
  change, recents instead stays in place until we get another
  signal indicating it should detach, such as swiping to home.

Bug: 157153404
Change-Id: I63a3a8b988af1aac5177f101b0b75e73e56b1ceb
2020-05-21 00:55:54 -05:00
Sreyas 1e2457743b Logging to debug Overview Actions not working.
Change-Id: Ic5571ce0c02296415f24413403cbdf62fa9b4594
2020-05-20 17:53:48 -07:00
Jon Miranda 68e1d6a060 Add all apps education tutorial. am: 517cec5344
Change-Id: I0425fd2c1fc9bff20817a40d7daeba3b54f52b30
2020-05-20 19:37:32 +00:00
Tony Wickham c7c883a880 Update some TouchInteractionService logs
- Move "finishRecentsAnimation" for NEW_TASK to where we actally
  finish the controller after onTaskAppeared()
- Add "setEndTarget" and "onSettledOnEndTarget" logs

Bug: 156412706
Change-Id: I0a0f81d3b601fc1eed72b372235bbb92368ec246
2020-05-20 14:30:31 -05:00
Jon Miranda 517cec5344 Add all apps education tutorial.
* Added FeatureFlag.ENABLE_ALL_APPS_EDU
* When user swipes up on nav bar three times and goes to hint state
  consecutively, we show the new All Apps education tutorial.
* For now we block interaction while the animation is playing,
  and we remove the view when the animation is done.
* Future CL will leave view up until user successfully reaches All Apps state.

Bug: 151768994
Change-Id: I903e0a3914d0558950ecb8cd714d97ddc10ca06b
2020-05-20 11:44:23 -07:00
Joshua Trask 41dc164d11 Merging from ub-launcher3-rvc-dev @ build 6511067
Bug:150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-rvc-dev_rvc-dev_6511067.html

Change-Id: Ifc8c251ef0f03e66de3b1c9fa94bfcb980704769
2020-05-20 11:12:54 -04:00
TreeHugger Robot 892ebe10a4 Merge "Unifying swipe handling for fallback launcher" into ub-launcher3-rvc-dev am: 6928c3bc05
Change-Id: I1e6a90a23ce71bc398fc9195c137098f94e5f778
2020-05-20 05:45:34 +00:00
TreeHugger Robot 6928c3bc05 Merge "Unifying swipe handling for fallback launcher" into ub-launcher3-rvc-dev 2020-05-20 05:32:36 +00:00
Sunny Goyal 672d02cd39 Unifying swipe handling for fallback launcher
Previosuly we had a different swipe handler for 3P Launcher which
started either recents or Launcher based on the initial interaction
(horizontal or vertical). This was primarily because we had to wait
for recents transition to finish before starting another activity
which could delay going to home.

Now we always start recents transition to recentsActivity. This allows
us to use the same swipe handling logic as QuickstepLauncher. Home
activity can be started while recents transition is running and can be
controlled using onTaskAppeared callback.

Bug: 156924169
Bug: 156398988
Bug: 156295255
Change-Id: Ib9f02e0281e8d674bde2f4a81eca5fc8a5962144
2020-05-19 19:41:30 -07:00
TreeHugger Robot 8cb5a760ed Merge "Fix weird split-screen secondary task animation" into ub-launcher3-rvc-dev am: c475f28b4f
Change-Id: Ie99414430cb9f6d4f8942e5aa692416b8c6e5018
2020-05-20 02:12:27 +00:00
TreeHugger Robot c475f28b4f Merge "Fix weird split-screen secondary task animation" into ub-launcher3-rvc-dev 2020-05-20 01:57:15 +00:00
TreeHugger Robot 2ee582650f Merge "More logging for swiping to Overview instead of All Apps" into ub-launcher3-rvc-dev am: a41f9dcbe9
Change-Id: I23621d2e172af2fe1266c9cc72fbf81791187521
2020-05-19 21:08:34 +00:00
Vinit Nayak 11b1c23aa0 Merge "Increase overview thumbnail size for 2 button landscape." into ub-launcher3-rvc-dev am: a8f083b581
Change-Id: I4b395e3068d2935c26f4aa2e6de79f3b3db8316d
2020-05-19 21:08:28 +00:00