Commit Graph

60459 Commits

Author SHA1 Message Date
hyunyoungs 91ca748819 Fix blurry wallpaper when user locks on all apps surface
Bug: 242746421
Test: manual

TL;DR;;
setState toState= NORMAL called when locking screen on ALLAPPS screen
but mSurface==null
hence depth is not reset to NORMAL state

Change-Id: I26a37f7de8b0ecd481b36eebf07e1b79f8b0035c
2022-08-31 22:05:45 -07:00
TreeHugger Robot 4563f5cb6e Merge "[Toast] Add a feature flag for using app search for web zero-state." into tm-qpr-dev am: a29868e30c am: b73f762e28
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19747910

Change-Id: Idcbe944619afb89f9aea16fbb15db14bc69eaa7a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-01 03:35:32 +00:00
TreeHugger Robot b73f762e28 Merge "[Toast] Add a feature flag for using app search for web zero-state." into tm-qpr-dev am: a29868e30c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19747910

Change-Id: Icadbdaee972cbefa2f97edad18ccc7ec00713e45
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-01 03:05:42 +00:00
Bill Yi 4391c8e1ef Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6446b8f18bf292261a6da1507f38d6a4c4935a74
2022-08-31 19:25:41 -07:00
TreeHugger Robot a29868e30c Merge "[Toast] Add a feature flag for using app search for web zero-state." into tm-qpr-dev 2022-09-01 01:54:18 +00:00
Tony Wickham 2be2312543 Merge changes Ie55bd70e,I69bcfa97,I222522bc into tm-qpr-dev am: d833fe4a12 am: 94894d8d88
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19472817

Change-Id: Ib419b6f6fad396917f5b477e5c20ca5bd425a165
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-01 01:43:50 +00:00
Tony Wickham 94894d8d88 Merge changes Ie55bd70e,I69bcfa97,I222522bc into tm-qpr-dev am: d833fe4a12
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19472817

Change-Id: I1081a062754ca9862e9705fa193d6dc736e59620
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-01 01:14:18 +00:00
Tony Wickham d833fe4a12 Merge changes Ie55bd70e,I69bcfa97,I222522bc into tm-qpr-dev
* changes:
  Fix taskbar stash state not persisting properly across recreate
  Add support to Tapl to recreateTaskbar
  Don't rely on QuickstepLauncher instance for tests
2022-09-01 00:52:54 +00:00
Sebastian Franco 314bbf1cba Adding support to add icons in the workspace for tests
Test: atest ReorderWidgets
Bug: 243440737
Change-Id: Ic656cef079be965d17ab1b58d5f73ce955c9374c
2022-08-31 16:29:53 -07:00
Android Build Coastguard Worker ccbaeba497 Snap for 9014491 from 5166c5da3f to tm-qpr1-release
Change-Id: I73f604154630bb1a387605fafa9971307181dfdd
2022-08-31 23:25:51 +00:00
Evan Rosky 10c1c017c9 Only animate to hotseat when launcher is on home screen
Was assuming that resume == home-screen; however, in shell
transitions, launcher is resumed while overview is active,
so make sure it is both resumed AND "isTaskbarAligned"
before making the to-hotseat animation

Bug: 241800590
Test: Open an app, long-press taskbar to stash, long-press again
      to unstash
Change-Id: I117afcb006c363e50205f27f014ffc30d6f2896a
2022-08-31 22:53:02 +00:00
Anushree Ganjam b368fcc624 Add a boolean to track QSB edu card dismissal.
Bug: 243680092
Test: Manual.
Change-Id: I6981e423d037851020ae1cdec9879ab577769258
2022-08-31 21:46:39 +00:00
Pat Manning 038e112e9d Update grouped task view thumbnail splash interpolation to match regular task.
Follow-up to ag/19730966

