Commit Graph

60459 Commits

Author SHA1 Message Date
Anushree Ganjam d1a3e7ff2c Move bitmapSupplier.get() call to a worker thread.
bitmapSupplier.get() is called twice which is unnecessary.
Call bitmapSupplier.get() in the constructor instead.

Bug: 232850298
Test: Manual.
OverView - shareImageToTarget https://b.corp.google.com/issues/232850298#comment8
Screenshot share from Toast - https://b.corp.google.com/issues/232850298#comment7

Change-Id: I920f89b90fafcc0d51b1b948fd76fdc9aaee4c52
2022-06-28 00:42:53 +00:00
Xin Li 6bb9fe4344 Merge tm-dev-plus-aosp-without-vendor@8763363
Bug: 236760014
Merged-In: I38fb23dcc85676593a3f8f0851676bc526802d2e
Change-Id: I077e6bd0ac2cdf53c93261d51a04eba9e1da79b0
2022-06-27 23:39:09 +00:00
Tracy Zhou 894d75f27a Merge "Perform haptic feedback on nav button key press" into tm-qpr-dev am: 6663ebba3e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19053212

Change-Id: Ib0eac0bbd999ebaebcaafed1265987b252cd78bc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-27 23:20:45 +00:00
Evan Rosky 6f4613749e Let launcher clean-up shell transition leashes
Originally disabled this when we were directly using
the transition's leashes for animation (since the transition
system owns those leashes). However, now that we create our
own leashes in RemoteAnimationAdapterCompat, we can use this
logic again.

Bug: 235616350
Test: launch and close app in quick succession
Change-Id: I27f70f26e114443aeb83671437f54747aae92c51
2022-06-27 16:07:33 -07:00
Tracy Zhou 6663ebba3e Merge "Perform haptic feedback on nav button key press" into tm-qpr-dev 2022-06-27 22:55:42 +00:00
Jeremy Sim 96c2aad623 Prevents split thumbnails from flipping when entering Overview in fake seascape
Fixes a bug where the user would see the splitscreen thumbnails swap position when entering Overview from fake seascape.

The bug arose because Overview's layout in fake seascape previously respected the primary-top secondary-bottom rule for placing splitscreen thumbnails. Actually, this needs to be flipped to preserve left-right orientation: If the user sees Task A on the left, it should always be on the left no matter how they rotate their device.

Fixed by swapping thumbnail and icon positions in SeascapePagedViewHandler#setSplitTaskSwipeRect() and setSplitIconParams(). Fake seascape will now show primary thumbnail on the "bottom" of the screen and secondary on "top."

This patch also corrects a minor calculation bug affecting icon alignment.

Fixes: 221133532
Test: Manual
Change-Id: Id587cf3815e64792d758d0e352da1e1e38cb4348
2022-06-27 22:33:30 +00:00
Pinyao Ting f6fc56bfc7 Merge "Cache and reuses LauncherAppWidgetHostView when launcher resumes" into tm-qpr-dev am: 6c7361fb46 am: 1d6add6c85
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18801673

Change-Id: Ibca945d73376bdad01d28a1839735b28da8b9727
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-27 21:24:08 +00:00
Pinyao Ting 1d6add6c85 Merge "Cache and reuses LauncherAppWidgetHostView when launcher resumes" into tm-qpr-dev am: 6c7361fb46
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18801673

Change-Id: Ib1c506ac8fd6eb24727176097a4b4ce1437e4076
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-27 21:06:37 +00:00
Pinyao Ting 6c7361fb46 Merge "Cache and reuses LauncherAppWidgetHostView when launcher resumes" into tm-qpr-dev 2022-06-27 20:51:22 +00:00
Sunny Goyal 977838b568 Fixing nullpointer exception when accessing StatsLogger before initialization
Bug: 236227523
Test: Manual
Change-Id: I2caaa143ab2ddd4442d5c56152c7b4a7c723b92b
2022-06-27 13:16:19 -07:00
Hongwei Wang 56911984e4 Scale the surface by progress when auto enter PiP
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/coTRupQrNjoSwGDzMhA4X7
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/fDqPTOPwyxHaZ4HLZDF7di
Bug: 235268241
Test: Verify the auto enter PiP animation for YouTube in \
      both folded and unfolded state. See also videos.
