Commit Graph

816 Commits

Author SHA1 Message Date
Pat Manning
54acb41e8c Merge "Do not hide persistent taskbar during input for physical keyboard." into main 2023-11-20 23:29:55 +00:00
Pat Manning
a401e15553 Do not hide persistent taskbar during input for physical keyboard.
Fix: 255818649
Test: TaplTestsQuickstep
Flag: NONE.
Change-Id: Id5495163f43464125bfcbd9e255f18e24183d67a
2023-11-20 10:45:05 +00:00
Alex Chau
5fc3b8ca9f Merge "Add ScreenRecord for TaplTestsQuicksteptestOverviewForTablet" into main 2023-11-16 19:57:36 +00:00
Vadim Tryshev
f450938474 Merge "Removing obsolete ScreenRecord annotations" into main 2023-11-16 19:36:28 +00:00
Vadim Tryshev
070ca176c3 Merge "Removing obsolete ScreenRecord annotation" into main 2023-11-16 19:16:42 +00:00
Alex Chau
0f1be48319 Add ScreenRecord for TaplTestsQuicksteptestOverviewForTablet
Bug: 309820115
Test: None
Flag: None
Change-Id: I03eba051bc766482ff27b63487e9587d58770619
2023-11-16 10:21:57 +00:00
Sergey Pinkevich
172eb5896b Merge "Show split screen action for each task" into main 2023-11-16 10:03:44 +00:00
Fengjiang Li
1da44348cf Merge "Add unit test for RecentsAnimationDeviceState.java" into main 2023-11-15 23:05:32 +00:00
Vadim Tryshev
057f1817c4 Removing obsolete ScreenRecord annotation
Bug: 242163205
Test: presubmit
Flag: N/A
Change-Id: I6adc0612b3daa13fce73e610cc1017d484a21a2e
2023-11-15 13:41:53 -08:00
Vadim Tryshev
d70bd21271 Removing obsolete ScreenRecord annotations
Bug: 231615831
Test: presubmit
Flag: N/A
Change-Id: I85060757a11c9737ee9f6128da1f055f5056fe98
2023-11-15 13:39:19 -08:00
Fengjiang Li
b3007a9e3d Add unit test for RecentsAnimationDeviceState.java
Bug: 299466828
Flag: N/A
Test: test device boot without issue
Change-Id: Iaa1a7cff547e03eaacc950702c2e7cd34846e987
2023-11-15 13:01:51 -08:00
Vadim Tryshev
ebf08d8b75 Having longer period of waiting for Launcher restart only in Launcher test suites
This will help to avoid breaking other test suites by this increase.

Bug: 311023703
Test: presubmit
Flag: N/A
Change-Id: Ia91b03b72fa6592684e7a1673b9b56448f637dd4
2023-11-15 13:00:37 -08:00
Pat Manning
8c6dc7368e Merge "Delete flag-based test now that flag is on by default in staging where tests run." into main 2023-11-15 15:45:59 +00:00
Sergey Pinkevich
ead5259f9a Show split screen action for each task
Remove previous condition:
1. `taskView.containsMultipleTasks()` - there is already a check to filter out "Split screen" item: https://googleplex-android.googlesource.com/platform/packages/apps/Launcher3/+/refs/heads/main/quickstep/src/com/android/quickstep/TaskOverlayFactory.java#68

Edit previous condition:
2. `notEnoughTasksToSplit` - condition saying if there is less than 2 recent tasks. We still should give the possibility to split the screen if Taskbar is not presented

