Commit Graph

12401 Commits

Author SHA1 Message Date
Winson Chung 30616e83d9 Merge "Update region sampling to account for window visibility" into tm-qpr-dev am: c5180384d5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21384584

Change-Id: I8e5912836ab786e5f1ee389763775c3c6a2df6b3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-14 05:39:55 +00:00
Winson Chung 3e815cbbb9 Merge "Have Taskbar report left/right gesture insets" into tm-qpr-dev am: b41d15b5f6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21344502

Change-Id: I6cee95301d8927c185d54364092cfa5ebb274ea8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-14 05:37:24 +00:00
Winson Chung c5180384d5 Merge "Update region sampling to account for window visibility" into tm-qpr-dev 2023-02-14 04:48:02 +00:00
Winson Chung b41d15b5f6 Merge "Have Taskbar report left/right gesture insets" into tm-qpr-dev 2023-02-14 04:45:24 +00:00
Tony Wickham fc97f74e82 Have Taskbar report left/right gesture insets
Fixes: 231648761
Test: output from adb shell dumpsys activity service
TouchInteractionService, specifically TaskbarInsetsController

Change-Id: I8ed7fefb482bd4f73d2b2026ccb4ac369b6321ab
2023-02-14 04:43:01 +00:00
Winson Chung f51df33fc8 Merge "Reapply previous states when recreating the task bar" into tm-qpr-dev am: a097a960c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21383817

Change-Id: I55eb0eab27b323198f36983cbcd5e39eee8a9374
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-14 00:57:57 +00:00
Winson Chung a097a960c8 Merge "Reapply previous states when recreating the task bar" into tm-qpr-dev 2023-02-14 00:05:58 +00:00
Nicolò Mazzucato 8778426fa1 Merge "Drive Launcher unfold animation from System UI" into tm-qpr-dev am: 5147b1d509
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21298421

Change-Id: I6b84f1878823c9aadb0aa5f10b0479adbf9cfb0c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-11 10:11:36 +00:00
Nicolò Mazzucato 5147b1d509 Merge "Drive Launcher unfold animation from System UI" into tm-qpr-dev 2023-02-11 09:24:42 +00:00
TreeHugger Robot af092ea846 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2023-02-11 07:43:22 +00:00
Winson Chung 8bce18a562 Update region sampling to account for window visibility
- Similar to the nav bar, we should also disable region sampling then
  the window is no longer visible (ie. when in immersive mode) otherwise
  we fall back into gpu composition which consumes more battery

Fixes: 268280575
Test: Enter immersive mode and verify region sampling is disabled
Change-Id: I99bf8986c6f22fd8d480d255d10cfcd39cfb79e3
2023-02-11 01:02:35 +00:00
Winson Chung 8fe24e0893 Reapply previous states when recreating the task bar
- When the taskbar is recreated (ie. from a display config change),
  the previous states sent from SysUI need to be reapplied to the
  new controllers

Fixes: 267664948
Test: Wipe device, in SUW accessibility settings change the display
      density and verify it properly tints the back button
Change-Id: I837a67ced2941d4545359b8231026044b5479767
2023-02-11 00:25:01 +00:00
Schneider Victor-tulias c57c762816 Merge "Reorganize ActiveGestureLogs for ease-of-use" into tm-qpr-dev am: 301433c11a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21120284

Change-Id: Ib05a8a112179dd691d42a4424565aef664f496e9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-10 22:22:54 +00:00
Ats Jenk 201e4d39c7 Merge "Add icon to desktop tile in overview" into tm-qpr-dev am: 90d0019447
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21359254

Change-Id: I5ac65e5dcac7a7501258b4cf62eac73de0193365
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-10 22:22:43 +00:00
Nicolo' Mazzucato 8d9edd292b Drive Launcher unfold animation from System UI
Before this cl, both Launcher and System UI processes were registering for hinge angle and device state (e.g. folded/unfolded) change events to calculate the current unfold animation progress. In some cases, launcher ui thread was busy, delaying the progress calculation from the hinge angle value (that was received ~at the same time by both processes). This resulted in launcher and sysui unfold animation not being synchronized in some cases.

With this cl, System UI process uses OverviewProxyService to send the unfold events to Launcher. In this way, both process always have the exact same progress (+- 1 frame)

This is currently guarded by a launcher flag, by default with the new behaviour, to allow devs to compare the experience and easily debug potential regressions.

Bug: 268490854
Test: Analysed perfetto trace + RemoteUnfoldTransitionProgressProviderTest + manual
Change-Id: If15fd6fe39abb3d922c5fdb327100206dfa3665d
2023-02-10 22:04:19 +00:00
Schneider Victor-tulias 301433c11a Merge "Reorganize ActiveGestureLogs for ease-of-use" into tm-qpr-dev 2023-02-10 22:01:57 +00:00
Ats Jenk 90d0019447 Merge "Add icon to desktop tile in overview" into tm-qpr-dev 2023-02-10 21:47:31 +00:00
Lucas Silva 0ee31bb2ee Merge "Allow QuickstepTransitionManager to be overridden" into tm-qpr-dev am: bc333343ec
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20785348

