Commit Graph

369 Commits

Author SHA1 Message Date
TreeHugger Robot
8cb2364c1a Merge "Renaming LauncherInstrumentation.pressHome to goHome" into tm-dev 2022-03-14 20:37:06 +00:00
vadimt
41c0b52cd9 Renaming LauncherInstrumentation.pressHome to goHome
This is a better name now that we have gestural nav.

Renaming will happen in stages, the first one being having 2 names side-by-side.

Test: presubmit
Bug: 187761685
Change-Id: Ifb15c838cc0e161d852cf6df025687e3f92d6124
2022-03-14 18:13:47 +00:00
Schneider Victor-tulias
fb252e7ce1 Add taskbar TAPL tests
- Added TAPL objects to support TAPL tests for taskbar features
- Added tests for major taskbar features: hiding/showing the taskbar, opening all apps, lauching apps and app deep shortcuts from the taskbar/all apps page, launching apps and app deep shortcuts in splitscreen
- These tests should only run for large devices

Design: go/taskbar-tapl-tests
Test: ran tests locally with invalid configurations and remotely
Bug: 215218813
Change-Id: I3c28c339707467414aa47fa633f87fa0c1fdee57
2022-03-10 13:02:35 -08:00
Sunny Goyal
187b16cb91 Updating window manager estimation logic:
> Moving the code from ApiWrapper to Resource overlays for better maintainability
> Accounting for display cutouts in insets estimation
> Using same logic in display controller and view inset dispatching

Test: Verified on device
Bug: 221961069
Change-Id: I78466353563692ce3f7512b0146ef8b61ef14bc0
2022-03-09 11:15:58 -08:00
Evan Rosky
324b07b44b Merge "Switch to persist.wm.debug" into tm-dev 2022-03-08 19:34:01 +00:00
TreeHugger Robot
90ab34b1d8 Merge "Revert "Adding better diags when SysUI crashes during Launcher test"" into tm-dev 2022-03-07 23:14:49 +00:00
Vadim Tryshev
fcd569055e Revert "Adding better diags when SysUI crashes during Launcher test"
This reverts commit b0e0f5f44a.

Reason for revert: This cl prevents the ability to run tests from android studio.

Change-Id: I8a1cbcd2e8faefdd168aac5bcad4f21c73694839
2022-03-07 20:37:42 +00:00
Sunny Goyal
4403d078a6 Moving NavigationMode to display controller
Navigation mode affects display properties like bounds and
most listeners already had a similar display listener. This
will remove race conditions when managing the two events.

Bug: 221961069
Test: Presubmit
Change-Id: If7a22e006e6b969ecddf075001066809aa72995c
2022-03-04 18:11:33 -08:00
Evan Rosky
01bbf1a8f3 Switch to persist.wm.debug
For use with systemui flag flipping

Bug: 219067621
Test: manual
Change-Id: I5477b961bfdbe4e9103173c1c7f8daf03ce5eee4
2022-03-02 16:18:44 -08:00
vadimt
b0e0f5f44a Adding better diags when SysUI crashes during Launcher test
Test: presubmit; sys ui tests where this rule is already used
Bug: 187761685
Change-Id: Ib4491e5c7ebbea0bb3b17fc8c4b3a6c59a3bdb2a
2022-02-28 18:59:25 +00:00
Winson Chung
4c2e3310e6 Disable flakey fallback recents test
- Seems to be an existing failure in the recents animation not
  finishing, should disable to unblock folks

Bug: 218403080
Test: Presubmit
Change-Id: Ia42009666c67c29c1a78a2fe197bdce53dcb2ec8
2022-02-23 06:44:55 +00:00
Schneider Victor-tulias
d6279ae641 Update TAPL object hierarchy in preparation for Taskbar TAPL tests
See design at: go/taskbar-tapl-tests

Test: Ran tests remotely
Bug: 215218813
Change-Id: I1c2ceac8954973ea3ae5b2f797fdfb96ba7a6ec4
2022-02-15 13:33:26 -08:00
Pat Manning
30c28a0a22 Reenable tablet tests for OOP TAPL tests.
Bug: 210158657
Test: TaplTestsQuickstep.java
Change-Id: Ib604642be6819065cde4167f3705d43ced3b2fda
2022-01-31 18:49:20 +00:00
vadimt
1ac72db930 Removing 2-button support from tests
Bug: 187761685
Test: presubmit
Change-Id: I932dd8cbc7524732e3ff83a35d7034b3e5ff75d9
2022-01-12 10:37:50 -08:00
vadimt
672f2fc24a Generate bugreports for ANRs and other anomalies
Bug: 211907395
Test: a similar approach was implemented for SysUI tests
Change-Id: I04770e73e6adf6bda63a8362976ec550434df6f3
2022-01-07 16:05:46 -08:00
Pat Manning
ee01176810 Fix launcher scroll distance for TAPL tests.
Test is passing correctly but for the wrong reasons. If we attempted to use a different distance it would have failed.

