Commit Graph

340 Commits

Author SHA1 Message Date
TreeHugger Robot
2e4a003f71 Merge "Remove the Share button option from Overview." into sc-v2-dev am: 70cc9ffe7c am: 8775a79741
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15935390

Change-Id: I27bfb9c63fb618abb0faaa116e44b9e95aa84b45
2021-09-30 04:38:22 +00:00
TreeHugger Robot
8775a79741 Merge "Remove the Share button option from Overview." into sc-v2-dev am: 70cc9ffe7c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15935390

Change-Id: I34365ae2b2f97536e1bc992ec583b11ce00bdc75
2021-09-30 04:23:41 +00: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
62077ca9ca Merge "Allowing having only SysUI views before pressHome()" into sc-v2-dev am: fcc51bd1fa am: 250509522e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15902027

Change-Id: Id325878f808ae900782a9e022e413190c76c4951
2021-09-24 18:43:50 +00:00
Vadim Tryshev
250509522e Merge "Allowing having only SysUI views before pressHome()" into sc-v2-dev am: fcc51bd1fa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15902027

Change-Id: I904f418dd824c3cdf16a1f4616a5625c14f82ee0
2021-09-24 18:29:36 +00: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
8005d92d22 Merge "Adding screen record for a flake" into sc-v2-dev am: c48f770a3d am: 21f2b4cc91
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15875064

Change-Id: Ic4f372da594e6f726f01211693fdf71f6ab72708
2021-09-21 22:15:55 +00:00
TreeHugger Robot
21f2b4cc91 Merge "Adding screen record for a flake" into sc-v2-dev am: c48f770a3d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15875064

Change-Id: I16bc98a32e7b12a871617b4fd622e180c0bb6bca
2021-09-21 22:02:15 +00: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
Vadim Tryshev
4416c0e95b Merge "Removing unused tracing" into sc-v2-dev am: 72da449f8a am: 502772ad25
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15800620

Change-Id: Ic39116b7c3fdb2d2149285194332eb36324f5703
2021-09-15 03:10:01 +00:00
Vadim Tryshev
502772ad25 Merge "Removing unused tracing" into sc-v2-dev am: 72da449f8a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15800620

Change-Id: I80b3f210bb8b2084deeaac139644b56f40ba7434
2021-09-15 02:50:29 +00:00
vadimt
4e743887c5 Removing unused tracing
Bug: 181019015
Test: presubmit
Change-Id: I7df032e4345c512ba8eb06a2c4104362e1d51dbd
2021-09-10 10:29:07 -07:00
Colin Cross
ad2188fe9f Merge changes from topic "androidx_drop-sc-dev-plus-aosp" into sc-dev-plus-aosp am: af52aea9a3 am: 9b17656ba1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15689632

Change-Id: I52e46ed8fcc9a47ad97da077ada959a719055ba4
2021-09-09 22:18:34 +00: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
Alan Viverette
ca34b4d571 Temporarily disable Launcher3 tests affected by fling changes
Bug: 197802324
Test: TaplTestsLauncher3
Change-Id: I3958bd9fb5521d09fa7cae642128b9f5e11b8e2e
Merged-In: I3958bd9fb5521d09fa7cae642128b9f5e11b8e2e
(cherry picked from commit bc4dc49c6c)
2021-08-26 12:38:10 -07: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
Alex Chau
7a4a30d86d Revert "Migrating all model tests to Instrumentation tests"
This reverts commit 455ba62b5d.

Reason for revert: Breaks tests on all targets

Bug: 196825541
Bug: 197570389
Change-Id: Ida6792a09c54dee46105b6b914a0dd1545bdf48d
2021-08-24 17:27:52 +00:00
vadimt
51ae38304b Not checking for some anomalies when switching nav modes
Test: presubmit
Bug: 196820244
Change-Id: I3e9554d3deb453625cde5003ccf132f21253f58a
2021-08-24 17:23:12 +00:00
Sunny Goyal
455ba62b5d Migrating all model tests to Instrumentation tests
Bug: 196825541
Test: Presubmit
Change-Id: Iebd46eb41eb46c187d569197f4b97b4fddc0f6f7
2021-08-23 12:34:44 -07:00
Sunny Goyal
39aa2e0f1d Moving OrientationTouchTransformerTest to instrumentation tests
Bug: 196825541
Test: Presubmit
Change-Id: Ifb0b00f789214a8dde246ab13703211d536364af
2021-08-19 12:03:26 -07:00
Sunny Goyal
4af8cf9269 Updating test build rules
> Moving definition to bp files
> Adding mokito-inline to allow mocking final classes
> Moving src_common to src to avoid unnecessary code split