Change-Id: Ia2631b7fb6c44cd870bf5c7c0b8684c76f41f4ab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-10 21:28:24 +00:00
Lucas Silva bc333343ec Merge "Allow QuickstepTransitionManager to be overridden" into tm-qpr-dev 2023-02-10 20:47:27 +00:00
Ats Jenk 78b614f555 Add icon to desktop tile in overview
Copied over icon from caption desktop button in WMShell. Temporary icon
for now.
Refactored some logic in TaskView to better support for custom
orientation handling in subclasses. Subclasses can override setting
orientation for icon or thumbnail.

Bug: 267326722
Test: manual, enable desktop windowing proto 2 and go to overview
Change-Id: Id66d48fa52a418a07b954a384b2c3ea22f091b1f
2023-02-10 10:16:31 -08:00
Sunny Goyal f8ac3c1b14 Merge "Updating Drawables as per GraphicsUtils changes" into tm-qpr-dev am: c424941565
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21354885

Change-Id: I0835da6900b78fedd05542c1c5a4ea256e5ae74d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-10 17:11:51 +00:00
Sunny Goyal c424941565 Merge "Updating Drawables as per GraphicsUtils changes" into tm-qpr-dev 2023-02-10 16:46:19 +00:00
Lucas Silva 099341fa97 Allow QuickstepTransitionManager to be overridden
This allows for custom animations in classes inheriting from
QuickstepLauncher

Bug: 260637266
Test: flashed device and verified animation
Change-Id: I21fa112851e9ce43037151fc4c2fd21e90056712
2023-02-10 10:41:39 -05:00
Luca Zuccarini 0bba675ce5 Merge "Disable splash icon when launching a search result." into tm-qpr-dev am: 527679d258
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21116566

Change-Id: I4099a0c1f6c1bb7f696cf57bdef22fed64dcccd0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-10 13:12:00 +00:00
Luca Zuccarini 527679d258 Merge "Disable splash icon when launching a search result." into tm-qpr-dev 2023-02-10 12:20:53 +00:00
Bill Yi fd8d21179a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ibdaf9a8936e17246f19955354e41828ed660f568
2023-02-10 01:44:30 -08:00
Sunny Goyal 799e12077b Updating Drawables as per GraphicsUtils changes
Bug: 266661614
Test: Presubmit
Change-Id: Ia3d0e0bc7a2b019d234e3bca71e893d5c4c54ca8
2023-02-09 16:14:04 -08:00
Saumya Prakash e6b6efe06a Merge "Update strings on "All set" screen." into tm-qpr-dev am: 65a0ee776e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21343842

Change-Id: I635f87518d03cdf49e44f4c662d9964089d33cb8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-09 23:59:04 +00:00
Saumya Prakash 65a0ee776e Merge "Update strings on "All set" screen." into tm-qpr-dev 2023-02-09 23:03:18 +00:00
Ats Jenk 02bf2bcfa3 Merge "Fix invoking transient taskbar in desktop windowing prototypes" into tm-qpr-dev am: 05abfa49c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21343843

Change-Id: I686756251a496201283c52ae69e61d1644d7afd6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-09 21:40:35 +00:00
Ats Jenk 05abfa49c8 Merge "Fix invoking transient taskbar in desktop windowing prototypes" into tm-qpr-dev 2023-02-09 21:09:43 +00:00
TreeHugger Robot a4e184dcde Merge "Refresh thumbnail splash when task icon changes." into tm-qpr-dev am: f5f3a80959
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21319101

Change-Id: I34d77503f27fa5d12e1f1db689e499880105ccdf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-09 16:59:43 +00:00
TreeHugger Robot f5f3a80959 Merge "Refresh thumbnail splash when task icon changes." into tm-qpr-dev 2023-02-09 16:29:50 +00:00
Thales Lima 0ebaf3a46c Merge "Create an XML parser for WorkspaceSpecs" into tm-qpr-dev am: 5d5aad3024
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20643018

Change-Id: I6a3f38e28b5a381bfa2ac42cdeba77c1527fb028
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-09 12:19:35 +00:00
Thales Lima 5d5aad3024 Merge "Create an XML parser for WorkspaceSpecs" into tm-qpr-dev 2023-02-09 11:19:59 +00:00
Jeremy Sim b340f1401f Merge "Improve resilience of testSplitFromOverview()" into tm-qpr-dev am: 5c5797d9bb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21314098

