Commit Graph

8114 Commits

Author SHA1 Message Date
Brandon Dayauon
5d71a83156 Merge "Move VibratorWrapper to AOSP" into tm-qpr-dev am: 2d3f189b80 am: da5f47e102
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20796546

Change-Id: Iebffd055f3a8622277de5fac24ba39ca8be24133
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-22 09:24:31 +00:00
Brandon Dayauon
da5f47e102 Merge "Move VibratorWrapper to AOSP" into tm-qpr-dev am: 2d3f189b80
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20796546

Change-Id: I93544409f0ef351ef03d45d1cde90b0c400da4fd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-22 08:44:59 +00:00
Brandon Dayauon
2d3f189b80 Merge "Move VibratorWrapper to AOSP" into tm-qpr-dev 2022-12-22 08:18:12 +00:00
Tony Wickham
870c13d63c Merge "Adjust taskbar VIS and bottom mandatory gesture insets" into tm-qpr-dev am: 1f155d6fd7 am: a16da8f29d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20750862

Change-Id: I398efa62d6ddf5b9b0345a67fafaa9cf553fc1e3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-22 00:36:07 +00:00
Tony Wickham
a16da8f29d Merge "Adjust taskbar VIS and bottom mandatory gesture insets" into tm-qpr-dev am: 1f155d6fd7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20750862

Change-Id: I8836741c8a5cba503a23b61bfac9924f393ad4ee
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-21 23:55:16 +00:00
Tony Wickham
1f155d6fd7 Merge "Adjust taskbar VIS and bottom mandatory gesture insets" into tm-qpr-dev 2022-12-21 23:25:59 +00:00
Luca Zuccarini
d3841f36a1 Add a CUJ for closing All Apps manually.
Bug: 260218332
Test: pending
Change-Id: Iafe3b932aca985fb4585dac46c6eaaa6e88c8dd6
2022-12-21 15:39:51 +00:00
Pat Manning
cc31ba5360 Do not animate moving to rest state on CHANGE_ACTIVE_SCREEN.
Fix: 259380717
Test: manual
Change-Id: Icec103b26603290c7998977fa9c4d89132620a9d
2022-12-21 11:37:47 +00:00
Ats Jenk
3f6a002a04 Merge "Taskbar fixes when apps move to desktop and back" into tm-qpr-dev am: ebfe6b6776 am: a6ee04ba35
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20754487

Change-Id: I04ddcda42dd43392de30f8a6e950e413b292ed38
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-21 00:04:02 +00:00
Ats Jenk
a6ee04ba35 Merge "Taskbar fixes when apps move to desktop and back" into tm-qpr-dev am: ebfe6b6776
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20754487

Change-Id: I099705f4a4fb971e5550b76f194d7d19677250b7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-20 23:53:23 +00:00
Ats Jenk
ebfe6b6776 Merge "Taskbar fixes when apps move to desktop and back" into tm-qpr-dev 2022-12-20 23:29:26 +00:00
Alex Chau
c8f4d71590 Merge "Add transientTaskbarMargin above taskbar in overview" into tm-qpr-dev am: d79e53a5c8 am: 8d18eba59e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20782488

Change-Id: I4cd29254cc2f45de9956bd8aa3a626724b3ec8a1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-20 19:36:22 +00:00
Alex Chau
8d18eba59e Merge "Add transientTaskbarMargin above taskbar in overview" into tm-qpr-dev am: d79e53a5c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20782488

Change-Id: Ie66dbeb2b3219b5036554a0ec89ace2187124387
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-20 18:53:30 +00:00
Alex Chau
d79e53a5c8 Merge "Add transientTaskbarMargin above taskbar in overview" into tm-qpr-dev 2022-12-20 18:40:48 +00:00
Ats Jenk
0ea4768a02 Taskbar fixes when apps move to desktop and back
Fixes to taskbar state when tasks are moved to desktop and fullscreen.

When freeform tasks are visible and we start a new task from taskbar, it
first launches in fullscreen. Transition handler in WMSHell switches it
to freeform as needed. This switch causes launcher activity to be paused
and then resumed. Resuming launcher activity while freeform tasks are
visible, puts the launcher into an incorrect state. (Launcher should
appear paused while freeform tasks are visible).