Bug: 197630182
Test: manual
Change-Id: Ib275b89c86cdb9f75d40b9d25c8c498098b543b7
2021-12-22 09:55:53 +00:00
TreeHugger Robot
5c7a0ae1c9 Merge "DeviceProfile.overviewRowSpacing should exclude extra top margin on grid tasks" into sc-v2-dev am: 953873dd18 am: a370c8880f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16440097

Change-Id: I5ce9a676cd30790b89a5a63ffbbc390c602f7f7e
2021-12-11 02:08:36 +00:00
Alex Chau
4c98374d99 DeviceProfile.overviewRowSpacing should exclude extra top margin on grid tasks
Bug: 207350366
Bug: 210158657
Test: manual
Change-Id: I28116407c4267259a75fd39637104cea9db73fe3
2021-12-10 23:29:08 +00:00
Alex Chau
992db75dae Use percentage scaling for overview thumbnail size
- Limit overview to screen ratio to be at max 70%
- Tuned row spacing and page spacing
- Added 2 more test activities to testOverviewForTablet to avoid dismissing tasks at end of grid, as more grid tasks are now shown

Bug: 207350366
Test: manual
Change-Id: Id04871464bdb3ef2d6b046977b0ffd9bd51bc230
Merged-In: Id04871464bdb3ef2d6b046977b0ffd9bd51bc230
2021-12-07 14:50:40 +00:00
Alex Chau
a5470710a3 Use percentage scaling for overview thumbnail size am: 4f7952ead4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16389092

Change-Id: I18751b12e2c7fa2b376545a95426594cbadffd07
2021-12-07 14:50:04 +00:00
Alex Chau
4f7952ead4 Use percentage scaling for overview thumbnail size
- Limit overview to screen ratio to be at max 70%
- Tuned row spacing and page spacing
- Added 2 more test activities to testOverviewForTablet to avoid dismissing tasks at end of grid, as more grid tasks are now shown

Bug: 207350366
Test: manual
Change-Id: Id04871464bdb3ef2d6b046977b0ffd9bd51bc230
2021-12-07 11:00:48 +00:00
Wei Sheng Shih
3cc4bedd54 Merge "Fixes BinderTests when enable shell transition." 2021-12-03 02:56:24 +00:00
wilsonshih
aa79e68759 Fixes BinderTests when enable shell transition.
Post startActivity to UI_HELPER_EXECUTOR
There will do Resumed the launcher's activity when goes to Overview,
skip the isStarted != isResumed check while shell transition is enabled

Bug: 207297486
Test: atest BinderTests
Change-Id: Id3220b89bfac212062f389879549627a88d93a04
2021-12-01 17:52:01 +08:00
Vinit Nayak
570653346f Add task unpinning support for 3 button taskbar
Bug: 199544447
Test: Tested on small and large screen
Change-Id: Ib7785992ef11825cd07a929e2cb623d02ef246f1
2021-11-30 17:18:09 -08:00
Vinit Nayak
4d57e7091f Shows AppPairs in previous tasks
Fixes: 203006080
Change-Id: I63912a61e7617ec41f229c19cc267dc5a1857bae
2021-11-09 13:47:18 -08: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
Winson Chung
b35b56af65 Merge "Call into shell for recent tasks" into sc-v2-dev 2021-11-04 22:59:40 +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
Benno Lin
d80ed19ba6 Disable Tapl pressBack and dragToFolder Tests
The tests break on R3 and S5 devices.
Therefore the CL disable them temporarily until the issue being
resolved.

Bug: 205027405
Bug: 205014516
Test: disable tests that break ATP tests on R3 and S5.
Change-Id: Ib71c2f334d98445aeafa211d9bba2910d191b6fb
2021-11-04 02:46:48 +00:00
Benno Lin
6c00386c2b Implement pressing back button and swiping back
This CL implements a pressBack function to press back button or swiping
back in gesture navigation mode.

Bug: 199120092
Test: atest -c Launcher3Tests:com.android.launcher3.ui.TaplTestsLauncher3#testPressBack &&
    atest -c NexusLauncherTests:com.android.quickstep.TaplTestsQuickstep#testPressBack
Change-Id: I001cea17d09ae1ab7952d04ee394a2afa5bf1e67
2021-11-03 02:28:37 +00:00
Nick Chameyev
0288d2e8bb Move floating rotation button handling to Launcher
Moves handling of floating rotation button when navigation
bar is not created to the launcher. This button was not
showing when taskbar is visible as it was initialized in
navigation bar (which is not created for large screens).

Bug: 200103245
Test: rotate phone when autorotate disabled on inner screen
Test: showing rotate suggestion when gesture nav enabled/disabled
Change-Id: I13dd555bcd811f1524be7ab9ad51b2b012b3b749
2021-11-01 10:36:34 +00:00
Alex Chau
14c8f45b5e Merge "Fix scroll task off screen to support different screen dimensions." into sc-v2-dev 2021-10-28 10:27:30 +00:00
Tony Wickham
c1cdadf6ea Merge "Fix testStressSwipeToOverview" into sc-v2-dev 2021-10-27 21:39:45 +00:00
Tony Wickham
ce6bf7dd7f Fix testStressSwipeToOverview
- Finish recents controller to app rather than to launcher, to ensure taskbar state uses in-app configuration
- Also fix an issue when a gesture completes before onLauncherStart, which happens in 3 button mode. The error I saw in the test was:
java.lang.AssertionError: http://go/tapl test failure: Failed to receive an event for the state change: expected [Overview], actual: [Background, Normal];
Context: want to switch from background to overview, clicking Recents button; now visible state is Background
(This also accurately describes what I saw on the device, where the LauncherState went to Normal but the task was still running in the live tile)

