Commit Graph

49925 Commits

Author SHA1 Message Date
Abhilasha Chahal 6badc405ad Extract out common adapter logic to support different AllApps layouts
Test: Manual tests. Refactoring, all existing tests should pass.
Bug: 216150568
Change-Id: I1068e75d0b4a33d402a7d68e237d2484ab3a1e01
2022-03-01 13:08:54 +00:00
wilsonshih e3e1054f19 Rename 'EMPTY' to 'SOLID_COLOR' for splash screen API changes.
Preventing from misleading developers.

Bug: 217953215
Test: build/flash
Change-Id: I76ed29833c71c7b678fbe5bf9d15d0137eec9f91
2022-03-01 20:21:47 +08:00
Luca Zuccarini 76263c2d35 Merge "Ensure that the Hotseat respects the margins of the QSB." into tm-dev 2022-03-01 10:21:36 +00:00
TreeHugger Robot 33b858d4cc Merge "[ShellTransition]: invoke WMS#setRecentsAppBehindSystemBars to WM" into tm-dev 2022-03-01 08:53:12 +00:00
TreeHugger Robot 2ac459e7f2 Merge "Improve the staged split animation" into tm-dev 2022-03-01 07:39:24 +00:00
Winson Chung 384beda472 Revert "Disable flakey fallback recents test"
This reverts commit 4c2e3310e6.

Reason for revert: Lets try reverting this now that ag/17006986 landed

