Commit Graph

6193 Commits

Author SHA1 Message Date
Hongwei Wang
ea34ef9f5f Merge "Support entering PiP from live tile" into sc-dev 2021-05-07 00:57:46 +00:00
Winson Chung
45849e22c9 Merge "Handle volume key events while in overview" into sc-dev 2021-05-07 00:36:48 +00:00
Winson Chung
5da72b5be8 Handle volume key events while in overview
- Normally this gets dispatched to an app's phone window to notify
  the media session manager, but because the recents input consumer
  routes to the launcher window bypassing phone window, the event
  never gets processed.

Fixes: 185520916
Test: Open overview from an app, ensure volume dialog still shows
Change-Id: I8784a6211e56f320b8b9d688fa0568c583652725
2021-05-07 00:36:34 +00:00
Tracy Zhou
adc109cabe Null check RecentsView before calling launchSideTaskInLiveTileMode
Test: N/A
Fixes: 185066406
Change-Id: Ic85bbe02b93c7cc652543138d3ea79f7892c7268
2021-05-06 16:36:31 -07:00
TreeHugger Robot
2b93dbb0b8 Merge "Explicitly set mAllowGoingDown = false when only up is allowed" into sc-dev 2021-05-06 23:26:14 +00:00
Hongwei Wang
a608df0c81 Support entering PiP from live tile
When finish the recents animation, send user leave hint if live tile is
currently on. Note that we force the PiP window fades in in this case.

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/bLoRpbgcyZBt1UiQPZEXcF
Bug: 187421300
Test: manual, see video
Change-Id: I07bc307c5eb895cd23b764af92e39ff7e6f8e805
2021-05-06 16:10:44 -07:00
Hongwei Wang
9d1514b4f2 Get PiP round corner radius from WMShell
Fixed also the issue that when
SystemUiProxy#setPinnedStackAnimationListener is called,
SystemUiProxy#mPiP may not have been initialized, defer the set/register
action in SystemUiProxy#setProxy if applicable.

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/dmUy8qBEMxHShFcFKB3cT3
Bug: 171721389
Test: make sure autoEnterPip has round corner support, see video
Change-Id: I38866bbc77bc2fa94f0197bb90c02e786198443e
2021-05-06 14:39:23 -07:00
Sunny Goyal
eab1f9bfbe Merge "Linking various settings that control icon cache to icon state" into sc-dev 2021-05-06 20:59:54 +00:00
Vinit Nayak
b2993d65b7 Merge changes from topics "taskbar3Button", "taskbarIME" into sc-dev
* changes:
  Add IME switcher/hide button bar when IME showing
  Initial commit of 3 button work
2021-05-06 20:47:41 +00:00
Tony Wickham
1282050f2f Merge changes I9749124a,Ic59b877c,Ibe8734e8 into sc-dev
* changes:
  Fix running task damped by overscroll when other tasks are offscreen
  When overview appears from motion pause, come up from bottom
  Align home/back button from overview with tap outside
2021-05-06 17:29:25 +00:00
Alex Chau
c8bd480bd5 Make focus task a bit bigger
Bug: 175939487
Test: manual
Change-Id: I0e4a13e02331ab9f4a8b1634197d7bf268edac68
2021-05-06 17:28:55 +01:00
ryanlwlin
c08253f3df Do not detect system gesture with new system ui state flag
If the device is in 2-button or gesturl navgiation mode,
touch events will be cancelled in the nav bar area. It leads
to that users couldn't drag the window magnification via
draghandle.

To fix it, we add a new system ui state flag to stop detecting
system gesture if it is set to true. This flag should be set only
when the window magnification is overlapped with the nav bar from
windowinsets.

Bug: 179648683
Test: manually test
Change-Id: I978a4b7d631e4115b293d341a89baee151c2881a
2021-05-06 20:45:09 +08:00
Alex Chau
c9744631f4 Merge "Maintain TaskView's scroll invariant when swiping down" into sc-dev 2021-05-06 10:56:03 +00:00
Sunny Goyal
b47172bc4e Linking various settings that control icon cache to icon state
Also separating icon provider for recents from Launcher as it used a fixed size

