Commit Graph

6351 Commits

Author SHA1 Message Date
TreeHugger Robot c28a0e4bb9 Merge "Prevent showing divider if launcher was never shown" into tm-qpr-dev am: ec8a85099e am: e4882a9761
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18764766

Change-Id: Iea5987760fa71f8b1b0f25d7aa1281964d21d8f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-15 04:08:22 +00:00
TreeHugger Robot ec8a85099e Merge "Prevent showing divider if launcher was never shown" into tm-qpr-dev 2022-06-15 03:29:21 +00:00
Tracy Zhou 8cb12a7f69 Merge "Fix "software rendering doesn't support hardware bitmaps" from task bar all apps" into tm-qpr-dev am: 51ceb5f200 am: fc8e332deb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18866023

Change-Id: Icd6dbd27143df36e16b3aeaeedb5be10212d9db2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-14 23:09:05 +00:00
Tracy Zhou 51ceb5f200 Merge "Fix "software rendering doesn't support hardware bitmaps" from task bar all apps" into tm-qpr-dev 2022-06-14 22:08:05 +00:00
Tracy Zhou f3b2bd67d4 Merge "Use withLayer for live tile layering" into tm-qpr-dev am: 844efbaa75 am: b0a6846c48
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18820874

Change-Id: I32cf12308bc2f3c48b8843b24635b61f5245f1c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-14 19:04:01 +00:00
Tracy Zhou 844efbaa75 Merge "Use withLayer for live tile layering" into tm-qpr-dev 2022-06-14 18:12:03 +00:00
Winson Chung 3c105a7cd6 Merge "Updating call to match change in interface" into tm-dev am: baf27c1b5b am: c692e966c7 am: 519882d21f am: 68e5aa47ed
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18800135

Change-Id: Ide0668ea54803ba80da150f7b70794318ab94def
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-14 18:06:39 +00:00
Winson Chung 519882d21f Merge "Updating call to match change in interface" into tm-dev am: baf27c1b5b am: c692e966c7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18800135

Change-Id: I3480d7b9671b059abda4c391abb67fe8e50d7bdc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-14 16:52:30 +00:00
Winson Chung baf27c1b5b Merge "Updating call to match change in interface" into tm-dev 2022-06-14 13:56:10 +00:00
Schneider Victor-tulias 2fefed2d5e Merge "Forcefully move focused task to front when triggering the recents animation in 3-button nav" into tm-qpr-dev am: 3bc7b93ea5 am: 5fa9598b11
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18521813

Change-Id: Iecadfe4df316a8ed47da1cbcef70793891dad464
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-13 19:10:24 +00:00
Schneider Victor-tulias 3bc7b93ea5 Merge "Forcefully move focused task to front when triggering the recents animation in 3-button nav" into tm-qpr-dev 2022-06-13 18:17:56 +00:00
Yunfan Chen 04d206b675 Merge "Modify the way of providing insets per WM change" into tm-qpr-dev 2022-06-13 11:38:14 +00:00
Tracy Zhou b93f59719a Fix "software rendering doesn't support hardware bitmaps" from task bar all apps
The issue is that there is a delay between when the task bar all apps view is removed and another task bar dispatching draw of an all apps icon. When the window is removed, isHardwareAcceleration() returns false, causing the crash.

This crash further restarts launcher, causing launcher to be in the wrong state for a number of things. And hence, this fix should make all the other crashes moot.

Fixes: 234617317
Test: Keep dragging all apps icons to split
Change-Id: Ifc272d82c1deac8485801473919602563bb3caf0
2022-06-13 05:21:36 +00:00
Hongwei Wang 5c6d09ce33 Merge "Call setCanAffectSystemUiFlags(false) only for PiP" into tm-qpr-dev am: bf8528c21b am: b6e6511bb3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18815765

Change-Id: Ib3525c4eb71f4e13094881ad688d93085ec3e9e9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-10 22:15:27 +00:00
Hongwei Wang bf8528c21b Merge "Call setCanAffectSystemUiFlags(false) only for PiP" into tm-qpr-dev 2022-06-10 21:51:14 +00:00
Schneider Victor-tulias 920a86969a Forcefully move focused task to front when triggering the recents animation in 3-button nav
Quickly tapping the recents button can start a recents animation while a quick switch is running. This causes the the wrong page index to be used as the focused task index.

Test: manual on large screen
Fixes: 227562351
Change-Id: If99f74477e52ed0c7f7c5fd7b3dc8b201627068b
2022-06-10 20:11:18 +00:00
Yunfan Chen 5f59801139 Merge "Modify the way of providing insets per WM change" 2022-06-10 05:09:24 +00:00
TreeHugger Robot f66282dc04 Merge "Add grid_x field to DeviceSearchResultContainer." into tm-dev am: a37556ae5c am: 40ad40ed49 am: adc7347719 am: 69463d8d67
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18722495