Bug: 305958994
Flag: NONE
Test: manual - took a photo (https://screenshot.googleplex.com/7doU5z9AjxxETUo)

Change-Id: I3fdfea987c426d557a91b0a25af368069e8af3f8
2023-11-15 15:14:50 +00:00
Pat Manning
dc24da900f Delete flag-based test now that flag is on by default in staging where tests run.
Fix: 309921805
Test: None.
Flag: ACONFIG com.android.launcher3.enable_overview_icon_menu TEAMFOOD
Change-Id: I19339253487c6cb30ab02ee6f824efa520f878b9
2023-11-15 14:18:36 +00:00
Jagrut Desai
cd016b5a41 Merge "Revert "Revert "Remove TaplTestsQuickstep tests from PlatinumTes..."" into main 2023-11-14 02:39:14 +00:00
Jagrut Desai
a407abfbec Revert "Revert "Remove TaplTestsQuickstep tests from PlatinumTes..."
Revert submission 25359412-revert-25316575-CUJ-TaplTestQuickstep-part2-VHLGZMEHQT

Reason for revert: The excluding all of these test cl is landed now, so we can safely revert this revert change. 


Reverted changes: /q/submissionid:25359412-revert-25316575-CUJ-TaplTestQuickstep-part2-VHLGZMEHQT

Change-Id: I9ddb7a8140c5172b708b43938ce224b7e8051051
2023-11-13 21:58:24 +00:00
Priyanka Advani
c0f35ccea1 Merge "Revert "Remove TaplTestsQuickstep tests from PlatinumTest Part2"" into main 2023-11-13 21:10:24 +00:00
Priyanka Advani
07c9ca69c3 Revert "Remove TaplTestsQuickstep tests from PlatinumTest Part2"
Revert submission 25316575-CUJ-TaplTestQuickstep-part2

Reason for revert: b/310687289

Reverted changes: /q/submissionid:25316575-CUJ-TaplTestQuickstep-part2

Change-Id: I3a253e42f2ea00921658317edae2423fe909ebb2
2023-11-13 20:47:35 +00:00
Vadim Tryshev
18c1038ddf Merge "Making killing setup wizard a permanent solution" into main 2023-11-13 20:20:07 +00:00
Jagrut Desai
6401f298a1 Merge "Remove TaplTestsQuickstep tests from PlatinumTest Part2" into main 2023-11-13 18:29:56 +00:00
Vadim Tryshev
7df94cca65 Disabling strict activity leak check
Started seeing presubmit blockers like:
https://android-build.corp.google.com/test_investigate/?invocationId=I51800010216065294&testResultId=TR60829041305611993

Bug: 187761685
Test: presubmit
Flag: N/A
Change-Id: Ic88f67e54d2dec4b244784abd2a15fbdfdf9e711
2023-11-10 15:04:46 -08:00
Vadim Tryshev
1f8ff66235 Making killing setup wizard a permanent solution
It will be killed only in presubmit. In postsubmit, we want to be a true
e2e test exposed to all actual problems, including setup wizard that
doesn't go away.

Bug: 309471958
Test: presubmit
Flag: N/A
Change-Id: I2e877eade060e75e277eb3603d90b659207b5a47
2023-11-10 12:20:45 -08:00
Tracy Zhou
d66d114944 Merge "Make enableTaskbarNoRecreate() depend on ENABLE_TASKBAR_PINNING and ENABLE_TASKBAR_NAVBAR_UNIFICATION" into main 2023-11-09 18:47:59 +00:00
Vadim Tryshev
fd13b2c650 Merge "Demoting a couple of flaking tests from presubmit" into main 2023-11-09 01:40:36 +00:00
Tracy Zhou
f2d7be1cec Make enableTaskbarNoRecreate() depend on ENABLE_TASKBAR_PINNING and ENABLE_TASKBAR_NAVBAR_UNIFICATION
We want to turn on the flag when either of the dependent features is on

Bug: 299193589
Test: N/A
Change-Id: I7b48ff2be0cf9da3b6bc00d75370fa585ce4140d
2023-11-08 14:52:58 -08:00
Jagrut Desai
913f6f6767 Remove TaplTestsQuickstep tests from PlatinumTest Part2
Test: Presubmit
Bug: 303256981
Flag: NONE
Change-Id: If6b6ff6a495da8d079ad4080bfe373f368904ae0
2023-11-08 22:47:38 +00:00
Vadim Tryshev
1c8e30b54c Merge "Making keyguard dismissal a permanent solution" into main 2023-11-08 20:24:11 +00:00
Vadim Tryshev
e494c1b6e7 Demoting a couple of flaking tests from presubmit
Bug: 288939273, 309820115
Test: presubmit
Flag: N/A
Change-Id: Iea7dd435c4f6461ceb9e45ce6b3942ddc2d11347
2023-11-08 12:01:00 -08:00
Vadim Tryshev
e5a1b89220 Making keyguard dismissal a permanent solution
Before, it was considered to be a workaround while System UI has
keyguard bugs. But these bugs will happen in future, and they are
unlikely to be prevented by presubmit tests since they are usually flakes.

The solution that this CL makes permanent is: in presubmit attempt
to unlock SysUI if it's locked. In postsubmit, just make sure it's
unlocked. This way, in postsubmit, we'll know whether tere are active
keyguard bugs.

Bug: 187761685
Test: presubmit
Flag: N/A
Change-Id: Ia9602bc6e9cc8400e939051c45aba92bc197d428
2023-11-07 14:45:58 -08:00
Tracy Zhou
6fe69f5a2a Migrate HIDE_NAVBAR_WINDOW to aconfig and rename is to enable_taskbar_navbar_unification
Bug: 309671494
Test: N/A
Change-Id: If35d807c17351146029498a876a055384eff3c2f
2023-11-07 13:51:38 -08:00
Vinit Nayak
38dc539f84 Merge "Unignore split tests" into main 2023-11-07 18:19:11 +00:00
Vinit Nayak
8ef38b0f9e Unignore split tests
* With the fix of b/302551868, let's
see if that fixes this issue as well

Bug: 297135374
Change-Id: I817307dbb5e70d8c8534627499d429529e33de4a
2023-11-06 14:25:35 -08:00
Vadim Tryshev
8b1881223b Merge "Waiting for the setup wizard to go away" into main 2023-11-06 18:17:46 +00:00
Jagrut Desai
a0c9db6dce Merge "Remove TaplTestsQuickstep#testPressBack from PlatinumTest" into main 2023-11-06 17:32:43 +00:00
Vadim Tryshev
0fe753af2a Waiting for the setup wizard to go away
This is a workaround for b/309008042 where it appears that after being
dismissed by the test infra, setup wizard doesn't immediately go away.

This CL will wait 2 minutes for the dismissal, and provide a better
diags when the wizard doesn't go away after 2 min.

Bug: 309008042
Test: presubmit
Flag: N/A
Change-Id: I26eb2f202842702af08c424929d74fbd21eb872d
2023-11-04 21:37:25 -07:00
Priyanka Advani
ebc9a3b5e1 Merge "Revert "Change TAPL to swipe to stash taskbar (instead of deprec..."" into main 2023-11-03 22:10:27 +00:00
Priyanka Advani
9aed56096c Revert "Change TAPL to swipe to stash taskbar (instead of deprec..."
Revert submission 24877128-cherrypick-tapl-transient-swipe-owubvwrsw6i

Reason for revert: Likely culprit for b/309158105

Reverted changes: /q/submissionid:24877128-cherrypick-tapl-transient-swipe-owubvwrsw6i

Change-Id: I8ee560f7e599bcfde09eff53f049309ba25ce77f
2023-11-03 21:31:45 +00:00
Tony Wickham
075a67da15 Merge "Change TAPL to swipe to stash taskbar (instead of deprecated long press)" into main 2023-11-03 18:35:54 +00:00
Alex Chau
9c07fc1350 Re-land "Update Tapl tests for enable_grid_only_overview"
- Fix getCurrentTask() to correctly get the top-right tasks in grid only overview. It'll first get the widest task, and then top, and then rightmost task
- Fix scrollLeftByDistance() to correctly account for leftGestureMargin to make sure it scroll by distance provided
- Fix scrollCurrentTaskOffScreen() to actually scroll the task off screen
- Fix createAndLaunchASplitPair() to use Task menu instead of Overview actions for grid only overview
- Skip testOverviewActions() in grid only overview, where Overview actions isn't available
- Fix testOverivewForTablet to expect the correct task in grid only overview; also disabled part of a test due to an animation bug in Overview
- Fix dismissBySwipingUp() to swipe from bottom of task, which is required to effectively dismiss top row tasks
- Also fixed OverviewTask to correctly get objects in FallbackOverview
- Fix touchOutsideContainer() to calcualte y base on container's middle correctly

Bug: 283246928
Test: presubmit
Flag: None
Change-Id: I77e91dcc1a404ade356b29fba6cf967c534c08f4
2023-11-02 22:37:26 +00:00
Jagrut Desai
755304d592 Remove TaplTestsQuickstep#testPressBack from PlatinumTest
Test: Presubmit
Bug: 303256981
Flag: NONE
Change-Id: I8e502449d03c9ca010fc05297f2edb255e1fa21e
2023-11-02 21:19:18 +00:00
Alex Chau
39c548bd03 Merge "Revert "Update Tapl tests for enable_grid_only_overview"" into main 2023-11-02 13:36:34 +00:00
Sam Dubey
0552d37f34 Revert "Update Tapl tests for enable_grid_only_overview"
Revert submission 25220083-b/283246928

Reason for revert: b/308930958

Reverted changes: /q/submissionid:25220083-b/283246928

Bug: 283246928
Change-Id: I69ce128061f7ffad213f8f193122b18e5ee9378d
2023-11-02 13:33:55 +00:00
Alex Chau
c543b46070 Merge "Fix TaskViewSimulatorTest to be independent of device it runs on" into main 2023-11-02 11:13:20 +00:00
Tony Wickham
eccf070bae Change TAPL to swipe to stash taskbar (instead of deprecated long press)
This also means Taskbar is transient by default in automated tests,
instead of persistent. Updated some checks accordingly.

Flag: LEGACY ENABLE_TRANSIENT_TASKBAR ENABLED
Test: TaskbarExpandCollapse#hideShowTaskbar; TaplTestsTaskbar;
TaplTestsTransientTaskbar; TaplTestsPersistentTaskbar
Bug: 270395798

Change-Id: Ib6e592a31a55a912a7ea991a421a9c60bca51c80
2023-11-01 23:16:10 +00:00
Alex Chau
3029b8314e Update Tapl tests for enable_grid_only_overview
- Add "task" as id for TaskView, and use it instead of "snapshot" when creating OverviewTask, so that for split tasks are caputred as a whole in getCurrentTask and getTasks
- Fix getCurrentTask() to correctly get the top-right tasks in grid only overview. It'll first get the widest task, and then top, and then rightmost task
- Fix scrollLeftByDistance() to correctly account for leftGestureMargin to make sure it scroll by distance provided
- Fix scrollCurrentTaskOffScreen() to actually scroll the task off screen
- Fix createAndLaunchASplitPair() to use Task menu instead of Overview actions for grid only overview
- Skip testOverviewActions() in grid only overview, where Overview actions isn't available
- Fix testOverivewForTablet to expect the correct task in grid only overview; also disabled part of a test due to an animation bug in Overview
- Fix dismissBySwipingUp() to swipe from bottom of task, which is required to effectively dismiss top row tasks
- Also fixed OverviewTask to correctly get objects in FallbackOverview

Bug: 283246928
Test: presubmit
Flag: None
Change-Id: I5dd39b1779ea02738556f921169dbe38aa4cba8c
2023-11-01 22:15:12 +00:00
Alex Chau
382e1868c7 Fix TaskViewSimulatorTest to be independent of device it runs on
- Fix TaskViewSimulatorTest to properly set up densityDpi, so the test result is consistent regardless of the device it runs on. Also used SandboxContedxt's putObject() to avoid using reflection

Bug: 283246928
Test: TaskViewSimulatorTest
Flag: None
Change-Id: I926459fa97dd09a266cd017e4a0fb8e658a3509c
2023-11-01 19:51:37 +00:00
Jagrut Desai
24231d9994 Merge "Taskbar pinning animation with no recreate" into main 2023-10-26 21:33:41 +00:00
Jagrut Desai
631b284836 Taskbar pinning animation with no recreate
Test: Manual, Visual
Bug: 265436799
Flag: LEGACY ENABLE_TASKBAR_PINNING DISABLED

Change-Id: I84a4d1efdb0bd4a0f856fa1f46b6489ef54a3841
2023-10-26 10:36:48 -07:00
Pat Manning
821bc0d034 Merge "Clean up overview icon menu flag after tests and refresh device profile." into main 2023-10-26 16:00:48 +00:00