Commit Graph

1091 Commits

Author SHA1 Message Date
Alex Chau ddb12d7a0c 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
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:7d0edb46ac0a09aa0c801598b46cd338d04886a9)
Merged-In: I9ecf872279f6f07d2d9bc33fb09031568023cb77
Change-Id: I9ecf872279f6f07d2d9bc33fb09031568023cb77
2024-04-04 12:19:44 +00:00
Vinit Nayak 14d28ad455 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
Merged-In: I2a4dbb83720768a9d29a4371c77e3b9410ab2fea
2024-03-11 05:00:47 +00: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
Jordan Silva 873d49937c Merge "Add ESCAPE key to dismiss Overview" into main 2024-01-04 14:12:28 +00:00
Jordan Silva 9878a7206e Add ESCAPE key to dismiss Overview
This CL adds the functionality of escape key to Overview. It dismisses Overview when the esc key is pressed.
When Overview is showing a Modal Task, it will return to Overview state instead of the Normal state.

Fix: 315283507
Flag: N/A
Test: TaplTestsQuickstep
Change-Id: I02e02f623d9a4aad1c2d6188fdea4e3fc4f96d64
2024-01-04 09:08:44 -03:00
Vadim Tryshev 1339847866 Waiting for Normal state after pressing Esc in AllApps
Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: Iace454f28067492623929c8160ee9b30aaa53e1f
2024-01-03 15:38:00 -08:00
Schneider Victor-tulias 97eee72e6e Merge "Use ACTION_SCROLL to scroll TAPL workspace objects" into main 2024-01-03 15:24:14 +00:00
Andy Wickham 6ab98924f3 Merge "Update Launcher3 TAPL "find app icon" logic to allow whitespace." into main 2024-01-03 06:05:50 +00:00
Vadim Tryshev 756da982fc Merge "Always waiting for launcher stop from launchIntoSplitScreen()" into main 2024-01-02 21:49:09 +00:00
Vadim Tryshev b36f70a8e3 Always waiting for launcher stop from launchIntoSplitScreen()
Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: I7f3c818355d43def7a29fbc1f087f2bdd150da0d
2024-01-02 12:40:04 -08:00
Vadim Tryshev b4ff22754a Waiting for the state to settle after clear-all-tasks action
Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: Idbbf48d5814fa457b3542ff972bfb86d31f04377
2023-12-31 18:36:20 -08:00
Vadim Tryshev 9838b73ced Waiting for NORMAL state after removing work profile
Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: Iddeb41dcf702855790e847417566636613f327b4
2023-12-29 19:08:56 -08:00
Vadim Tryshev 670294e935 Waiting Launcher to stop after swiping to unstash taskbar
Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: I4087c89ca66cb125adb34cf94e340690741d6313
2023-12-28 14:25:05 -08:00