Commit Graph

12553 Commits

Author SHA1 Message Date
Schneider Victor-tulias 030ba11d8c Merge "Revert "Revert^2 "Cancel gestures on launcher destroy""" into tm-qpr-dev am: 7d346bf90b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21100567

Change-Id: I813c4ccadb4bb063a844229004c2fdab4a4f9784
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-30 21:55:56 +00:00
Schneider Victor-tulias 2980adb209 Merge "Update the gesture nav tutorial to use a mock transient taskbar" into tm-qpr-dev 2023-01-30 21:40:44 +00:00
Schneider Victor-tulias 7d346bf90b Merge "Revert "Revert^2 "Cancel gestures on launcher destroy""" into tm-qpr-dev 2023-01-30 21:39:50 +00:00
TreeHugger Robot 90c8076e28 Merge "Let createSetStateAnimator return null when needed" into tm-qpr-dev am: b42c293a82
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21136525

Change-Id: I512e0ee056a57a91f781ed022f0ca6f37472800e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-30 21:38:33 +00:00
Tony Wickham f37c33cd50 Merge "Remove ALPHA_INDEX_IME_BUTTON_NAV" into tm-qpr-dev am: d9dd02b451
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21122190

Change-Id: I0a5c3b86d81dd17258913895b34b63fe6c7a3028
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-30 21:37:14 +00:00
TreeHugger Robot b42c293a82 Merge "Let createSetStateAnimator return null when needed" into tm-qpr-dev 2023-01-30 21:19:10 +00:00
Sunny Goyal 669b71f5b3 Introducing CellPosMapper which allows mapping between UI position
and model position

Test: atest CellPosMapperTest
Bug: 188081026
Change-Id: If5c6b3df5ad240317bb535c675f6ead94084238e
2023-01-30 12:17:09 -08:00
Alex Chau 84ba9fb5fe Revert "Revert "Add debug logs for hotseat disapperaed bug""
This reverts commit f4269f01d7.

Reason for revert: bug re-opened
Bug: 260135164

Change-Id: I818cc3f66c55148a4fbd19714adb25d7d4a0d39e
2023-01-30 19:29:45 +00:00
Tony Wickham d9dd02b451 Merge "Remove ALPHA_INDEX_IME_BUTTON_NAV" into tm-qpr-dev 2023-01-30 19:11:47 +00:00
Winson Chung 6fd2d639ce Merge "Fix issue with floating rotation button being in the wrong corner (launcher)" into tm-qpr-dev am: 0cf4c14fe0 am: c41fba5541
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21118628

Change-Id: I9308412c7172adbce16ac639d120e9aced53555e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-30 18:57:26 +00:00
Hongwei Wang f3ca8dda8b Merge "Refactor to use the PipContentOverlay" into tm-qpr-dev am: 7bf3a9bffc am: 3e25594560
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21118637

Change-Id: I47507b96eaa41cbad21b9509bf1624dc033ebffb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-30 18:46:37 +00:00
Winson Chung c41fba5541 Merge "Fix issue with floating rotation button being in the wrong corner (launcher)" into tm-qpr-dev am: 0cf4c14fe0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21118628

Change-Id: I70d1c6aeafe79ae26fae148becb5455d9d7c68fe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-30 18:42:12 +00:00
Hongwei Wang 3e25594560 Merge "Refactor to use the PipContentOverlay" into tm-qpr-dev am: 7bf3a9bffc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21118637

Change-Id: I6e38c8f8c308d95e655de177e6c65a70e9c799f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-30 18:06:52 +00:00
Tracy Zhou 31b50aa743 Merge "Disable quickswitch for trackpad gestures" 2023-01-30 18:00:47 +00:00
Winson Chung 0cf4c14fe0 Merge "Fix issue with floating rotation button being in the wrong corner (launcher)" into tm-qpr-dev 2023-01-30 17:54:14 +00:00
Hongwei Wang 7bf3a9bffc Merge "Refactor to use the PipContentOverlay" into tm-qpr-dev 2023-01-30 17:43:45 +00:00
Alex Chau f6c231d575 Let createSetStateAnimator return null when needed
- This is to fix a regression from http://ag/20968628. Instead of returning null and change the behavior, return null and do null checks on callers