Change-Id: I6fc10d6a733b8bdd3587994e8e27c4d6ab7e4f39
2022-06-27 11:32:15 -07:00
Sunny Goyal 008238ef43 Fixing widget size cache loop end-boundary
Bug: 236961658
Test: Verified on device
Change-Id: Ied629cd875a01abc45a7d055edfde5e156de53ea
2022-06-27 11:25:57 -07:00
Tony Wickham 5ce98a18f4 Merge "Log when MotionPauseDetector detects onMotionPauseChanged" into tm-qpr-dev am: c4405218ca am: b653ac621b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19036576

Change-Id: Ie360f187fcae3078baf6ba8701547bb8e0e1e689
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-27 18:10:25 +00:00
Tony Wickham b653ac621b Merge "Log when MotionPauseDetector detects onMotionPauseChanged" into tm-qpr-dev am: c4405218ca
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19036576

Change-Id: I9607413228916c51b592382bddf5140ee828bc6a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-27 17:51:05 +00:00
Tony Wickham c4405218ca Merge "Log when MotionPauseDetector detects onMotionPauseChanged" into tm-qpr-dev 2022-06-27 17:28:17 +00:00
Alex Chau 5a51002333 Merge "Add test to dismiss AllApps bottom sheet" into tm-qpr-dev am: f52a13e424 am: 75b1f6d5ff
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18993353

Change-Id: I827e3c23f957eaaed6610a41f351371849bfc104
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-27 10:27:27 +00:00
Alex Chau aacfa2b285 Merge "In AllApps search mode, only consume touch over visible container" into tm-qpr-dev am: 7cbe51c22f am: 1c3b2c017e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18994756

Change-Id: I5f4c0ebdbf280aaf8a5ad6d305e87eb301ee1957
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-27 10:27:17 +00:00
Vaibhav Devmurari 207e374413 Allow taskbar and taskbar all apps window to receive split touches
Adding feature to allow UI interaction during Drag and drop.
To allow user to interact with taskbar UI during D&D, the window
should support FLAG_SPLIT_TOUCH to receive touch events while user
using D&D.
DD: go/global_drag_and_drop

Test: manual
Bug: 220109830
Change-Id: Icd549aa272c140d865d89eeb9f5619b5ab13c015
(cherry picked from commit 0074baa82e)
2022-06-27 10:11:58 +00:00
Vaibhav Devmurari 3253d8f4a3 Merge "Allow taskbar and taskbar all apps window to receive split touches" 2022-06-27 10:11:30 +00:00
Alex Chau 75b1f6d5ff Merge "Add test to dismiss AllApps bottom sheet" into tm-qpr-dev am: f52a13e424
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18993353

Change-Id: I6a4954c180f33d26b30cd0fd14b386ece21758a8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-27 10:10:47 +00:00
Alex Chau 1c3b2c017e Merge "In AllApps search mode, only consume touch over visible container" into tm-qpr-dev am: 7cbe51c22f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18994756

Change-Id: I11f6c9a5ee3bca8f973801d4d0705bab786e0dd1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-27 10:10:33 +00:00
Alex Chau f52a13e424 Merge "Add test to dismiss AllApps bottom sheet" into tm-qpr-dev 2022-06-27 09:56:58 +00:00
Alex Chau 7cbe51c22f Merge "In AllApps search mode, only consume touch over visible container" into tm-qpr-dev 2022-06-27 09:56:42 +00:00
Chilun Huang 7662dae663 Add TAPL API for adding app icon to hotseat
Please refer to go/tapl-add-icon-to-hotseat for more details.