When a freeform task switches to fullscreen, freeform tasks are no
longer visible. This causes us to resume the launcher activity. We
should not do that if a fullscreen task is visible as it puts the
launcher into an incorrect state. It appears resumed even though the
activity is paused. Added a check to DesktopVisibilityController that
checks if the activity is actually resumed before marking it appear as
resumed.

Test: manual, switch a task to freeform, launch another freeform task
  from taskbar, taskbar should continue to be available
Test: manual, switch a task to freeform, switch the task back to
  fullscreen, taskbar should continue to be available
Bug: 261234278

Change-Id: Ia8d208619fabfcc9bffff6d8d227b236cb62a00c
2022-12-20 10:34:07 -08:00
Brandon Dayauon
5a31c9262e Move VibratorWrapper to AOSP
bug: 233751149
test: manually run and presubmit
Change-Id: I89ada0adf7254396238cb96d27bc265e28093f50
2022-12-20 10:27:21 -08:00
Alex Chau
49cca007c3 Merge "Only skip stash animation when going to/from Launcher" into tm-qpr-dev am: 44dd5b7b28 am: 0bfdd134ee
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20782490

Change-Id: I05f82852dfc039725ac4c1d2939c34f6c1b66ad6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-20 11:07:34 +00:00
Alex Chau
0bfdd134ee Merge "Only skip stash animation when going to/from Launcher" into tm-qpr-dev am: 44dd5b7b28
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20782490

Change-Id: Ie9f2222de708ed7c0e711fab0a1fa7637bb7c333
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-20 10:26:19 +00:00
Alex Chau
44dd5b7b28 Merge "Only skip stash animation when going to/from Launcher" into tm-qpr-dev 2022-12-20 09:32:04 +00:00
Sihua Ma
45149d9036 Merge "Add QuickstepWidgetHolder for widget handling" into tm-qpr-dev am: 04c89fe38e am: f8ab32a8bc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20418248

Change-Id: I8cc2d48f94aaa415fb7b9bd8137502b27de33d5d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-19 19:55:49 +00:00
Sihua Ma
f8ab32a8bc Merge "Add QuickstepWidgetHolder for widget handling" into tm-qpr-dev am: 04c89fe38e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20418248

Change-Id: Ibe09a5d1ab53070bc6a4b797f95e9d853f86fbc0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-19 19:15:29 +00:00
Sihua Ma
04c89fe38e Merge "Add QuickstepWidgetHolder for widget handling" into tm-qpr-dev 2022-12-19 18:22:38 +00:00
Alex Chau
1b276a1ba7 Add transientTaskbarMargin above taskbar in overview
- Also removed transient_taskbar_two_panels_size and use sw720dp override instead, to be consistent with how we handle small vs large tablet in overview
- Also made isTransientTaskbar mockable so we can test that in DeviceProfileDumpTest

Bug: 260596114
Test: DeviceProfileDumpTest
Change-Id: I3c2236b95d91246e9581531478e3c97601cfb2ec
2022-12-19 17:23:27 +00:00
Alex Chau
bd535c46d7 Only skip stash animation when going to/from Launcher
- Added a cehck on chagnedFlags before skipping stash animation, in additional to !isHotseatIconOnTopWhenAligned check

Fix: 262835548
Test: manual
Change-Id: I5a90213bc0b3f34609a074ba887adbf113e04120
2022-12-19 17:16:08 +00:00
Alex Chau
e13b1a22f9 Merge "Polish hotseat and taskbar with 3 buttons" into tm-qpr-dev am: 4537638dfd am: 0d5ca5fe6f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20533919

Change-Id: I37921b47514fc4823b2c6ee7d61fbf1ff6ca7c67
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-19 12:26:25 +00:00
Luca Zuccarini
0729cb9420 Merge "Update timings for the Home <> All Apps transition." into tm-qpr-dev am: 49d07b1688 am: cfab843aa1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20641089