Fix: 244433374
Test: follow up after b/238405972
Change-Id: I5c3c05dd51234b568e8f99c075e0f3384bca4741
2022-08-31 18:10:11 +01:00
Brian Isganitis 1e2fde5232 Merge "Snap to last task if swiping down at a greater Y than X velocity." into tm-qpr-dev am: 5166c5da3f am: b28748f662
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19290025

Change-Id: I32fdcd76559f05ecd0f6d890f49f62ea532bccae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-31 03:16:14 +00:00
Brian Isganitis b28748f662 Merge "Snap to last task if swiping down at a greater Y than X velocity." into tm-qpr-dev am: 5166c5da3f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19290025

Change-Id: I8a378f907e50aa952dd5354111cea993fb55137d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-31 02:46:49 +00:00
Brian Isganitis 5166c5da3f Merge "Snap to last task if swiping down at a greater Y than X velocity." into tm-qpr-dev 2022-08-31 02:14:38 +00:00
TreeHugger Robot 80e285b716 [automerger skipped] Merge "Add app predictions to secondary display app drawer & fix tab UI." into tm-qpr-dev am: bcbba897fc am: 788b348806 -s ours
am skip reason: Merged-In I2f45a4b30964b365bf149e8864a3af2ea909a237 with SHA-1 9e5fe63a22 is already in history

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

Change-Id: I019b2e2ae9be870d7cbcb936768dc857b4e200db
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-31 01:16:47 +00:00
TreeHugger Robot 788b348806 Merge "Add app predictions to secondary display app drawer & fix tab UI." into tm-qpr-dev am: bcbba897fc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19789528

Change-Id: Ic1610d88641265842348e5955d0debe85f78c6b2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-31 00:33:22 +00:00
TreeHugger Robot bcbba897fc Merge "Add app predictions to secondary display app drawer & fix tab UI." into tm-qpr-dev 2022-08-31 00:01:21 +00:00
Schneider Victor-tulias 7ba044f10b Merge "Add gesture nav error state tracking and logging" into tm-qpr-dev am: ff5ad47a06 am: 520bf2e892
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19300928

Change-Id: I7830f925e70d89f84fce7da317403e03dacbb419
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 23:55:39 +00:00
Android Build Coastguard Worker f4ab237de5 Snap for 9010110 from b4a30ab955 to tm-qpr1-release
Change-Id: I75933a514ced8df4d68d9ad10ded0e36a23e1476
2022-08-30 23:25:36 +00:00
Schneider Victor-tulias 520bf2e892 Merge "Add gesture nav error state tracking and logging" into tm-qpr-dev am: ff5ad47a06
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19300928

Change-Id: I6a0eee06b8aee5e8c1a4fd7574b3d5466dd93254
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 23:11:17 +00:00
Sukesh Ram aeb6941d63 Made popupContainer's shadow & arrow visible in secondary display am: 924852fec5 am: efe8916d0a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19789527

Change-Id: I400f0fb3c2c5e66a331eecdef8ac59f345f49279
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 23:00:29 +00:00
Schneider Victor-tulias ff5ad47a06 Merge "Add gesture nav error state tracking and logging" into tm-qpr-dev 2022-08-30 22:42:46 +00:00
Sukesh Ram efe8916d0a Made popupContainer's shadow & arrow visible in secondary display am: 924852fec5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19789527

Change-Id: Ie186f7728435b7e27a2015f931c726db2a1eddfe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 22:31:35 +00:00
Sukesh Ram 1b4869fcbc Add app predictions to secondary display app drawer & fix tab UI.
Bug: 233926067
Test: Manual
Change-Id: I2f45a4b30964b365bf149e8864a3af2ea909a237
(cherry picked from commit 9e5fe63a22)
Merged-In: I2f45a4b30964b365bf149e8864a3af2ea909a237
2022-08-30 22:30:03 +00:00
Brian Isganitis 14aa82a02a Merge "Simplify calculateEndTarget logic." into tm-qpr-dev am: 168482688a am: f898db348a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19283295

