Commit Graph

1101 Commits

Author SHA1 Message Date
Alex Chau
7d0edb46ac Reland "Update Split button visibility based on DeviceProfile change"
This reverts commit 38bc885de9.

- Always request layout of action_buttons after changing visibility of its children
- Update Split button visibility based on DeviceProfile change in updateDimension() only
- Update Split button visibility based on 3P launcher in initialization only
- Also simplified action_buttons to wrap_content and layout in middle of parent
- Also removed the space between buttons and use marginStart
- Fixed TAPL to not expect save app pair button on phone. Before this CL actions_buttons are still on view hierarchy despite they're not visible on screen.

Fix: 321291049
Fix: 329255757
Test: Clear all tasks, fold, launch app, swipe up to Overivew; repeat in RTL
Test: OverviewImageTest
Flag: None
Change-Id: I9ecf872279f6f07d2d9bc33fb09031568023cb77
2024-04-04 11:58:35 +01:00
Mateusz Cicheński
5f8124ad05 Support going home from immersive fullscreen in 3 button nav
In gesture nav the swipe happens at the bottom of the screen,
which brings the navbar handle into the view.

In 3 button nav the swipe needs to happen from the right edge of
the screen, because the 3 button nav is always staying fixed in
the "bottom portrait" position, unless it is large screen, in
which case it should happen on the bottom landscape edge.

This can be detected via config_navBarCanMove resource value.

Bug: 313928629
Test: atest NetflixEnterPipTest
Test: above command on foldable in folded and unfolded state
Flag: n/a

Change-Id: I0a94757687fd9eb491b2a5cf0086ae51589ae0aa
2024-03-29 17:31:29 +00:00
Schneider Victor-tulias
02e57b3d62 Add ExtendedLongPressTimeoutRule to all AbstractLauncherUiTest
When devices run slow in pre/post-submit, it is possible for a drag to be processed at a long press before the first move event can be created and dispatched. Added a rule to artificially increase this long press timeout in tests.

Flag: N/A
Fixes: 319257820
Test: TAPL tests
Change-Id: I24e0f3baec15db7558351d0cb2bd93a4e49640e8
2024-03-25 11:22:31 -04:00
Federico Baron
3a7432d782 Merge "Make touch outside container touch at the middle of the container in terms of height" into main 2024-03-20 18:08:14 +00:00
fbaron
30bd886364 Make touch outside container touch at the middle of the container in terms of height
Bug: 326839375
Test: TaplTestsQuickstep#testOverviewDeadzones
Flag: NONE
Change-Id: I7a013ab7d146756cbff009c21b838881e09e044a
2024-03-19 16:44:07 -07:00
Tony Wickham
86d8386ab6 Merge "Add TaplTestsQuickstep#testExcludeFromRecents" into main 2024-03-19 20:28:58 +00:00
Tony Wickham
b84b8524a1 Add TaplTestsQuickstep#testExcludeFromRecents
- Add ExcludeFromRecentsTestActivity, and add it to the manifest
  with excludeFromRecents="true"
- Add the test to check the current Overview task content
  description, ensuring that the excludeFromRecents task is
  present directly after a gesture but not after going home.
Bug: 324495241
Flag: None
Test: TaplTestsQuickstep#testExcludeFromRecents

Change-Id: I06be53673f0ac06924f79b44f19744da066cc7ea
2024-03-18 22:30:13 +00:00
Fengjiang Li
00711e68a5 Merge "Enable predictive back in TAPL tests" into main 2024-03-15 14:52:58 +00:00
Fengjiang Li
e90f098d4f Enable predictive back in TAPL tests
With ag/26349940 we have fixed the bug where back swipe is not working

Fix: 326118348
Test: this is the test
Flag: NONE
Change-Id: I7e826f6ba3022a04d016d4a0a2134e287d85e8be
2024-03-15 00:00:37 -07:00
Sukesh Ram
8229228132 Debugging Logs for TaplTestsTransientTaskbar#testSwipeToStashAndUnstash
Add logging for TaplTestsTransientTaskbar#testSwipeToStashAndUnstash.

Flag: NONE
Test: Manually tested in pixel 7.
Bug: 324940434
Change-Id: I7c30fb2f3c94770fa79780d2e7748e931552ba56
2024-03-12 02:17:59 +00:00
Anushree Ganjam
461038d5d5 Remove expecting DOWN events in TAPL tests.
ACTION_UP is always preceded by ACTION_DOWN which means when launcher
receives an UP events, down event is obviously sent.

In b/325377690 , we started seeing only in P9 devices the DOWN events didn't reach TAPL. I added InputDispatcher logs which shows both DOWN and UP events are sent by system_server to NexusLauncher.
However TAPL doesn't receive it. After spending lot of time debugging this, I think we are safe to remove DOWN event expectation in TAPL.

Bug: 325377690
Test: Manual, TAPL presubmits
Flag: NA
Change-Id: I6d3587c488d45e3dc53d2c1c4f3b6b49285eae94
2024-03-07 12:31:38 -08:00
Vinit Nayak
91b06fb4ac Revert "Revert "Implements the "Save App Pair" button in Overvie..."
Revert submission 26420318-revert-26391074-save-app-pair-button-ZKCRCDSCSN

