From 27ee6447dbee3171653a0a08623ac7b9dd12e3b1 Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Thu, 29 Jul 2021 11:01:09 +0100 Subject: [PATCH] Clean up screen record for tests - Add new record and remove obsolete ones Bug: 193440212 Bug: 193125090 Bug: 192005114 Test: manual Change-Id: I860c42961e710e1542d9d911338dd359896b6970 --- .../src/com/android/quickstep/DigitalWellBeingToastTest.java | 2 -- .../tests/src/com/android/quickstep/FallbackRecentsTest.java | 2 +- .../tests/src/com/android/quickstep/TaplTestsQuickstep.java | 2 +- .../src/com/android/launcher3/ui/widget/RequestPinItemTest.java | 1 - 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/quickstep/tests/src/com/android/quickstep/DigitalWellBeingToastTest.java b/quickstep/tests/src/com/android/quickstep/DigitalWellBeingToastTest.java index fef9304a7e..3e84a76695 100644 --- a/quickstep/tests/src/com/android/quickstep/DigitalWellBeingToastTest.java +++ b/quickstep/tests/src/com/android/quickstep/DigitalWellBeingToastTest.java @@ -16,7 +16,6 @@ import androidx.test.filters.LargeTest; import androidx.test.runner.AndroidJUnit4; import com.android.launcher3.Launcher; -import com.android.launcher3.util.rule.ScreenRecordRule.ScreenRecord; import com.android.quickstep.views.DigitalWellBeingToast; import com.android.quickstep.views.RecentsView; import com.android.quickstep.views.TaskView; @@ -33,7 +32,6 @@ public class DigitalWellBeingToastTest extends AbstractQuickStepTest { resolveSystemApp(Intent.CATEGORY_APP_CALCULATOR); @Test - @ScreenRecord //b/193440212 public void testToast() throws Exception { startAppFast(CALCULATOR_PACKAGE); diff --git a/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java b/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java index 20b4715367..b36baf8c28 100644 --- a/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java +++ b/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java @@ -214,7 +214,7 @@ public class FallbackRecentsTest { // b/143488140 //@NavigationModeSwitch @Test - @ScreenRecord // b/194484556 + @ScreenRecord // b/187080582 public void testOverview() { startAppFast(getAppPackageName()); startAppFast(resolveSystemApp(Intent.CATEGORY_APP_CALCULATOR)); diff --git a/quickstep/tests/src/com/android/quickstep/TaplTestsQuickstep.java b/quickstep/tests/src/com/android/quickstep/TaplTestsQuickstep.java index ea69b945d3..164e755fd1 100644 --- a/quickstep/tests/src/com/android/quickstep/TaplTestsQuickstep.java +++ b/quickstep/tests/src/com/android/quickstep/TaplTestsQuickstep.java @@ -93,7 +93,6 @@ public class TaplTestsQuickstep extends AbstractQuickStepTest { @Test @PortraitLandscape - @ScreenRecord //b/193440212 public void testOverview() throws Exception { startTestAppsWithCheck(); // mLauncher.pressHome() also tests an important case of pressing home while in background. @@ -159,6 +158,7 @@ public class TaplTestsQuickstep extends AbstractQuickStepTest { @Test @NavigationModeSwitch @PortraitLandscape + @ScreenRecord //b/193125090 public void testOverviewActions() throws Exception { // Experimenting for b/165029151: final Overview overview = mLauncher.pressHome().switchToOverview(); diff --git a/tests/src/com/android/launcher3/ui/widget/RequestPinItemTest.java b/tests/src/com/android/launcher3/ui/widget/RequestPinItemTest.java index 641e53aa4d..a5694fc43d 100644 --- a/tests/src/com/android/launcher3/ui/widget/RequestPinItemTest.java +++ b/tests/src/com/android/launcher3/ui/widget/RequestPinItemTest.java @@ -87,7 +87,6 @@ public class RequestPinItemTest extends AbstractLauncherUiTest { } @Test - @ScreenRecord //b/192005114 public void testPinWidgetNoConfig_customPreview() throws Throwable { // Command to set custom preview Intent command = RequestPinItemActivity.getCommandIntent(