Commit Graph

11086 Commits

Author SHA1 Message Date
Yunfan Chen 4726b4fc21 Merge "Provide IME insets with insetsSizeOverrides" into tm-qpr-dev 2022-07-13 02:45:58 +00:00
Schneider Victor-tulias 5f6b07d31c Pause the AllSetActivity background animation more reliably.
- Pause the animation when the alpha <= 0.1f, rather than 0f
- Pause the animation when the AllSetActivity pauses
- Do not vibrate if the AllSetActivity is not resumed

Bug: 236924895
Test: manually launched AllSetActivity and swiped up at various speeds
Change-Id: I1019f680730cfc72e9ad305d7ae09cff8a1637be
2022-07-12 12:43:13 -07:00
Pat Manning 0041ae3543 Show splash screen in quickswitch if thumbnail wrong aspect/orientation.
Test: manual
Bug: 202826469
Change-Id: I8337876ba26bf82d4f65697a86e6727be713ad53
2022-07-12 18:21:06 +01:00
Alex Chau 2f98748b1b Merge "Make workspace and hotseat scale down in widgets picker" into tm-qpr-dev am: fbd9ebd0a0 am: 252ab19883
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19222026

Change-Id: Ia06c9e56e9676b91c31fe8311381c0fc8e7b0e19
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-12 13:20:05 +00:00
Pat Manning 26f70f777e Add DeviceProfile tests on all attributes across different configurations.
Fix: 237542518
Test: DeviceProfilePhoneTest.kt
Test: DeviceProfileVerticalBarTest.kt
Test: DeviceProfilePhone3ButtonTest.kt
Test: DeviceProfileVerticalBar3ButtonTest.kt
Test: DeviceProfileTabletLandscapeTest.kt
Test: DeviceProfileTabletPortraitTest.kt
Test: DeviceProfileTabletLandscape3ButtonTest.kt
Test: DeviceProfileTabletPortrait3ButtonTest.kt
Test: DeviceProfileTwoPanelLandscapeTest.kt
Test: DeviceProfileTwoPanelPortraitTest.kt
Test: DeviceProfileTwoPanelLandscape3ButtonTest.kt
Test: DeviceProfileTwoPanelPortrait3ButtonTest.kt
Change-Id: I1596dcd1fb8c9b353cdfcab224d7670d88bed716
2022-07-12 14:17:18 +01:00
Pat Manning 9f61347bc6 Clip taskbar size from bottom of thumbnail in overview.
Remove other TaskView clipping logic as it is always false for other sides.

Fix: 234007059
Test: TaskThumbnailViewTest
Change-Id: I56210605fb8c2f433236a82932aaa2800afe392b
2022-07-12 13:27:25 +01:00
Alex Chau fbd9ebd0a0 Merge "Make workspace and hotseat scale down in widgets picker" into tm-qpr-dev 2022-07-12 10:08:20 +00:00
Tony Wickham ae888f4fd2 Fix constant crash when setting MultiStateCallback.DEBUG_STATES=true
AbsSwipeUpHandler didn't increase STATE_NAMES size last time we added a
state. Changed to ArrayList to dynamically update the size, copied from
how GestureState does it, to avoid this issue in the future.

Test: Set DEBUG_STATES to true, verified logs when performing gestures
Bug: 227514981
Change-Id: I747e66a744f4fd25f0b0289e348d8b3ed2376370
2022-07-08 19:22:46 -07:00
Hongwei Wang 53dc30a17a Merge "Adjust the auto-pip app bounds for TaskBar" into tm-qpr-dev am: 46f79bda0c am: 0e8d19d321
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19138223

Change-Id: I81957898a5f1321db6e200d38812ba2a3ceeba7e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-08 22:13:46 +00:00
Hongwei Wang 46f79bda0c Merge "Adjust the auto-pip app bounds for TaskBar" into tm-qpr-dev 2022-07-08 21:31:48 +00:00
Alex Chau 0c4e11b479 Make workspace and hotseat scale down in widgets picker
- Also centralized workspace content scale percentage to DeviceProfile

Test: manual
Fix: 231699666
Change-Id: I3f8dcb9921e0cd93ad391d51120b189005ad07df
2022-07-08 19:03:48 +01:00
Hongwei Wang 9105b7005b Merge "Ensure sendUserLeaveHint be false when split from Overview" into tm-qpr-dev am: 2501f228bd am: 314c95030a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19200327