Bug: 196825541
Test: Presubmit
Change-Id: Ib6879cda6aee74f5b9050a16eb6ca94ed3b7e28c
2021-08-18 10:22:52 -07:00
Vadim Tryshev
0ec3e647ba Merge "Revert "Removing old workaround"" into sc-v2-dev 2021-08-17 01:20:24 +00:00
Vadim Tryshev
f11d0fac78 Revert "Removing old workaround"
This reverts commit 714d071f76.

Reason for revert: Perhaps caused b/196876329

Change-Id: I0763c44d54134034885471ce74324a8c6c6c296e
Test: presubmit
Bug: 196876329
2021-08-16 22:54:30 +00:00
TreeHugger Robot
77c08b045e Merge "Removing old workaround" into sc-v2-dev 2021-08-16 10:21:45 +00:00
TreeHugger Robot
e22e3aaa9a Merge "Removing old workaround" into sc-v2-dev 2021-08-16 06:45:19 +00:00
TreeHugger Robot
87cf3efe06 Merge "Removing some instrumentation for a workarounded bug" into sc-v2-dev 2021-08-13 18:42:22 +00:00
Alex Chau
2886a13d7a Clean up test logging and ScreenRecord
Bug: 194114179
Bug: 193125090
Test: manual
Change-Id: I086d011a39b74a24d5629d43dc74b741fcf5994e
2021-08-12 11:34:27 +01:00
vadimt
714d071f76 Removing old workaround
Test: presubmit
Bug: 165029151
Change-Id: I5a64c6e381c0bbbf849658648bd5b75a1e660381
2021-08-11 15:44:39 -07:00
vadimt
c353b1adb2 Removing old workaround
Bug: 139137636
Test: presubmit
Change-Id: Iaa307c3d58f76ab7ee3b0a4a4a364b2b97d0efb7
2021-08-11 15:06:07 -07:00
vadimt
a1e0b01a44 Removing some instrumentation for a workarounded bug
Bug: 187080582
Test: Local, presubmit
Change-Id: I2334072bebc9d4e40d632fe068943bf5560f02e4
2021-08-10 18:43:40 -07:00
TreeHugger Robot
f5c3dab525 Merge "Migrate from using taskIDs to taskViewIDs in RecentsView" into sc-v2-dev 2021-08-03 04:20:42 +00:00
TreeHugger Robot
144b16bbb1 Merge "Band-aid for getHomeActivities returning null" into sc-v2-dev 2021-08-02 19:20:01 +00:00
vadimt
42a7d1af83 Band-aid for getHomeActivities returning null
It can return null immediately after android.intent.action.ACTION_PREFERRED_ACTIVITY_CHANGED
notification.

Test: local
Bug: 187080582
Change-Id: I8625fdfc0add57fed832bdca4713747a005bf08c
2021-08-02 10:38:12 -07:00
Vinit Nayak
51a6c92174 Migrate from using taskIDs to taskViewIDs in RecentsView
* Follow up CL coming to introduce a TaskView that
can have multiple Tasks, so a taskID won't be particularly useful
in that scenario.

Bug: 192292305
Test: Manual, w/ and w/o live tile
Change-Id: I1900b999ac51aa99923239f2af400c90c71c3dae
2021-07-30 11:02:26 -07:00
Alex Chau
27ee6447db Clean up screen record for tests
- Add new record and remove obsolete ones

Bug: 193440212
Bug: 193125090
Bug: 192005114
Test: manual
Change-Id: I860c42961e710e1542d9d911338dd359896b6970
2021-07-29 11:01:09 +01:00
Alex Chau
261708ba00 Clean up debug flags and add more screen record
Bug: 193440212
Bug: 194484556
Test: manual
Change-Id: I1b09ae74462c86afb8effb0a2635fd0e70a59bf8
2021-07-23 15:42:01 +01:00
Alex Chau
2450adf56f Always use INSIDE_TO_OUTSIDE scope when swiping to home in tablets
- In tablets user is either in home screen or there is a taskbar on screen, so swipe to home will always touches the launcher

