Commit Graph

16456 Commits

Author SHA1 Message Date
Vinit Nayak 8b78c138d4 Implement swipe gesture for staged split in landscape
* Maintain task split percentages when swiping up.
* Split percentages not maintained in GroupedTaskView, however.
That is a TODO.

Bug: 181704764, 181705607
Test: Swiped up in landscape with home rotation on/off.
Portrait still works.

Change-Id: Iec62abae34f6ccadf98e2afdc9409cf3160f8223
2021-08-24 17:32:47 -07:00
Alex Chau fb77ba6167 Merge "Revert "Migrating all model tests to Instrumentation tests"" into sc-v2-dev am: 204e749f06 am: 4ad2d769d0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15667342

Change-Id: I9d9a9f2669fbe945df4800812f75f025e9c7626d
2021-08-24 17:55:22 +00:00
Alex Chau 204e749f06 Merge "Revert "Migrating all model tests to Instrumentation tests"" into sc-v2-dev 2021-08-24 17:29:06 +00:00
Alex Chau 7a4a30d86d Revert "Migrating all model tests to Instrumentation tests"
This reverts commit 455ba62b5d.

Reason for revert: Breaks tests on all targets

Bug: 196825541
Bug: 197570389
Change-Id: Ida6792a09c54dee46105b6b914a0dd1545bdf48d
2021-08-24 17:27:52 +00:00
TreeHugger Robot 428a0df67d Merge "Migrating all model tests to Instrumentation tests" into sc-v2-dev am: c817d2a633 am: 886adad609
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15619053

Change-Id: I4ad6305f34b17675f14c89fba4a2394be3f5f737
2021-08-23 21:47:06 +00:00
Lucas Dupin f52fb6f632 Act on scrim visibility am: a8382dc052
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15655786

Change-Id: I40626071bdaadd997cc1479118224847b78229d3
2021-08-23 21:34:23 +00:00
TreeHugger Robot c817d2a633 Merge "Migrating all model tests to Instrumentation tests" into sc-v2-dev 2021-08-23 21:08:51 +00:00
Sunny Goyal 455ba62b5d Migrating all model tests to Instrumentation tests
Bug: 196825541
Test: Presubmit
Change-Id: Iebd46eb41eb46c187d569197f4b97b4fddc0f6f7
2021-08-23 12:34:44 -07:00
Lucas Dupin a8382dc052 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
Bug: 196403152
Test: tap on home button while launching app from overview
Change-Id: I2a00b86b602b5dd12c901433b92adcf0170be15e
(cherry picked from commit e4a9469156)
2021-08-23 19:22:02 +00:00
TreeHugger Robot 7472298151 Merge "Fixing crash when the adapter is no longer available" into sc-v2-dev am: a71426811e am: acf5d25977
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15625882

Change-Id: I395880f9e51ab71f14b9de6ef2529d6620fae2d0
2021-08-19 19:39:41 +00:00
TreeHugger Robot a71426811e Merge "Fixing crash when the adapter is no longer available" into sc-v2-dev 2021-08-19 19:00:39 +00:00
Sunny Goyal 8e3a60648a Fixing crash when the adapter is no longer available
Bug: 197176748
Test: trivial change
Change-Id: Ie55a248c1998168c45bfa346186d61d7456ff7fb
2021-08-19 10:26:35 -07:00
TreeHugger Robot 9c43f97783 Merge "Fix NPE when converting final screen to empty screen." into sc-qpr1-dev am: 70dd01be85 am: 5980159f00 am: d6578da299
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15583988

Change-Id: Ieb58469aea095eb4fa154297a91be4a081c24165
2021-08-19 16:00:49 +00:00
TreeHugger Robot d6578da299 Merge "Fix NPE when converting final screen to empty screen." into sc-qpr1-dev am: 70dd01be85 am: 5980159f00
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15583988