Fix: 266109700
Test: Swipe AllApps from home on tablets, no flicker on taskbar, for gesture and 3-button
Change-Id: Ic1900ef396b00187ce9eced906c4628436481213
2023-01-30 16:59:43 +00:00
Chavi Weingarten 0aa21b3918 Merge "Updated SurfaceSyncGroup API definition." 2023-01-30 16:35:54 +00:00
Luca Zuccarini 8e1818e789 Merge "[Toast] Introduce SysUI's animation library to the transition manager." into tm-qpr-dev am: f70e2f0a95 am: 20650ab555
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20836638

Change-Id: I73f3653bd7777df7d5454add3ebc5c7b5663d088
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-30 15:38:17 +00:00
Luca Zuccarini 20650ab555 Merge "[Toast] Introduce SysUI's animation library to the transition manager." into tm-qpr-dev am: f70e2f0a95
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20836638

Change-Id: Ic4f5610fe4c04a5b876356d9912bf8f9eabc35b2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-30 14:51:12 +00:00
Luca Zuccarini f70e2f0a95 Merge "[Toast] Introduce SysUI's animation library to the transition manager." into tm-qpr-dev 2023-01-30 14:25:48 +00:00
Tracy Zhou 6692653328 Disable quickswitch for trackpad gestures
Bug: 261815244
Test: make sure (1) if user starts by swiping up, disable quickswitch (they will land either in overview, home, or the current app) (2) if user starts by quick switching, cancel the gesture

Change-Id: I6b59cec0089d5e6f22eee3241c6336345dd15dce
2023-01-29 23:56:00 -08:00
Winson Chung 4bfef12fdd Merge "Include SysUI state in stashing check" into tm-qpr-dev am: 0a381d4115 am: 3b67bcd0f9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21120299

Change-Id: I89158bb65c5db395dac6b9e9bde58e65b9f547c6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-29 07:07:30 +00:00
Winson Chung 3b67bcd0f9 Merge "Include SysUI state in stashing check" into tm-qpr-dev am: 0a381d4115
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21120299

Change-Id: Ie35303e08e9658497be60b193fd405ddcea89c63
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-29 06:24:23 +00:00
Winson Chung 0a381d4115 Merge "Include SysUI state in stashing check" into tm-qpr-dev 2023-01-29 05:57:50 +00:00
Winson Chung 62c74f9633 Include SysUI state in stashing check
Fixes: 266890635
Test: Open home controls over lockscreen, go back
Change-Id: Ic486ccdc4698f53507bc56875ccebef06826a6a4
2023-01-29 05:57:39 +00:00
Vinit Nayak 7ffc338a42 Merge "Launch initial split from taskbar in overview app menu" into tm-qpr-dev am: d710773889 am: fd185e6402
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20956773

Change-Id: I78f6b8fee567230a59d533ca17bebc3c578e9040
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-28 07:08:17 +00:00
Vinit Nayak fd185e6402 Merge "Launch initial split from taskbar in overview app menu" into tm-qpr-dev am: d710773889
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20956773

Change-Id: I65ec9dbc148013ed6143f868398078e4f32bf4a7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-28 06:26:13 +00:00
Vinit Nayak d710773889 Merge "Launch initial split from taskbar in overview app menu" into tm-qpr-dev 2023-01-28 05:25:12 +00:00
Jagrut Desai e42feb4db5 Merge "Add divider line into taskbar." into tm-qpr-dev am: 307b6e2475 am: 617cb7c4e1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20968623

Change-Id: I0e60024a0c3ef3df5d5eb3994cf705a3b8d4ca4f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-28 02:21:47 +00:00
Jagrut Desai 617cb7c4e1 Merge "Add divider line into taskbar." into tm-qpr-dev am: 307b6e2475
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20968623