Bug: 231400119
Test: atest NexusLauncherTests:TaplTestsQuickstep#testAddDeleteShortcutOnHotseat
Change-Id: I8cadecbe742413e3ce35ff269c0f78057331532c
Merged-In: I8cadecbe742413e3ce35ff269c0f78057331532c
2022-06-27 11:10:21 +08:00
Chilun Huang 22e829eb2f Merge "Add TAPL API for adding app icon to hotseat" 2022-06-27 02:33:04 +00:00
Tracy Zhou 015adda83c Stash task bar when ime switcher is showing
Bug: 226489759
Test: connect to physical keyboard and select a typable field, and make sure the task bar is stashed
Change-Id: Ie1cf753f793dc9cb350e57e9448c2913260992ca
2022-06-25 16:26:13 -07:00
Android Build Coastguard Worker d0d4c88345 Snap for 8770325 from f9fafe7a92 to tm-qpr1-release
Change-Id: I49992b629a97ad353b688d355554a13e43bba881
2022-06-25 23:24:36 +00:00
Tracy Zhou 38afa9ba34 Merge "Fix ime switcher not showing for 3-button nav" into tm-qpr-dev am: f9fafe7a92 am: 03c4e3af2d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19066374

Change-Id: Id04f26c0e71181cfb32a7cd5932f06c6c7cc832b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-25 07:07:25 +00:00
TreeHugger Robot 90982ba3bf Merge "Treat all apps predictions as all app icons when animating icons to their original position" into tm-qpr-dev am: ce12869fad am: 9d9895c100
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19066650

Change-Id: I29ee913fa3d83b3c05a705a71cc87cfc92b64764
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-25 07:06:13 +00:00
Tracy Zhou 03c4e3af2d Merge "Fix ime switcher not showing for 3-button nav" into tm-qpr-dev am: f9fafe7a92
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19066374

Change-Id: I69d9c0c7c1e31dd3a607958eacd453691a2c05db
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-25 06:48:56 +00:00
TreeHugger Robot 9d9895c100 Merge "Treat all apps predictions as all app icons when animating icons to their original position" into tm-qpr-dev am: ce12869fad
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19066650

Change-Id: I5ef87354474e981db5665360c49d24289e6da473
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-25 06:48:39 +00:00
Tracy Zhou 849a0c4e81 Show IME switcher only when physical keyboard is connected in 3 button nav (instead of also when virtual keyboard is visible)
Bug: 226489759
Test: connect to a physical keyboard in 3 button nav and make sure the ime switcher shows; and doesn't show with virtual keyboard
Change-Id: Ib9a5880eb1bd6d5b877a9f3789ce858f399c4910
2022-06-24 23:40:41 -07:00
Tracy Zhou f9fafe7a92 Merge "Fix ime switcher not showing for 3-button nav" into tm-qpr-dev 2022-06-25 06:36:39 +00:00
TreeHugger Robot ce12869fad Merge "Treat all apps predictions as all app icons when animating icons to their original position" into tm-qpr-dev 2022-06-25 06:33:16 +00:00
Vadim Tryshev 83f326adcd Merge "Ignoring failing test" into tm-qpr-dev am: 630fd0b09f am: 17ff5150fa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19067510

Change-Id: Ia93d634bd35ed14330a24f22f14e88e430cfdb66
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-25 02:24:03 +00:00
Vadim Tryshev 17ff5150fa Merge "Ignoring failing test" into tm-qpr-dev am: 630fd0b09f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19067510

Change-Id: I33adb1cbb7c890df9e03985d7654b115df7fa2a0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-25 02:06:18 +00:00
Vadim Tryshev 630fd0b09f Merge "Ignoring failing test" into tm-qpr-dev 2022-06-25 01:44:45 +00:00
TreeHugger Robot f370fa6263 Merge "Not using calculator from test" into tm-qpr-dev am: adf526ab74 am: 522f51f3ee
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19053222

Change-Id: If51d2f54064c411df4f6b664b5afd14b0426029b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-24 21:50:48 +00:00
TreeHugger Robot 522f51f3ee Merge "Not using calculator from test" into tm-qpr-dev am: adf526ab74
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19053222

