Commit Graph

4522 Commits

Author SHA1 Message Date
Winson Chung aff3e5263e Disable batching until the initial gesture is detected
- Just doing other activity since that's the most common case for now

Bug: 167732711
Change-Id: Icc910dbaf057893710c5f0bc6705e57cf8e3ee22
2020-09-30 17:56:21 +00:00
TreeHugger Robot 7c92c022d8 Merge "Adding jank tracing for some CUJs" into ub-launcher3-master 2020-09-29 21:15:18 +00:00
Winson Chung b006c243d0 Merge "Wrap animation runner for recents animation" into ub-launcher3-master 2020-09-29 18:42:24 +00:00
Winson Chung 907845eba5 Wrap animation runner for recents animation
Bug: 160239388
Change-Id: I937c89b963b88702548daca7c0b85f7a79d5d706
2020-09-28 20:06:19 -07:00
vadimt b8a30ef68a Adding jank tracing for some CUJs
Test: checking traces

Bug: 169220800
Bug: 169220955
Bug: 169221267
Bug: 169220924
Bug: 169220843
Change-Id: Ia32635764c78139f7e9a616c9fe70ae1a507c1b2
2020-09-28 20:59:14 +00:00
TreeHugger Robot cc7b860566 Merge "Fixing lock during RecentsModel initialization" into ub-launcher3-master 2020-09-28 19:32:07 +00:00
Sunny Goyal 10759887c2 Fixing lock during RecentsModel initialization
HandlerThread.getLooper blocks the current thread until.
the final thread is initialized. Updating RecentsModel to
use an executor instead of a handler thread to avoid this.

Change-Id: I3b2e82a375ea65bea1526af4a32c6a2488102541
2020-09-28 08:57:08 -07:00
Hyunyoung Song 95786e077d Good riddance UserEventDispatcher
Bug: 165675920
Bug: 161381246

TL;DR;;
- nano -> lite proto
- add all the missing logs to WW
- pin item related logging fix
- Removed logging for assistant

sgrep "com.android.launcher3.userevent.nano." | cut -f1 -d: | xargs sed -i -e 's/userevent\.nano\./userevent\./g'

Change-Id: Ie2a49fdd891cacbd7ef40a1dc9e41ff0574c7517
2020-09-27 13:41:49 -07:00
TreeHugger Robot b47551153a Merge "Allow touches on Workspace during transition from Overview" into ub-launcher3-master 2020-09-25 23:16:51 +00:00
Sreyas Rangaraju de301593e8 Merge "Removing OAV HIDDEN_GESTURE_RUNNING flag." into ub-launcher3-master 2020-09-25 22:05:29 +00:00
Jerry Chang 91ef6856d7 Remove legacy involveSplitScreen API
The onSplitScreenInvoked was used to notify system ui to reset the
divider position before entering split screen. With
SplitScreenTaskOrganizer, WM Shell library could know the exact time
when entering/leaving split screen mode. Removes the legacy API and
resets divider position when leaving split screen mode.

Fix: 168869136
Test: atest WMShellTests
Test: atest SystemUITests
Test: manual check recents and split screen behavior
Change-Id: Id14925619d1ec7c014a3e306fd99ec3734f227da
(cherry picked from commit 44981eb88e)
2020-09-25 20:43:14 +00:00
Tracy Zhou 32b9f3dc40 Merge "[Live Tile] Switch to screenshot when any task menu option is selected" into ub-launcher3-master 2020-09-25 17:43:32 +00:00
Tracy Zhou a13715bb93 [Live Tile] Switch to screenshot when any task menu option is selected
- App info
- Split screen
- Pause app

Fixes: 169385194
Test: Manual
Change-Id: I7df8ac7dd89c8c7ae75d8e2e4207cd32ca7b10ea
2020-09-24 22:21:42 -07:00
TreeHugger Robot b2507acec9 Merge "Adds ability to use LauncherPreviewRenderer in Sandbox." into ub-launcher3-master 2020-09-24 20:09:32 +00:00
TreeHugger Robot 8aade720b2 Merge "Make overview to home translate faster" into ub-launcher3-master 2020-09-24 19:38:03 +00:00
Tracy Zhou a6a0ec986d Merge " [Live tile] Use OverviewInputConsumer in live tile mode" into ub-launcher3-master 2020-09-24 18:13:43 +00:00
Winson Chung a6901eb32a Merge "Remove test restrictions" into ub-launcher3-master 2020-09-24 17:25:01 +00:00
Tracy Zhou a7ddfc0722 [Live tile] Use OverviewInputConsumer in live tile mode
Fixes: 169285206
Test: fling the home handle in Overview to go home
Change-Id: I41eae8a5120857b653a8b261a03cd5f83f99e6bb
2020-09-23 19:40:14 -07:00
Tony Wickham 69f9cae810 Remove CurveProperties#pageParentScale
Test: Set TaskView#EDGE_SCALE_DOWN_FACTOR = 0.2f, then swipe
down on the centermost TaskView; ensure it fills the screen.
Alternatively, touch and hold the nav bar and ensure there is
no jump in scale on the app window.