Bug: 183641907
Test: Verified on device
Change-Id: I6ea3caa0066d1483bfb8a81f0e8aaa472c813afe
2021-05-05 23:05:38 -07:00
Tony Wickham
48d6dc7708 Fix running task damped by overscroll when other tasks are offscreen
Test: Swipe up and to the left from an app, ensure the running task
scrolls freely until the adjacent task comes in from offscreen
Bug: 185411781

Change-Id: I9749124a6b6f014b55e3430d1764766a232eb9dd
2021-05-05 21:08:54 -07:00
Tony Wickham
e8b22d5e60 When overview appears from motion pause, come up from bottom
- Add vertical offset calculations to RecentsView (in addition to
  the existing horizontal offset which has been renamed accordingly).
- LauncherState#getOverviewScaleAndOffset() now supports both
  horizontal and vertical offsets and is specified such that overview
  appears and disappears from the bottom of the screen rather than the
  side.
- Quick switch still uses horizontal offset to come from the side.
- No longer need to scroll to page 0 when translating offscreen.
- Update interpolators for overview to home transition.
- Align 2 button mode transition with 0 button mode.

Test: Visually checking all of these. As appropriate, repeat in 0, 2, 3
button modes, landscape/portrait/fake landscape, and 3P launcher
- Quick switch from home
- Home to overview
- Overview to home (swipe up)
- Overview to home (tap outside)
- Overview to home (back invocation)
- Quick switch from app
- Swipe up and hold from app
- Dismiss an app
- Empty recents
- Split select state to home
- Modal state to home

Bug: 185411781
Change-Id: Ic59b877ccc0050afd7cd478778e9eeb60e2e47f7
2021-05-05 21:08:49 -07:00
Tony Wickham
bb3460c01f Align home/back button from overview with tap outside
Set all interpolators in QuickstepAtomicAnimationFactory instead of
overriding some in OverviewToHomeAnim. This also means we can just
use a normal state transition instead of OverviewToHomeAnim when
tapping outside recents (i.e. startHome()).

Test: in all three gesture modes, the same animation is played
whether tapping outside recents, pressing home, or pressing back
Bug: 185411781

Change-Id: Ibe8734e8bd7041943eb76cac30d7cac26a90c73e
2021-05-05 21:08:21 -07:00
Tony Wickham
739420bc38 Merge "Some cleanup for handler invalidation" into sc-dev 2021-05-06 02:21:57 +00:00
Evan Rosky
6255fd20f8 Merge "Fix a bug in TouchInteractionService for fixed-display input rotation" into sc-dev 2021-05-06 00:24:24 +00:00
Evan Rosky
7ee3651a19 Launch overview as transient
This way it won't cause the top running activity to pause until
the transition completes

Bug: 183993884
Test: enable shell_transitions, launch an app, go to overview,
      observe dumpsys and see that app remains RESUMED
Change-Id: I4311ade2e47062129874ae92bc7f5bea81bf2439
2021-05-05 17:01:45 -07:00
Tony Wickham
4f78df9300 Explicitly set mAllowGoingDown = false when only up is allowed
Test: swipe up and down on a task, then scroll to clear all and
try it again; should go up but not down in the second case
Fixes: 187349538

Change-Id: I0879bafb3b5bb3c5ced8a502c98bfba7a3ce8a51
2021-05-05 16:59:38 -07:00
Tony Wickham
95e62812b2 Some cleanup for handler invalidation
- Cancel reapplyWindowTransformAnim when STATE_HANDLER_INVALIDATED
- Set mActivity and mRecentsView = null in
  invalidateHandlerWithLauncher() instead of posting from
  invalidateHandler()
- Just in case, ignore onActivityInit() if we're already invalidated