Change-Id: If9311a459ce6250d3f8c8341c1210b8bedd5bbbd
2022-03-01 05:23:05 +00:00
Tracy Zhou 26f5393db3 Improve the staged split animation
- Introduce rounded corners (since we scale x and y differently, we can't use outline since it doesn't support rx and ry. It's achieved by custom drawing).
- Make sure the thumbnail content doesn't shift during the transition (we use custom cropping for TaskThumbnailView, and we have to do it accordingly here)

TODO: update UX of the initial split view (b/219085340)

Fixes: 194414938
Test: https://recall.googleplex.com/projects/f46cfe9c-8076-4efe-bf8a-b1cc4f1f5e1b/sessions/64953aa7-62ea-427c-8ec0-5f2bd96e4762
Change-Id: Id9a5d2f0f41cb4d619c8b3bd3a83c633e3d1f2de
2022-02-28 21:12:16 -08:00
TreeHugger Robot 8dfc9872b4 Merge "Add flag for One Search support in Taskbar All Apps." into tm-dev 2022-03-01 03:34:18 +00:00
Sunny Goyal 6bc4257d86 Separating refresh rate tracking to a separate class
Bug: 221961069
Test: Presubmit
Change-Id: I04091ebc9f3d88d2dbbde1bf0d5390c815e026d1
2022-02-28 17:13:00 -08:00
Android Build Coastguard Worker 209f336b79 Snap for 8232685 from ba297c19c2 to sc-qpr3-release
Change-Id: Ie10a02589e7278fa9a0d6ff675e7e6381ef24ff4
2022-03-01 00:08:18 +00:00
Sebastian Franco 91c37bbd09 Restrict the area for the input to unsatsh the taskbar
The input to unstash the taskbar should only be 48dp more than
taskbar_stashed_handle_width or 316dp for wich I created a new
variable.

Bug: 204166104
Test: Manually stashing and unstashing the taskbar.
Change-Id: I94e2e289fcd1169ed0e38a0c45abca6c0ae5c502
2022-02-28 15:52:08 -08:00
Brian Isganitis 407403315d Add flag for One Search support in Taskbar All Apps.
Test: No
Bug: 216683257
Change-Id: I7a705827f165f60c444bb27c55cdfb6b635215d2
2022-02-28 14:33:47 -08:00
TreeHugger Robot 094a4bdd48 Merge "Removing some unnecessary layout calls in TaskView" into tm-dev 2022-02-28 22:16:30 +00:00
TreeHugger Robot aca616d528 [automerger skipped] Merge changes from topic "widget_launch_cookie-sc-v2-dev" into sc-v2-dev-plus-aosp am: 3bd7bbe47a -s ours
am skip reason: Merged-In Ibfe9e5232317837f3111459212a4b016b5828ef4 with SHA-1 46c8678447 is already in history

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

Change-Id: I1199d421ac83d5cb9666dc1d4cfe9d31176c9f9c
2022-02-28 22:04:50 +00:00
Presubmit Automerger Backend a4559bced0 [automerger skipped] [automerge] Passing in the launch cookie for widget broadcast trampolines 2p: c519538bca am: a6118187c2 -s ours
am skip reason: Merged-In Ibfe9e5232317837f3111459212a4b016b5828ef4 with SHA-1 46c8678447 is already in history

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

Change-Id: I76e1b81c82b9280ab627be3dc9aef9357a19e7ca
2022-02-28 22:04:48 +00:00
TreeHugger Robot 3bd7bbe47a Merge changes from topic "widget_launch_cookie-sc-v2-dev" into sc-v2-dev-plus-aosp
* changes:
  [automerge] Passing in the launch cookie for widget broadcast trampolines 2p: c519538bca
  Passing in the launch cookie for widget broadcast trampolines
2022-02-28 19:11:10 +00:00
TreeHugger Robot ba297c19c2 Merge "Passing in the launch cookie for widget broadcast trampolines" into sc-v2-dev 2022-02-28 19:11:10 +00:00
vadimt b0e0f5f44a Adding better diags when SysUI crashes during Launcher test
Test: presubmit; sys ui tests where this rule is already used
Bug: 187761685
Change-Id: Ib4491e5c7ebbea0bb3b17fc8c4b3a6c59a3bdb2a
2022-02-28 18:59:25 +00:00
Pat Manning 2da28dcdc9 Refactor force visible nav bar into new secure setting.
Decouples force visible from kids mode setting.

Bug: 217668440
Test: manual
Change-Id: Ia8a2b30eab7633e3b686c9afebd7e683ef984deb
2022-02-28 14:55:47 +00:00
TreeHugger Robot c1d401d1fa Merge "Adding tests for themed icons support in Launcher" into tm-dev 2022-02-26 01:17:46 +00:00
Hyunyoung Song fbdf40ff4f Merge "Change the all apps atomic transition duration to 150 ms" into tm-dev 2022-02-25 22:59:56 +00:00
Sunny Goyal bcec90b081 Adding tests for themed icons support in Launcher
Bug: 205772453
Test: Presubmit
Change-Id: I2fc8cade8e103e5a7b3aa7349c870e613929464c
2022-02-25 13:35:18 -08:00
TreeHugger Robot cacb21cba9 Merge "Dump DeviceProfile in TouchInteractionService dumpsys" into tm-dev 2022-02-25 20:19:03 +00:00
Adam Cohen 28890edfe3 Merge "Fix DnD logic for determining current drag screen / panel" into tm-dev 2022-02-25 17:27:02 +00:00
Luca Zuccarini 5c65febbb6 Ensure that the Hotseat respects the margins of the QSB.
Before this change they were ignored by onMeasure(), so that the QSB
couldn't rely on margins for its positioning.

Bug: 217477426
Test: manual
Change-Id: Ifecd3d40ea584273b7857d19b25a90dbafe1c656
(cherry picked from commit 410c75a442)
2022-02-25 17:00:07 +00:00
Alex Chau 890e4a75c3 Dump DeviceProfile in TouchInteractionService dumpsys
- So DeviceProfile dumpsys will be available in bugreports, useful for debugging
- Only dump DeviceProfile in createdOverviewActivity if it's non-null

Fix: 221395133
Test: adb shell dumpsys activity service com.google.android.apps.nexuslauncher/com.android.quickstep.TouchInteractionService
Change-Id: Iaf7b7abd25771814be6cb918e96e042d1085debb
2022-02-25 12:46:27 +00:00
Nicolo' Mazzucato d986bbd0fa Register hinge angle sensor listener in a background thread
This was taking ~13ms on the ui thread

Bug: 221394115
Test: Manual
Change-Id: Ibadade5b1c3c8d33a292d36bb6a03dd8021861be
2022-02-25 12:37:44 +01:00
Winson Chung e479619836 Just return an empty list if the system returns null
Bug: 206648922
Test: Presubmit (unable to reproduce this)
Change-Id: I04a4759a1c237513ab314ece4acd542e1407edb1
2022-02-25 06:41:45 +00:00
TreeHugger Robot 2a431f4a79 Merge "Passing in the launch cookie for widget broadcast trampolines" into tm-dev 2022-02-25 00:21:27 +00:00
Adam Cohen f2f302bcf6 Fix DnD logic for determining current drag screen / panel
=> we want to use the extremum of finger location and object
   center for snapping to a new screen (max when snapping to right,
   min when snapping to left)
=> when selecting a panel within the current screen, we want to
   rely strictly on the object center to determine selection; there
   is plenty of space to be consistent here, and extremum logic
   could cause thrashing back and forth with no page movement.

Test: Manual. See videos in b/221104663. On two-panel and one-panel
      test dragging a widget between different screens with
      different starting positions of where the widget goes down.

Bug 221104663

Change-Id: I8f0f13f07b753752087a90c4bacb76cfbf7aa5bf
2022-02-24 16:13:12 -08:00
Android Build Coastguard Worker 64d7817b2b Snap for 8221354 from 8e5a164e05 to sc-qpr3-release
Change-Id: I466888d49bd12f1060edffaeff9cf15668433e98
2022-02-25 00:08:48 +00:00
Winson Chung 78166e9337 Merge "1b/ Replace removed shared lib calls with direct calls" into tm-dev 2022-02-24 23:45:39 +00:00
Hyunyoung Song d68872426c Change the all apps atomic transition duration to 150 ms
Test: manual

TL;DR;; this value is used for tap on qsb all apps container
atomic transition. 320 is value that used to be used in R
when all apps travel distance used to be entire window height.
In S, we reduced the travel distance to 1/3 of the height.

Change-Id: Ib66f8a4408fd77350c31c5b894d9f8b2c889159f
2022-02-24 20:33:23 +00:00
Vadim Tryshev 2107f059cb Merge "Preparing to using "platform-test-rules" library from Launcher tests" into tm-dev 2022-02-24 20:10:00 +00:00
Sunny Goyal e2d9dde4b7 [automerge] Removing unnecessary AM.getTasks() call on every touch 2p: 8e5a164e05 am: c6aadf8a74
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17005155

Change-Id: I60a003fb87f5788576104fc43c65c33ed4146865
2022-02-24 19:53:56 +00:00
Sebastian Franco 5a9dce518e Combining the Thumbnail bitmap with the background to fix background spilling in the front.
What's happening is that we first draw a background,
on top of it, we then draw the Task and because we
have a curvature the corners have pixels with transparency,
and those pixels get combined with the background pixels.
Most tasks have a transparent background or background
of the same color as the task so we don't see this
but for example, Telegram has a white background and
you can see this in the corners.

Fixed by creating a bitmap, drawing the background on it
and then drawing the thumbnail on top of it then using
that bitmap to draw it on the canvas.

Test: Put Telegram in recent Task (shouldn't be the first one) and you won't see a white border. Also when a task was in multitask the backgroudn should be draw.
Fix: 146521490
Change-Id: Id02a64ef472eb07900b0c7c5522d931d5b08f94e
2022-02-24 19:11:55 +00:00
Winson Chung 871759483b 1b/ Replace removed shared lib calls with direct calls
Bug: 219861883
Test: Builds
Change-Id: I7831d0de14286c9fa39fed59b168535e0a70d94d
2022-02-24 18:04:02 +00:00
Sunny Goyal c6aadf8a74 [automerge] Removing unnecessary AM.getTasks() call on every touch 2p: 8e5a164e05
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17005155

Bug: 220906427
Change-Id: Iedf1d7086d1f9ee1ae167f2a975612de9c84521c
2022-02-24 17:41:01 +00:00
Sunny Goyal 8e5a164e05 Removing unnecessary AM.getTasks() call on every touch
Bug: 220906427
Test: Verified on device
Change-Id: I58ed22c4d6069f10198ec30ec02fa8c2f7c55cbe
(cherry picked from commit d2ec834fac)
2022-02-24 17:40:54 +00:00
Nicolo' Mazzucato 5a0a17f119 Fix scaling of workspace and hotseat with wrong pivots
Bug: 219962098
Test: Unfolded device
Change-Id: I7dd9f0579ea737cd67792e612657a043411ac70e
2022-02-24 17:53:40 +01:00
Bill Yi 3159d7759f [automerger skipped] [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: a2ba15674c am: 0189c940d0 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ia367dc93a11aa301cac6ce1e137e9582c5bcc7ba
2022-02-24 13:52:40 +00:00
Alex Chau 21c63bc809 Merge "No longer stash taskbar when swiping up all apps" into tm-dev 2022-02-24 11:59:57 +00:00
Alex Chau 1c01af74c6 Merge "Fix incorrect accessibility announcement on two panel home" into tm-dev 2022-02-24 11:51:59 +00:00
Mady Mellor 57eab45996 Merge "Add a reason to the broadcast to collapse system dialogs" into tm-dev 2022-02-24 01:30:11 +00:00
TreeHugger Robot 582ab494dc Merge "Use color tokens for all apps entry buttons." into tm-dev 2022-02-24 00:07:47 +00:00
TreeHugger Robot dde28b487e Merge "Removing unnecessary AM.getTasks() call on every touch" into tm-dev 2022-02-23 23:38:14 +00:00
Andras Kloczl 2dacbee028 Fix incorrect accessibility announcement on two panel home
- Divide total pages by panelCount if two panel is active
- Increment target column when moving an item to right panel

Test: manual
Bug: 200009004
Change-Id: Ia8d2d760dc5e8b413e5b1150c049f7fa3ec26513
2022-02-23 22:35:12 +00:00
Tony Wickham 4fda59a0cc No longer stash taskbar when swiping up all apps
Instead, scale down hotseat behind all apps alongside workspace.

Test: Swipe up to all apps from home; all apps button in an app works as before
Fixes: 221094533
Change-Id: Ia6f1e7bac86849018dc8d0b1d95f0bab963835a8
2022-02-23 22:04:35 +00:00
Sunny Goyal d2ec834fac Removing unnecessary AM.getTasks() call on every touch
Bug: 220906427
Test: Verified on device
Change-Id: I58ed22c4d6069f10198ec30ec02fa8c2f7c55cbe
2022-02-23 13:35:25 -08:00
Sunny Goyal d4c4ad9212 Removing some unnecessary layout calls in TaskView
Bug: 221095750
Test: Presubmit
Change-Id: I277c1350109ce3bd0b29502c588482c737ab1e3d
2022-02-23 13:06:46 -08:00