Change-Id: Iebee8c1a98ff8f5ee1bc60cd72921fe417878dd5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-28 01:54:25 +00:00
Jagrut Desai 307b6e2475 Merge "Add divider line into taskbar." into tm-qpr-dev 2023-01-28 01:22:03 +00:00
Vinit Nayak 49dc6d2712 Launch initial split from taskbar in overview app menu
* Consolidated init calls in SplitSelectStateController
* Also add support to launch from taskbar all apps
* Add logic in SplitSelectStateController to know whether
or not we need to dismiss existing TaskView vs relying
on mSplitHiddenTaskView null check
* Default click handling for SplitShortcut is to start
split selection mode

Bug: 251747761
Test: Initiated split from smart actions, thumbnail app
icon, home, taskbar in overview, all apps. Saw it choose
the latest thumbnail

Change-Id: Ib4f64e619c97615af458a19a9c0efd86c92979d9
2023-01-27 16:46:14 -08:00
Schneider Victor-tulias ece659d11a Revert "Revert^2 "Cancel gestures on launcher destroy""
This reverts commit 377eb40985.

Reason for revert: failing tests
Fixes: 266606727
Fixes: 266621449

Change-Id: I61094be02fb73c5ad65ee65be5ed93a3364f37ef
2023-01-27 14:38:19 -08:00
Stefan Andonian 59d78bea68 Merge "Load home properly even if AllSetActivity fails Go To Home Swipe." into tm-qpr-dev am: d01497d714 am: 8e97128a7e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21048063

Change-Id: I172bb350e7ccb70ae60f17f4b579a8b0eb49a0ef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-27 20:14:43 +00:00
Stefan Andonian 8e97128a7e Merge "Load home properly even if AllSetActivity fails Go To Home Swipe." into tm-qpr-dev am: d01497d714
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21048063

Change-Id: Ia04f38a55b7ac76f895719878ea5cafc7e22e1a1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-27 19:25:27 +00:00
Tony Wickham 602f3074f9 Remove ALPHA_INDEX_IME_BUTTON_NAV
Taskbar already stashes when IME is showing, which hides the taskbar
icons in 3 button mode. Hence this extra flag seems redundant and breaks
Transient Taskbar, which allows unstashing taskbar over IME

Test: Install 3P keyboard, swiping taskbar up over IME still shows icons
Test: Connect physical keyboard, icons still hide in 3 button nav when
the IME switcher is showing
Fixes: 264723145