Change-Id: Ibf52c61f8a678191c50335069461e27930d5fc1e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-10 00:12:45 +00:00
Tracy Zhou 92b49faa79 Use withLayer for live tile layering
Bug: 233007237
Test: make sure live tile ordering in overview is correct
Change-Id: I239949878634ff9a46975e7e6b92dc3be797ea88
2022-06-10 00:08:24 +00:00
TreeHugger Robot adc7347719 Merge "Add grid_x field to DeviceSearchResultContainer." into tm-dev am: a37556ae5c am: 40ad40ed49
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18722495

Change-Id: I541a82b41bf5d4ae92c9cd9146271c73a03b19d0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-09 23:12:50 +00:00
Tracy Zhou 626937f2b0 Merge "Patch npe in TaskbarAllAppsController" into tm-qpr-dev am: c3ba24f06e am: 37baad8163
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18791875

Change-Id: I397eacf14155684a61dd6c6be5f90c5a2ad347ab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-09 22:38:27 +00:00
TreeHugger Robot a37556ae5c Merge "Add grid_x field to DeviceSearchResultContainer." into tm-dev 2022-06-09 22:30:17 +00:00
Tracy Zhou c3ba24f06e Merge "Patch npe in TaskbarAllAppsController" into tm-qpr-dev 2022-06-09 22:12:08 +00:00
Hongwei Wang 0f72658372 Merge "Do not attempt auto-enter-pip if there is no valid leash" into tm-qpr-dev am: 40f049bcb4 am: d1e80e3c89
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18818897

Change-Id: I5c60ec9b2bf48b7419d52a968ece27dc3d47e722
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-09 20:31:25 +00:00
Hongwei Wang 40f049bcb4 Merge "Do not attempt auto-enter-pip if there is no valid leash" into tm-qpr-dev 2022-06-09 19:55:45 +00:00
Tracy Zhou 2583fb48b8 Patch npe in TaskbarAllAppsController
b/234617317#comment3

Bug: 234617317
Test: manual
Change-Id: I7cff0df86db4fdf58b33240594784598950f1a88
2022-06-09 19:22:31 +00:00
Hongwei Wang 24aeafaef1 Call setCanAffectSystemUiFlags(false) only for PiP
It was too aggressive to call that in all cases including swipe
split-screen to home.

Video: http://recall/-/b1EZhgUkQcpML5OwZekLBN/dlG6qSf9pT2f4YlIe2Klb3
Video: http://recall/-/b1EZhgUkQcpML5OwZekLBN/cfXwlpol5vi2AER32rKu2x
Bug: 213598210
Test: 1. follow the reproduce steps in the bug. \
      2. make sure PiP from split-screen has no regressions. \
      see also the videos.
Change-Id: I33d71294595729f8cdf72258c4d45c29a77935c2
2022-06-09 12:10:38 -07:00
Alex Chau 1965e1309c Merge "Use DISPLAY_CATEGORY_ALL_INCLUDING_DISABLED for getDisplays" into tm-dev 2022-06-09 17:40:07 +00:00
Hongwei Wang 1cd4162b82 Do not attempt auto-enter-pip if there is no valid leash
No reproduce path for the bug being reported, this fix is to ensure we
do not start the auto-enter-pip animation with invalid leash at the
first place.

Bug: 234796719
Test: N/A for the bug, verify the normal auto-enter-pip still works
Change-Id: I6f2164a322877f1b0213a1ee09eb476090300c7f
2022-06-09 10:27:18 -07:00
TreeHugger Robot e9f606f995 Merge "Hide taskbar while VoiceInteractionWindow is visible" into tm-qpr-dev 2022-06-09 16:55:38 +00:00
Alex Chau 3783778a14 Merge "Use normalized CachedDisplayInfo as key" into tm-qpr-dev am: cbde3a3a8d am: f290797184
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18754331

Change-Id: Id0cf035044f5cd9aa8cc10e9492abbc85f543e06
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-09 16:01:31 +00:00
Alex Chau cbde3a3a8d Merge "Use normalized CachedDisplayInfo as key" into tm-qpr-dev 2022-06-09 15:10:27 +00:00
Alex Chau 2545e92264 Use DISPLAY_CATEGORY_ALL_INCLUDING_DISABLED for getDisplays
Bug: 227459045
Bug: 221071695
Test: manual
Change-Id: I8c1587e05a30abf75a01a84ebda6522606abb99b
2022-06-09 12:12:57 +00:00
Alex Chau 661f02de18 Use normalized CachedDisplayInfo as key
- For system Launcher, migrate to use getPossibleMaximumWindowMetrics instead of getDisplays
- Removed usage of displayId
- In estimateInternalDisplayBounds, use CachedDisplayInfo directly as a key
- When cache retunrs null for the current display (e.g. the 3P launcher case), invalidate the cache and estimate again, and only add to supportedBounds if current display is not found in the new cache

Bug: 227459045
Bug: 198965093
Test: manual
Change-Id: Ibcc05ba483ed31a40d16e3cf49c3f3d43af68cf6
2022-06-09 11:36:47 +01:00
Tony Wickham 9a54d2aa43 Hide taskbar while VoiceInteractionWindow is visible
- Fade out icons (or stashed handle if stashed)
- Move background to APPLICATION_OVERLAY layer (behind VIW)
  - Only for gesture nav