Change-Id: Id8c0372759306567ed50b2d3e33cdbb060c7f65d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 21:13:38 +00:00
Brian Isganitis c043d45c42 Snap to last task if swiping down at a greater Y than X velocity.
If you swipe down slightly diagonally, it will almost always be treated as a swipe to the next task rather than a return to the current task. If we are swiping down and the Y velocity is grater, we should snap to the current task instead.

Test: Manually in fully gestural mode.
Bug: 222117127
Change-Id: I8c3cd483f7ceefe0de1e24b6e98918b12428ed10
2022-08-30 20:59:40 +00:00
Tony Wickham e74569e935 Fix taskbar stash state not persisting properly across recreate
Because we check supportsVisualStashing() in
TaskbarStashController#init(), we need to avoid using
TaskbarUIController to provide that value since TaskbarUIController
isn't initialized until a bit later than the other controllers. So I
moved the logic from supportsVisualStashing() back to
TaskbarStashController, but still allow TaskbarUIController to override
it (e.g. for DesktopTaskbarUIController).

After that fix, I noticed that force stopping launcher (to test the fix)
would briefly show the taskbar background before resetting the stashed
state. This is also due to LauncherTaskbarUIController not being ready
immediately, since that's what sets FLAG_IN_APP due to launcher being
paused. To work around this, I set FLAG_IN_APP to true by default in
TaskbarStashController#init(), since that is the most common case, and
taskbar background/stashed handle isn't shown on home anyway.

Test: Force stop launcher while taskbar is stashed, verify it recreates
as stashed without background flicker; same when changing wallpaper
color on home or in app; also tested when taskbar isn't stashed and in 3
button mode for good measure
Test: testHideTaskbarPersistsOnRecreate
Fixes: 235986838

Change-Id: Ie55bd70e8288d5ad7433dde970f18c176831d747
2022-08-30 13:42:04 -07:00
Brian Isganitis f898db348a Merge "Simplify calculateEndTarget logic." into tm-qpr-dev am: 168482688a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19283295

Change-Id: Ibcb77046543c1faf45652eccf6082382a8b3c27a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 20:41:54 +00:00
Tony Wickham c8e824dbdb Add support to Tapl to recreateTaskbar
Also moved references of "tasbkar_view" to share TASKBAR_RES_ID constant

Test: compiles; see follow up CLs
Bug: 235986838
Change-Id: I69bcfa975550e567f3daa35af8a810546297d79c
2022-08-30 13:40:45 -07:00
Sukesh Ram 924852fec5 Made popupContainer's shadow & arrow visible in secondary display
Reduced elevation of app drawer to 0dp because it was conflicting with popup container elevation

Test: Manual
Change-Id: I222866ddfc44ebf9ecd9787bb448e502339a1688
Fix: 233932585
(cherry picked from commit 354fe14cd4)
2022-08-30 20:27:33 +00:00
Brian Isganitis 168482688a Merge "Simplify calculateEndTarget logic." into tm-qpr-dev 2022-08-30 20:09:10 +00:00
Schneider Victor-tulias 038922a653 Add gesture nav error state tracking and logging
- Added ActiveGestureErrorDetector
- Removed startQuickstep logs; these were confusing and not helpful in ActiveGestureLogs

Test: printed logs after several gestures
Bug: 227514916
Design: go/gesture-nav-logging
Change-Id: Ia2a7e4f90a3a371d9a92190aa66eb07acd061d6c
2022-08-30 12:18:29 -07:00
Pat Manning 7a5048297d Merge "Refactor overview progress as splash progress." into tm-qpr-dev am: b4a30ab955 am: 99bce932a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19730966

Change-Id: I3abd3fd009ed7d6d7f4754bcece6a594bab3db61
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 14:17:18 +00:00
Pat Manning e63dd25a54 Use full screen width for drop target buttons to support higher screen densities from truncating text.
Scale oversized text down if after all computations it will still be truncated at higher densities.