Change-Id: I60ac7ccb8b4e567f1b92607eabd9a1034aad6139
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-08 17:36:43 +00:00
Hongwei Wang 2501f228bd Merge "Ensure sendUserLeaveHint be false when split from Overview" into tm-qpr-dev 2022-07-08 17:02:58 +00:00
Sunny Goyal 0c4f199019 Merge "Removing tabWidth calculation and using DeviceProfile directly" into tm-qpr-dev am: 251ee0a066 am: f0ee118786
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19038314

Change-Id: Idf7439d7900f69ac5bf75c8567dd9279b0c4bed5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-08 16:25:28 +00:00
Sunny Goyal 251ee0a066 Merge "Removing tabWidth calculation and using DeviceProfile directly" into tm-qpr-dev 2022-07-08 15:39:30 +00:00
Alex Chau 31652e8d7d Merge "Always return portrait orientation handler when Recents activity can rotate" into tm-qpr-dev am: 1eb730a69c am: 129ef58102
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19149828

Change-Id: I064bd8b1b5a3569d0ddd1528dde8b84048cf2d57
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-08 11:36:44 +00:00
Alex Chau 73e3e46cb2 Merge "Use taskbarSize to calculate clippedInsets" into tm-qpr-dev am: 653cad4ec6 am: ee3b9da502
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19168832

Change-Id: I8164da4c5fcde81976b86ea286d695a27c0d7ecd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-08 11:36:25 +00:00
Alex Chau 1eb730a69c Merge "Always return portrait orientation handler when Recents activity can rotate" into tm-qpr-dev 2022-07-08 10:52:01 +00:00
Alex Chau 653cad4ec6 Merge "Use taskbarSize to calculate clippedInsets" into tm-qpr-dev 2022-07-08 10:51:51 +00:00
Alex Chau 90db02dab9 Merge "Enable overlay for all fully visible tasks" into tm-qpr-dev am: 2446d706dc am: 11c1ba8bba
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19197022

Change-Id: Ic7eb0540d2620fa49990f6209932de123306b137
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-08 10:09:56 +00:00
Hongwei Wang a9f258cb12 Adjust the auto-pip app bounds for TaskBar
When on tablet / large-screen devices where TaskBar is present, the
bounds of the recents animation leash would be cut by TaskBar height,
therefore we need to adjust the app bounds for auto-pip accordingly.

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/fmMql9z3gYIu98ntQYklQU
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/hvoqi4bBWyPMgwzEXXrnnC
Bug: 201824622
Test: Enter PiP from GMM on tablet and unfolded foldables, both \
      landscape and portrait, with TaskBar stashed and unstashed.
Change-Id: Id91190b8f0045db4af0f2a3f1993149dc34457ab
2022-07-07 10:41:37 -07:00
Alex Chau fb790ea6c7 Enable overlay for all fully visible tasks
Fix: 238310277
Test: In tablet, all fully visible tasks have overlay enabled
Test: In handheld, only current and not adjacent tasks have overlay enabled
Test: No overlay in groupedTaskView
Change-Id: I59b8bebc4e701d3042217f9af222db0b5337ea16
2022-07-07 15:59:44 +01:00
Hongwei Wang 81dde0d3fb Ensure sendUserLeaveHint be false when split from Overview
This is to ensure that we do not enter PiP when the user intention is to
create split-screen.

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/gSDHKaYxyTEQ6665rr4lt9
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/hTmOVfZDExC14JaJ5fXAZf
Bug: 234070451
Test: Split from menu option when in Overview in both folded and \
      unfolded states, see also videos
Change-Id: Id0a2470f9b37cae2e0897d0570f68909c995f8e0
2022-07-06 16:18:46 -07:00
Pat Manning 05a3256cd1 Merge "Hide action buttons instead of whole overview actions view in order to show share target." into tm-qpr-dev am: 6501379fcc am: 5ddfc2d9d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19149826

Change-Id: I6f007994cde614521bbf832168e9312904113991
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-06 20:45:04 +00:00
Pat Manning 6501379fcc Merge "Hide action buttons instead of whole overview actions view in order to show share target." into tm-qpr-dev 2022-07-06 20:05:03 +00:00
Tony Wickham 6bb2945f78 Merge "Proper fix for gesture nav flicker using runOnPageScrollsInitialized()" into tm-qpr-dev am: 4b2bf90f2c am: 7b0cba0590
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18902861

