Commit Graph

5442 Commits

Author SHA1 Message Date
TreeHugger Robot 6c1df7f7f7 Merge "Transfer PipContentOverlay when swipe to home with Shell transition" into tm-dev am: a4babdb6b2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17049970

Change-Id: Iee2df7eb4f40966d74a45704a5d23dcea929863f
2022-03-05 15:59:46 +00:00
TreeHugger Robot a4babdb6b2 Merge "Transfer PipContentOverlay when swipe to home with Shell transition" into tm-dev 2022-03-05 15:34:07 +00:00
TreeHugger Robot c7567ad622 Merge "Add logging for OneSearch entry point." into tm-dev am: 2aae0ad17e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17086364

Change-Id: Ie194f4cd4f0a2e1c2c6acf5cd1f81e8fdb2c2cce
2022-03-05 00:14:28 +00:00
TreeHugger Robot 2aae0ad17e Merge "Add logging for OneSearch entry point." into tm-dev 2022-03-04 23:49:27 +00:00
Thiru Ramasamy b0b289d6ef Add logging for OneSearch entry point.
Test: wwdebug && wwlogcat
Change-Id: Iaf57093fbe227bde670524ce1694ce91a749a3d6
2022-03-04 13:23:08 -08:00
Nicolò Mazzucato 6ad3b6769e Merge "Register hinge angle sensor listener in a background thread" into tm-dev am: 1ffc81c7ba
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17002677

Change-Id: I66d65be57f738dafbe179c7d56515c12fd23ce1f
2022-03-04 18:31:19 +00:00
Nicolò Mazzucato 1ffc81c7ba Merge "Register hinge angle sensor listener in a background thread" into tm-dev 2022-03-04 18:18:55 +00:00
Tony Wickham 5fe08e731f Merge "Properly animate canceled deep shortcut drag back to original icon" into tm-dev am: 80fed35379
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17075671

Change-Id: I0cbbda08058d8a85f242336c3b3d3b4cde81c8d0
2022-03-04 17:34:14 +00:00
Tony Wickham 80fed35379 Merge "Properly animate canceled deep shortcut drag back to original icon" into tm-dev 2022-03-04 17:07:12 +00:00
Thiru Ramasamy 9767c2e9ae Merge "Adds StatsLatencyLogger library." into tm-dev am: 18b9d159ce
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17070491

Change-Id: I339ebf7cbe6a4a35d1d9a04262cff951c1f52ba8
2022-03-04 16:49:35 +00:00
Thiru Ramasamy 18b9d159ce Merge "Adds StatsLatencyLogger library." into tm-dev 2022-03-04 16:17:56 +00:00
Riddle Hsu 14fc5bbc7a Merge "Get display id from display instead of the display of root view" into tm-dev 2022-03-04 09:38:00 +00:00
Wei Sheng Shih f516cb6fb5 Merge "Cancel recents animation when touch home key(2/2)" into tm-dev am: 63e4070791
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16981431

Change-Id: I62ee89fa38a051ba271042d8edb9e1863c0e8f27
2022-03-04 09:02:24 +00:00
Wei Sheng Shih 63e4070791 Merge "Cancel recents animation when touch home key(2/2)" into tm-dev 2022-03-04 08:40:42 +00:00
Winson Chung 4b44c7b86e Merge "Provide content insets while in SUW in portrait mode" into tm-dev am: 7e426a3933
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17073451

Change-Id: I90e5d1cb6e92228605cc379ce54cbab5a82504ca
2022-03-04 03:44:43 +00:00
Winson Chung 7e426a3933 Merge "Provide content insets while in SUW in portrait mode" into tm-dev 2022-03-04 03:25:44 +00:00
Thiru Ramasamy f93e8b26d5 Merge "Add empty implementation for item_attributes field on Launcher." into tm-dev 2022-03-04 02:44:54 +00:00
TreeHugger Robot 86097d79d8 Merge "Use shared insets resize animation duration for taskbar stashing" into tm-dev am: 4180a79d2b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17072847

Change-Id: Id2e311a4732c475a12691bb1bad57775b17437bc
2022-03-04 02:40:38 +00:00
TreeHugger Robot 4180a79d2b Merge "Use shared insets resize animation duration for taskbar stashing" into tm-dev 2022-03-04 02:22:47 +00:00
Thiru Ramasamy b097f24610 Adds StatsLatencyLogger library.
Test: build NexusLauncherDebug; wwdebug && wwlogcat
Change-Id: Ib1f1aeb78d1cb930ca680439341de6be5e5be2dd
2022-03-03 17:33:24 -08:00
TreeHugger Robot 14a860e4a7 Merge "Address some insets issues in Taskbar All Apps" into tm-dev am: e9056a9e9a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17061796

Change-Id: I77ae3ecd951bad22d0421934e764089a9be27547
2022-03-04 00:40:03 +00:00
Tony Wickham a56a197e14 Properly animate canceled deep shortcut drag back to original icon
- Added getFirstMatch() instead of using mapOverItems() (was a bit cleaner using ItemInfoMatcher)
- Match based on package name / UserHandle for deep shortcuts case

Test: drag deep shortcut from taskbar icon, inside folder, inside all apps; drag regular icons as well
Fixes: 222574524
Change-Id: Id5fdee29110f143c1125edc6945af09ab0a8d8ce
2022-03-04 00:39:38 +00:00
Winson Chung ac736e7dac Provide content insets while in SUW in portrait mode
- We keep the app setup flag set, but adjust the insets to
  inset SUW itself in portrait

Bug: 219879035
Test: With both 3button and gesture nav, verify that portrait
      mode SUW is always inset
Change-Id: Iad0b6c41feaa3fb169af75c071b7f9544b42bab7
2022-03-04 00:12:41 +00:00
TreeHugger Robot e9056a9e9a Merge "Address some insets issues in Taskbar All Apps" into tm-dev 2022-03-04 00:08:34 +00:00
thiruram 854f34dcc3 Add empty implementation for item_attributes field on Launcher.
Test: make -j64 NexusLauncher
Change-Id: Ie2781017018b9c0397f2322399cbd0267c988296
(cherry picked from commit e294eadc74)
2022-03-03 23:54:50 +00:00
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 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
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
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
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 2403b863c3 Merge "Fix scaling of workspace and hotseat with wrong pivots" into tm-dev 2022-03-02 18:25:19 +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
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
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