Commit Graph

14731 Commits

Author SHA1 Message Date
Sunny Goyal ca0e858a25 Merge "Separating refresh rate tracking to a separate class" into tm-dev am: ed6d3a47c0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17037162

Change-Id: Ic5ab0c8a0b8c1d5582e0be5b9da710c5c3d89945
2022-03-03 23:23:06 +00:00
Sunny Goyal 2c414d7866 Merge "Separating refresh rate tracking to a separate class" into tm-dev am: ed6d3a47c0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17037162

Change-Id: I7eb26c21b16cff83181d93474fc8787e60505cf3
2022-03-03 23:20:50 +00:00
Sunny Goyal ed6d3a47c0 Merge "Separating refresh rate tracking to a separate class" into tm-dev 2022-03-03 23:00:29 +00:00
Tony Wickham 27d33e2994 Address some insets issues in Taskbar All Apps
- Don't report insets change to underlying app when stashing taskbar during all apps transition
- Internally override all apps insets to take stashing into account
- Don't offset all apps window by display cutouts, as we handle them internally via padding internally
- Also Fix bug where "stashing" taskbar in 3 button mode (which just fades out taskbar icons but keeps nav buttons) was reporting smaller insets to apps

Test: 1) open all apps in Calculator, ensure Calculator doesn't adjust insets and all apps has bottom content padding but no nav scrim
2) in 3 button mode, scroll to bottom of all apps and can read last row icon labels
3) enable display cutout in developer options, ensure no change to tests 1 and 2, and all apps scrim fills the screen (including behind cutout)
Fixes: 219980805

Change-Id: Ic3c6a744bc675e4ea277d22c4c0b3b353eddd905
2022-03-03 22:04:49 +00:00
Tony Wickham ede8ad8ec9 Use shared insets resize animation duration for taskbar stashing
This is a no-op since they are the same value (by design), but using the constant directly will prevent potential divergences in the future.

Test: none
Bug: 191269755
Change-Id: I81b98045466398b7a49de872694004e526adf048
2022-03-03 18:25:59 +00:00
TreeHugger Robot 06827f84b2 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev 2022-03-03 09:29:21 +00:00
TreeHugger Robot c095bcabf0 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-03-03 08:58:50 +00:00
Iris Yang 5a915fb883 Get display id from display instead of the display of root view
Since `getRootView()` will increase the execution time, use
`getDisplay()` instead.

Bug: 202825727
Test: manually
Change-Id: I22ef58cb39716433cd8e91200837ab49229ae3e1
(cherry picked from commit 6a06d8615f)
2022-03-03 08:23:11 +00:00
Wei Sheng Shih aed29d3b3d Merge "Rename 'EMPTY' to 'SOLID_COLOR' for splash screen API changes." into tm-dev am: 54da6aa355
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16962932

Change-Id: Ie37c46c3c3851f539fa450d3c4329a3e728db993
2022-03-03 01:35:18 +00:00
Jerry Chang 872da5f950 Merge "Fix split screen divider corners flicker" into tm-dev am: 0610af43d3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17005477

Change-Id: Iedb316253bae143f4b99e685ab6f94f5dfb76379
2022-03-03 01:34:52 +00:00
Wei Sheng Shih 54da6aa355 Merge "Rename 'EMPTY' to 'SOLID_COLOR' for splash screen API changes." into tm-dev 2022-03-03 01:30:41 +00:00
Jerry Chang 0610af43d3 Merge "Fix split screen divider corners flicker" into tm-dev 2022-03-03 01:04:21 +00:00
Evan Rosky 01bbf1a8f3 Switch to persist.wm.debug
For use with systemui flag flipping

Bug: 219067621
Test: manual
Change-Id: I5477b961bfdbe4e9103173c1c7f8daf03ce5eee4
2022-03-02 16:18:44 -08:00
TreeHugger Robot fa5333036a Merge "Add empty implementation for item_attributes field on Launcher." 2022-03-02 23:59:53 +00:00
Jeremy Sim af9b28a56f Merge "Fix paired icon placement in landscape/seascape" 2022-03-02 23:16:44 +00:00
Brian Isganitis 5e5e730d43 Merge "Ignore touches in taskbar and all apps windows during system drag." into tm-dev am: 6ad7a477a5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17008771