Reason for revert: Test failure in question wasn't related to this topic b/328016248

Reverted changes: /q/submissionid:26420318-revert-26391074-save-app-pair-button-ZKCRCDSCSN

Change-Id: I2a4dbb83720768a9d29a4371c77e3b9410ab2fea
2024-03-04 12:26:23 -08:00
Uwais Ashraf
9c2f5a4c62 Remove classes related to E2E testing from deviceless test classpath
Fix: 327187136
Flag: NA
Test: gradlew :NexusLauncher:testGoogleWithQuickstepDebugUnitTest
Test: atest Launcher3RoboTests
Test: presubmits passing
Change-Id: I4f05524bdc55d8473f3b5115cc239eb8cc48a856
2024-03-04 13:45:32 +00:00
Uwais Ashraf
77b97c0729 Replace existing Robolectric test task with functioning one.
This CL does the following:
- Creates a dir for multivalentTests
- Creates symlinks for the dir to keep Android Studio happy
- Moves many files to the multivalentTests dir
- Adjusts gradle and soong build files to use the new dir as part of
their source sets.

Test: ./gradlew :NexusLauncher:testGoogleWithQuickstepDebugUnitTest
Test: atest Launcher3RoboTests
Fix: 316553886
Bug: 316553889
Flag: NA
Change-Id: Iae28fd0c0191b3ecf9bd2950800875950cca2622
2024-01-19 21:39:23 +00:00
Andy Wickham
fb97d92e9a Merge "Ensure "AppIconSelector" does not match folders." into main 2024-01-16 19:18:11 +00:00
Sebastián Franco
c52860263a Merge "Send pointer up input even if there is an exception" into main 2024-01-13 23:18:03 +00:00
Tony Wickham
dc566559d0 Merge "Improve Taskbar touchableRegion debuggability" into main 2024-01-13 01:38:18 +00:00
Andy Wickham
bfb7c269b0 Ensure "AppIconSelector" does not match folders.
Not sure if this is considered brittle, but at this moment, the
BubbleTextView used for folder labels is not focusable, while the
one used for app labels is focusable.

Also add package name to the context logs to help debug similar
test failures in the future.

Fix: 319194153
Test: atest android.platform.test.scenario.google.OpenAppMicrobenchmark$1#testOpen
Flag: NA
Change-Id: Ibf88afdd6d3ef03b75ea44910b485e7e74e348b0
2024-01-12 23:56:05 +00:00
Sebastian Franco
c6cb35d97e Send pointer up input even if there is an exception
Fix: 315525621
Test: atest TaplTestsQuickstep
Flag: NA
Change-Id: Ie0310ee8d4cf25435d752ed2b838ae79e7ce4a45
2024-01-12 13:23:50 -08:00
Vadim Tryshev
bfbc121e5d Merge "Waiting for Normal state when closing search result by touching outside" into main 2024-01-11 21:43:19 +00:00
Vadim Tryshev
d586d054a2 Merge "Waiting for Normal state after pressing meta key in AllApps" into main 2024-01-11 21:43:06 +00:00
Vadim Tryshev
65b735beeb Merge "Waiting for Normal state when closing Overview by touching outside of first task" into main 2024-01-11 19:40:57 +00:00
Vadim Tryshev
04947de324 Merge "Re-promoting testDragToFolder to postsubmit" into main 2024-01-11 19:21:43 +00:00
Vadim Tryshev
a705fdf74f Waiting for Normal state when closing search result by touching outside
Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: I2e90105057de44fff96d6d0fd740f963465be57e
2024-01-10 18:57:13 -08:00
Vadim Tryshev
0a1c916f78 Merge "Waiting for Overview state when closing SelectModeButtons via Esc" into main 2024-01-10 18:02:08 +00:00
Vadim Tryshev
f2a31282da Merge "Waiting for Normal state when swiping from a popup to home" into main 2024-01-10 04:11:41 +00:00
Vadim Tryshev
702324860d Waiting for Normal state after pressing meta key in AllApps
Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: I005183095833d7b0b8f9fa444af98932d3414ee4
2024-01-09 15:55:38 -08:00
Vadim Tryshev
ba09397f13 Waiting for Overview state when closing SelectModeButtons via Esc
Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: I56e203e8d886a294476495cdffdb9e1aa1aceb80
2024-01-09 14:28:23 -08:00
Vadim Tryshev
62cc718bcd Waiting for Normal state when closing Overview by touching outside of first task
Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: I99f54beaf94cb138eb7643e5652b88e846e81f3f
2024-01-09 14:24:15 -08:00
Vadim Tryshev
26be37622c Waiting for Normal state when closing Overview by touch
Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: Ic1ac5b3db012d1d8235d641a3f6db8a9506f777d
2024-01-09 14:15:50 -08:00
Vadim Tryshev
0df6404e6e Re-promoting testDragToFolder to postsubmit
Also fixing it. When tapping outside of the folder to close it, avoiding touching the gesture area.

