Commit Graph

34630 Commits

Author SHA1 Message Date
Dave Mankoff 08d1a77825 Rename PluginInstanceManager to PluginActionManager.
New PluginInstance class.

Bug: 194781951
Test: manual
Change-Id: I5274b6380acaad8bb2e900cfdce772b71add9483
2021-08-13 10:50:32 -04:00
Dave Mankoff 1095a50dfa Updates to constructor of PluginInstanceManager.Factory
Bug: 194781951
Test: manual

Change-Id: I510dcd3b405988320052944b412e1d18360144ef
2021-08-13 10:50:21 -04:00
Dave Mankoff 630ae94833 Pass main executor to PluginInstanceManager.Factory.
Bug: 194781951
Test: manual
Change-Id: I1667023887e0c8d1dc86fce1717a3032b6721684
2021-08-13 10:18:01 -04:00
Dave Mankoff 1d5e1dc8d1 Pass Executor to to PluginInstanceManager.Factory.
Bug: 194781951
Test: manual
Change-Id: I6dc699869d041aab8f5d1e7a128b4f67adfd78dc
2021-08-13 10:16:09 -04:00
Dave Mankoff 13f50b9898 Changes to the signature of PluginManagerImpl.
Bug: 194781951
Test: manual
Change-Id: Iafc5232dfdb1cc1c554de925c2f0d2ad5f6439e2
2021-08-13 10:01:42 -04:00
Ben Lin 99b5d13952 Merge "Do not set user active hints when Shell Transition is on." into sc-v2-dev 2021-08-13 01:09:19 +00:00
TreeHugger Robot 73ad3abc29 Merge "Restoring generating artifacts" into sc-v2-dev 2021-08-13 00:44:57 +00:00
vadimt 303298de84 Restoring generating artifacts
Bug: 189874683
Test: presubmit
Change-Id: I82503900a8b7ce916a54437456007dec00016c47
2021-08-12 16:04:05 -07:00
Ben Lin 1e49216401 Do not set user active hints when Shell Transition is on.
Previously, we hint at user active in order to let the launcher know at
an earlier time that the user is about to go home, to provide PiP a
shelf offset. However with Shell Transitions, this is now being done
instantly as the launcher activity is resumed right as user touches down
on the gesture pill. We then no longer need this for shell transitions.

Bug: 165793917
Test: Enable Shell Transitions, go home to enter PIP, and open another
app - see that PIP auto moves downward now that shelf height has changed

Change-Id: I347c885425ce820a42ebfcc15082862d04aa1a7d
2021-08-12 15:17:31 -07:00
TreeHugger Robot 00d0ce9b3b Merge "Update two panel specific launcher home icon sizing" into sc-v2-dev 2021-08-12 21:47:25 +00:00
Sunny Goyal 57e0866fdd Fixing ModelPreload cancelling existing load
When a model preload call was made while the loader task is running
(eg: on enabling/disabling icon theme, Launcher reloads and then
launcher preview start a model-preload), it would cancel the original
loader and then start a new loader with empty callbacks. So the
model indeed get loaded, but the original callbacks never got notified
of it.

> Instead we only start preload if an existing task is not running.
> Also when preloading, we use existing callbacks, instead of using
  empty callbacks

Bug: 193851085
Bug: 195155924
Test: Verified repro steps
Change-Id: I0a96310be8489756f364aa2a12e4345e1418733d
2021-08-12 21:33:33 +00:00
TreeHugger Robot 7d87779deb Merge "Not using shell command to enable test provider" into sc-v2-dev 2021-08-12 19:40:19 +00:00
Brian Isganitis e0c4a090d8 [automerger skipped] Merge "Update preferences to Material Next styling" into sc-qpr1-dev am: e52a4e39af -s ours
am skip reason: Merged-In I346bbf819f3fe1eb13b47125b53c15baab11e439 with SHA-1 93031bc2ae is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15521744

Change-Id: I56c47fca463c096fd4164f0d9d4a8472412ce241
2021-08-12 19:19:57 +00:00
Brian Isganitis e52a4e39af Merge "Update preferences to Material Next styling" into sc-qpr1-dev 2021-08-12 18:57:49 +00:00
Andras Kloczl 30fe9152d5 Update two panel specific launcher home icon sizing
Test: manual
Bug: 191879424
Change-Id: I4f51616004d78036ad801298bb5ba72af8de3f30
2021-08-12 18:46:01 +01:00
vadimt 5f80e92bda Not using shell command to enable test provider
Shell command can kill app