Change-Id: Iafb89e765668d70a1bfad2e136957a2ef8924514
2023-01-27 17:24:46 +00:00
Luca Zuccarini 2098381808 [Toast] Introduce SysUI's animation library to the transition manager.
Bug: 250588519
Test: manual, see videos in bug
Change-Id: Iccc440c95ecc14d39e35d911798e239b698b950a
2023-01-27 13:49:40 +00:00
Stefan Andonian 713517ee65 Load home properly even if AllSetActivity fails Go To Home Swipe.
If the user swipes to go home before the Launcher can startup properly,
the user will be stuck on a black screen after swiping up to go home
after reaching the AllSet page after completing the setup wizard. This
change forces the device to go home if the go to home swipe is going to
fail (aka if the Launcher hasn't finished initializing).

Bug: 261901912
Test: Manually verified the device doesn't get stuck like before. UX is
not perfect since the Launcher still needs to load for a few hundred
milliseconds, but the user doesn't get stuck on a black screen.

Change-Id: I8590e7ec1e341ba17db853900de7186284b07e93
2023-01-26 22:03:15 +00:00
Hongwei Wang 3f3ae45154 Refactor to use the PipContentOverlay
Use the same PipContentOverlay in Launcher as in WMShell, this should
further make it easier to experiment the app icon overlay (solid
background with app icon as an overlay).

Bug: 265998256
Test: Enter PiP from Google Maps, ensure the content overlay works
Change-Id: I1ce008700da44bdc28b9515e03aeb3c9c9633f59
2023-01-26 13:33:09 -08:00
Bryce Lee 29953016ac Merge "Do not allow system gestures when dreaming." into tm-qpr-dev am: 3a0e420e6f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20968629

Change-Id: I1b74df97bd786656d308519248ba416c542ed88f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-26 21:27:02 +00:00
Bryce Lee 3a0e420e6f Merge "Do not allow system gestures when dreaming." into tm-qpr-dev 2023-01-26 21:08:59 +00:00
Winson Chung 39def7300e Fix issue with floating rotation button being in the wrong corner (launcher)
- Add option for the rotation button to be positioned to the right
  when in ROTATION_0

Bug: 265197526
Test: atest FloatingRotationButtonPositionCalculatorTest
Test: foldable-folded (floating rot button in sysui, natural rot=rot_0)
      foldable-unfolded (floating rot button in launcher, natural rot=rot_0)
      tablet (floating rot in launcher, natural rot=rot_270)
Change-Id: I856a0be2e10fceb34254cd58ceb58dfa8a1819bd
2023-01-26 20:41:54 +00:00
Tony Wickham b9ecff07e4 Fix TaskbarBackgroundRenderer not being applied correctly in 2 cases
- Rename isInAppAndNotStashed to areTaskbarIconsVisibleAndNotStashing,
  and check taskbarViewController.areIconsVisible() accordingly. This
  effectively handles the same as before, but also handles Overview,
  which is not inApp but does have areIconsVisible()
  - This fixes bubble scrim over overview taskbar, as well as showing
    taskbar background behind assistant in 3 button mode.
- Also fix nav bar button dark density changing when applying the
  separate background for assistant

Test: Open bubble and invoke assistant in overview, over IME, inside
an app, over home
Fixes: 266715337

Change-Id: Ie655de7abd1634e2165543d57664d7c7e054a986
2023-01-26 00:53:01 +00:00
Schneider Victor-tulias 48f3ee9e06 Update the gesture nav tutorial to use a mock transient taskbar
These are temporary UI updates until the redesigned gesture nav tutorial is ready.

Fixes: 265857697
Test: ran tutorial on large screen device
Change-Id: I3e50de1b0f5cd9e84dccea17c7ac07d3668e1168
2023-01-25 11:12:04 -08:00
Jagrut Desai 98cea8165d Add divider line into taskbar.
Test: Visual(Pics in buganizer)
Bug: 265347148
Change-Id: Ia2fbd5f0938b7eed520652573f4aca5346685429
2023-01-25 10:09:26 -08:00
Bryce Lee 05c9d551d8 Do not allow system gestures when dreaming.
Currently, TaskBar expansion is allowed when an activity context is
available. Since Dreams are implemented as an activity, this leads
to being able to expand the TaskBar over a dream. This changelist
updates the logic to not allow system gestures when dreaming.

Test: manual
Bug: 265755700
Change-Id: If58608c1e491da7906a2615681da0514fa49cfc8
Merged-In: If58608c1e491da7906a2615681da0514fa49cfc8
2023-01-25 17:15:18 +00:00
Azhara Assanova bf0e65a6e9 Add a no-op flag to mutable implicit PendingIntents
Starting from target SDK U, we will block creation of mutable
PendingIntents with implicit Intents because attackers can mutate the
Intent object within and launch altered behavior on behalf of victim
apps. For more details on the vulnerability, see go/pendingintent-rca.

From a quick analysis, we concluded that the intents passed into
getPendingIntent() can be both explicit and implicit, so we added
a no-op FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT to bypass the above block of
mutable implicit PendingIntents.

The flag is introduced in ag/21018466.

Bug: 236704164
Bug: 229362273
Test: TH passes
Change-Id: Ia26c8f92d1b4b50e04bc6b487619f54efc7d5a1d
2023-01-25 15:39:35 +00:00
Tracy Zhou fc47142fbe Merge "Revert "Swipe-up from the bar area on the home screen should pull up overview"" 2023-01-25 07:59:10 +00:00
Tracy Zhou 16938d35a9 Revert "Swipe-up from the bar area on the home screen should pull up overview"
This reverts commit c5985751c4.

Reason for revert: Confirmed with Manasi that we don't want to have a different behavior for the trackpad gesture even if it starts from the task bar area. It should be treated the same.

Change-Id: I5817c477968545e452d7600d43825209e2c75c37
2023-01-25 07:58:45 +00:00