Change-Id: I8cff3f510e24990f985cdcb55893a5c66db93385
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-09 04:29:18 +00:00
Jeremy Sim 5c5797d9bb Merge "Improve resilience of testSplitFromOverview()" into tm-qpr-dev 2023-02-09 03:56:02 +00:00
Brandon Dayauon 004104d3a1 Merge "Implement diff haptics going into all apps" into tm-qpr-dev am: f4437f742e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20342908

Change-Id: I143346a1730f11ba57cb61d1fe01640f2b7daeea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-09 01:22:25 +00:00
Brandon Dayauon f4437f742e Merge "Implement diff haptics going into all apps" into tm-qpr-dev 2023-02-09 00:45:24 +00:00
Saumya Prakash c8dd49be92 Merge "Migrate from using CardViews to Views in gesture nav tutorial layouts." into tm-qpr-dev am: a184e0def7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21325752

Change-Id: Id5681c5c5eccfea4f24c13e48dafcd3b605c6386
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-08 23:50:58 +00:00
Saumya Prakash 0c72529fae Update strings on "All set" screen.
Change the string to "Swipe up to go home" to match new UI changes.
Screenshot: https://screenshot.googleplex.com/5SqP2fQFPKdybcr.png

Fix: 263561675
Test: Manual
Change-Id: Iffc81fa8ea532729096a106e0182200d897375e7
2023-02-08 23:41:56 +00:00
Ats Jenk d9f6d4e31c Fix invoking transient taskbar in desktop windowing prototypes
When transient taskbar is invoked, it starts the recents animation.
Recents animation triggers the launch of launcher activity. We need to
ensure that after recents animation is cancelled (since the gesture was
only for taskbar), we bring the desktop tasks back to front.

When the transient taskbar gesture finishes, we need to ensure that
launcher state is restored to normal. With fullscreen tasks, launcher
activity in stopped after gesture finishes as a fullscreen task is on
top. This stop triggers the launcher state to return to normal.
When freeform tasks are visible on top of launcher, launcher activity is
not stopped. This means we have to manually move launcher to normal
state after transient taskbar gesture finishes.

Bug: 267364407
Test: enable proto 1, switch to desktop mode and open some tasks, swipe
  up for transient taskbar, swipe up to recents view
Test: enable proto 2, move a task to desktop, swipe up for transient
  taskbar, swipe up to recents view
Change-Id: I712bc5086407c26779638d824f34674f7db1ff51
2023-02-08 15:16:43 -08:00
Saumya Prakash a184e0def7 Merge "Migrate from using CardViews to Views in gesture nav tutorial layouts." into tm-qpr-dev 2023-02-08 23:02:04 +00:00
Schneider Victor-tulias 0a184a9981 Reorganize ActiveGestureLogs for ease-of-use
Fixes: 268382209
Test: completed several gestures and checked the logs
Change-Id: Ic08bfc553a39bda7401f6565ce5553933dbc0689
2023-02-08 13:37:49 -08:00
Saumya Prakash c65f37e7c6 Migrate from using CardViews to Views in gesture nav tutorial layouts.
Use Views in layouts for the gesture navigation tutorial instead of CardViews. We only migrate the classes that will end up being used in the redesigned gesture tutorial.

Fix: 268259319
Test: Manual
Change-Id: I510c8b3f840d0267dd6dfca573cc69c4996d525c
2023-02-08 19:28:05 +00:00
Pat Manning 97ef7f0052 Refresh thumbnail splash when task icon changes.
This is usually a result of TaskIconCache updating in the background.

Fix: 267744363
Test: manual.
Change-Id: I83620f3774def7ffb07906a6d45b64e9aad6de71
2023-02-08 16:41:17 +00:00
Thales Lima 1a2d4bd6f4 Create an XML parser for WorkspaceSpecs
Extract DeviceProfileTest to Launcher3 so it can be used in other tests as well, and change name of previous base test to be more descriptive.

Bug: 241386436
Test: WorkspaceSpecsTest
Change-Id: I64613bb5a23c374ed15fb6d936192236a541ab9b
2023-02-08 11:20:14 +00:00
Jerry Chang a7fb317875 Merge "Support entering split screen with a shortcut and an intent" into tm-qpr-dev am: ab314be1e4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21276377

Change-Id: I9e5f5c4634395ae1bc2566fc5c3556f32cd4b235
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-08 08:09:02 +00:00
Jerry Chang ab314be1e4 Merge "Support entering split screen with a shortcut and an intent" into tm-qpr-dev 2023-02-08 07:46:50 +00:00
Jerry Chang 7c59ccac02 Support entering split screen with a shortcut and an intent
Starting a split pair by indicating (shortcut|shortcut) or
(shortcut|intent) was not properly supported, update to leverage
startIntens flow to handle shortcut info when starting a split pair.

Fix: 265919000
Test: repro steps of the bug
Change-Id: I9afcd6f3cdfb5530c1b440a9c0ade8c9952a5fff
2023-02-08 03:27:41 +00:00