Fixes: 169259407
Change-Id: Ib3cfba6ebafbcb90de9c6b1ab79f53605d995321
2020-09-23 17:39:07 -07:00
Sreyas ceb1724376 Removing OAV HIDDEN_GESTURE_RUNNING flag.
Overview was being hidden when gesture was running, this is unnecessary as other hidden flags cover all the use cases.
Bug: 168565347

Change-Id: Ieab36783fccc0088f9cdbe0768a93c5c46b23def
2020-09-23 16:37:13 -07:00
Winson Chung 30cd4dca5f Remove test restrictions
Bug: 150303529
Change-Id: I1cfbd2bfb26fc47ee0bfb54dd174cd59ae0bfc5e
2020-09-23 15:33:32 -07:00
Tony Wickham a8e2ad2c1f Merge "Scale task view in TaskViewSimulator before translating it" into ub-launcher3-master 2020-09-23 18:52:33 +00:00
Winson Chung 9d15815f84 Merge "Revert "Disabling testToast on virtual devices"" into ub-launcher3-master 2020-09-23 18:15:44 +00:00
Tony Wickham 657f396c9c Scale task view in TaskViewSimulator before translating it
The pivot is supposed to be at the center of the task view, hence why
we use width / 2, height / 2, but technically this is assuming that
translation == 0. This error isn't normally noticeable because scale
is 1 when the task is centered, so the pivot doesn't matter. By
scaling before translating, we ensure the pivot doesn't depend on
the translation.

Test: scroll side to side while swiping up from an app, ensure the
running window scales down properly; when you let go to enter recents
while the second task is centermost, the running window ends in the
exact position as the first TaskView that replaces it.

Fixes: 169103357
Change-Id: Ica53c6b6fb073304c29f26d30fb829bb9d282185
2020-09-22 17:33:46 -07:00
Winson Chung 649122edc0 Revert "Disabling testToast on virtual devices"
This reverts commit f6385576d5.

Reason for revert: Test

Change-Id: I9caec3b2d64995b31f3dbbf5cb2865f4e5941afe
2020-09-22 23:43:51 +00:00
TreeHugger Robot 52e4994767 Merge "Remove invisible home task view as soon as gesture to Recents ends" into ub-launcher3-master 2020-09-22 01:08:29 +00:00
Tony Wickham c445a359ae Remove invisible home task view as soon as gesture to Recents ends
Fixes: 168288052
Change-Id: I929d021b26dad8b2f9b1f6a659522054bbf3ec28
2020-09-21 17:20:51 -07:00
Tony Wickham ca23b981d9 Allow touches on Workspace during transition from Overview
Previously we only allowed touches on the hotseat (due to it being
in the shelf in Overview); now we allow touches anywhere if we are
not in an overview state.

Test: enter overview, swipe up to home and scroll workspace or tap
a workspace icon during the transition

Bug: 169052350
Change-Id: I59ee695ba9cb6f5fddd8e41c5796cdba6b3d2112
2020-09-21 11:56:04 -07:00
Tony Wickham a85fa09885 Make overview to home translate faster
Fixes: 169052350
Change-Id: Ia6f21f479498927a5561819fcc256b698acbd095
2020-09-21 11:14:49 -07:00
Winson Chung 1ecce38357 Merge "Only check activity rotation allowed when considering menu layout" into ub-launcher3-master 2020-09-21 16:32:33 +00:00
Pinyao Ting 28633e9985 Fix the issue Launcher is calling minimal device endpoint on UI thread
Test: manual
Change-Id: I72b12da43520d775bfd652a3b10406440f7cf64f
2020-09-20 05:27:21 +00:00
vadimt dd0b469a76 Experiment with closing all apps before overview actions test
Bug: 165029151
Change-Id: I1090b963ac1a12c96968014c69b8b26e1768be85
2020-09-18 14:31:25 -07:00
Winson Chung 24f0f34d01 Only check activity rotation allowed when considering menu layout
- The canRecentsActivityRotate() also checks whether system rotation
  is enabled which prevents us from using the right layout orientation
  when home rotation is enabled while system rotation is disabled.

Bug: 168278832
Test: Tested menu visibility in combination of
      Auto rotate setting x Home rotation setting X Device orientation
Change-Id: If74a38b1ec51abd2ea7f3ba3de23f0b2c4cab0ab
2020-09-17 13:23:39 -07:00
Andy Wickham 9e754b008d Adds ability to use LauncherPreviewRenderer in Sandbox.
This is mostly a proof-of-concept for future use and
tweaks as desired by UX.

The idea is to better replicate the actual UI.

Screenshot: https://drive.google.com/file/d/1EGDgcrSH2QZuSh6P3zWLBl6L8Xd-gtFY/view?usp=sharing