Test: presubmit
Bug: 188806432
Change-Id: Id512eb16d26cc4b324574a2a6a15f4805e426b9f
2021-08-12 10:28:45 -07:00
TreeHugger Robot 662af98956 Merge "Clean up test logging and ScreenRecord" into sc-v2-dev 2021-08-12 17:26:48 +00:00
Alex Chau 592889d089 Merge "Logging fist event not from test" into sc-v2-dev 2021-08-12 10:41:10 +00:00
Alex Chau 2886a13d7a Clean up test logging and ScreenRecord
Bug: 194114179
Bug: 193125090
Test: manual
Change-Id: I086d011a39b74a24d5629d43dc74b741fcf5994e
2021-08-12 11:34:27 +01:00
TreeHugger Robot 305eaf5eee Merge "Adjust all apps zoom level" into sc-dev am: 6b10f4649c am: 3be0173b14
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15530106

Change-Id: Ie8dbfebd62215b945078acd76dc7428cd43d72cc
2021-08-12 00:46:14 +00:00
TreeHugger Robot 3be0173b14 Merge "Adjust all apps zoom level" into sc-dev am: 6b10f4649c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15530106

Change-Id: Id2a24af3aed6fa4819a2fc46c8a305b06ff31d84
2021-08-12 00:31:19 +00:00
TreeHugger Robot 6b10f4649c Merge "Adjust all apps zoom level" into sc-dev 2021-08-12 00:09:14 +00:00
Steven Ng 749f8c54cd Fix pending restore widget touch issue am: bdffb53843 am: 8facf46000
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517689

Change-Id: I4ce17b8b2c3ac35d7cecc58813e148784869fda9
2021-08-11 23:58:04 +00:00
Steven Ng 8facf46000 Fix pending restore widget touch issue am: bdffb53843
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517689

Change-Id: Ie1cd0fccfcb7377853f326e6e0476c3ec08be97a
2021-08-11 23:49:30 +00:00
vadimt 714d071f76 Removing old workaround
Test: presubmit
Bug: 165029151
Change-Id: I5a64c6e381c0bbbf849658648bd5b75a1e660381
2021-08-11 15:44:39 -07:00
vadimt c353b1adb2 Removing old workaround
Bug: 139137636
Test: presubmit
Change-Id: Iaa307c3d58f76ab7ee3b0a4a4a364b2b97d0efb7
2021-08-11 15:06:07 -07:00
Steven Ng b014e9098b Merge "Preview layout scaling for RemoteViews preview" into sc-v2-dev 2021-08-11 21:59:45 +00:00
Steven Ng bdffb53843 Fix pending restore widget touch issue
After http://ag/14980850, we block updateAppWidget until app widget
is restored. However, PendingAppWidgetHostView constructor relies
on updateAppWidget(null) to trigger set listener in getDefaultView().
We should call super.updateAppWidget(null) in the constructor instead.

Test: manual
Bug: 14980850
Change-Id: I30af9778a636af2ad822e7abc152b6f0bfdea1bf
2021-08-11 22:40:06 +01:00
vadimt 4381c3a343 Removing unnecessary logging
Test: presubmit
Bug: 190748682
Change-Id: I3a280b4f351098cf256d276baced6e13eb771eb3
2021-08-11 14:24:06 -07:00
vadimt 9fed5fd8b5 Adding NavigationModeSwitch to testOverviewActions
Bug: 162012217
Test: presubmit
Change-Id: I64d9cf69c870f2b23315d904e1aa2548984eaa75
2021-08-11 14:16:17 -07:00
vadimt e7fbe56b74 Logging fist event not from test
Bug: 189874683
Test: I didn't test this
Change-Id: I6808d09ffa1700b02596b585f36dadbd5242e3ef
2021-08-11 12:54:47 -07:00
TreeHugger Robot 69f2dc2b49 Merge "Even further increase FORCE_PAUSE_TIMEOUT in tests" into sc-v2-dev 2021-08-11 19:19:59 +00:00
TreeHugger Robot fcc4dbb65b Merge "Clean up ScreenRecord for AddWidgetTest" into sc-v2-dev 2021-08-11 18:41:32 +00:00
Thales Lima 9bbc085710 navigation: don't run gesture animation if gestures are not enabled am: 931bc2a38e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15517673

Change-Id: I3cbe31061153996668243da5c1b70741093d6948
2021-08-11 18:29:23 +00:00
Nick Chameyev 02c0c924a6 Merge "Add unfold animation to launcher icons and widgets" into sc-v2-dev 2021-08-11 18:04:03 +00:00
Alex Chau c2441dffbe Even further increase FORCE_PAUSE_TIMEOUT in tests
- http://b//194114179#comment17 shows that 900ms should work for most cases