Change-Id: I65fe09704be41a75bbd252c3035282aec80d39dc
2022-03-02 22:20:33 +00:00
Brian Isganitis 6ad7a477a5 Merge "Ignore touches in taskbar and all apps windows during system drag." into tm-dev 2022-03-02 22:13:28 +00:00
thiruram e294eadc74 Add empty implementation for item_attributes field on Launcher.
Test: make -j64 NexusLauncher
Change-Id: Ie2781017018b9c0397f2322399cbd0267c988296
2022-03-02 13:54:27 -08:00
Jeremy Sim d6826c74a4 Fix paired icon placement in landscape/seascape
In grouped task view, paired icons will now align better with task thumbnails.

Fixes: 218783211

Test: Extensive manual testing on local device(s).
Change-Id: I372d2ee90302a8d96ace048ff4f82126d9b2b363
2022-03-02 12:39:49 -08:00
Brian Isganitis 1bc23b7662 Ignore touches in taskbar and all apps windows during system drag.
Touches are ignored as soon as we want to start system drag so that system drag can start sooner (i.e. before any AbstractFloatingView animations finish). This approach utilizes ViewTreeObserverWrapper's compute insets listener by temporarily setting the touch region to empty. The taskbar window remains fullscreen until the drag finishes so the touch region is reset at the right point. Similarly, the all apps window is kept open during its drag operations until the drag finishes. System drag state is now exposed through the drag controller to skip predrag.

Test: Manual by dragging to split screen and triggering dismissal
animation from both windows. Verified predrag works.
Fix: 221104066
Fix: 220070070

Change-Id: I424106269c841f58cbe5338d30b6c33fbd889019
2022-03-02 11:31:47 -08:00
Bill Yi 652dee2a40 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8ac6e46267c8dcb6d4408ba1c016c76dd8597c99
2022-03-02 19:26:33 +00:00
Bill Yi 401719cdbf Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id7f3956d500de9addf70b6367564551adf6f77ec
2022-03-02 19:25:58 +00:00
Bill Yi bf37866067 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie305e6a08bf74c0302f843d72786222a519bdf7b
2022-03-02 19:21:36 +00:00
TreeHugger Robot 833be1cfc9 Merge "Fix scaling of workspace and hotseat with wrong pivots" into tm-dev am: 2403b863c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17003265

Change-Id: Iec9889b0da252704bdef16383308d6ee9893794e
2022-03-02 18:37:04 +00:00
TreeHugger Robot 2c0332d283 Merge "Adding better diags when SysUI crashes during Launcher test" into tm-dev am: 60a15f5c24
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17033582

Change-Id: I2dc3df39c9c77580de2ca048e4ddaddecb21e34a
2022-03-02 18:36:42 +00:00
TreeHugger Robot 2403b863c3 Merge "Fix scaling of workspace and hotseat with wrong pivots" into tm-dev 2022-03-02 18:25:19 +00:00
TreeHugger Robot 60a15f5c24 Merge "Adding better diags when SysUI crashes during Launcher test" into tm-dev 2022-03-02 18:17:28 +00:00
Chris Li 411c1b4856 Transfer PipContentOverlay when swipe to home with Shell transition
Update launcher to pass the taskId to Shell, so that Shell can reparent
the overlay from the remote transition leash to the Task leash.
Otherwise the overlay will be removed with the transition leash when
transition is finished.

Bug: 222030101
Test: verify with swipe to home with Shell transition
Change-Id: I838c22951fdf79c3213f2c9b1cb73a4a90341597
2022-03-02 22:55:51 +08:00
Pat Manning f9284cf0ff Merge "Refactor force visible nav bar into new secure setting." into tm-dev am: 281182739a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17002946