Bug: 148542211
Change-Id: Ibed4b8118346ef72599463c9fd6a2f71166993fd
2020-09-16 19:35:18 -07:00
TreeHugger Robot 445e4b4b9b Merge "Dismiss task menu when swiping to home" into ub-launcher3-master 2020-09-14 21:31:47 +00:00
Tony Wickham ef4b506c34 Dismiss task menu when swiping to home
Change-Id: Ie23e12cefeed2835aa0e5902337856505a5815bc
2020-09-11 13:00:06 -07:00
TreeHugger Robot b350c66b6c Merge changes I358a6020,I202ed999 into ub-launcher3-master
* changes:
  Inline INDEX_PAUSE_TO_OVERVIEW_ANIM
  Allow pause during quick switch for any horizontal displacement
2020-09-11 02:08:25 +00:00
Tony Wickham 1c3150fa1f Inline INDEX_PAUSE_TO_OVERVIEW_ANIM
It is only used by NoButtonQuickSwitchTouchController. Also removed
the interpolator overrides that are no longer needed since we don't
animate the shelf into overview mode.

Change-Id: I358a6020caaee859c6b22179591ab1d11a432f1d
2020-09-10 18:33:24 -07:00
TreeHugger Robot b7cc9fcc9e Merge "Adding content push button behind flag to OAV." into ub-launcher3-master 2020-09-10 21:07:44 +00:00
Sreyas 46aba2a46e Adding content push button behind flag to OAV.
Tested: TaplTestsNexus:testOverviewActions()
Change-Id: I83bc6e5033e2292776c927fba363214f347e01ce
2020-09-10 12:59:55 -07:00
Tony Wickham 248a7f89ac Only set live target if there is a target to set
Fixes: 166143722
Change-Id: I10c5bf384f6cee02cc55c035647911672f638e48
2020-09-10 00:41:22 +00:00
Tony Wickham 4318324ab4 Allow pause during quick switch for any horizontal displacement
The shelf no longer exists in 0 button mode, so it's not necessary
to wait for workspace to be invisible before allowing the pause.

Change-Id: I202ed9991b18f5e7cb2e4f0aa6be7a0d66b8ffd7
2020-09-09 17:12:49 -07:00
vadimt f367ced932 Annotating open-app transitions in trace files
Change-Id: I2461186321b7c33dbabca34c066b61f2169010f3
2020-09-08 18:39:32 -07:00
TreeHugger Robot 57cf650115 Merge "Annotating open-Launcher transition in trace files" into ub-launcher3-master 2020-09-08 22:27:58 +00:00
vadimt 70dc1066b6 Annotating open-Launcher transition in trace files
Currently, in trace files, it's hard
to find the exact set of frames for this transition.

Change-Id: I17ac201f9f9bc357ba42003776ec7a20ddef033d
2020-09-08 14:51:43 -07:00
Tony Wickham 01e4070836 Standardize quickstep velocities
- Compute velocities as px/ms from VelocityTracker, instead of
  computing px/s and dividing by 1000 in various places
- Use quickstep_fling_threshold_speed in TriggerSwipeUpTouchTracker
  instead of ViewConfiguration#getScaledMinimumFlingVelocity
- Check MotionPauseDetector to determine whether a fling is
  sufficient to escape after pause, in additon to above threshold

Bug: 159089437
Change-Id: Ib0fae7804e1f008f3b6ab37d6c463352c224b0e4
2020-09-03 10:52:34 -07:00
Tony Wickham 3a89e42237 Don't detach recents from app window after motion pause
- Update MotionPauseListener to have 2 methods: the existing
  onMotionPauseChanged(isPaused) and onMotionPauseDetected()
  - onMotionPauseDetected is the default as most listeners only
    care about the first detected pause
  - AbsSwipeUpHandler still listens to pause changes, to help
    determine the end target at the end of the gesture

Bug: 159089437
Change-Id: I6d14f106cdcbe4e07d8dddba1cee909a963615b1
2020-09-02 17:28:49 -07:00
TreeHugger Robot 1aee9da5b8 Merge "Make modal based UI changes in TaskView only if modalness changes." into ub-launcher3-master 2020-09-02 22:12:34 +00:00
Sreyas ed5e43bd25 Make modal based UI changes in TaskView only if modalness changes.
Fixes issue with jittery displaying of suggestion chip, when entering overview.
Merging into master manually as automerger failed.
Tested:Manual

Change-Id: I8228c51b22d550cb8f0aa559f997060b571763f1
2020-09-02 11:18:01 -07:00
Sreyas 639505c23b Scale down chip proportional to TaskView becoming fullscreen.
Merging into ub-launcher3-master manually as automerger failed.

Tested: Manual
Change-Id: Ic8e6dd6ba83206d67ee27d4af9d56639e9e43ff9
2020-09-02 11:17:19 -07:00