Test: Tap repeatedly in nav region in an app, no crash
Fixes: 186983662
Change-Id: I3c005099b46ebb7c9203bcfcceedf48679dd1965
2021-05-05 16:20:17 -07:00
Vinit Nayak
673faf59ee Add IME switcher/hide button bar when IME showing
Bug: 180046394
Change-Id: Ic2bd919ab3d27e0a430b081c771ea8dc5827be81
2021-05-05 12:50:39 -07:00
TreeHugger Robot
46d420bf14 Merge "Add funtional animation for SplitSelect from Grid." into sc-dev 2021-05-05 19:03:47 +00:00
TreeHugger Robot
2f890c4ab7 Merge "Fix a couple of issues with quick switch from home to empty recents" into sc-dev 2021-05-05 18:37:25 +00:00
Vinit Nayak
16fd85629d Initial commit of 3 button work
Home, Back and Recents basic functionality working

Fixes: 180046394
Change-Id: Ifc5c767e35e88183500d14d14736eb40df436369
2021-05-05 11:25:36 -07:00
TreeHugger Robot
9297064b2e Merge "Add OnGlobalLayout listener to WidgetFloatingView" into sc-dev 2021-05-05 17:50:57 +00:00
TreeHugger Robot
cf6900d9ee Merge "Fixes NPE in AbsSwipeUpHandler." into sc-dev 2021-05-05 17:41:48 +00:00
Winson Chung
cc03a9afa9 Merge "Allow binder calls from creating recents orientated state for now" into sc-dev 2021-05-05 17:39:15 +00:00
Vinit Nayak
2dbdddb4ba Add funtional animation for SplitSelect from Grid.
Long ways to go to final UI - TODO(b/186800707)
Add comments to grid layout code,
no functional changes at all.

Bug: 181705607
Test: Enter split screen from overview task menu
in grid and carousel. Able to select all items
and enter split.

Change-Id: Ib62f1b286acf0781ec47862fa31b670e6ff1892a
2021-05-05 09:38:42 -07:00
Cyrus Boadway
f5c9900686 Add OnGlobalLayout listener to WidgetFloatingView
This mirrors the FloatingIconView implementation.

Bug: 169042867
Test: manual
Change-Id: Ic5531dd847af66b9b17f6806dc7fc04c00c42f06
2021-05-05 16:11:35 +00:00
Sunny Goyal
91d26f0b5e Some 3P launcher transition fixes
Bug: 182494821
Test: Manual
Change-Id: Ia003b50493dce24a439fc735c990ee470975f68f
2021-05-05 09:09:36 -07:00
Cyrus Boadway
e41034034f Fix FloatingWidgetView post-animation fallback background handling
The background drawables should only be restored to the original view if
the values are non-null. The original view may have had a background drawable
be a drawable, just not one that's elligible for animation. In that
case the local reference is null. We should not restore that.

Bug: 169042867
Test: manual
Change-Id: I54eaac5632e3f4f25daee2c36d7609e8b2ffedaf
2021-05-05 14:23:35 +00:00
TreeHugger Robot
7645422e37 Merge "Support live tile for 3rd party launchers" into sc-dev 2021-05-05 06:04:10 +00:00
Tony Wickham
ae4e31d3ae Fix a couple of issues with quick switch from home to empty recents
- Add SKIP_SCRIM for mNonOverviewAnim, as the scrim  is already
  handled by mXOverviewAnim (this prevents some flickering).
- If RecentsView is empty, fade it in. This is less jarring than
  the "No recent items" appearing immediately without animation,
  and ensures it fades out seamlessly if you return home instead.

Test: Quick switch from home with no tasks and 1 task
Bug: 174228745
Change-Id: I57edc0cea4d1dfa40f87f7ccc5aa3d6b8929a1ff
2021-05-04 22:08:42 -07:00
Andy Wickham
90097d873d Fixes NPE in AbsSwipeUpHandler.
Fixes: 187243410
Test: Manual (not sure of exact repro steps, but I was hitting it
before installing - though reinstall itself may have fixed it).

