TreeHugger Robot
2d180a5439
Merge "Fix LauncherInstrumentation for OOP tests from gradle" into tm-qpr-dev am: 4298b36ef4 am: 84959297d7
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19865266
Change-Id: I70a93b0455820766f8c97b853e80b5db1c8d7b35
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-09-22 00:27:30 +00:00
TreeHugger Robot
4298b36ef4
Merge "Fix LauncherInstrumentation for OOP tests from gradle" into tm-qpr-dev
2022-09-21 03:50:08 +00:00
TreeHugger Robot
9ec505fb2c
Merge "Adding a comment for goHome()" into tm-qpr-dev am: 0dec527aae am: 67d76fa9b6
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19994601
Change-Id: I8c13a6eff4822b6fb0d4b41d72baf8812fb17e0a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-09-20 09:44:06 +00:00
vadimt
f132bd7d3f
Adding a comment for goHome()
...
Bug: 187761685
Test: presubmit
Change-Id: I2917daa90f22cc0da0169c287b02cc4cf37a8f4b
2022-09-19 19:08:43 -07:00
Nicolo' Mazzucato
d2521bf843
Fix LauncherInstrumentation for OOP tests from gradle
...
The previous logic was assuming that if the test and target package were different, the target one was the launcher.
However, in the sysui-studio case, the packages are different despite none of the packages being launcher.
This detects if the test process is a gradle instrumentation, and if so selects the default launcher package name.
Test: locally with sysui-studio + presubmits
Bug: 234414088
Change-Id: Ie625e7d526f254f4b5f66b3a2b989d02eb95ac9c
2022-09-19 14:35:53 +00:00
Alex Chau
cdf753f7c6
Merge "Trying to fix flaky TAPL test on CF" into tm-qpr-dev am: 7c8ee4f8de am: 4773a10dc2
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19886864
Change-Id: Icba9ad1d97653b379642bf1611b59cc65bd614eb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-09-17 05:04:11 +00:00
Alex Chau
7c8ee4f8de
Merge "Trying to fix flaky TAPL test on CF" into tm-qpr-dev
2022-09-17 03:30:32 +00:00
Yein Jo
40a0690301
Merge "Migrate Launcher to use the new OnBackInvokedCallback" into tm-qpr-dev am: dfaabbb499 am: f8804d8ccd
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19934356
Change-Id: I5843a470ee7194f84899ad8fa3426c9c4af6d178
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-09-16 22:13:10 +00:00
Yein Jo
dfaabbb499
Merge "Migrate Launcher to use the new OnBackInvokedCallback" into tm-qpr-dev
2022-09-16 21:44:49 +00:00
Sebastián Franco
f1aa20d811
Merge "Revert "Prevent dragging widgets to another page in tests when starting a drag."" into tm-qpr-dev am: 09a98dfdbd am: 47c78bed9b
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19969101
Change-Id: I01ad05d37ca822f501e6f2520249734c7e9de167
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-09-16 17:52:11 +00:00
Sebastián Franco
09a98dfdbd
Merge "Revert "Prevent dragging widgets to another page in tests when starting a drag."" into tm-qpr-dev
2022-09-16 16:49:26 +00:00
Andras Kloczl
0a37f2b90e
Trying to fix flaky TAPL test on CF
...
For some reason the drag gesture gets canceled during drag,
and it might be because the pointer goes out of bounds.
Test: run TwoPanelWorkspaceTest on CF
Bug: 241587421
Change-Id: I9a57548d5b03c3a3d7bd0da6e7e7f79688f5ac90
2022-09-16 07:55:13 +00:00
Sebastián Franco
a798be2ff5
Revert "Prevent dragging widgets to another page in tests when starting a drag."
...
This reverts commit 749b2b8493 .
Reason for revert: Causing tests to fail b/246972374
Change-Id: I9fc1f6d2e924f4ac5484c6674fd0adf49d04536f
2022-09-15 21:19:12 +00:00
Sebastián Franco
b35ae4fc42
Merge "Prevent dragging widgets to another page in tests when starting a drag." into tm-qpr-dev am: 610db4fc94 am: 0eaacbc644
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19945446
Change-Id: Id8e822bf084248c7618cd23837ccb1f558eedc64
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-09-15 18:22:33 +00:00
Sebastián Franco
610db4fc94
Merge "Prevent dragging widgets to another page in tests when starting a drag." into tm-qpr-dev
2022-09-15 17:19:42 +00:00
Yein Jo
dc1b3660fe
Migrate Launcher to use the new OnBackInvokedCallback
...
Bug: b/238475344
Test: Tapl & manual
Change-Id: Ieab329873f82890d95136e490086cc2cffff7ba8
2022-09-14 19:45:41 +00:00
Winson Chung
3f649ef892
Update Launcher for removed shared wrappers
...
- Launcher can reference system code directly now
Bug: 219861883
Test: Builds/Presubmit
Change-Id: I3f656b6c7fce93243ccb7591e52441e99137dec6
Merged-In: I3f656b6c7fce93243ccb7591e52441e99137dec6
2022-09-14 17:14:32 +00:00
Sebastian Franco
749b2b8493
Prevent dragging widgets to another page in tests when starting a drag.
...
The function Launchable.startDrag it's supposed to grab and icon or widget
and start the dragging by moving it only in the verticall position but
because it uses the coordinates of the object before entering the
SPRING_LOADED_STATE_ORDINAL state then the coordiates where it moves
are outisde of the cell layout and it moves to a new page. This only happens
if the phone is too slow and it triggers the page change, otherwise it would
be too fast.
To fix it, I'm moving the icon/widget to the center of the screen minus
getStartDragThreshold() to ensure the drag is always triggered.
Fix: 242323136
Fix: 244224955
Fix: 241019568
Fix: 241583798
Test: atest ReorderWidgets
Change-Id: I0e431b994aa4a3d5c8be45b6c73263732553b36c
2022-09-13 15:54:58 -07:00
Winson Chung
252ec11e4e
Update Launcher for removed shared wrappers
...
- Launcher can reference system code directly now
Bug: 219861883
Test: Builds/Presubmit
Change-Id: I3f656b6c7fce93243ccb7591e52441e99137dec6
2022-09-12 16:04:56 +00:00
Qing Wang
67e22eff1f
Add tests to Launcher P0 CUJ Homescreen navigation via TAPL. am: 30c3552e7e am: 46320961b9
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19773679
Change-Id: I4f1b1330c4084e09c6af077803c9abbc17d57d46
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-09-10 20:39:36 +00:00
Qing Wang
30c3552e7e
Add tests to Launcher P0 CUJ Homescreen navigation via TAPL.
...
1. Implement API to help to get page count.
2. Add test add and delete page.
Bug: 241685418
Bug: 232584721
Test: android.platform.test.scenario.launcher.integration_tests.ScreenNavigationTests#testAddAndDeletePageAndFling
Change-Id: I2e04b9ef1f2ca65ba14d6939b7b51fead6b6f6ca
2022-09-10 17:46:24 +00:00
Hui Kang
4420babf45
Merge "Add launch assistant method." into tm-qpr-dev am: 0b44854718 am: f6142422af
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19822904
Change-Id: I6109c36d79d523b61edf2725da66521d859194cd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-09-09 18:55:40 +00:00
c
af5017c6cc
Add launch assistant method.
...
Test: manual atest
Local test with atest on cf_x86_64_phone: 100/100 PASS.
ABTD 100/100 PASS: https://android-build.googleplex.com/builds/abtd/run/L71100000956341271
Change-Id: Ib9276d1cc395f134d77ba0237d94f4f23a3485b3
2022-09-09 03:30:43 +00:00
Tony Wickham
2be2312543
Merge changes Ie55bd70e,I69bcfa97,I222522bc into tm-qpr-dev am: d833fe4a12 am: 94894d8d88
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19472817
Change-Id: Ib419b6f6fad396917f5b477e5c20ca5bd425a165
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-09-01 01:43:50 +00:00
Tony Wickham
c8e824dbdb
Add support to Tapl to recreateTaskbar
...
Also moved references of "tasbkar_view" to share TASKBAR_RES_ID constant
Test: compiles; see follow up CLs
Bug: 235986838
Change-Id: I69bcfa975550e567f3daa35af8a810546297d79c
2022-08-30 13:40:45 -07:00
Ke-Yu Lu
7ba396089c
Merge "Add getIconName to AppIcon" into tm-qpr-dev am: 9672e2e74f am: 03456a8fc6
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19707039
Change-Id: Id2304ce719cdf65eba95c5d97619b92aa5dcd0ae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-25 09:25:55 +00:00
Ke-Yu Lu
6520372966
Add getIconName to AppIcon
...
Bug: 237606436
Test: manual on local device
Change-Id: Ifcd18cefa35148fd744087a207e48791c098899a
2022-08-25 04:54:58 +08:00
Tracy Zhou
be42467b6c
Merge "Fix overview actions tapl test failure" into tm-qpr-dev am: 4b972af5be am: de52e2d76a
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19607309
Change-Id: I28d68b6a52ff58e52065482d2819629815265fe3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-12 21:03:20 +00:00
Tracy Zhou
8bcac711d3
Fix overview actions tapl test failure
...
We don't show overview actions when the current task is a split
Fix: 242312408
Test: manual and presubmit and forrest
Change-Id: Idae64b4286d2e3143a8b0a66938802dcf0b9d3af
2022-08-12 11:14:12 -07:00
Tracy Zhou
38c753f29e
Revert "Revert "Add testSplitFromOverview test (for phones)"" am: 6a4a229c27 am: 5229bc53f3
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19582133
Change-Id: Ic131ed2127755fbb4d3f08b0ca543e23d0e6fad3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-12 06:47:42 +00:00
Tracy Zhou
6a4a229c27
Revert "Revert "Add testSplitFromOverview test (for phones)""
...
This reverts commit 24df4bffd8 .
Reason for revert: resubmit
Change-Id: Iebc66cbce6885e06fe7691c548c1ffe950e936df
2022-08-11 17:59:34 -07:00
TreeHugger Robot
92b6714d96
Merge "Revert "Add testSplitFromOverview test (for phones)"" into tm-qpr-dev am: 0438ea2293 am: 54e6d7a978
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19462868
Change-Id: Ib925efa424541a3b98bbe7f780557d6468d5a951
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-07-29 07:48:16 +00:00
TreeHugger Robot
0438ea2293
Merge "Revert "Add testSplitFromOverview test (for phones)"" into tm-qpr-dev
2022-07-29 07:05:34 +00:00
Winson Chung
24df4bffd8
Revert "Add testSplitFromOverview test (for phones)"
...
This reverts commit 1780cee0fe .
Reason for revert: b/240517487
Change-Id: Id0b690ebba880dd9c978ed42c0f965beb2678b8c
2022-07-29 00:01:17 +00:00
Tracy Zhou
b2d1f07476
Merge "Add testSplitFromOverview test (for phones)" into tm-qpr-dev am: f1a523a790 am: 8d86a4e038
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19252928
Change-Id: I29023a6853f4aaff32d23c124e561eb9c2158bcd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-07-28 05:38:54 +00:00
Tracy Zhou
f1a523a790
Merge "Add testSplitFromOverview test (for phones)" into tm-qpr-dev
2022-07-28 05:06:40 +00:00
vadimt
f6ef879cf4
Moving all sources that are shared between Launcher and TAPL in one directory
...
This will help SysUI test team (who uses TAPL) to set up Gradle build for their tests.
Bug: 202567877, 234414088
Test: presubmit
Change-Id: I3d923ea4b54d1a4c3d2b345be09692727d30433e
2022-07-27 20:18:46 +00:00
Tracy Zhou
1780cee0fe
Add testSplitFromOverview test (for phones)
...
Design doc: go/split_tapl
Bug: 238553914
Fixes: 239082974
Test: run this test
Change-Id: I6b67ede6d62a9fb48222aa4d15fe29ccd1d0fa06
2022-07-27 04:18:50 +00:00
vadimt
47f347b1cf
Moving all sources that are shared between Launcher and TAPL in one directory
...
This will help SysUI test team (who uses TAPL) to set up Gradle build for their tests.
Bug: 202567877
Test: presubmit
Change-Id: I95c267e46cf675ac44dc27b07d0a1143ab761e35
2022-07-26 15:43:00 -07:00
Nataniel Borges
d2e978c54f
Allow disabling orientation changes check on TAPL
...
This is necessary when a command intentionally changes the device orientation. For example, when triggering `goHome` from an app that is in landscape mode, without enabling launcher rotation
Bug: 238757607
Test: testDisableRotationCheck
Change-Id: Ia00d85d3263b6524b4806f54f729a0749684b92a
2022-07-26 08:19:37 +00:00
Tracy Zhou
3e64f94387
Merge "Add splitFromOverviewForTablet test" into tm-qpr-dev
2022-07-19 19:06:47 +00:00
Tracy Zhou
86a844c976
Add splitFromOverviewForTablet test
...
Design doc: go/split_tapl
Bug: 238553914
Test: run this test
Change-Id: Ibb385d852f73dee10470d14c4962cf482740105d
2022-07-19 01:57:35 +00:00
Sebastian Franco
5cba476362
Adding test for the Widgets reordering.
...
TAPL design chagnes at https://docs.google.com/document/d/1PdJZZIn-85-UMRFGZuqj-tJgruIWcg31lZnrb34iBTY/edit?resourcekey=0-uAZuiLCDFV9YhOtLB7wQHQ
The tests consist of a board representing the widgets on
the CellLayout a position to move the main widget (m) to
and the resulting board.
iiiii iiiii
----- --x--
-xxx- -> -xmx-
--m-- -----
----- -----
Move m to 2,2.
Then whe make sure the device corresponds with the resulting
board.
I had to add the event TestLogging.recordEvent(TestProtocol.SEQUENCE_MAIN, "Widgets.onLongClick");
on ItemLongClickListener because the tests where not expecting
a long press on a widget after is being place on the
workspace.
Also, I needed to add the option to drag a widget
to a specific point instead of the previous option
of only dragging to the workspace.
Fix: 231449779
Test: Run the test and make sure they pass.
Change-Id: I58183b7ce2ca64c999e21073cce5e0ba6e6f3a9e
2022-07-18 11:52:12 -07:00
Winson Chung
8bd458b518
Extend accessibility timeout indefinitely before overview screenshot
...
Test: atest TaplTestsQuickstep#testOverviewActions
Bug: 236730000
Change-Id: I4db9fc01aaa048cead47e14c34df609bb43f3906
2022-07-12 16:31:57 +00:00
Tony Wickham
0c8ceda6e7
Merge "Move TEST_HARNESS_TRIGGER_TIMEOUT to MotionPauseDetector directly" into tm-qpr-dev
2022-07-06 16:25:03 +00:00
Tony Wickham
539c2703ea
Move TEST_HARNESS_TRIGGER_TIMEOUT to MotionPauseDetector directly
...
- Removed TestProtocol.sForcePauseTimeout and
TestProtocol.REQUEST_SET_FORCE_PAUSE_TIMEOUT
- Instead, add MotionPauseDetector.TEST_HARNESS_TRIGGER_TIMEOUT, which
is used when Utilities.IS_RUNNING_IN_TEST_HARNESS.
Test: unbundled/launcher/launcher3_test_platform
Fixes: 232548865
Change-Id: I224e99042b41375cab6bffd555434217518958c5
2022-06-30 12:16:08 -07:00
TreeHugger Robot
72c5f330bf
Merge "Add TAPL API for adding app icon to hotseat" into tm-qpr-dev
2022-06-30 05:28:14 +00:00
Chilun Huang
7662dae663
Add TAPL API for adding app icon to hotseat
...
Please refer to go/tapl-add-icon-to-hotseat for more details.
Bug: 231400119
Test: atest NexusLauncherTests:TaplTestsQuickstep#testAddDeleteShortcutOnHotseat
Change-Id: I8cadecbe742413e3ce35ff269c0f78057331532c
Merged-In: I8cadecbe742413e3ce35ff269c0f78057331532c
2022-06-27 11:10:21 +08:00
Alex Chau
d936273b1f
Add test to dismiss AllApps bottom sheet
...
- http://docs/document/d/1ITZDMchoMndfa0nMuOTXbhKhK2aMDz0AT9dgusgxEro
Bug: 236360930
Test: TaplTestsLauncher3.testAllAppsDeadzoneForTablet
Test: TaplTestsNexus.testSearchDeadzoneForTablet
Change-Id: I62adb1d6ef237f9bca3812b8cdce9e5a8383158f
2022-06-24 18:29:43 +01:00
Sebastián Franco
9ffbbf8f2c
Merge "Cherrypick needed for merge conflict with ag/18875278" into tm-qpr-dev
2022-06-23 21:54:13 +00:00