Bug: 187761685, 233075289
Test: presubmit, abtd
Flag: N/A
Change-Id: I99ada9e3d681f93a6d079827f1d4c5451a562266
2024-01-09 21:38:52 +00:00
Vadim Tryshev
225bf58643 Merge "Waiting Launcher to stop after swiping to unstash taskbar" into main 2024-01-09 18:48:45 +00:00
Vadim Tryshev
132e6a64c9 Merge "Waiting for the state to settle after clear-all-tasks action" into main 2024-01-09 18:33:44 +00:00
Vadim Tryshev
8027324fee Merge "Waiting for Normal state after pressing Esc in AllApps" into main 2024-01-09 18:10:05 +00:00
Vadim Tryshev
10ac692f9d Merge "Waiting for AllApps state when clicking Qsb" into main 2024-01-08 21:29:46 +00:00
Tony Wickham
762f8151f6 Improve Taskbar touchableRegion debuggability
- Add DebugTouchableRegion which includes the last region that we
  set as well as the reason (code path) for it, which we dump.
- If persist.debug.draw_taskbar_debug_ui is enabled, we will also
  outline the touchable region on the screen.

Flag: None
Test: testThreeButtonsTaskbarBoundsAfterConfigChangeDuringIme
Bug: 315393203

Change-Id: I70b37e8b8804c4a48ffe3956d2a24aa5eab452fd
2024-01-06 00:42:08 +00:00
Vadim Tryshev
6f16b338ad Waiting for Normal state when swiping from a popup to home
Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: I3bcb7717e0b8e7b9ac94aac157297c4cf675f72e
2024-01-05 14:55:32 -08:00
Liran Binyamin
fdc5c72aa1 Merge "Add a test for stashed bubble bar" into main 2024-01-05 21:19:19 +00:00
Vadim Tryshev
8d42081b23 Merge "Waiting for Normal state after dismissing Home AllApps by touching outside" into main 2024-01-05 18:59:51 +00:00
Vadim Tryshev
c8e6763fbb Merge "Waiting for AllApps state when opening all apps with keyboard" into main 2024-01-05 18:59:45 +00:00
Jagrut Desai
ad88561612 Merge "Migrating Tapl Overview test to platform scenario project" into main 2024-01-05 18:53:24 +00:00
Vadim Tryshev
819a55f6c8 Waiting for AllApps state when clicking Qsb
Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: Idf0639a1d91ad3fba40ab5589595b6376d49fd6d
2024-01-05 10:32:19 -08:00
Liran Binyamin
40c1b93aee Add a test for stashed bubble bar
This change introduces a new test protocol event for unstashing the bubble bar.

It's not possible to do this via a UI event because the stashed handle is only visible when an app is in the foreground, but in that state none of the elements in TaskbarDragLayer are visible to accessbility.

Flag: LEGACY persist.wm.debug.bubble_bar DISABLED
Bug: 273994695
Test: atest PlatformScenarioTests:android.platform.test.scenario.sysui.bubble.BubbleBarTest
Change-Id: I4581bf95b07691429966ecbd573232047f820b69
2024-01-05 08:49:27 -05:00
Vadim Tryshev
6a8a4ba0b8 Merge "Waiting for Split Select state after tapping split menu item" into main 2024-01-05 03:09:54 +00:00
Jagrut Desai
71e8dcca46 Migrating Tapl Overview test to platform scenario project
- Removes tapl overview test form platinum test suite
 - adds individual overview test to platform scenario test.

Test: Presubmit, Manual
Bug: 303256981
Flag: NONE
Change-Id: I7d04dc5dc63ba3a5e63ad03d98760dbd24c974f8
2024-01-04 16:25:17 -08:00
Vadim Tryshev
710634b192 Merge "Explicitly waiting for Launcher to restart after enabling test content provider" into main 2024-01-04 23:11:24 +00:00
Vadim Tryshev
25c1b792d8 Waiting for AllApps state when opening all apps with keyboard
Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: Idc17322fc8c22cd3fdcfe459e012bd04bc98b071
2024-01-04 15:06:00 -08:00
Vadim Tryshev
5675734d97 Waiting for Split Select state after tapping split menu item
Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: I54edb4e2b79c5dae0acedecae0f0b858a2ed0ddb
2024-01-04 14:58:05 -08:00
Vadim Tryshev
b2d111d90c Waiting for Normal state after dismissing Home AllApps by touching outside
Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: I4fc90a791d0264aee3b81306fdb1b15814dccfd8
2024-01-04 14:14:13 -08:00
Vadim Tryshev
d151784801 Explicitly waiting for Launcher to restart after enabling test content provider
I hope that this will prevent diagnostics that the Launcher has restated during the test.

This CL is a partial revert of ag/25428448

Bug: 314809015
Test: presubmit
Flag: N/A
Change-Id: I52f9641a5efcb67465794abca4f8ead621fad434
2024-01-04 21:09:59 +00:00