Change-Id: I03255587d9c8fa1d7d3b5242a210edda767455d5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-19 12:25:55 +00:00
Alex Chau
0d5ca5fe6f Merge "Polish hotseat and taskbar with 3 buttons" into tm-qpr-dev am: 4537638dfd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20533919

Change-Id: I23b86a2c2588e8b22c717626fcf345cf32d1f7a4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-19 11:46:31 +00:00
Luca Zuccarini
cfab843aa1 Merge "Update timings for the Home <> All Apps transition." into tm-qpr-dev am: 49d07b1688
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20641089

Change-Id: I83d7456152d023562734533bc79dc0b8e3460c1a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-19 11:45:16 +00:00
Alex Chau
4537638dfd Merge "Polish hotseat and taskbar with 3 buttons" into tm-qpr-dev 2022-12-19 11:37:39 +00:00
Luca Zuccarini
49d07b1688 Merge "Update timings for the Home <> All Apps transition." into tm-qpr-dev 2022-12-19 11:10:14 +00:00
Tony Huang
0d7dc94d2e Fix divider visibility issue on transient taskbar
On legacy case, we hide divider bar when gesture start, but this
might cause divider hidden when transient taskbar case.
We should follow the timing it actually start entering overview
then hide divider.

Fix: 261376202
Test: manual
Test: pass existing tests
Change-Id: Iae1339ae0b42033075dd840fc071ba28a7d3e13a
2022-12-19 16:44:32 +08:00
Brian Isganitis
dcf07f398a Merge "Delay hiding Taskbar EDU until entering home or overview." into tm-qpr-dev am: a1808c3e49 am: ab29830493
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20727418

Change-Id: Ib9c849ea8640417b5d7bd8d5978c8485a04205a9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-18 23:53:20 +00:00
Brian Isganitis
ab29830493 Merge "Delay hiding Taskbar EDU until entering home or overview." into tm-qpr-dev am: a1808c3e49
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20727418

Change-Id: I8ffc5766af32fb513c10a62d17a03c1f19e29236
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-18 23:16:04 +00:00
Brian Isganitis
a1808c3e49 Merge "Delay hiding Taskbar EDU until entering home or overview." into tm-qpr-dev 2022-12-18 22:48:39 +00:00
Thales Lima
6a59006592 Polish hotseat and taskbar with 3 buttons
Change margin spaces and logic of how many items the hotseat and taskbar should show.

Fix: 246424857
Test: DeviceProfileDumpTest
Test: HotseatWidthCalculationTest
Change-Id: I8ec71c56a0aa362483c43d6400c762d12cf45f5b
2022-12-17 11:20:21 +00:00
Alex Chau
c5b1f3e3cb Merge "TaskbarViewController should only translate on rotation if icon is aligned with hotseat" into tm-qpr-dev am: 2f581b799b am: ac61bed9a8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20748309

Change-Id: I609b9c5deb315c1438376885ddef1bd229773f6b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-16 20:00:20 +00:00
Jeremy Sim
b3b046dc39 Merge "Fix bug with Taskbar second-app-selection animation" into tm-qpr-dev am: e8eb4a3c48 am: c3fabd892a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20704401

Change-Id: I2175338c520d26404b5b329c28b40b9e28e39357
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-16 19:58:15 +00:00
Sihua Ma
1db8bc2467 Add QuickstepWidgetHolder for widget handling
Fix: 235358918
Test: Manual
1. Rebooted the device and verified that widgets are still updating properly
2. Changed the theme from dark to daylight, then from daylight back to dark and verified that widgets are working
3. Kept the device on for several days and verified that widgets are still updating
4. Turn on auto-rotate for the launcher, open any app then exit, verified that widgets will not vanish and reappear
5. Add & remove widgets from the screen, added widgets are still updating

Change-Id: I98ee902f7d16b47bd77626201a4fefc897ba17a0
2022-12-16 11:56:36 -08:00
Alex Chau
ac61bed9a8 Merge "TaskbarViewController should only translate on rotation if icon is aligned with hotseat" into tm-qpr-dev am: 2f581b799b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20748309