Change-Id: I7510a675da9d2c1a484da8e00ca856f19445025c
2021-05-04 22:02:16 -07:00
Tracy Zhou
7497a874ee Support live tile for 3rd party launchers
Fixes: 183725555
Test: tapl and manually install launcher3 with quickstep

Change-Id: Id7727c8d87db61de992e6341939c322da9ff5204
2021-05-04 21:48:58 -07:00
TreeHugger Robot
19a1c4765f Merge "Adds AllSetActivity in Launcher." into sc-dev 2021-05-05 03:12:07 +00:00
Andy Wickham
474c616e98 Adds AllSetActivity in Launcher.
Mostly copied from its location in Tips.

Some exceptions:
 - Accent color (used for the icon at the top and link text)
   is derived from intent extras to match the rest of SUW.
   If needed, we could also pass other colors this way;
   currently they just use default light/dark mode colors.
 - Currently there is no animation in the middle. Not sure
   if one is expected, but we can add it later if so.

Bug: 184722307
Test: Manually passing arbitrary colors via adb:
adb shell am start -a com.android.quickstep.action.GESTURE_ONBOARDING_ALL_SET --ei accent_color_dark_mode -2134901760 --ei accent_color_light_mode 2147418112

Change-Id: I1fb8b20b88b7485d28f06afd2b421999ad847266
2021-05-04 18:44:22 -07:00
TreeHugger Robot
4ca60d50bd Merge "Make overview color tinting work properly." into sc-dev 2021-05-04 23:18:48 +00:00
TreeHugger Robot
4d5c733411 Merge "Add NEW_TASK flag to Quickstep App Widget activity start" into sc-dev 2021-05-04 22:33:44 +00:00
Sunny Goyal
c52c0782a7 Merge "Adding support for determining split layout for launcher." into sc-dev 2021-05-04 22:33:38 +00:00
Steven Ng
3e6b93cedb Merge "Add a flag to enable custom local filter for recommended widgets" into sc-dev 2021-05-04 22:02:25 +00:00
TreeHugger Robot
7d54a31ba9 Merge "AssistContentRequester-weaken references to system callback" into sc-dev 2021-05-04 21:28:22 +00:00
Tracy Zhou
a570b82aff Merge "Revert "Revert "Revert "Finish recents animation upon home rotation"""" into sc-dev 2021-05-04 21:17:45 +00:00
Tracy Zhou
06df8fe4d8 Revert "Revert "Revert "Finish recents animation upon home rotation"""
This reverts commit ef7b4d5dae.

Reason for revert: Possibly broke a test
Bug: 187112839

Change-Id: I16ac2a155af9a0ae2ea60f55c52e0b3bf4307089
2021-05-04 21:17:36 +00:00
zakcohen
7167c3f3c9 Make overview color tinting work properly.
Bug: 179922117
Test: Local
Change-Id: I0b6620be8184bab836ed91d087739df57817eb37
2021-05-04 13:56:34 -07:00
Evan Rosky
04fb7ee44c Fix a bug in TouchInteractionService for fixed-display input rotation
DisplayManager display size seems to be pre-rotation, so adjust
logic in TouchInteractionService to account for that.

Bug: 179274888
Test: atest Launcher3Tests:com.android.launcher3.ui.TaplTestsLauncher3
Change-Id: Ie89d7b7d74c8bece8a2c109a0b350bc190356bf2
2021-05-04 11:52:26 -07:00
Cyrus Boadway
04b8ac607e Add NEW_TASK flag to Quickstep App Widget activity start
Include the NEW_TASK flag to activity starts launched from Quickstep
hosted App Widgets.

This is consistent with the default non-Quickstep generated
ActivityOptions from RemoteViews::getLaunchOptions.

Bug: 169042867
Test: manual
Change-Id: Iba370731f4126d92a11a4e348e74888b533d4d8b
2021-05-04 18:38:48 +00:00
Cyrus Boadway
3c94052bb5 Merge "Change flag type to control Quickstep widget app launch" into sc-dev 2021-05-04 17:34:01 +00:00