Commit Graph

35422 Commits

Author SHA1 Message Date
Lais Andrade f6e31b1d21 Fix overview scroll triggering haptics on swipe up gesture
Add an extra check to the PagedView, before triggering the haptic
callback, to avoid triggering this when the scroll happens
outside an actual scroll action (e.g. some setter methods that update
the scroll state).

This was triggered on some calls to setCurrentPage, that was
snapping the current scrolled page and triggering the
View.onScrollChanged method.

Fix: 201237536
Test: manual
Change-Id: I9b29981dba408493c78873aea42d8615ea7573a0
Merged-In: I9b29981dba408493c78873aea42d8615ea7573a0
(cherry picked from commit bff03e2d0fa1186c0ef58f6cf643fffb5054e53e)
2021-11-09 10:26:42 +00:00
Evan Rosky e4102c6ffe Support multiple tasks in recentsaninmation onTaskAppeared
Needed for app-pairs support

Bug: 204094785
Test: TODO
Change-Id: I3c5f8097b04b4033ba887e3c6d9e5ffd900df80e
2021-11-08 17:40:13 -08:00
TreeHugger Robot ef18f8c5a2 Merge "Fixing allSet page not closed if recentsAnimation takes time to start" into sc-v2-dev 2021-11-09 01:35:48 +00:00
TreeHugger Robot 1c79327f6e Merge "Testing to see if waiting for resume will fix flaky tests." into sc-v2-dev 2021-11-08 23:52:50 +00:00
Brian Isganitis 149dbcb137 Allow overriding getOptionsPopup test method.
Test: TAPL
Bug: 205491724
Change-Id: Ib4adfa85df6aa9e52922f76479487c9459535fcd
2021-11-08 18:17:36 -05:00
TreeHugger Robot 44fcfa5bfd Merge "Play fallback animation when overlay is shown." into sc-v2-dev 2021-11-08 20:49:58 +00:00
TreeHugger Robot c010ea2f1b Merge "Add temporary logging to try and debug: b/202414125" into sc-v2-dev 2021-11-08 20:33:00 +00:00
Tony Wickham 1278490ac0 Update reorder and folder creation radii
- Before, dragging anywhere in the cell (including space between cells) would trigger a reorder. Now, we compute the radius to the closest cell edge
- For creating folders on icons, we split the difference between the reorder circle (above) and the icon size

Test: enable DEBUG_VISUALIZE_OCCUPIED and manually drag to ensure works as described above
Bug: 204406063
Change-Id: I368714634ed42a930fd16849f2bde1589df1aa63
2021-11-08 12:04:30 -08:00
Jon Miranda b9f5602d96 Testing to see if waiting for resume will fix flaky tests.
Similar to how AbstractLauncherUITest waits for resume after
switching state to Normal.

Bug: 202735477
Test: presubmit
Change-Id: I61834d32f8005491a4e14a354dc0097b05267f7b
2021-11-08 11:58:10 -08:00
Alex Chau 5885b074dc Fix a case that task jump when dismissing
- Fixed an edge case that RecentsView was not snapped to last tasks, but become snapped to last tasks after dismiss, as last pages' scroll is the position where ClearAllButton is barely invisible, instead of aligned to mLastComputedTaskSize.
- Fixed a case that misclassifed as split select

Fix: 202941373
Test: manual
Change-Id: Ib50dda471189da4325cd8ed57d600cc64907c978
2021-11-08 16:57:38 +00:00
TreeHugger Robot 3555ef3b31 Merge "Add to tapl quickswitch test for testing intermediate carousel." into sc-v2-dev 2021-11-08 13:15:44 +00:00
Pat Manning 04486f19bb Add to tapl quickswitch test for testing intermediate carousel.
Test: TaplTestsQuickstep.java
Fix: 197630182
Change-Id: I5f325995e22b76eee710154ca54a050eaf70b150
2021-11-08 11:32:56 +00:00
Jerry Chang 2e2f49e8a5 Merge "Accept snapshot list when cancelling recents animation" into sc-v2-dev 2021-11-08 10:22:34 +00:00
TreeHugger Robot 6ae13e1c6f Merge changes from topic "presubmit-am-b573694ac00f425591ad626ca6ca14e0" into sc-qpr1-dev am: d076575915
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16202102