Change-Id: Iffd7b5a38263fbbb019b1ddd15ebc500425ee94f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-16 19:20:51 +00:00
Jeremy Sim
c3fabd892a Merge "Fix bug with Taskbar second-app-selection animation" into tm-qpr-dev am: e8eb4a3c48
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20704401

Change-Id: I5b69d3a32c6a0ba95dce3f64f8e314af9e292164
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-16 19:19:24 +00:00
Alex Chau
2f581b799b Merge "TaskbarViewController should only translate on rotation if icon is aligned with hotseat" into tm-qpr-dev 2022-12-16 19:06:25 +00:00
Jeremy Sim
e8eb4a3c48 Merge "Fix bug with Taskbar second-app-selection animation" into tm-qpr-dev 2022-12-16 18:30:38 +00:00
Alex Chau
5786c775a7 Merge "Set iconsSizePx of Taskbar's DeviceProfile directly" into tm-qpr-dev am: 98d33cdff9 am: a1608fb21a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20747426

Change-Id: I1608c3061545fcffaafd398bdb0195e0637d4db8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-16 17:58:51 +00:00
Alex Chau
a1608fb21a Merge "Set iconsSizePx of Taskbar's DeviceProfile directly" into tm-qpr-dev am: 98d33cdff9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20747426

Change-Id: Iabd35264bf880d76d6a669b29f614a8d86334adc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-16 17:25:04 +00:00
Alex Chau
98d33cdff9 Merge "Set iconsSizePx of Taskbar's DeviceProfile directly" into tm-qpr-dev 2022-12-16 16:45:21 +00:00
Schneider Victor-tulias
7bb558a57e Add check for loading ever applied in check for page scrolls initialized
When "Don't keep activities" is enabled in developer settings, the RecentsView gets re-initialized every home gesture. The home animation can often finish before the load plan ever gets applied, so the page scrolls can be used before the RecentsView has had a chance to add all its TaskViews and recalculate its page scroll.

Fixes: 249020573
Test: launched an app and went home
Change-Id: I83ca9de60b50693f7a22b08534ec36973cd6a0fc
2022-12-16 03:12:58 -08:00
Sunny Goyal
8591bbc892 Merge "Unifying multiple all-apps implementations" into tm-qpr-dev am: 09fab7ee7d am: 37dd2e6691
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20713205

Change-Id: I073f6cb4d3a912b585cd1cd0e57f1ced1b0ed3a2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-15 23:48:58 +00:00
Tony Wickham
c6a7ba8163 Adjust taskbar VIS and bottom mandatory gesture insets
- ITYPE_BOTTOM_MANDATORY_GESTURES should always be > 0  in gesture
  navigation mode, but before we were setting it equal to tappableHeight
  which is 0 if the taskbar is stashed. Fixed it to be contentHeight
  instead.
- Updated VIS insets to only override them to be 0 for tappableElement,
  not for others like navigationBars. We still only override this for
  gesture navigation; 3 button mode will continue reporting the same as
  we report to the underlying apps.

Test: manually with 3 button mode, gesture nav mode with taskbar
stashed/unstashed; checked that TaskbarInsetsController dump looks as
expected, and that behaviors like Assistant and IME look correct
Flag: none
Fixes: 262516176

Change-Id: I5a1cdf5a9956777d3189ef6042493e2f5aa9b162
2022-12-15 22:28:40 +00:00
Alex Chau
adbbc2f7fa TaskbarViewController should only translate on rotation if icon is aligned with hotseat
Fix: 254191175
Test: With 3 button, rotate at home and overview, nav button are at expected position. Repeat with TASKBAR_IN_OVERVIEW flag off.
Change-Id: I1e629e6be92c4793d3dfdb0dac60c3bfce886e7a
2022-12-15 22:04:16 +00:00
Sunny Goyal
37dd2e6691 Merge "Unifying multiple all-apps implementations" into tm-qpr-dev am: 09fab7ee7d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20713205

Change-Id: I1bd905e44924ec55f8f7cb254d66f9f751357590
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-15 17:28:53 +00:00