Bug: 194114179
Test: atest NexusLauncherOutOfProcTests:com.android.launcher3.memory.MemoryTests#testAppLaunchFromWorkspace
Change-Id: Ie2832d7ad25b0844121ecf626903140bfeedc5ba
2021-08-11 18:36:42 +01:00
Lucas Dupin 3f6a4e6bf5 Adjust all apps zoom level
The All Apps scrim fades in early, covering part of the zoom animation.
We need to adjust the max zoom in order to make All Apps consistent with
Overview, -1, and Shade.

Test: pull up the all apps drawer
Fixes: 195992422
Change-Id: Ia7bbe17fe7f227dd0a16ba7d21b402cff57176f0
(cherry picked from commit f168bb7aaf)
2021-08-11 15:55:04 +00:00
Steven Ng f64b08dcb9 Preview layout scaling for RemoteViews preview
RemoteViews may contain multiple layouts. The best fit layout is
picked after layout. Let's ensure the best fit layout is picked
before scaling a preview

Test: Manual
Fix: 196044656
Change-Id: I41b9f70040befaf96a9af95f9399a816eb0b71cb
2021-08-11 16:37:58 +01:00
Nick Chameyev 5e8dbe77e8 Add unfold animation to launcher icons and widgets
Adds unfold animation to launcher which translates
icons and widgets from the center to the sides on
foldable devices.

Bug: 193794541
Test: manual
Change-Id: I9d6e018a0451d342f02dddea47bc180781c31d43
2021-08-11 16:10:18 +01:00
Thales Lima 931bc2a38e navigation: don't run gesture animation if gestures are not enabled
Makes the animation when using 3 button navigation be closer to what we
have in non fallback mode, also fixing the problem when fallback recents
just started and don't have any views.

Fix 194487871
Test: manual with gestures, 2 button and 3 button nav

Change-Id: If3925d6bef1d14f51b86169d06607786972f5f1f
(cherry picked from commit 8d49c4bb29)
2021-08-11 10:26:22 +00:00
Alex Chau 2a4c978371 Clean up ScreenRecord for AddWidgetTest
Bug: 195263971
Test: manual
Change-Id: I5880c9aa0294795d7a5827163f3f51466b67ad35
2021-08-11 10:06:05 +01:00
Tony Wickham 148b33b552 Don't recreate touch controllers when ending gesture am: 0b3b2921c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15522688

Change-Id: I21edf6e83271c749bfd21b3d3a6643a6b0bffa59
2021-08-11 04:54:53 +00:00
Tracy Zhou 255887ccdc Merge "Taskbar should animate immediately when tapping a live tile" into sc-v2-dev 2021-08-11 04:24:12 +00:00
Lucas Dupin f006d37acf Merge "Act on scrim visibility" into sc-v2-dev 2021-08-11 02:59:05 +00:00
vadimt a1e0b01a44 Removing some instrumentation for a workarounded bug
Bug: 187080582
Test: Local, presubmit
Change-Id: I2334072bebc9d4e40d632fe068943bf5560f02e4
2021-08-10 18:43:40 -07:00
Tracy Zhou ae0c16dd0c Taskbar should animate immediately when tapping a live tile
Fixes: 194728948
Test: manual
Change-Id: Ia2bf9e4d050367ac08e3308a308f19f04577c49e
2021-08-10 16:30:29 -07:00
Brian Isganitis ec8a994d54 Update preferences to Material Next styling
There should be enough free space to merge this change into S V2.

Test: Settings root, all apps, and about have new style on S
Bug: 187732263
Fix: 188254205, 188012913
Change-Id: I346bbf819f3fe1eb13b47125b53c15baab11e439
Merged-In: I346bbf819f3fe1eb13b47125b53c15baab11e439
2021-08-10 23:29:54 +00:00
Tony Wickham 0b3b2921c3 Don't recreate touch controllers when ending gesture
Test: swipe up to overview from an app and swipe up to dismiss it during the transition
Bug: 189700453
Change-Id: I303696f90dbb236ea93e06d94a3c92d783850fa4
(cherry picked from commit 0e9ecaeea8)
2021-08-10 23:26:33 +00:00
Lucas Dupin e4a9469156 Act on scrim visibility
The scrim visibility drives whether the launcher window is opaque or
not. We should track it and apply the flag instead of trying to catch it
through other Launcher life cycles.

Fixes: 195365607
Test: tap on home button while launching app from overview
Change-Id: I2a00b86b602b5dd12c901433b92adcf0170be15e
2021-08-10 14:18:50 -07:00
Bill Yi 3093dbb89e [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 8bc9c6355a -s ours am: be96e2e3e5 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15505516

Change-Id: I3e1e44c88f927e2c3010fbf54e6ca9c4e4f0acc5
2021-08-10 19:55:29 +00:00