Change-Id: Ib720cf678ccf74941a72ebc03e1a13dcf19e6912
2022-03-02 14:11:46 +00:00
Pat Manning 281182739a Merge "Refactor force visible nav bar into new secure setting." into tm-dev 2022-03-02 13:51:27 +00:00
Sam Dubey 98ac0efdab Merge "Revert "Add placeholders for item_attributes parameters."" 2022-03-02 07:07:53 +00:00
Winson Chung 86a97ce029 Merge "Revert "Disable flakey fallback recents test"" into tm-dev am: 42698fcb17
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17039481

Change-Id: I2f8c2baf6a309feead93c1129b871b124587dc33
2022-03-02 06:05:20 +00:00
Sam Dubey 88b34ff457 Revert "Add placeholders for item_attributes parameters."
Revert "Add item_attributes to LauncherAtoms."

Revert submission 17044396-ItemAttributes

Reason for revert: Broke targets
Bug: 222206900
Reverted Changes:
I164eb20e5:Add placeholders for item_attributes parameters.
I18af2044d:Add item_attributes to LauncherAtoms.

Change-Id: I620487090e2486bd579944769cce065e9c810f5b
2022-03-02 05:43:48 +00:00
Winson Chung 42698fcb17 Merge "Revert "Disable flakey fallback recents test"" into tm-dev 2022-03-02 05:36:42 +00:00
Thiru Ramasamy e5de0af988 Merge "Add placeholders for item_attributes parameters." 2022-03-02 04:34:20 +00:00
Jerry Chang 9f72c67e65 Fix split screen divider corners flicker
Divider bar might be hidden before swipe-up gesture started when users
touching task bar region. This makes sure to update visibility of
divider bar only after gesture started.

Fix: 219995626
Test: long press task bar region to stash/unstash task bar, divider bar
      won't be hidden as long as it didn't trigger swipe up gesture.
Change-Id: Iacf690c84a3ad4b5e4fc9b066e9a1ecb8a8aa7d1
2022-03-02 04:04:06 +00:00
Evan Rosky 5d0f4ddd34 Merge "Don't use incorrect inputconsumers during recents animation" into tm-dev am: bcc343d944
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17046840

Change-Id: I3816da5f3674779cfc60bb4bcf76ce24ef0658f1
2022-03-02 00:12:24 +00:00
Evan Rosky bcc343d944 Merge "Don't use incorrect inputconsumers during recents animation" into tm-dev 2022-03-01 23:49:06 +00:00
thiruram cfccd38a0d Add placeholders for item_attributes parameters.
Test: Manual
Change-Id: I164eb20e5b8987a0d2bf4338a7eff235d02f9af7
2022-03-01 15:47:26 -08:00
TreeHugger Robot cd70a2b20b Merge "Combining the Thumbnail bitmap with the background to fix background spilling in the front." into tm-dev am: b7e181c741
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17003268

Change-Id: I19277c2195ba13e44eebbb5fe95303b9cb851e78
2022-03-01 22:56:34 +00:00
TreeHugger Robot b7e181c741 Merge "Combining the Thumbnail bitmap with the background to fix background spilling in the front." into tm-dev 2022-03-01 22:29:09 +00:00
Evan Rosky 9918df01af Don't use incorrect inputconsumers during recents animation
Shell transitions resumes launcher. This was causing logic in
launcher to pick incorrect inputconsumers which resulted in
aborting animation logic.

Bug: 220196913
Test: quickswitch very quickly
Change-Id: I66d894436a6cc6eae57d505db8a7abf6c10ab00f
2022-03-01 11:09:21 -08:00
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
TreeHugger Robot 72f6443cda Merge "[ShellTransition]: invoke WMS#setRecentsAppBehindSystemBars to WM" into tm-dev am: 33b858d4cc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16972936

Change-Id: I1b575a3ce00c36f288033e96ab56cb21d873d7ce
2022-03-01 09:18:28 +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 9df45c386b Merge "Improve the staged split animation" into tm-dev am: 2ac459e7f2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17031258

Change-Id: I3c38c3ba77c102297462061fea8e06af53a094ec
2022-03-01 07:59:47 +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
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