Bug: 193653850
Test: StartLauncherViaGestureTests
Change-Id: Id1b05708324302eb4b4c2d623ca9fe27090188fc
2021-07-21 14:52:01 +01:00
Alex Chau
cd791c5c9d Wait for taskbar to become visible after closing launcher in tests
- Taskbar takes some time to appear after closing launcher and launching test app

Bug: 193653850
Test: StartLauncherViaGestureTests
Change-Id: I714e35ee855660ac28bb214386f48ddbea0e834c
2021-07-20 21:11:08 +01:00
Alex Chau
22a86d7c8c Fix TaplTestQuickStep.testOverview for large screen cuttlefish
- Use gesture (or button) to press home instead of UIDevice in the test, as UIDevice is sometimes failing to go home in cuttlefish

Bug: 193440212
Test: TaplTestQuickStep.testOverview
Change-Id: I834f1c93c24db24edbccd0bbf0ed5cfcf39a9b4d
2021-07-13 19:26:15 +01:00
Alex Chau
34c449d72e Merge "Add screen record for failing TaplTestsQuickstep" into sc-v2-dev 2021-07-02 17:20:30 +00:00
Alex Chau
b297c7e615 Add screen record for failing TaplTestsQuickstep
- For debugging failures that only happnes on cuttlefish

Bug: 191344757
Test: TaplTestsQuickstep
Change-Id: Iac16e222dc7b60f94e1eb7f305c5ccb909161783
2021-07-02 15:14:05 +01:00
Tracy Zhou
1fe5fda3d8 Enable live tile in 3 button mode
- Previously we rely on whether launcher is resumed as a signal to see what "toggle" means. This no longer works since launcher is not resumed in Overview. Instead, we need to check the live tile signals.
- Use screenshot doesn't propagate after setting a new current task. So followed the logic around mRunningTaskIconScaledDown to work it out.
- Get rid of NavigationModeFeatureFlag, pending on 3rd party launcher change ag/14409355

Fixes: 185934639
Test: (1) Toggle overview from home screen and toggle back to fullscreen. (2) Toggle overview from app and keep toggling.

Change-Id: Iffaea18afb2179b5bb7dadda49e56efefa5658bc
Merged-In: Iffaea18afb2179b5bb7dadda49e56efefa5658bc
2021-07-02 05:19:32 +00:00
Tracy Zhou
d09ebe660f Enable live tile in 3 button mode
- Previously we rely on whether launcher is resumed as a signal to see what "toggle" means. This no longer works since launcher is not resumed in Overview. Instead, we need to check the live tile signals.
- Use screenshot doesn't propagate after setting a new current task. So followed the logic around mRunningTaskIconScaledDown to work it out.
- Get rid of NavigationModeFeatureFlag, pending on 3rd party launcher change ag/14409355

Fixes: 185934639
Test: (1) Toggle overview from home screen and toggle back to fullscreen. (2) Toggle overview from app and keep toggling.

Change-Id: Iffaea18afb2179b5bb7dadda49e56efefa5658bc
2021-07-01 18:40:56 -07:00
Alex Chau
7a9972289f Add touch event of on taskbar for various cases
- Temporarily disable leak detection on tablets until b/191449914 is resolved
- Add touch event on taskbar when interacting with navigation buttons
- Added TaplTestsLauncher3.initialize to StartLauncherViaGestureTests which is present in TaplTestQuickstep to solve LauncherInstrumentation being null problem on tablets

Bug: 191344757, 191449914
Test: TaplTestQuickstep and StartLauncherViaGestureTests
Change-Id: I49accc458d133717f290140abe80aae8a683f6c0
2021-06-24 18:00:12 +01:00
Vadim Tryshev
46aab40dd5 Merge "Detect leaks only on test success Bug: 191690396 Test: presubmit" into sc-dev am: 9d7ff51901
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15068626

Change-Id: I15ec31f5147ee3a484d33dedc3e6ae5dfe25abbd
2021-06-23 17:52:35 +00:00
vadimt
143748fbf4 Detect leaks only on test success
Bug: 191690396
Test: presubmit

Change-Id: Ie59c3b944d420ac25ebba86bf500fcf33700ca99
2021-06-22 18:49:34 -07:00