Commit Graph

1644 Commits

Author SHA1 Message Date
TreeHugger Robot
9398772fb8 Merge "Removing tracing for fixed bug" into ub-launcher3-rvc-dev 2020-04-10 20:48:57 +00: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
Joshua Tsuji
d763a40b7a Ignore system gestures while bubbles are expanded.
This flag is set by System UI in ag/10760162, when bubbles are expanded. We want to disallow system gestures from starting when bubbles are expanded, since otherwise a swipe up will both close the bubbles, and the app behind them.

Test: install launcher, add bubbles, open an app, expand bubbles, observe that swiping up only closes bubbles
Test: same but in three button nav, home button should both close bubbles + the app behind it
Bug: 146167884
Change-Id: I27ed225d2029e3cb82f4959739c7b6f25fe8adb7
2020-03-23 15:05:45 -04:00
Andy Wickham
b55d5b279b Merge "Adds back gesture recognition to Sandbox." into ub-launcher3-master 2020-03-20 20:23:16 +00:00
Winson Chung
925639d881 Merge "Fixing TouchInteractionService referring destroyed activity" into ub-launcher3-master 2020-03-20 19:04:26 +00:00
Andy Wickham
3e34dd3791 Adds back gesture recognition to Sandbox.
This is used to step through the "happy path" of the existing
back tutorial steps (right edge and left edge). Unlike in the
Pixel Tips app, the tutorial only continues if you perform the
gesture from the correct edge of the screen.

This also lays the groundwork to provide helpful tips if the
expected gesture is performed incorrectly, although currently
such gestures are just ignored.

Demo: https://drive.google.com/open?id=12S42mZQITGzIWnj7mP1L__PCOgAQcjgp

Bug: 148542211
Change-Id: Ib2e0b2ff7c021db48c96d58e1370fa2e93330912
2020-03-20 01:01:49 +00:00
Jon Miranda
42e7c503e1 Polish app open scrim animation.
We used to hide the scrim animation immediately, now we fade it out along with
the rest of the draglayer.

Also uses staggered workspace animation when resuming launcher from other
means ie. back gesture -> home

Bug: 145242991
Change-Id: Ib2161746f79ae5eaceac02d1416aa9bd7ecfeac4
2020-03-19 11:59:59 -07:00
Tracy Zhou
269f30fb9b Merge "Set default value of gridName to current grid name in GridOptionsProvider" into ub-launcher3-master 2020-03-19 02:17:19 +00:00
Tracy Zhou
42255d22a7 Set default value of gridName to current grid name in GridOptionsProvider
With grid preview, a grid name is passed in when requesting preview under different grid setting. With wallpaper preview, no such grid name will be passed in, and it should be set to the current.

Bug: 145242344
Test: N/A
Change-Id: I282cb5341b7f3756d41c4abd8d97f986abaa6d27
2020-03-18 16:52:28 -07:00
Lucas Dupin
4918ed38d2 Add wallpaper zoom to areas that have blur
Whenever blurring, the wallpaper should also zoom out. This is the
mental model of our Depth System.

Test: manual
Bug: 149792636
Change-Id: I1783eb87fefeb6f917f0ba64f2c6ec8f1f2004fa
2020-03-18 13:29:58 -07:00
vadimt
5e46f072b4 Fixing TouchInteractionService referring destroyed activity
Bug: 139137636
Change-Id: I2d36bcd9478e070e21cb6c8e2cde617807af8dd1
2020-03-18 09:42:38 -07:00
Jon Miranda
c298078241 Add staggered workspace animation to keyguard unlock animation.
Added behind FeatureFlag.KEYGUARD_ANIMATION due to dependency on
Ie94ab8ecd35e9dcc28d0b8f7aaeb058e15b0f80b.

Added dynamic resource unlock_staggered_velocity_dp_per_s so that the
animation can be tuned.

Bug: 151238866
Change-Id: I4d349d32cc7d86be3cdc582c2a7c565be2931444
2020-03-17 14:27:35 -07:00
TreeHugger Robot
c73071281b Merge "Moving animation config so a separate class" into ub-launcher3-master 2020-03-17 03:39:41 +00:00