Change-Id: If0b63751d63e33b402152c6953bb4125f0c62597
2021-08-19 15:51:12 +00:00
TreeHugger Robot 46db057249 Merge "Fix NPE when converting final screen to empty screen." into sc-qpr1-dev am: 70dd01be85
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15583988

Change-Id: Ie6d11b74141ff777b10f05919b9a61f7af809900
2021-08-19 15:43:06 +00:00
TreeHugger Robot 70dd01be85 Merge "Fix NPE when converting final screen to empty screen." into sc-qpr1-dev 2021-08-19 15:30:20 +00:00
Sunny Goyal 9ac600b14d Merge "Moving all widget picker tests to instrumentation tests" into sc-v2-dev am: 494bbb0b6c am: 3f869092d1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15616025

Change-Id: Idc0143a73210071aac2208d12d41c79d5246204e
2021-08-19 02:12:54 +00:00
Sunny Goyal 177785eccf Moving all widget picker tests to instrumentation tests
Bug: 196825541
Test: Presubmit
Change-Id: I946f29baedb2e6b29044f8df1bc73b74e9999efe
2021-08-18 15:06:53 -07:00
Sunny Goyal 6c6d6d18f1 Merge "Removing widget preview caching" into sc-v2-dev am: 7dcf197821 am: 35dd7566b1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15568034

Change-Id: I0e83784e0bb5bc8afdac9d395547e4cd1fa16f4a
2021-08-18 16:46:00 +00:00
Sunny Goyal 7dcf197821 Merge "Removing widget preview caching" into sc-v2-dev 2021-08-18 16:13:22 +00:00
Lucas Dupin 482f983a7b Add depth to -1 screen
Wallpaper will zoom out as you drag the overlay

Test: manually pull overlay
Fixes: 192502999
Change-Id: I9067b70d10497d4e16a5ef601161fbedfa9307e1
Merged-In: I9067b70d10497d4e16a5ef601161fbedfa9307e1
(cherry picked from commit 87d752062e)
2021-08-18 15:34:45 +00:00
TreeHugger Robot 7a3ad90e88 Merge "Logging for Nexus home activity appearing after to-home gesture in L3." into sc-v2-dev am: a7f7c4b432 am: 433ef28f91
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15602542

Change-Id: I13b2f88a69b80aa96ea896905f0da583a180cfc0
2021-08-18 11:45:50 +00:00
TreeHugger Robot a7f7c4b432 Merge "Logging for Nexus home activity appearing after to-home gesture in L3." into sc-v2-dev 2021-08-18 11:19:26 +00:00
Alex Chau 3a97c736a1 Merge "Support different task icon margin for grid tasks" into sc-v2-dev am: 2683bd7728 am: 3328b32054
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15596247

Change-Id: I59fdfa471d8f29524179517cee156baf006ee512
2021-08-18 09:08:57 +00:00
Alex Chau 2683bd7728 Merge "Support different task icon margin for grid tasks" into sc-v2-dev 2021-08-18 08:41:42 +00:00
TreeHugger Robot 7be5631a35 Merge "Fixing ModelPreload cancelling existing load" into sc-qpr1-dev am: 8782ad4f99 am: bf22a7effd am: e0028c1016
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15524186

Change-Id: I1a20df63eba0b9a39af9ca33c43cd721d4ca8b4b
2021-08-18 05:51:44 +00:00
TreeHugger Robot e0028c1016 Merge "Fixing ModelPreload cancelling existing load" into sc-qpr1-dev am: 8782ad4f99 am: bf22a7effd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15524186

Change-Id: I9afb8a7e7cf562bc5ae646421342bf86e3559420
2021-08-18 05:37:52 +00:00
TreeHugger Robot 04c4f94223 Merge "Fixing ModelPreload cancelling existing load" into sc-qpr1-dev am: 8782ad4f99
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15524186

