Commit Graph

19452 Commits

Author SHA1 Message Date
Tony Huang 021ba2af3b Implement two intents or shortcuts to active split am: e1826dbdc7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22343296

Change-Id: I5fceaa02aea13f0d7fd4c6dd79a15a6220a7fda7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-06 05:52:16 +00:00
Tony Huang e1826dbdc7 Implement two intents or shortcuts to active split
Implement two intents or shortcuts to active split with shell
transition.

Fix: 259368992
Test: manual
Test: pass existing tests
Change-Id: I13522531022b635dc8508a3213b6f414a6b50ce9
2023-04-06 05:19:50 +00:00
Mike Schneider 975fa69260 Fade out navbar on lockscreen -> homescreen transition
Introduces a new SYSUI_STATE_STATUS_BAR_KEYGUARD_GOING_AWAY QuickStepContract flag, to get an early signal when the keyguard is going away

Bug: 275319714
Test: transitions manual (http://shortn/_ySNBaPFHRZ), existing tapl tests
Change-Id: Ie0044ea8e934afa793ca56a4eacc2b776edbdf0e
2023-04-06 05:08:28 +00:00
Jeremy Sim 1b75c85305 Fix bug with split screen not recognizing user differences
This patch fixes a bug where split screen did not fully support launching intents with different users.

The bug arose because SplitSelectStateController only had one place to store user information about the staged intent, mUser, but this disregarded the fact that the secondary app could also be passed in as an intent, and could belong to a different user from that of the initial app and the existing context. We need to support this case now since we now allow second-app selection from Taskbar.

Fixed by splitting the field into mInitialUser and mSecondUser, which will be tightly bound with mInitialTaskIntent and mSecondTaskIntent to make sure that Intents are always launched with the correct UserHandle.

Fixes: 275410160
Test: Manual
Change-Id: Ic904672769be8fd116180d457b36eb567c5ee304
Merged-In: Ic904672769be8fd116180d457b36eb567c5ee304
Merged-In: I1ec49c75d562e4309a41d98010f0eff113c81e9d
2023-04-06 03:44:33 +00:00
Jeremy Sim 0c5262b9e1 Fix bug with split screen not recognizing user differences
This patch fixes a bug where split screen did not fully support launching intents with different users.

The bug arose because SplitSelectStateController only had one place to store user information about the staged intent, mUser, but this disregarded the fact that the secondary app could also be passed in as an intent, and could belong to a different user from that of the initial app and the existing context. We need to support this case now since we now allow second-app selection from Taskbar.

Fixed by splitting the field into mInitialUser and mSecondUser, which will be tightly bound with mInitialTaskIntent and mSecondTaskIntent to make sure that Intents are always launched with the correct UserHandle.

Change-Id: I1ec49c75d562e4309a41d98010f0eff113c81e9d
Fixes: 275410160
Test: Manual
Merged-In: Ic904672769be8fd116180d457b36eb567c5ee304
2023-04-06 03:42:55 +00:00
TreeHugger Robot 1cab940110 Merge "Allow grids to specify if we should start align taskbar in 3 button nav." into tm-qpr-dev am: 65ac592f40 am: a2b770b484 am: 75f7bbc150
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22361600

Change-Id: I42fe5668a3af9c2ec1788d1e9b137c8aa5f435a6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-05 22:55:34 +00:00
Schneider Victor-tulias bbe9ca616a Cleanup ENABLE_TASKBAR_POPUP_MENU
Flag: ENABLE_TASKBAR_POPUP_MENU
Fixes: 270392477
Test: opened a popup menu from the taskbar
Change-Id: I779e5410163aa1c9042d2fe128e0c528d168a964
2023-04-05 15:42:40 -07:00
Schneider Victor-tulias 7d8a0df175 Clean up ENABLE_INPUT_CONSUMER_REASON_LOGGING
flag: ENABLE_INPUT_CONSUMER_REASON_LOGGING
Fixes: 270390028
Test: ran launcher and printed gesture nav logs
Change-Id: I0fd0b82c1c812ddc43beba03bd456795f68ada55
2023-04-05 15:40:32 -07:00
TreeHugger Robot 75f7bbc150 Merge "Allow grids to specify if we should start align taskbar in 3 button nav." into tm-qpr-dev am: 65ac592f40 am: a2b770b484
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22361600

Change-Id: I41eea8cf3fa15c9c5c3f3184f2ba75318332f623
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-05 22:36:14 +00:00
TreeHugger Robot a2b770b484 Merge "Allow grids to specify if we should start align taskbar in 3 button nav." into tm-qpr-dev am: 65ac592f40
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22361600

Change-Id: I71c7f33286ccfa770f87b812c8ec27fa4ecb25ed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-05 22:06:49 +00:00
TreeHugger Robot 65ac592f40 Merge "Allow grids to specify if we should start align taskbar in 3 button nav." into tm-qpr-dev 2023-04-05 21:46:40 +00:00
Stefan Andonian 646315ab2d Merge "Write ViewCapture data to WmTrace when WindowManager dumps." into udc-dev am: 3d877d3b04
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22189048

Change-Id: Ia44f32d543c045f7552288460117bb5d16f2a283
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-05 20:35:21 +00:00
Stefan Andonian 3d877d3b04 Merge "Write ViewCapture data to WmTrace when WindowManager dumps." into udc-dev 2023-04-05 20:19:42 +00:00
Jon Miranda 8e71c52e3d Merge "Allow user gesture to take priority over taskbar translation reset animnatiuon." into tm-qpr-dev am: 4288be12a7 am: b5482137ef am: a65e16fc67
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22464244

Change-Id: I085d1d023edfde39a8d194f29c2fc98a6ed59314
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-05 20:16:08 +00:00
Jon Miranda a65e16fc67 Merge "Allow user gesture to take priority over taskbar translation reset animnatiuon." into tm-qpr-dev am: 4288be12a7 am: b5482137ef
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22464244

Change-Id: I94b42f6ae10da01e70f6d5555ff596a5d7263785
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-05 19:39:11 +00:00
Jon Miranda b5482137ef Merge "Allow user gesture to take priority over taskbar translation reset animnatiuon." into tm-qpr-dev am: 4288be12a7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22464244

Change-Id: I75fdac300d2875b28ef0b230c27396c68b469ade
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-05 18:47:26 +00:00
Jon Miranda 4288be12a7 Merge "Allow user gesture to take priority over taskbar translation reset animnatiuon." into tm-qpr-dev 2023-04-05 18:20:16 +00:00
Brian Isganitis c466d9f384 Merge "Support simple A-Z search in Taskbar All Apps." into udc-dev am: 296f8776f7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22454482

Change-Id: If048c95ad487ae7127645dc18d88312568351991
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-05 17:55:14 +00:00
Jon Miranda 04f051045c Allow grids to specify if we should start align taskbar in 3 button
nav.

Bug: 259712417
Test: check layout on tablet
      check layout on multi_display devices

Change-Id: I282f51e5d76a30e9ad9d8c52d03d4853e965d65a
2023-04-05 10:29:51 -07:00
Brian Isganitis 296f8776f7 Merge "Support simple A-Z search in Taskbar All Apps." into udc-dev 2023-04-05 17:13:52 +00:00
Mike Schneider 7dfeb90521 Hide taskbar content while dreaming. am: f0f94f2ed9 am: 472fe81e62 am: bfc556793c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22387402

Change-Id: Ifc5f87e7589559bbf57ec2bf97f947663b58e0c1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-05 13:21:05 +00:00
Mike Schneider 0200fde6e6 Factor out explicit animation types for the stash/unstash animations. am: 2ebfc41966 am: 5172dd3e36 am: 74e1aa40b5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22359836

Change-Id: I63729b10150fe637c469bf11adc3d05340a7aca4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-05 13:19:43 +00:00
Mike Schneider bfc556793c Hide taskbar content while dreaming. am: f0f94f2ed9 am: 472fe81e62
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22387402

Change-Id: Ib3d617628644087d9db762562506d1a429e29636
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-05 12:49:22 +00:00
Mike Schneider 74e1aa40b5 Factor out explicit animation types for the stash/unstash animations. am: 2ebfc41966 am: 5172dd3e36
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22359836

Change-Id: I25371fc12c63fa7eff1f49f32c4cc22416dba5bd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-05 12:49:13 +00:00
Mike Schneider 472fe81e62 Hide taskbar content while dreaming. am: f0f94f2ed9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22387402

Change-Id: I9a701bd2edcc4d0cadff91eb9983c29d0772364c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-05 12:16:40 +00:00
Mike Schneider 5172dd3e36 Factor out explicit animation types for the stash/unstash animations. am: 2ebfc41966
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22359836

Change-Id: I962f6be19245efef84a70ccd67c5ebf86422c80f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-05 12:16:32 +00:00
Robin Lee 11e6fdd982 Remove keyguard state from onAnimationCancelled
Reason for revert: b/276433230

Test: atest CtsWindowManagerDeviceTestCases:KeyguardTests
Test: atest PowerKeyGestureTests
Bug: 276433230
Change-Id: I62d760206dfd13ba4de7a77d2906b0f90bd2c343
2023-04-05 11:03:40 +02:00
Mike Schneider f0f94f2ed9 Hide taskbar content while dreaming.
When entering the dreaming state, the TaskbarDragLayer is faded out.
Upon wake up, a slight delay is added to  allow the SFPS reader to do
its magic, so the lockscreen-navbar does not pop-in just to be removed
again.

Bug: 271440683
Bug: 275319714
Fixes: 271440683
Test: manual (http://shortn/_cQudGXDSDU)
Change-Id: I34e02f02288bace39626d531d115fc994b11f371
2023-04-05 09:40:21 +02:00
Mike Schneider 2ebfc41966 Factor out explicit animation types for the stash/unstash animations.
This consolidates the logic on what animation to play into one place, and will simplify tuning the lock/unlock transitions

Bug: 275319714
Test: manually (http://shortn/_Q1dTzmIpqK), unit tests
Change-Id: I9ba9c9f13dbbff88d8515e567fdb3dfe5556553e
2023-04-05 09:40:21 +02:00
Brian Isganitis 728d19a0e2 Support simple A-Z search in Taskbar All Apps.
Supporting the Launcher3 search box is low hanging fruit, so we might as
well do it.

Also renamed the feature flag to be for search in general.

Test: Launching, split screen, and popups work in search.
Bug: 216683257
Flag: ENABLE_ALL_APPS_SEARCH_IN_TASKBAR=false
Change-Id: I056b89be6f458d1d90100e34551baa34037574d1
2023-04-04 20:35:31 -04:00
Jon Miranda 41b580bc63 Allow user gesture to take priority over taskbar translation reset animnatiuon.
Bug: 273948325
Test: open overview
      tap to open main app
      quickly swipe up to show taskbar

Change-Id: I0bbb3a354baf9b56652f029a357d8a5803281da5
2023-04-04 17:06:04 -07:00
vadimt 81b228a5fb Re-enabling a couple of tests
Now we have test investigators team, so we can keep the tests in the running state.
I'll monitor these tests for some time to see whether they need immediate attention.

Test: presubmit, abtd
Bug: 187761685
Change-Id: I783f6551fafb4a9f0a2c81541cb0c2a70d22ab58
2023-04-04 16:09:26 -07:00
Brian Isganitis f02cd99fa7 Merge "Dispatch insets from overlay drag layer." into udc-dev am: d063cc0025
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22442062

Change-Id: I3fad73018e76c86d166ca619d52e20aa73bbdb25
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-04 20:55:59 +00:00
Tracy Zhou cac2dc458f Merge "Support second meta key closing the all apps tray" into udc-dev am: 7a8cbd3186
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22328150

Change-Id: I35f0373a05459886cee83a8c41724aad189fe1a1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-04 20:55:37 +00:00
Brian Isganitis d063cc0025 Merge "Dispatch insets from overlay drag layer." into udc-dev 2023-04-04 20:33:31 +00:00
Tracy Zhou 7a8cbd3186 Merge "Support second meta key closing the all apps tray" into udc-dev 2023-04-04 20:13:23 +00:00
Tony Wickham ae43e3a979 Merge "Add debug logs for why taskbar might not be destroyed" into tm-qpr-dev am: c8d8c58f5b am: 3979706e06 am: af02f865ee
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22391708

Change-Id: I5b36759e208dfda2722542a629a1649f8616d936
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-04 16:40:09 +00:00
Tony Wickham af02f865ee Merge "Add debug logs for why taskbar might not be destroyed" into tm-qpr-dev am: c8d8c58f5b am: 3979706e06
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22391708

Change-Id: I6213932faa483c24c9d083b95ee9247c47127128
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-04 16:37:08 +00:00
Tony Wickham 3979706e06 Merge "Add debug logs for why taskbar might not be destroyed" into tm-qpr-dev am: c8d8c58f5b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22391708

Change-Id: I1bea5537e4bfbe6bac55010f58979c2f9fcf6fe4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-04 16:07:16 +00:00
Tony Wickham c8d8c58f5b Merge "Add debug logs for why taskbar might not be destroyed" into tm-qpr-dev 2023-04-04 15:40:28 +00:00
TreeHugger Robot c766e052a7 Merge "Import translations. DO NOT MERGE ANYWHERE" into udc-dev 2023-04-04 07:15:18 +00:00
Tracy Zhou cb93ec5f21 Support second meta key closing the all apps tray
Bug: 270244718
Test: Tap meta key twice, see all apps tray open an close
Change-Id: I6db84aa16b7d21663053bf1b269af6ba36874e47
2023-04-03 20:26:39 -07:00
Brian Isganitis ecded08ddd Dispatch insets from overlay drag layer.
This simplifies insets handling for All Apps and EDU, and also fixes
some edge cases with All Apps popup menus. KeyboardQuickSwitchView now
needs to ignore insets since it has a hardcoded top margin,
keyboard_quick_switch_margin_top.

Fix: 276804708
Test: All Apps, EDU, and Quick Switch all have proper insets handling.
Change-Id: I93237a057b4f9ae62f71a70c59a58f3c8401c102
2023-04-03 20:37:11 -04:00
Tony Wickham df59884370 Add debug logs for why taskbar might not be destroyed
Test: Manually read log output
Flag: None
Bug: 254119092
Change-Id: Ibaa7ffdc91030c5c999ddc5f2807a55763854331
2023-04-03 23:20:57 +00:00
Sebastián Franco b951e44d2c Merge "Correctly disposing of LauncherUnlockAnimationController" into udc-dev am: 60ad6b5abb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22360314

Change-Id: I3897787b6d00b06dde8a0b0f62e049005290fe3b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-03 23:10:39 +00:00
Jon Miranda 9a97324372 Merge "Fix badged icons / icons with notification dot being cropped." into tm-qpr-dev am: 175f5c865b am: 6e74ffac80 am: 529ee0e426
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22432562

Change-Id: I08d081d20c867e64602a7ef968cebf356fee69fc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-03 23:08:56 +00:00
Sebastián Franco 60ad6b5abb Merge "Correctly disposing of LauncherUnlockAnimationController" into udc-dev 2023-04-03 22:54:36 +00:00
TreeHugger Robot b01993843f Merge "Stash taskbar on swipe to go home for 3p fallback launcher." into tm-qpr-dev am: f00e831f05 am: 08e0083ee9 am: a889f63ca1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22424377

Change-Id: I2f7e6146972de850bcd9178c854fafc0a830f252
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-03 22:34:17 +00:00
Mike Schneider 738dab5d90 Merge "Change the use of ScreenLifecycle to WakefulnessLifecycle." into tm-qpr-dev am: 99cd75e9e3 am: efbe9408e0 am: 7d00aa3b75
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22322154

Change-Id: Ie9741de3299ee9d2742b36d52b82fbe3e8aeae69
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-03 22:32:59 +00:00
Fengjiang Li e789f11570 Merge "[Predictive Back] Gate feature under experiment flag" into udc-dev am: 9529f08b1b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22363525

Change-Id: If398410bac76291df888d9d45e25579fc8a75a72
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-03 21:52:00 +00:00