Test: testStressSwipeToOverview
Fixes: 203577620
Change-Id: I19616f7921c9821f1b45a90a3e4bec4fb3b8a9d3
2021-10-27 12:35:31 -07:00
Pat Manning
1b5975c205 Fix scroll task off screen to support different screen dimensions.
This will fix the breaks on cuttlefish as seen in b/203781041.

Test: TaplTestsQuickstep.java
Bug: 197630182
Change-Id: I3b582a9df1790543c4e1521b45494fb462bb5c1c
2021-10-26 18:08:45 +01:00
Alex Chau
385a6b9caa Ignore testOverviewForTablet until root cause of cuttlefish failure is found.
Test: TaplTestQuickstep.java
Bug: 203781041
Change-Id: I9b6f658ab8f55beafaf784d7a374e2780a591089
Merged-In: I9b6f658ab8f55beafaf784d7a374e2780a591089
2021-10-21 21:30:23 +00:00
Makoto Onuki
da65dc3dd3 Revert "Ignore testOverviewForTablet until root cause of cuttlefish failure is found."
This reverts commit 8893098446.

Reason for revert: b/203806263

Change-Id: I5e1644e0163ef07d0bec4a70b9dea799ab69f1b5
2021-10-21 20:48:01 +00:00
Pat Manning
8893098446 Ignore testOverviewForTablet until root cause of cuttlefish failure is found.
Test: TaplTestQuickstep.java
Bug: 203781041
Change-Id: Iffd7031f303822fe77c02052eb07499e8644243b
2021-10-21 18:09:15 +01:00
Pat Manning
ccec1de6ae Add new quickstep test for many tasks open at once.
This test is needed for testing overview-grid-related functionality.
- Opening non-focused tasks
- Dismissing a non-focused task from the grid
- Grid rows rebalancing after dismissal, which only happens when enough
apps are open to be off-screen.
- Grid tasks do not scroll after dismissal.

Test: TaplTestsQuickstep.java
Bug: 197630182
Change-Id: Ic907db4643cdc2eb9e4610dab917347e234e470c
2021-10-20 14:40:32 +01:00
Zak Cohen
283ee7d74b Remove the Share button option from Overview.
It has never been enabled, and is not plan of record.

Bug: 201446691
Test: local and updated unit tests

Change-Id: I5ac6d40ba1dbcf28de4355cc51fff74cfb37ebc6
2021-09-29 14:43:27 -07:00
Vadim Tryshev
fcc51bd1fa Merge "Allowing having only SysUI views before pressHome()" into sc-v2-dev 2021-09-24 18:15:07 +00:00
vadimt
bf41844ad4 Allowing having only SysUI views before pressHome()
pressHome can be called just after another test that
can, for example, pull down the status bar to
occupy the whole screen.

Bug: 201005881
Test: presubmit
Change-Id: Ifc0ae4d66d573720f70aa4e734da03add3d86b57
2021-09-23 19:19:53 -07:00
TreeHugger Robot
c48f770a3d Merge "Adding screen record for a flake" into sc-v2-dev 2021-09-21 21:49:58 +00:00
vadimt
99479a9925 Adding screen record for a flake
Test: presubmit
Bug: 195673272
Change-Id: I3ea99f68872554d688b30bf87f595fef1538a7cb
2021-09-20 20:09:07 -07:00
vadimt
4e743887c5 Removing unused tracing
Bug: 181019015
Test: presubmit
Change-Id: I7df032e4345c512ba8eb06a2c4104362e1d51dbd
2021-09-10 10:29:07 -07:00
Sunny Goyal
3e9a29c4d6 Moving roboelectic tests to instrumentation tests
Bug: 196825541
Test: Presubmit
Change-Id: I197bc47181308bb0b79f3815a892b733abbcd1fd
2021-09-08 10:23:30 -04:00
Sunny Goyal
777d49062f Revert "Revert "Migrating all model tests to Instrumentation tests""
This reverts commit 7a4a30d86d.

Test: Presubmit
Reason for revert: Fixing original bug

Bug: 196825541
Change-Id: Id4b1eb24a89564d264266d305aebea52917dfcd9
2021-08-31 10:51:52 +00:00
Android Build Prod User
02da47404c Merge "Moving OrientationTouchTransformerTest to instrumentation tests" into sc-v2-dev 2021-08-24 23:30:54 +00:00
TreeHugger Robot
907c22ca14 Merge "Not checking for some anomalies when switching nav modes" into sc-v2-dev 2021-08-24 19:49:41 +00:00