Change-Id: I7dee6e8d4d42aba10cecd9b57a00b40f90010de8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-06 17:17:25 +00:00
Tony Wickham 46e24a836e Merge "Add null check on mRecentsView in the InputConsumerProxy" into tm-qpr-dev am: ca6480341e am: 885bc9af34
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19153319

Change-Id: I774bac85c7755e8a1b4d8503b9c25f39b91edb55
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-06 17:09:05 +00:00
Tony Wickham 7d6a09b873 Merge "Move TEST_HARNESS_TRIGGER_TIMEOUT to MotionPauseDetector directly" into tm-qpr-dev am: 0c8ceda6e7 am: 5397c871da
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19136583

Change-Id: Id2f8ba91596a7ade5b2337db6687be5fc787cbe6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-06 17:08:56 +00:00
Tony Wickham 4b2bf90f2c Merge "Proper fix for gesture nav flicker using runOnPageScrollsInitialized()" into tm-qpr-dev 2022-07-06 16:30:01 +00:00
Tony Wickham ca6480341e Merge "Add null check on mRecentsView in the InputConsumerProxy" into tm-qpr-dev 2022-07-06 16:27:14 +00:00
Tony Wickham 0c8ceda6e7 Merge "Move TEST_HARNESS_TRIGGER_TIMEOUT to MotionPauseDetector directly" into tm-qpr-dev 2022-07-06 16:25:03 +00:00
Pat Manning 7ab2ff0007 Hide action buttons instead of whole overview actions view in order to show share target.
Test: manual.
Fix: 234606068
Change-Id: I1b7115a6faffd1dcb00528220fe6607f8035c4fe
2022-07-06 14:50:00 +01:00
Thales Lima 92a1e7f1de Add new hotseat bottom margin options am: b8c0595d42 am: a70b07d04c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18605485

Change-Id: I42e901c26b8b34f52e2ba5c8b0edfc8cfcd3ac9f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-06 11:05:01 +00:00
Thales Lima b8c0595d42 Add new hotseat bottom margin options
This changes how the hotseat height is calculated and by consequence how spaces are distributed in the workspace as well. This is the first of a series of changes that will improve and streamline workspace calculations.

Bug: 228998463
Fix: 234023782
Fix: 230191631
Fix: 232914299
Fix: 236238226
Test: manual, HSV and comparing to mocks
Change-Id: If021e8ba2c7c24c0bf9f27a1aa7aa946792ed04f
2022-07-05 15:33:47 +01:00
Alex Chau b00a9fca79 Use taskbarSize to calculate clippedInsets
- Instead of calculating clippedInsets from thumbnail dimension, always use taskbarSize
- Clean up clippedInsets code as only bottom inset is ever present

Fix: 235328056
Test: With taskbar hidden, out of orientation thumbnail has proper size in quickswitch and overview
Change-Id: I3d7fc7899f04862c3401935b10f475e9ab74685a
2022-07-04 18:49:11 +01:00
Tony Wickham ce563b6b44 Add null check on mRecentsView in the InputConsumerProxy
Test: N/A
Fixes: 237217685
Change-Id: I45352f180e3df3298039b183eee743e5a246f543
2022-07-01 16:52:06 -07:00
Jeremy Sim e19aab9010 Merge "Allows Launcher to recover gracefully into OverviewSplitSelect state" into tm-qpr-dev 2022-07-01 21:40:34 +00:00
chaviw 3d1190a5b5 Refactor SurfaceSyncer so it now returns a SurfaceSyncGroup
Test: SurfaceSyncGroupContinuousTest
Test: SurfaceSyncGroupTest

Bug: 237804605
Change-Id: I4e7c1a1509cc64f2992fc07df0684d43fcf3dfc0
2022-07-01 14:01:28 -05:00
Alex Chau 2f8e69ea96 Always return portrait orientation handler when Recents activity can rotate
Fix: 232164817
Test: In tablet, launch app in landscape, rotate to portrait, swipe up and RecentsView should be in correct orientation
Test: In phone, swipe up to potrait home from landscape only apps
Change-Id: Ia7cbd841decc4370aaf3de1f865e5abb9f5f6bf0
2022-07-01 15:06:13 +01:00
Yunfan Chen 7f6eb29b9a Provide IME insets with insetsSizeOverrides
The frameworks extended the API to let window provide insets to given
typed window with insetsSizeOverrides. Migrate to the method to
provide insets for IME.

