Disabling testToast on virtual devices

Bug: 150303529
Change-Id: Ie523b79468f37e9edbd50f77db4d358e6713a463
This commit is contained in:
vadimt 2020-03-04 18:49:52 -08:00
parent 67457275e0
commit f6385576d5
1 changed files with 4 additions and 5 deletions

View File

@ -3,8 +3,6 @@ package com.android.quickstep;
import static androidx.test.InstrumentationRegistry.getInstrumentation;
import static com.android.launcher3.LauncherState.OVERVIEW;
import static com.android.launcher3.util.rule.TestStabilityRule.PLATFORM_POSTSUBMIT;
import static com.android.launcher3.util.rule.TestStabilityRule.UNBUNDLED_POSTSUBMIT;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
@ -13,12 +11,12 @@ import static org.junit.Assert.assertTrue;
import android.app.PendingIntent;
import android.app.usage.UsageStatsManager;
import android.content.Intent;
import android.os.Build;
import androidx.test.filters.LargeTest;
import androidx.test.runner.AndroidJUnit4;
import com.android.launcher3.Launcher;
import com.android.launcher3.util.rule.TestStabilityRule;
import com.android.quickstep.views.DigitalWellBeingToast;
import com.android.quickstep.views.RecentsView;
import com.android.quickstep.views.TaskView;
@ -35,9 +33,10 @@ public class DigitalWellBeingToastTest extends AbstractQuickStepTest {
resolveSystemApp(Intent.CATEGORY_APP_CALCULATOR);
@Test
// b/150303529
@TestStabilityRule.Stability(flavors = UNBUNDLED_POSTSUBMIT | PLATFORM_POSTSUBMIT)
public void testToast() throws Exception {
// b/150303529
if (Build.MODEL.contains("Cuttlefish")) return;
startAppFast(CALCULATOR_PACKAGE);
final UsageStatsManager usageStatsManager =