Commit Graph

1870 Commits

Author SHA1 Message Date
TreeHugger Robot a6f666f12e Merge "Revert "Migrate workspace item adding tests to kotlin"" into sc-v2-dev am: da014976cd am: 6b17728794
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16340532

Change-Id: Ifb4d6dd8bfcdd914c042dd1681bc9bbd977ce09f
2021-11-25 16:10:20 +00:00
TreeHugger Robot 6b17728794 Merge "Revert "Migrate workspace item adding tests to kotlin"" into sc-v2-dev am: da014976cd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16340532

Change-Id: Ic8ad226dab178bd50189b78830d7ea56da55f450
2021-11-25 15:56:20 +00:00
TreeHugger Robot da014976cd Merge "Revert "Migrate workspace item adding tests to kotlin"" into sc-v2-dev 2021-11-25 15:40:06 +00:00
Pat Manning 4433db800c Fix tapl tests for overview actions in fallback recents.
Note: fallback recents test may still fail manual testing if using flag SEPARATE_RECENTS_ACTIVITY

Test: FallbackRecentsTest.java
Bug: 197630182
Change-Id: Id18184e1f6271337adceacc9bac583d84e83afed
2021-11-25 15:39:47 +00:00
Alex Chau 4075f17c2d Revert "Migrate workspace item adding tests to kotlin"
This reverts commit e77eafc263.

Reason for revert: b/207684378
Bug: 207684378
Bug: 199160559

Change-Id: I4a35fea423f1cd7afae4603fd1185150763f8bf0
2021-11-25 11:54:26 +00:00
András Klöczl 95b43e593c Merge "Migrate workspace item adding tests to kotlin" into sc-v2-dev am: 283798dbd5 am: 2d1cfb899b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16321893

Change-Id: I1bbd1d40c9f4f69d9c4d6123229dfdf71a3ba849
2021-11-24 10:54:00 +00:00
András Klöczl 2d1cfb899b Merge "Migrate workspace item adding tests to kotlin" into sc-v2-dev am: 283798dbd5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16321893

