Commit Graph

7191 Commits

Author SHA1 Message Date
Schneider Victor-tulias 74ffb0ba89 Merge "Add the KeyboardQuickSwitchView (2/2)" into tm-qpr-dev am: 25656568e3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21087436

Change-Id: I2f769bd01dc85fbb36e0424e8aa6ecf2d18c8d91
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-15 05:24:01 +00:00
Schneider Victor-tulias de7ceba80b Add the KeyboardQuickSwitchView (2/2)
Adding KeyboardQuickSwitchView and associated flows.

Test: Manually tested alt-tab and alt-shift-tab in and out of overview on a tablet and phone
Bug: 258854035
Change-Id: Ifb48b005067b3a9c66acfd5ecdbae144b359d3be
2023-02-14 13:34:37 -08:00
Schneider Victor-tulias 031e3d38b8 Merge "Add the KeyboardQuickSwitchView (1/2)" into tm-qpr-dev am: 673e6437b8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21087434

Change-Id: Ifdb495e6480338f41650431c6a8944ae9caad639
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-14 18:52:06 +00:00
Schneider Victor-tulias 673e6437b8 Merge "Add the KeyboardQuickSwitchView (1/2)" into tm-qpr-dev 2023-02-14 17:46:23 +00:00
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
Schneider Victor-tulias f908729fa8 Add the KeyboardQuickSwitchView (1/2)
Preparatory change for adding the KeyboardQuickSwitchView and associated flows.

Test: Manually tested alt-tab and alt-shift-tab in and out of overview on a tablet and phone
Bug: 258854035
Change-Id: I468481a023e82d3ef7c7d4d44c5b9435173b49ae
2023-02-13 15:34:39 -08: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
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
Sunny Goyal 799e12077b Updating Drawables as per GraphicsUtils changes
Bug: 266661614
Test: Presubmit
Change-Id: Ia3d0e0bc7a2b019d234e3bca71e893d5c4c54ca8
2023-02-09 16:14:04 -08: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
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
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
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
TreeHugger Robot e6ab0e44b3 Merge "Remove ENABLE_TASKBAR_REVISED_THRESHOLDS feature flag." into tm-qpr-dev am: 96328e98d1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21320084

Change-Id: I31577a1a0b66f5218acea3b1f2fedc1315bb9ddd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-07 21:39:03 +00:00
TreeHugger Robot 96328e98d1 Merge "Remove ENABLE_TASKBAR_REVISED_THRESHOLDS feature flag." into tm-qpr-dev 2023-02-07 21:03:18 +00:00
TreeHugger Robot 36c1d35a5b Merge "Rotate back button drawable when IME present." into tm-qpr-dev am: 71a7a13f06
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21136523

Change-Id: I7028686e031f8182953ee0b6981db34a8e6933cd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-07 20:53:46 +00:00
TreeHugger Robot 71a7a13f06 Merge "Rotate back button drawable when IME present." into tm-qpr-dev 2023-02-07 20:32:31 +00:00
Brandon Dayauon 12c193e6c5 Implement diff haptics going into all apps
Notes:
* the reason why 0.6 -> 1 never happened was because of AllAppsSwipeController where
it had a clampToProgress. By changing lowerbound to 0 the progress actually shows fully 0->1

- composed the haptics in the constructor
- added new listener class in AATransitionController

Added featureflag

bug: 233751149
test: Manually - presubmit, ran “make -j7 Launcher3” from master branch  photo: https://screenshot.googleplex.com/8r5FZh6buzkQMjk
Change-Id: I5e1a24170fdbfdd35b8d8f24af0ec5e8586641a2
2023-02-07 11:36:42 -08:00