Change-Id: Ib89cd2bbe854242c87f52d2edc384ae864af01c2
2021-08-18 05:21:30 +00:00
TreeHugger Robot 8782ad4f99 Merge "Fixing ModelPreload cancelling existing load" into sc-qpr1-dev 2021-08-18 05:09:49 +00:00
Vinit Nayak 5bfc125bde Merge "Add GroupedTaskView for gestures in staged split." into sc-v2-dev am: ca1d523734 am: 7afaf2731e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15467633

Change-Id: If6bd74213f1da7a4a76e42fb4c5e44b36b14edf8
2021-08-18 01:24:56 +00:00
vadimt bc79473313 Logging for Nexus home activity appearing after to-home gesture in L3.
Utilities.IS_RUNNING_IN_TEST_HARNESS is used as a condition
for logging in the background NexusLauncher where sDebugTracing is
not set.

Bug: 192018189
Test: presubmit
Change-Id: Ib08656a12c778b7bf968532e3ba899a03031fd7b
2021-08-17 18:13:50 -07:00
Sunny Goyal ed2a55f413 Removing widget preview caching
> All previews are generated on demand when the corresponding
  header expands
> Using ItemAnimator to animate layout changes when preview loads

Bug: 196238313
Test: Manual
Change-Id: I0cb859c8443c2c536399e4063f58baecfc7416ad
2021-08-17 17:50:30 -07:00
Vinit Nayak ca1d523734 Merge "Add GroupedTaskView for gestures in staged split." into sc-v2-dev 2021-08-17 23:26:53 +00:00
Vinit Nayak 17c4b33db6 Add GroupedTaskView for gestures in staged split.
* Currently only works for portrait 50/50 split
* Have gesture swipe animation flow use multiple
TaskViewSimulators, one for each app in split
* Added new APIs in shell to query for actively running
tasks to determine if we're in split screen
* Lots of UI polish needed during gesture
* Launching into staged split after live tile ends
not implemented yet.

Bug: 181704764
Change-Id: Ib90e99e1e10b19121e8709385e1334b9380d6502
2021-08-17 13:46:43 -07:00
TreeHugger Robot f8d92e0a48 Merge changes I2cc102d7,Ifba9aa59 into sc-v2-dev am: 54ce7e6cf8 am: 4079cdbb74
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15465222

Change-Id: I07e79c417528a08896ce07213e5476d771de545c
2021-08-17 19:55:01 +00:00
Nick Chameyev d1b2bd4b6f Merge "Add quick search bar width unfold animation" into sc-v2-dev am: caa713bc1a am: 8b7226abee
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15547447

Change-Id: I5e51979f6eb8d08205ee35ff49f1e6354d23f2f7
2021-08-17 19:15:27 +00:00
TreeHugger Robot 54ce7e6cf8 Merge changes I2cc102d7,Ifba9aa59 into sc-v2-dev
* changes:
  Only show Taskbar Edu once (first time an app is opened).
  Adds initial Taskbar Edu implementation.
2021-08-17 19:13:31 +00:00
Nick Chameyev caa713bc1a Merge "Add quick search bar width unfold animation" into sc-v2-dev 2021-08-17 17:58:50 +00:00
Alex Chau eaa6d682d4 Support different task icon margin for grid tasks
- Focused and non focused grid now have differnt margin between icon and snapshot
- The overall margin above snapshot is still the same
- Invoke updateChildTaskOrientations when focus task changes to update the margin
- Also lowered the row spacing according to spec

Bug: 194194694
Test: manual
Change-Id: I25267bef19d5a8b1dc1cf96fc1babdc3ebc39330
2021-08-17 18:33:21 +01:00
Andy Wickham b8eac86b63 Only show Taskbar Edu once (first time an app is opened).
Bug: 180605356
Test: Manual
Change-Id: I2cc102d7ce36e0b1c2c75482e2bbb97218618e61
2021-08-17 09:57:55 -07:00
Andy Wickham 13f3ffed95 Adds initial Taskbar Edu implementation.
Currently it just pops up with one placeholder image for splitscreen.
The Next button doesn't do anything.