Test: build
Test: the IME can receive correct insets
Bug: 225200928
Change-Id: Ic8eab5198221bc8de6eca432e8b3e11067c83d57
2022-07-01 13:03:09 +09:00
Jeremy Sim c94f4b779b Allows Launcher to recover gracefully into OverviewSplitSelect state
When Launcher restarts (as the result of a UiModeChange or something else), it attempts to recover its previous state. However, the OverviewSplitSelect state is unique because it requires some additional information to recover properly (the taskId of the staged task and so on). This change makes it so that the relevant information is passed forward in the recovery bundle. Launcher will now restart in the base Overview state, and then immediately apply the saved data to recover the OverviewSplitSelect state.

Fixes: 233019928
Test: Manual
Change-Id: Ie6123ef9c374be000268f82857b696c49213c541
Merged-In: Ie6123ef9c374be000268f82857b696c49213c541
2022-07-01 00:07:54 +00:00
Jeremy Sim fbb19cf016 Allows Launcher to recover gracefully into OverviewSplitSelect state
When Launcher restarts (as the result of a UiModeChange or something else), it attempts to recover its previous state. However, the OverviewSplitSelect state is unique because it requires some additional information to recover properly (the taskId of the staged task and so on). This change makes it so that the relevant information is passed forward in the recovery bundle. Launcher will now restart in the base Overview state, and then immediately apply the saved data to recover the OverviewSplitSelect state.

Fixes: 233019928
Test: Manual
Change-Id: Ie6123ef9c374be000268f82857b696c49213c541
2022-06-30 21:18:42 +00:00
Tony Wickham 539c2703ea Move TEST_HARNESS_TRIGGER_TIMEOUT to MotionPauseDetector directly
- Removed TestProtocol.sForcePauseTimeout and
  TestProtocol.REQUEST_SET_FORCE_PAUSE_TIMEOUT
- Instead, add MotionPauseDetector.TEST_HARNESS_TRIGGER_TIMEOUT, which
  is used when Utilities.IS_RUNNING_IN_TEST_HARNESS.

Test: unbundled/launcher/launcher3_test_platform
Fixes: 232548865
Change-Id: I224e99042b41375cab6bffd555434217518958c5
2022-06-30 12:16:08 -07:00
Tracy Zhou 282a504f1d Merge "Show IME switcher only when physical keyboard is connected in 3 button nav (instead of also when virtual keyboard is visible)" into tm-qpr-dev am: 1092ccacbf am: dc8edee14d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19072234

Change-Id: I7cb11a850f9101dfb226b2bdc4ec2685572e2b1c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-29 22:32:47 +00:00
Tracy Zhou 1092ccacbf Merge "Show IME switcher only when physical keyboard is connected in 3 button nav (instead of also when virtual keyboard is visible)" into tm-qpr-dev 2022-06-29 21:27:17 +00:00
TreeHugger Robot d5daa6d317 Merge "Let launcher clean-up shell transition leashes" into tm-qpr-dev am: 3cbbacebc8 am: 4c9264bd4d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19089545

Change-Id: I8059b97a1fe554131950544cfae8060c8816ec06
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-29 03:01:12 +00:00
Wei Sheng Shih beef5e7a5f Merge "[Shell Transition]Fix live tile be hidden by wallpaper leash." into tm-qpr-dev am: 0dd24fc7c3 am: 96032fd6f9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18911564

Change-Id: If1c895650d3fd3f406173e59e5bd1e0f71449557
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-29 03:00:47 +00:00
TreeHugger Robot 3cbbacebc8 Merge "Let launcher clean-up shell transition leashes" into tm-qpr-dev 2022-06-29 02:41:30 +00:00
Wei Sheng Shih 0dd24fc7c3 Merge "[Shell Transition]Fix live tile be hidden by wallpaper leash." into tm-qpr-dev 2022-06-29 02:10:19 +00:00
Anushree Ganjam 9c249312a4 Merge "Move bitmapSupplier.get() call to a worker thread." into tm-qpr-dev am: a65cc60f9d am: 385928d028
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18962392

Change-Id: I57c8dc859688fd91a8db1a2de80434eef76a5887
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-29 00:03:19 +00:00