Change-Id: I1fd1ed39633fdc4c48a8d4a6c0b568faa8a39e09
2021-11-24 10:37:26 +00:00
András Klöczl 283798dbd5 Merge "Migrate workspace item adding tests to kotlin" into sc-v2-dev 2021-11-24 10:21:39 +00:00
Andras Kloczl e77eafc263 Migrate workspace item adding tests to kotlin
In a former CL (http://ag/16064580) I've tried to
do the same but presubmit was constantly failing,
probably because the test is in kotlin.

Test: AddWorkspaceItemsTaskTest.kt
Bug: 199160559
Change-Id: Ie1bc4fcd4f94cd7cb0601c21bbdf273452b9dd1f
2021-11-23 18:32:12 +00:00
TreeHugger Robot c35eb548d5 Merge "Add timeout to AbstractLauncherUiTest.getOnUiThread" into sc-v2-dev am: 953641e28d am: 1bad3382fc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16321879

Change-Id: Iee12654f4221a0afef718057d9569d4ac2527538
2021-11-22 21:35:52 +00:00
TreeHugger Robot 1bad3382fc Merge "Add timeout to AbstractLauncherUiTest.getOnUiThread" into sc-v2-dev am: 953641e28d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16321879

Change-Id: I763c42250a2793647122c3c12423457bc2a140c5
2021-11-22 21:13:14 +00:00
TreeHugger Robot 953641e28d Merge "Add timeout to AbstractLauncherUiTest.getOnUiThread" into sc-v2-dev 2021-11-22 20:59:16 +00:00
vadimt edb0527dbd Logging the stack trace for system anomaly messages am: 499e2055a6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16322469

Change-Id: I86b2c6379ce08d42fe727a6c63679136ffe428de
2021-11-22 20:37:38 +00:00
Alex Chau 31b46953cb Add timeout to AbstractLauncherUiTest.getOnUiThread
- Send signal 6 to Launcher process when this happens to get a thread dump

Bug: 203416429
Test: labtest
Change-Id: If22b58418be33131e7f585e718a2197cda2e7365
2021-11-22 18:36:11 +00:00
vadimt 499e2055a6 Logging the stack trace for system anomaly messages
With these system anomalies, you are never sure that the system/tests will be able to normally bubble up the error.

Bug: 203416429
Test: presubmit

Change-Id: Ie1d3d183cf6e56778d5c052ef7b8e0541bbc6255
(cherry picked from commit 37542c8c0e)
2021-11-22 18:08:00 +00:00
Vadim Tryshev 98c0dcb638 Merge "Logging the stack trace for system anomaly messages" 2021-11-22 18:07:13 +00:00
vadimt 37542c8c0e Logging the stack trace for system anomaly messages
With these system anomalies, you are never sure that the system/tests will be able to normally bubble up the error.

Bug: 203416429
Test: presubmit

Change-Id: Ie1d3d183cf6e56778d5c052ef7b8e0541bbc6255
2021-11-19 15:25:07 -08:00
TreeHugger Robot cfb379f134 Merge "Revert "Adding screen record for a flake"" into sc-v2-dev am: 8c8e2a22da am: 29eee5f1fe
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16283892

Change-Id: Ibafab58da774055547fa5ff049fd7a737df7dd45
2021-11-19 01:17:21 +00:00
TreeHugger Robot 29eee5f1fe Merge "Revert "Adding screen record for a flake"" into sc-v2-dev am: 8c8e2a22da
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16283892

Change-Id: I7e9973c5600c996bd26b242f3e8b7c82d513ea37
2021-11-19 01:04:50 +00:00
TreeHugger Robot 8c8e2a22da Merge "Revert "Adding screen record for a flake"" into sc-v2-dev 2021-11-19 00:51:07 +00:00
Alex Chau 7210d90e3f Merge "Recognizing Launcher builds consisting only of digits" into sc-v2-dev am: 90a9982b36 am: 3bf362fe30
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16285317

Change-Id: I9267f7bef72eb9f23afd4417c6c46380a79aae5d
2021-11-18 10:45:04 +00:00
Alex Chau 3bf362fe30 Merge "Recognizing Launcher builds consisting only of digits" into sc-v2-dev am: 90a9982b36
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16285317

Change-Id: Id1503027367fdc2c4e4f20fcf12de9863e012667
2021-11-18 10:33:48 +00:00
vadimt 60ba2ac084 Recognizing Launcher builds consisting only of digits
Bug: 206687633
Test: online regex tools
Change-Id: Ia6155f22fb9a0eba3beb6edb607f44f901629330
2021-11-17 19:07:20 +00:00
Jonathan Miranda ae1bcc9ba8 Revert "Adding screen record for a flake"
This reverts commit da02250c29.

Reason for revert: Flake resolved
Bug: 202735477
Test: presubmit

Change-Id: I86856110ca9b8745c194a716a587d3bbe7f0137e
2021-11-17 16:24:26 +00:00
Sebastian Franco 3b86202a95 Fling to close tasks in the GestureNav can be too small.
The problem is that the velocity threshold to activate the fling
was set using pixels per second, so a better aproach would is to
use dp/s. So now there is a variable set in the dimes.xml file
called base_swift_detector_fling_release_velocity.

Test: Manually tested
Fix: 201252634
Change-Id: Ief14f25de136dead74f03cb24d2120b67900239e
2021-11-16 14:46:36 -06:00
TreeHugger Robot 86d0c44e25 Merge "Fix LauncherProvider newScreenId issue" into sc-v2-dev am: 82fc85f9b8 am: 506927514d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16064580

Change-Id: Iaa46ac7af2731e42c438f907ca80cf982952a381
2021-11-16 19:16:03 +00:00
TreeHugger Robot 506927514d Merge "Fix LauncherProvider newScreenId issue" into sc-v2-dev am: 82fc85f9b8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16064580

Change-Id: I8f25b31835fc64a7f76ae7267e7bcb2a6a4d8434
2021-11-16 19:15:25 +00:00
TreeHugger Robot 82fc85f9b8 Merge "Fix LauncherProvider newScreenId issue" into sc-v2-dev 2021-11-16 19:00:47 +00:00
TreeHugger Robot 431d0cacde Merge "Revert "Add ScreenRecord to methods affected by a flaky problem"" into sc-v2-dev am: a6c4b66b7f am: a8a8c75bd7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16272580

Change-Id: Ib98ceb1fb8faf7966ac7f2030a02b9674103aa18
2021-11-16 13:24:39 +00:00
TreeHugger Robot a8a8c75bd7 Merge "Revert "Add ScreenRecord to methods affected by a flaky problem"" into sc-v2-dev am: a6c4b66b7f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16272580

Change-Id: Ic3f37f1c1803ac4fe19dc048932d77772e0d3105
2021-11-16 13:13:34 +00:00
Alex Chau 033f2afe38 Revert "Add ScreenRecord to methods affected by a flaky problem"
This reverts commit ea6ee1c824.

Reason for revert: Seems to increase the severity of the flaky problem
Bug: 204807156

Change-Id: I7b87f2abf45c9da21981f9361e320163bd7834bd
2021-11-16 11:19:09 +00:00
TreeHugger Robot c23c40a35a Merge "Add ScreenRecord to methods affected by a flaky problem" into sc-v2-dev am: fffea98399 am: ce57748e66
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16261407

Change-Id: Ibe75d4169be434b559beee3690e3bfce072d5acf
2021-11-15 22:00:38 +00:00
TreeHugger Robot ce57748e66 Merge "Add ScreenRecord to methods affected by a flaky problem" into sc-v2-dev am: fffea98399
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16261407

Change-Id: Iad0bec3854b6ccd77c4ab223b2476c619e123098
2021-11-15 21:45:24 +00:00
TreeHugger Robot 025bc00048 Merge "Removing a dead test" into sc-v2-dev am: d5884f1c7b am: 239d9dfb4a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16249737

Change-Id: I93e7b822833c82f76b8375011c012527531f9b8e
2021-11-15 17:13:47 +00:00
Alex Chau ea6ee1c824 Add ScreenRecord to methods affected by a flaky problem
Bug: 204807156
Test: none
Change-Id: I554c032b2ea43b8ee813f694d9c995f4ebc4a90f
2021-11-15 15:48:54 +00:00
TreeHugger Robot 239d9dfb4a Merge "Removing a dead test" into sc-v2-dev am: d5884f1c7b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16249737

Change-Id: I730a4f5e8ead0daf32b257f1810e1aba32ef1380
2021-11-13 03:39:28 +00:00
vadimt 581fbae506 Removing a dead test
Test: presubmit
Bug: 147235759
Change-Id: I1412360316c87813d309cfbc1deefad00e7dd2ce
2021-11-12 20:15:24 +00:00
Andras Kloczl 953eb8041e Fix LauncherProvider newScreenId issue
Remove maxScreenId from LauncherProvider and whenever we need
a new screenId, query the database to calculate a new screenId.
Also converted and refactored AddWorkspaceItemsTaskTest
and added some extra test cases.

Test: manual & AddWorkspaceItemsTaskTest.kt
Bug: 199160559
Change-Id: I185f6823fed171d778af0130497f5ffaf89c0a70
2021-11-12 19:56:07 +00:00
Brian Isganitis 99a6be39ca Merge "Allow overriding getOptionsPopup test method." into sc-v2-dev am: bc1b36344f am: 7e5e234668
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16215049

Change-Id: I59d603e5413c0a2b1f528fbfcef4d041c519502a
2021-11-10 20:29:16 +00:00
Brian Isganitis 7e5e234668 Merge "Allow overriding getOptionsPopup test method." into sc-v2-dev am: bc1b36344f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16215049

Change-Id: I5634da8649178166d17a63d04787e5079df83dc0
2021-11-10 20:17:45 +00:00
Brian Isganitis bc1b36344f Merge "Allow overriding getOptionsPopup test method." into sc-v2-dev 2021-11-10 19:56:07 +00:00
Jon Miranda bc477f52b8 Add back waitForStateTransitionToEnd to fix flakiness. am: 8568602aaf am: 6dbfce731a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16225468

Change-Id: Icb006c27e1fbe731f6cce33ab10c179cba3b455c
2021-11-10 09:31:02 +00:00
Jon Miranda 6dbfce731a Add back waitForStateTransitionToEnd to fix flakiness. am: 8568602aaf
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16225468

Change-Id: Ide0870aab3b7d595417ae4e34502118eb951c32c
2021-11-10 09:19:08 +00:00
Jon Miranda 8568602aaf Add back waitForStateTransitionToEnd to fix flakiness.
Bug: 202735477
Test: presubmit
Change-Id: I03c7e8b0c40177f4e6e38a7d9aa3e01b029effd6
2021-11-09 17:02:31 -08:00
Jon Miranda d0de5ca3e4 Add resume check to other WorkProfileTests to fix flakiness. am: f37d7a21f2 am: cbe0f5fa63
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16222650

Change-Id: Ib2bd359448328ab1fea1fcb5f68c1ad2b5e4e466
2021-11-09 21:24:47 +00:00
Jon Miranda cbe0f5fa63 Add resume check to other WorkProfileTests to fix flakiness. am: f37d7a21f2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16222650

Change-Id: Ibb9c82bdab00dae3953a33b4e53f785528fdf2f3
2021-11-09 21:01:35 +00:00
Jon Miranda f37d7a21f2 Add resume check to other WorkProfileTests to fix flakiness.
- Tests were flaky with waitForStateTransitionToEnd
- Tests stopped flaking with both waitForResume and waitForStateTransitionToEnd
- waitForResume may be enough to fix the flakiness, so
  removing waitForStateTransitionToEnd for now, if flakiness
  returns we can add it back

Bug: 202735477
Test: presubmit
Change-Id: Ib9cc16ea7815387582486517a87249d0053475f6
2021-11-09 10:14:01 -08:00
Alex Chau c3a92ca2eb Merge "Remove gap between screenIds when restoring from single display device" into sc-v2-dev am: 048a8246fa am: 2ccecc1614
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16191338

Change-Id: Ia4a19dfe7d59ff7b71e1ca35c22493a371dc3723
2021-11-09 17:44:40 +00:00
Alex Chau 2ccecc1614 Merge "Remove gap between screenIds when restoring from single display device" into sc-v2-dev am: 048a8246fa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16191338

Change-Id: I7d37cd871cf8f6b506154458ba09bc4fe5e9b2e0
2021-11-09 17:23:05 +00:00
Alex Chau ac038434f0 Remove gap between screenIds when restoring from single display device
- In RestoreDbTask.sanitizeDb, add extra step to fill all screenIds gaps so that no empty pages are left in between
  e.g. [0, 3, 4, 6, 7] -> [0, 1, 2, 3, 4]

Fix: 201085524
Test: RestoreDbTaskTest
Change-Id: If0b577bf789347cc490ada0b22f2cd39ee1a33bb
2021-11-09 17:01:01 +00:00