Fix: 239401464
Test: manual. To follow up with screenshot test: b/241386128
Change-Id: Ie088d0631b0d13beb2d9f9d5396a56f7b971dee1
2022-08-30 14:57:42 +01:00
Pat Manning 99bce932a2 Merge "Refactor overview progress as splash progress." into tm-qpr-dev am: b4a30ab955
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19730966

Change-Id: I7f1f488f8b0e284e0ac7ba4de1b68561a825fd8c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 13:47:22 +00:00
Pat Manning b4a30ab955 Merge "Refactor overview progress as splash progress." into tm-qpr-dev 2022-08-30 13:29:53 +00:00
Pat Manning 5cf4d207f2 Merge "Launch tasks before testing switch to overview." into tm-qpr-dev am: 8463ab771e am: d6f5350f26
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19719106

Change-Id: I508373ba1b659b8cf108521e309568289d9be7f1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 12:14:19 +00:00
Pat Manning d6f5350f26 Merge "Launch tasks before testing switch to overview." into tm-qpr-dev am: 8463ab771e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19719106

Change-Id: I0775d5238bf510f3daa0c65df4b87dfff1280a81
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 11:44:29 +00:00
Pat Manning 81dc9ad131 Refactor overview progress as splash progress.
This also avoids showing splash in split select state

Fix: 242284413
Test: follow up after b/238405972
Change-Id: I2e83fa3d030e8a74edb4152c472dbf02ac5a80b1
2022-08-30 11:23:08 +01:00
Pat Manning 8463ab771e Merge "Launch tasks before testing switch to overview." into tm-qpr-dev 2022-08-30 10:10:45 +00:00
TreeHugger Robot 26cbbd2621 Merge "Added margin of size 24dp above search bar on secondary display" into tm-qpr-dev am: 40b6d6038c am: 8e196fcfd2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19775935

Change-Id: I0c2dfe7d16a9a9fccdc4a2bfbbf65bc4ab6cd754
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 07:08:23 +00:00
TreeHugger Robot 8e196fcfd2 Merge "Added margin of size 24dp above search bar on secondary display" into tm-qpr-dev am: 40b6d6038c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19775935

Change-Id: I789e92b43aaa76af54939c39e63734081aef81c2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 06:38:48 +00:00
TreeHugger Robot 40b6d6038c Merge "Added margin of size 24dp above search bar on secondary display" into tm-qpr-dev 2022-08-30 06:02:49 +00:00
Sebastian Franco 897fe1c39d [automerger skipped] Adding flag to improve the icons reordering on foldables am: 47558a6201 am: 0c7f6ad370 -s ours
am skip reason: Merged-In Ifa30bbc9ff38f2cc0f9530f3e075b5eb662f63eb with SHA-1 ffae7d256c is already in history

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

Change-Id: I9d5215a3a4d9aed8fc40edcbe5b48ef5e847324e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 01:09:28 +00:00
Sebastian Franco 0c7f6ad370 Adding flag to improve the icons reordering on foldables am: 47558a6201
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19735100

Change-Id: I79f6afe3783d68300e49ee1e37ef755b97c6ec9e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 00:38:59 +00:00
Tony Wickham b6f593042d Don't rely on QuickstepLauncher instance for tests
Instead, bind to TouchInteractionService and use that binder to call into taskbar.

Test: TaplTestsTaskbar
Bug: 235986838
Change-Id: I222522bc53c9d1698542fbae52c37889f14abf41
2022-08-29 17:27:27 -07:00
Android Build Coastguard Worker aac8d5eb31 Snap for 9005101 from 2886ff0826 to tm-qpr1-release
Change-Id: I3e11ec298ca7e444feeea9c4a2e6a15e4af8bed0
2022-08-29 23:30:43 +00:00
Sukesh Ram bf520a5935 Added margin of size 24dp above search bar on secondary display
Test: Manual
Change-Id: I5debc810385eced54aaed436489b16f36367194c
(cherry picked from commit 958dcd2f4f)
Bug: 244224274
2022-08-29 22:24:59 +00:00