Commit Graph

12553 Commits

Author SHA1 Message Date
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 d9e48fceec Merge "Add OnGlobalLayout listener to WidgetFloatingView" into sc-dev am: 9297064b2e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14440777

Change-Id: I555de34cad7b7316ad503b81a5b47302870cf5e7
2021-05-05 18:03:09 +00:00
TreeHugger Robot 114ed01217 Merge "Fixes NPE in AbsSwipeUpHandler." into sc-dev am: cf6900d9ee
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14436551

Change-Id: Ifb3b0faa8b2c896f948eca080a7312ad8bb5cd1a
2021-05-05 18:02:57 +00:00
Winson Chung 7852ec43e4 Merge "Allow binder calls from creating recents orientated state for now" into sc-dev am: cc03a9afa9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14421143

Change-Id: I07db8cb95207567ae17c3472e4ea6ce0378fcb28
2021-05-05 18:02:52 +00:00
Sunny Goyal 772ff6a427 Some 3P launcher transition fixes am: 91d26f0b5e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14430440

Change-Id: I7b8434c01f4549271f1eed4167551afccb0cc340
2021-05-05 18:02:37 +00: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 44e1d463af Fix FloatingWidgetView post-animation fallback background handling am: e41034034f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14440781

Change-Id: I56131e0b57e71de16f9b83525acf5e30f38ec221
2021-05-05 16:02:56 +00: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 b285d3174b Merge "Support live tile for 3rd party launchers" into sc-dev am: 7645422e37
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14409355

Change-Id: I67771d383e9f166a2f39e4a69fa1440285ed28e3
2021-05-05 06:14:43 +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 70e8b28c12 Merge "Adds AllSetActivity in Launcher." into sc-dev am: 19a1c4765f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14419322

Change-Id: I33f1d7c223e3b12c04b9fc8935fbdd7a95fbb879
2021-05-05 03:22:43 +00: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 1802be876c Merge "Make overview color tinting work properly." into sc-dev am: 4ca60d50bd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14430443

Change-Id: Ic0058ce446e227780d69965e1bd3a763b09c3c45
2021-05-04 23:28:41 +00:00
TreeHugger Robot 4ca60d50bd Merge "Make overview color tinting work properly." into sc-dev 2021-05-04 23:18:48 +00:00
TreeHugger Robot dbb0dc6db6 Merge "Add NEW_TASK flag to Quickstep App Widget activity start" into sc-dev am: 4d5c733411
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14425541

Change-Id: Ic04f5463d749a1ecd51ae5cc2670c2aa00d6a043
2021-05-04 22:39:11 +00:00
Sunny Goyal 330f73bef0 Merge "Adding support for determining split layout for launcher." into sc-dev am: c52c0782a7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14286682

Change-Id: Ia2227d7ff01350b968d7cce622839467c6c22c47
2021-05-04 22:39:05 +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 f1924d0a68 Merge "Add a flag to enable custom local filter for recommended widgets" into sc-dev am: 3e6b93cedb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14339827

Change-Id: I4047b3ec264bfb9a134a861418a902afc8b163f0
2021-05-04 22:32:05 +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 20875652e2 Merge "AssistContentRequester-weaken references to system callback" into sc-dev am: 7d54a31ba9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14413471

Change-Id: I2c998ba17647e007e0ae966bdc19eda70b04c0aa
2021-05-04 21:37:30 +00:00
Tracy Zhou 3637ad9553 Merge "Revert "Revert "Revert "Finish recents animation upon home rotation"""" into sc-dev am: a570b82aff
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14430716

Change-Id: I4a9f4b1e9b6a00822580300f2401b4a52458e9fc
2021-05-04 21:37:23 +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 b1ea1a126e Merge "Change flag type to control Quickstep widget app launch" into sc-dev am: 3c94052bb5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14425537

Change-Id: If906fe618b5e42d65819f58cf89d874d641f3d30
2021-05-04 17:49:35 +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
Samuel Fufa 82d729ada2 Merge changes Ice83b544,If0bc2a6d into sc-dev am: 30ffc3f95c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14411239

Change-Id: Iaeca70dc50e3d93952097dc9fb2c586df5b34106
2021-05-04 15:27:05 +00:00
Samuel Fufa 30ffc3f95c Merge changes Ice83b544,If0bc2a6d into sc-dev
* changes:
  [Search][Motion] Modify interpolator for AllApps background scrim
  Cleanup/consolidate normal<->all apps interpolators
2021-05-04 15:06:51 +00:00
Cyrus Boadway 197c909483 Change flag type to control Quickstep widget app launch
Previously we'd relied on a SystemProperties to control which
InteractionHandler was used by Quickstep for widget app launches.

This switches to a more conventional FeatureFlag.

Bug: 169042867
Test: manual
Change-Id: I7abf815c6e204daf996ac0a81b1a354c4e3d5cda
2021-05-04 12:04:36 +00:00
Alex Chau 90f587f350 Maintain TaskView's scroll invariant when swiping down
Fixes: 186881810
Test: Swipe down from task other than running task, snaps in proper position in fullscreen
Change-Id: If1a667246804ebff8432b295a0bb22d17feb5c31
2021-05-04 12:51:23 +01:00
TreeHugger Robot a591c71ab2 Merge "Adding support for using themed icons on workspace" into sc-dev am: cc65b07d44
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14297837

Change-Id: Ie5e6c373732ae2c835baca8faa615bf7a26ce83c
2021-05-04 06:23:12 +00:00
TreeHugger Robot cc65b07d44 Merge "Adding support for using themed icons on workspace" into sc-dev 2021-05-04 06:03:17 +00:00
Winson Chung 7fbc961933 Allow binder calls from creating recents orientated state for now
- Should probably remove if possible since this is on a hot path

Bug: 187074722
Test: Presubmit
Change-Id: I104e1175acba7b90cd9824b905ffe68089beed9e
2021-05-03 22:27:24 -07:00
TreeHugger Robot 7289746947 Merge "Fade out empty Overview message." into sc-dev am: 13e4618b57
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14415793

Change-Id: I744e9be9f50ad156d23a3a55f5e53754fcc16271
2021-05-04 04:13:21 +00:00
Samuel Fufa 3ab273da0c [Search][Motion] Modify interpolator for AllApps background scrim
Also rename ANIM_WORKSPACE_SCRIM_FADE to ANIM_SCRIM_FADE since
the scrim is shared between states now.

Bug: 183001675
Test: Manual in 3 button and 0 button modes
Change-Id: Ice83b54480bdf74155e8593c421b68d7186cf78a
2021-05-03 21:13:20 -07:00
Tony Wickham 154b1c928b Cleanup/consolidate normal<->all apps interpolators
We no longer need to have a different behavior for no button mode,
so make PortraitStatesTouchController the source of truth

Also remove unused ANIM_ALL_APPS_HEADER_FADE & RECENTS_FADE_THRESHOLD

Test: manually in 0 button and 3 button modes
Bug: 183001675
Bug: 175137718
Change-Id: If0bc2a6d6d3bf1649fad45226a4e6055f30e4880
2021-05-03 21:07:24 -07:00
TreeHugger Robot 13e4618b57 Merge "Fade out empty Overview message." into sc-dev 2021-05-04 03:49:54 +00:00