- On home screen in 3 button mode, translate buttons down when assistant
  is invoked

Test: Invoke assistant, ensure it draws above taskbar background and
taskbar stops drawing icons or stashed handle
Bug: 225200928

Change-Id: I7807d30df8f358295b8231d89217c7413f32c6f9
Merged-In: I7807d30df8f358295b8231d89217c7413f32c6f9
2022-06-09 05:21:42 +00:00
Tony Wickham d57cc54a92 Merge "Hide taskbar while VoiceInteractionWindow is visible" 2022-06-09 05:21:17 +00:00
Jerry Chang 6058234f3f Merge "Prevent wallpaper flicker while entering split screen from overview" into tm-dev am: 0b944f6a4d am: ffe3f4aed5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18797269

Change-Id: I75397bae67b8274ebcadb6c2228f05c4ca5e92fc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-09 02:14:32 +00:00
Jerry Chang 291115ce7e Merge "Prevent wallpaper flicker while entering split screen from overview" into tm-dev am: 0b944f6a4d am: 585411a3fa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18797269

Change-Id: I7cf326d0a00c4b1dccbd3472b1adc5ec8aa9b418
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-09 02:07:24 +00:00
Jerry Chang 0b944f6a4d Merge "Prevent wallpaper flicker while entering split screen from overview" into tm-dev 2022-06-09 00:32:49 +00:00
Winson Chung 883facf091 Updating call to match change in interface
Bug: 235273016
Test: Start up several apps and take a heap dump and verify the buffers
      have been preemptively closed prior to the next GC
Change-Id: If7e46e668efa101d4257dd174f31e5e366a02c9d
2022-06-08 23:31:15 +00:00
Becky Qiu 013ea78b95 Merge "[Toast] Add query_length for launcher latency logging." into tm-dev am: fe83fce489 am: 40059b55cc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18783028

Change-Id: Ie18546e63867101d9ac6db9bc0534042864b956a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-08 18:53:22 +00:00
Becky Qiu 9074e97780 Merge "[Toast] Add query_length for launcher latency logging." into tm-dev am: fe83fce489 am: f9dfd06424
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18783028

Change-Id: I339a468a49fc8490154dd0dc4d6266ab6e41f90e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-08 18:52:38 +00:00
Becky Qiu fe83fce489 Merge "[Toast] Add query_length for launcher latency logging." into tm-dev 2022-06-08 18:02:07 +00:00
Tony Wickham d127d521f1 Hide taskbar while VoiceInteractionWindow is visible
- Fade out icons (or stashed handle if stashed)
- Move background to APPLICATION_OVERLAY layer (behind VIW)
  - Only for gesture nav
- On home screen in 3 button mode, translate buttons down when assistant
  is invoked

Test: Invoke assistant, ensure it draws above taskbar background and
taskbar stops drawing icons or stashed handle
Bug: 225200928

Change-Id: I7807d30df8f358295b8231d89217c7413f32c6f9
2022-06-08 17:23:45 +00:00
Jerry Chang c04af333f5 Prevent wallpaper flicker while entering split screen from overview
When launching a pair of apps from overview panel, it will perform
cross-fade animations to transit from overview to the split pair. But
wallpaper might be visible for a while when both overveiw and split pair
is transparent during the transition. This updates to not fade-out
overview until the split pair is finishing showing in foregorund to
prevent the flicker of wallpaper.

Bug: 235137249
Test: swipe to home and enter overview panel, select and swipe down to
      enter a split pair, verified there's no flicker.
Change-Id: Iec1dc49e260f6e46640d47295d7f65dad5c24ab5
2022-06-08 15:26:25 +00:00
TreeHugger Robot 9d3ae204d9 Merge "Show split option without consider the "Lock task mode"" into tm-qpr-dev am: 34bc21ffb0 am: edd37684ed
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18753549

Change-Id: Ie1ef1870d833dd43ae6d8047924443d6063d2be6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-08 04:14:01 +00:00
Winson Chung 775d576ef9 Merge "Revert changes waiting for launcher to resume when transitioning to home" into tm-dev am: 46c9c66048 am: 76863f9602
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18764661

Change-Id: Ia26fe18d22b5d5c483a303260e46b165e66c68cc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-08 03:54:01 +00:00
Winson Chung d3a7d37a57 Merge "Revert changes waiting for launcher to resume when transitioning to home" into tm-dev am: 46c9c66048 am: 0cf33355a0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18764661

Change-Id: I8b0f3b1e6a93f124ba16506872372f6e856dabf2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-08 03:50:20 +00:00
Winson Chung 46c9c66048 Merge "Revert changes waiting for launcher to resume when transitioning to home" into tm-dev 2022-06-08 03:11:16 +00:00
TreeHugger Robot 34bc21ffb0 Merge "Show split option without consider the "Lock task mode"" into tm-qpr-dev 2022-06-08 02:35:57 +00:00