Change-Id: Ic650beec55ea63b0634edf0996c2a6555b99cd4c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-24 21:31:04 +00:00
TreeHugger Robot adf526ab74 Merge "Not using calculator from test" into tm-qpr-dev 2022-06-24 21:07:10 +00:00
Vadim Tryshev 542d3cf4f2 Ignoring failing test
Bug: 233075289
Change-Id: I4f270127b72255037dd5aaccdc375dfebb6b1dc4
Test: presubmit
2022-06-24 20:50:42 +00:00
Sunny Goyal 46e368f755 Removing tabWidth calculation and using DeviceProfile directly
This removes some dependency on FloatingHeaderView, making it
easier to replace

Bug: 234008165
Test: Verified that the UI does not change
Change-Id: I363c98c23f84fe570ea9cb1a40128359f5b67c9f
2022-06-24 13:32:42 -07:00
Android Build Coastguard Worker 02802dbec0 Merge cherrypicks of [19053219] into tm-qpr1-release.
Change-Id: Ib8d4007b4cba132cc3c0fb2d74086e965d6fbbda
2022-06-24 19:34:30 +00:00
Sunny Goyal 5aff4cf015 Moving widget padding to drawable instead of using itemDecorator
ItemDecorator uses item position which is not stable during animations.
Moving it to the background allows the padding to be stable

Bug: 236961658
Test: Verified that the app doesn't crash.
Change-Id: Ied12077de4097e827c5c4157f5196346a301f185
(cherry picked from commit ed681548fc)
Merged-In: Ied12077de4097e827c5c4157f5196346a301f185
2022-06-24 19:34:27 +00:00
Schneider Victor-tulias a36e5f13c0 Treat all apps predictions as all app icons when animating icons to their original position
Taskbar all apps predictions were being ignored when animating a cancelled drag to their original position. This was causing a null pointer since they no longer had a view parent that could be used. These icons will now animated to the taskbar all apps icon.

Fixes: 236669335
Test: cancelled drags of taskbar icons, predicted taskbar icons, taskbar all apps icons and taskbar all apps prediction icons
Change-Id: I2a9a1ed4120927a08b8c8341ad36dfdb95fef608
2022-06-24 12:22:04 -07:00
Tracy Zhou 804feb76e7 Fix ime switcher not showing for 3-button nav
Bug: 226489759
Test: connect to a physical keyboard in 3 button nav and make sure the ime switcher shows
Change-Id: Iabde149e8bcd1edacff8e039f956628c69341ecb
2022-06-24 11:17:40 -07:00
Alex Chau d936273b1f Add test to dismiss AllApps bottom sheet
- http://docs/document/d/1ITZDMchoMndfa0nMuOTXbhKhK2aMDz0AT9dgusgxEro

Bug: 236360930
Test: TaplTestsLauncher3.testAllAppsDeadzoneForTablet
Test: TaplTestsNexus.testSearchDeadzoneForTablet
Change-Id: I62adb1d6ef237f9bca3812b8cdce9e5a8383158f
2022-06-24 18:29:43 +01:00
Vaibhav Devmurari 0074baa82e Allow taskbar and taskbar all apps window to receive split touches
Adding feature to allow UI interaction during Drag and drop.
To allow user to interact with taskbar UI during D&D, the window
should support FLAG_SPLIT_TOUCH to receive touch events while user
using D&D.
DD: go/global_drag_and_drop

Test: manual
Bug: 220109830
Change-Id: Icd549aa272c140d865d89eeb9f5619b5ab13c015
2022-06-24 16:25:53 +00:00
Alex Chau a3070ea61d In AllApps search mode, only consume touch over visible container
Bug: 236360930
Test: Tap on deadzone to dismiss AllApps in search mode
Test: touch outside recycler view inside container, doesn't swipe left/right
Change-Id: I18498ea50f217231c3bb4489d6d9e95fc0e7da53
2022-06-24 11:51:11 +01:00
Luca Zuccarini 9797a234f2 Merge "Unify the source of truth for NORMAL <> ALL_APPS transitions." into tm-qpr-dev am: 4a0129fa5f am: 0e12609cb2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18911769

Change-Id: I0c9d5f68008c4018e76db5121ff42f4af8315c66
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-24 10:41:08 +00:00