Screenshots:
Light: https://screenshot.googleplex.com/B27CwBcwobHTghN.png
Dark: https://screenshot.googleplex.com/48EuJZv8evd5RGW.png

Known issues:
 - Back gesture is picked up behind by the app behind the taskbar.
 - When the flag is enabled, the Edu shows up each time you open
   an app, rather than only the first time.

Bug: 180605356
Test: Manual
Change-Id: Ifba9aa59abf1501b5f8ddebb3fcc13df85f6efaa
2021-08-17 09:57:47 -07:00
Nick Chameyev 4ba48cdb8b Add quick search bar width unfold animation
Adds unfold animation to quick search bar in launcher
which changes the width of the quick search bar
from 70% to 100%.

Bug: 193795041
Test: manual
Change-Id: I8c55ca1cc5b5894847503beac8ecd8adec3e5674
2021-08-17 16:58:57 +01:00
Tony Wickham 2f245001b7 Merge changes from topic "taskbar-crop-tasks" into sc-v2-dev am: 40f86763bc am: 8372c17e9a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15587788

Change-Id: I41769ca27299760614bf370135a79b094347c42d
2021-08-17 15:26:56 +00:00
Tony Wickham 40f86763bc Merge changes from topic "taskbar-crop-tasks" into sc-v2-dev
* changes:
  Extend taskbar color to entire screen in overview
  Use WindowBounds#insets instead of WindowInsets in DeviceProfile
2021-08-17 14:52:50 +00:00
Alex Chau fbd553a947 Merge "Remove widget panel" into sc-v2-dev am: dc57b06e29 am: 6c0bd21c4e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15547451

Change-Id: If266743bc02e6367d881f5b85c9ef873b6bba324
2021-08-17 09:22:20 +00:00
Alex Chau dc57b06e29 Merge "Remove widget panel" into sc-v2-dev 2021-08-17 08:48:26 +00:00
Tony Wickham 635e180e56 Extend taskbar color to entire screen in overview
Only when taskbar is unstashed in apps:
- Scrim workspace with the taskbar color when opening apps and in BackgroundAppState
- Crop opening apps to above the taskbar
- Crop TaskViews to above the taskbar during gestures

If taskbar is stashed in apps, behavior is the same as before, i.e. no scrim over the wallpaper and no cropping of tasks.

Added a field DeviceProfile#taskbkarPresentInApps to distinguish these cases. LauncherTaskbarUIController and TaskbarStashController ensure this value is set appropriately.

Test: Ensure tasks don't appear behind taskbar when it's unstashed; set ENABLE_SCRIM_FOR_APP_LAUNCH = true to test the whole screen scrimming when opening an app

Bug: 196257194
Fixes: 190681228
Change-Id: I481501457a5a6d49c380feea3db3b4058e4cf3f8
2021-08-16 16:50:52 -07:00
Tony Wickham f5ce2f624d Use WindowBounds#insets instead of WindowInsets in DeviceProfile
This reports more consistently and is cheaper.

Test: Log windowBounds.insets.bottom vs windowInsets.getSystemWindowInsetBottom() and note that the former is correct after fold/unfold even though the latter starts reporting 0
Bug: 196874770
Change-Id: I41eb0ab51d3761a988e680cd6d61e40bcacf567f
2021-08-16 16:45:12 -07:00
Sunny Goyal 42384dec50 Merge "Fixing header jump" into sc-v2-dev am: 48b012b148 am: ea35a6edcb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15550092

Change-Id: I78d9fdb9cd3301a614bf063e4886692a67083f2a
2021-08-16 18:46:53 +00:00
Sunny Goyal 48b012b148 Merge "Fixing header jump" into sc-v2-dev 2021-08-16 18:20:00 +00:00