Change-Id: Ib38b2a97a25a224b0f04b2a2a191ca6754b37b3e
2021-11-08 02:46:29 +00:00
Bill Yi f0b0d8564d [automerger skipped] [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: d6c42a8d7c am: b84eeb1b73 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16202102

Change-Id: I8e86854edafaef1f9b6c95390af5bb5741559194
2021-11-08 02:46:28 +00:00
Bill Yi dc79545f1c [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 5cc4dfef04 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16202105

Change-Id: Ie4d05fd157dc7618c5d5e8b95c2fce895d673470
2021-11-08 02:45:55 +00:00
TreeHugger Robot c2f320703c Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-11-08 02:32:52 +00:00
TreeHugger Robot d076575915 Merge changes from topic "presubmit-am-b573694ac00f425591ad626ca6ca14e0" into sc-qpr1-dev
* changes:
  [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: d6c42a8d7c
  Import translations. DO NOT MERGE ANYWHERE
2021-11-08 02:29:55 +00:00
Jerry Chang 331f46fab3 Accept snapshot list when cancelling recents animation
Bug: 200813008
Test: enter overview after activated split screen, observed task
      thumbnails showing with correct bounds after roation.
Change-Id: Ifea17d2c685d16db111c4fab88e131595254b9a5
2021-11-08 09:55:43 +08:00
TreeHugger Robot 032d2e83e4 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-11-08 01:29:43 +00:00
TreeHugger Robot 68953fc693 Merge "Add popup menu and click handling to taskbar." into sc-v2-dev 2021-11-05 23:22:59 +00:00
Jon Miranda 4e5664ac28 Play fallback animation when overlay is shown.
Bug: 205086529
Test: go to -1, click to open app, swipe back
Change-Id: I905511e0ac7576d2134a10088289a5ca37d1b257
2021-11-05 16:16:12 -07:00
Jonathan Miranda 58763e47d6 Merge "Testing to see if waiting for transition to end will fix flaky tests" into sc-v2-dev 2021-11-05 22:53:17 +00:00
Bill Yi 657f9f832a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib4454b1544113a5c942e181642b0cfb90565001c
2021-11-05 22:12:48 +00:00
Bill Yi 5cc4dfef04 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie89e29a2c4aff51f16d0e7e4f15b83226aa3fd66
2021-11-05 22:12:07 +00:00
Bill Yi b84eeb1b73 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: d6c42a8d7c
Blank merge reason: commit message contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16202102

Change-Id: I30b3b382673e89e3e67f9148d0866c1f7b9db27d
2021-11-05 22:11:33 +00:00
Bill Yi d6c42a8d7c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ic8f995af269cc6b846db1a289b61f6f2c96387cf
2021-11-05 22:11:26 +00:00
Bill Yi 1e479563d5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7998165953f478389339b0530be5b6a56e72950b
2021-11-05 22:09:01 +00:00
Zak Cohen 605d89af37 Add temporary logging to try and debug: b/202414125
Bug: 202414125
Test: Local
Change-Id: I4b3a9c9bfffe72990773344762187b6cd8bf09aa
2021-11-05 14:10:58 -07:00
TreeHugger Robot d25e0fb3c3 Merge "Allowing OOP tests to enable home screen rotation." into sc-v2-dev 2021-11-05 20:12:26 +00:00
Schneider Victor-tulias 2bfbf3bffa Add popup menu and click handling to taskbar.
- Added popup menu support to taskbar icons
- Added item click handling for taskbar icon popup menu items

Bug: 198438631
Test: long pressed taskbar icons, pressed popup menu items, dragged taskbar icons to start multi-window mode
Change-Id: Ibc59c1eada50a877a863c075fbfd3e4accaae008
2021-11-05 13:07:09 -07:00
Sunny Goyal beefd1890c Fixing allSet page not closed if recentsAnimation takes time to start
> Also finishing the activity so that it doesn't show in home settings backstack

Bug: 204541138
Test: Manual
Change-Id: I7deec0d1ef7eec0464a0f21bf30b25cd5e18d02d
2021-11-05 13:05:49 -07:00
TreeHugger Robot 160b1357bf Merge "Show divider when GroupedTaskView expanded from recents" into sc-v2-dev 2021-11-05 19:50:24 +00:00
Jon Miranda a234a8ea85 Testing to see if waiting for transition to end will fix flaky tests
Test: presubmit
Bug: 202735477
Change-Id: Icf62003b9f422cf0e327365260c36f6d57b71aef
2021-11-05 12:31:15 -07:00
vadimt 41f99abeb5 Allowing OOP tests to enable home screen rotation.
Bug: 202567877
Test: local runs
Change-Id: Ifb711a3071a26e2d8e690e0378b6e74146ac722c
(cherry picked from commit 462fe7c007bac6f9f91102c465ab81712b64e739)
2021-11-05 18:19:01 +00:00
Vinit Nayak d0eea50a0c Show divider when GroupedTaskView expanded from recents
* Also increased animation duration to allow
apps to get ready

Fixes: 202928293
Change-Id: I8814ec2415e7985e4f433695f6cc55f83f0c0ac2
2021-11-05 11:15:01 -07:00
Winson Chung cc4a1925a6 Remove debug tracing checks to get logs beteween tests
Bug: 201305599
Test: Presubmit
Change-Id: Iab4430f88a2cac97a056486edd97895bc30a03b1
2021-11-05 09:45:13 -07:00
Greg Kaiser 5b4145e34b Merge "Revert "launcher: use a different task menu for foldables"" into sc-v2-dev 2021-11-05 16:19:43 +00:00
Greg Kaiser 24898d3be0 Revert "launcher: use a different task menu for foldables"
This reverts commit 10eb3cd98b.

Reason for revert: Root cause of P0 b/205278434
Bug: 205278434
Bug: 193432925
Test: Local reverted and now launcher works on wembley

Change-Id: I3605c01066a3ce383d45e0a938f1e00b3c7f7bb9
Merged-In: I5ee18d3ee1b671fcaedda633e7a268addd5c5c15
2021-11-05 16:19:05 +00:00
Alex Chau 67ddd0fefd Merge "Update overview clear all button to be larger" into sc-v2-dev 2021-11-05 11:49:56 +00:00
TreeHugger Robot e641701c9f Merge "Make Launcher activity restart on density change" into sc-v2-dev 2021-11-05 11:48:20 +00:00
Thales Lima ed7a7b23d4 Merge "launcher: use a different task menu for foldables" into sc-v2-dev 2021-11-05 10:13:38 +00:00
Winson Chung b35b56af65 Merge "Call into shell for recent tasks" into sc-v2-dev 2021-11-04 22:59:40 +00:00
Samuel Fufa 4112ae6a5b Merge "[Search] Show search suggestions with in Recyclerview" into sc-v2-dev 2021-11-04 21:00:15 +00:00
Vinit Nayak 04d52b48ac Merge "Invoke IME switcher for taskbar through SysUI" into sc-v2-dev 2021-11-04 20:47:05 +00:00
Tony Wickham 3cfa5edc93 Fix misaligned folder creation drag over target
Previously, the folder creation distance was based on the center of the cell, rather than the *visual* center, i.e. around the icon. Updated to use existing getWorkspaceVisualDragBounds() to handle this.

Test: with DEBUG_VISUALIZE_OCCUPIED=true, ensure green circles are centered around the app icons; manually drag and drop to check the drawn regions are correct
Bug: 204406063
Change-Id: I691a5cbbfc18c88436b88b7bda42f7920b9a5750
2021-11-04 13:40:05 -07:00
Tony Wickham 0ac045fe23 Update CellLayout.DEBUG_VISUALIZE_OCCUPIED to include drag over targets
Instead of just drawing the occupied cells in red, now we draw the occupied cells based on drag over regions:
- Dragging over the red regions will reorder the cell
- Dragging over the green regions will create/add to a folder

Test: visual with internal flag on
Bug: 204406063
Change-Id: I62105c1c1a1101b6cd6f9fd222980d03ba6d8b84
2021-11-04 13:27:56 -07:00
Schneider Victor-tulias cc0224fe52 Merge "Fix lost gesture nav progress on screen rotation." into sc-v2-dev 2021-11-04 19:32:15 +00:00
Winson Chung f097e628dc Call into shell for recent tasks
- No change in behavior from today until groups are actually returned
  from the shell

Bug: 202740477
Test: atest RecentTasksListTest
Change-Id: I4ac7b472ce2e0a3b2574dc6d8f4c1761a0ad993a
Merged-In: I4ac7b472ce2e0a3b2574dc6d8f4c1761a0ad993a
2021-11-04 18:42:46 +00:00
Zak Cohen 75cc3a2f86 Merge "Add temporary logging to try and debug: b/202414125" into sc-v2-dev 2021-11-04 18:06:25 +00:00