Marked some WM flaky tests as such
Bug: 131005232 Test: self Change-Id: I59139bd1821bf63342db90c4739d60389d57e0db
This commit is contained in:
@@ -27,6 +27,7 @@ import static org.junit.Assert.assertTrue;
|
||||
|
||||
import android.platform.test.annotations.Presubmit;
|
||||
|
||||
import androidx.test.filters.FlakyTest;
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import org.junit.Before;
|
||||
@@ -80,6 +81,7 @@ public class AnimatingAppWindowTokenRegistryTest extends WindowTestsBase {
|
||||
}
|
||||
|
||||
@Test
|
||||
@FlakyTest(bugId = 131005232)
|
||||
public void testContainerRemoved() {
|
||||
final AppWindowToken window1 = createAppWindowToken(mDisplayContent,
|
||||
WINDOWING_MODE_FULLSCREEN, ACTIVITY_TYPE_STANDARD);
|
||||
|
||||
@@ -38,6 +38,7 @@ import android.view.RemoteAnimationAdapter;
|
||||
import android.view.RemoteAnimationDefinition;
|
||||
import android.view.RemoteAnimationTarget;
|
||||
|
||||
import androidx.test.filters.FlakyTest;
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import org.junit.Test;
|
||||
@@ -96,6 +97,7 @@ public class AppChangeTransitionTests extends WindowTestsBase {
|
||||
}
|
||||
|
||||
@Test
|
||||
@FlakyTest(bugId = 131005232)
|
||||
public void testModeChangeRemoteAnimatorNoSnapshot() {
|
||||
// setup currently defaults to no snapshot.
|
||||
setUpOnDisplay(mDisplayContent);
|
||||
@@ -113,6 +115,7 @@ public class AppChangeTransitionTests extends WindowTestsBase {
|
||||
}
|
||||
|
||||
@Test
|
||||
@FlakyTest(bugId = 131005232)
|
||||
public void testCancelPendingChangeOnRemove() {
|
||||
// setup currently defaults to no snapshot.
|
||||
setUpOnDisplay(mDisplayContent);
|
||||
@@ -132,6 +135,7 @@ public class AppChangeTransitionTests extends WindowTestsBase {
|
||||
}
|
||||
|
||||
@Test
|
||||
@FlakyTest(bugId = 131005232)
|
||||
public void testNoChangeWhenMoveDisplay() {
|
||||
mDisplayContent.setWindowingMode(WINDOWING_MODE_FULLSCREEN);
|
||||
final DisplayContent dc1 = createNewDisplay(Display.STATE_ON);
|
||||
|
||||
@@ -31,6 +31,7 @@ import static org.junit.Assert.assertTrue;
|
||||
import android.platform.test.annotations.Presubmit;
|
||||
import android.view.WindowManager;
|
||||
|
||||
import androidx.test.filters.FlakyTest;
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import org.junit.Before;
|
||||
@@ -52,6 +53,7 @@ public class AppTransitionControllerTest extends WindowTestsBase {
|
||||
}
|
||||
|
||||
@Test
|
||||
@FlakyTest(bugId = 131005232)
|
||||
public void testTranslucentOpen() {
|
||||
synchronized (mWm.mGlobalLock) {
|
||||
final AppWindowToken behind = createAppWindowToken(mDisplayContent,
|
||||
@@ -69,6 +71,7 @@ public class AppTransitionControllerTest extends WindowTestsBase {
|
||||
}
|
||||
|
||||
@Test
|
||||
@FlakyTest(bugId = 131005232)
|
||||
public void testTranslucentClose() {
|
||||
synchronized (mWm.mGlobalLock) {
|
||||
final AppWindowToken behind = createAppWindowToken(mDisplayContent,
|
||||
@@ -84,6 +87,7 @@ public class AppTransitionControllerTest extends WindowTestsBase {
|
||||
}
|
||||
|
||||
@Test
|
||||
@FlakyTest(bugId = 131005232)
|
||||
public void testChangeIsNotOverwritten() {
|
||||
synchronized (mWm.mGlobalLock) {
|
||||
final AppWindowToken behind = createAppWindowToken(mDisplayContent,
|
||||
|
||||
@@ -39,6 +39,7 @@ import android.view.Display;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
import androidx.test.filters.FlakyTest;
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
/**
|
||||
@@ -78,6 +79,7 @@ public class AppTransitionTests extends WindowTestsBase {
|
||||
}
|
||||
|
||||
@Test
|
||||
@FlakyTest(bugId = 131005232)
|
||||
public void testForceOverride() {
|
||||
mWm.prepareAppTransition(TRANSIT_KEYGUARD_UNOCCLUDE, false /* alwaysKeepCurrent */);
|
||||
mDc.prepareAppTransition(TRANSIT_ACTIVITY_OPEN,
|
||||
@@ -93,6 +95,7 @@ public class AppTransitionTests extends WindowTestsBase {
|
||||
}
|
||||
|
||||
@Test
|
||||
@FlakyTest(bugId = 131005232)
|
||||
public void testKeepKeyguard_withCrashing() {
|
||||
mWm.prepareAppTransition(TRANSIT_KEYGUARD_GOING_AWAY, false /* alwaysKeepCurrent */);
|
||||
mWm.prepareAppTransition(TRANSIT_CRASHING_ACTIVITY_CLOSE, false /* alwaysKeepCurrent */);
|
||||
@@ -100,6 +103,7 @@ public class AppTransitionTests extends WindowTestsBase {
|
||||
}
|
||||
|
||||
@Test
|
||||
@FlakyTest(bugId = 131005232)
|
||||
public void testAppTransitionStateForMultiDisplay() {
|
||||
// Create 2 displays & presume both display the state is ON for ready to display & animate.
|
||||
final DisplayContent dc1 = createNewDisplay(Display.STATE_ON);
|
||||
|
||||
@@ -28,6 +28,7 @@ import android.platform.test.annotations.Presubmit;
|
||||
import android.view.Surface;
|
||||
import android.view.SurfaceControl;
|
||||
|
||||
import androidx.test.filters.FlakyTest;
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import org.junit.Test;
|
||||
@@ -53,6 +54,7 @@ public class AppWindowThumbnailTest extends WindowTestsBase {
|
||||
}
|
||||
|
||||
@Test
|
||||
@FlakyTest(bugId = 131005232)
|
||||
public void testDestroy_nullsSurface() {
|
||||
final AppWindowThumbnail t = buildThumbnail();
|
||||
assertNotNull(t.getSurfaceControl());
|
||||
|
||||
@@ -39,6 +39,7 @@ import android.view.SurfaceControl;
|
||||
import android.view.SurfaceSession;
|
||||
import android.view.View;
|
||||
|
||||
import androidx.test.filters.FlakyTest;
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import com.android.server.LocalServices;
|
||||
@@ -146,16 +147,19 @@ public class DragDropControllerTests extends WindowTestsBase {
|
||||
}
|
||||
|
||||
@Test
|
||||
@FlakyTest(bugId = 131005232)
|
||||
public void testDragFlow() {
|
||||
dragFlow(0, ClipData.newPlainText("label", "Test"), 0, 0);
|
||||
}
|
||||
|
||||
@Test
|
||||
@FlakyTest(bugId = 131005232)
|
||||
public void testPerformDrag_NullDataWithGrantUri() {
|
||||
dragFlow(View.DRAG_FLAG_GLOBAL | View.DRAG_FLAG_GLOBAL_URI_READ, null, 0, 0);
|
||||
}
|
||||
|
||||
@Test
|
||||
@FlakyTest(bugId = 131005232)
|
||||
public void testPerformDrag_NullDataToOtherUser() {
|
||||
final WindowState otherUsersWindow =
|
||||
createDropTargetWindow("Other user's window", 1 * UserHandle.PER_USER_RANGE);
|
||||
|
||||
@@ -31,6 +31,7 @@ import android.platform.test.annotations.Presubmit;
|
||||
import android.view.InsetsSource;
|
||||
import android.view.InsetsState;
|
||||
|
||||
import androidx.test.filters.FlakyTest;
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import org.junit.Before;
|
||||
|
||||
@@ -58,6 +58,7 @@ public class InsetsStateControllerTest extends WindowTestsBase {
|
||||
}
|
||||
|
||||
@Test
|
||||
@FlakyTest(bugId = 131005232)
|
||||
public void testStripForDispatch_notOwn() {
|
||||
final WindowState topBar = createWindow(null, TYPE_APPLICATION, "parentWindow");
|
||||
final WindowState app = createWindow(null, TYPE_APPLICATION, "parentWindow");
|
||||
|
||||
@@ -24,6 +24,7 @@ import android.app.ActivityOptions;
|
||||
import android.platform.test.annotations.Presubmit;
|
||||
import android.view.RemoteAnimationAdapter;
|
||||
|
||||
import androidx.test.filters.FlakyTest;
|
||||
import androidx.test.filters.SmallTest;
|
||||
|
||||
import com.android.server.testutils.OffsettableClock;
|
||||
@@ -73,6 +74,7 @@ public class PendingRemoteAnimationRegistryTest extends ActivityTestsBase {
|
||||
}
|
||||
|
||||
@Test
|
||||
@FlakyTest(bugId = 131005232)
|
||||
public void testTimeout() {
|
||||
mRegistry.addPendingAnimation("com.android.test", mAdapter);
|
||||
mClock.fastForward(5000);
|
||||
|
||||
@@ -110,6 +110,7 @@ public class PersisterQueueTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@FlakyTest(bugId = 131005232)
|
||||
public void testProcessOneItem_Flush() throws Exception {
|
||||
mFactory.setExpectedProcessedItemNumber(1);
|
||||
mListener.setExpectedOnPreProcessItemCallbackTimes(1);
|
||||
|
||||
@@ -29,6 +29,8 @@ import android.os.UserManager;
|
||||
import android.platform.test.annotations.Presubmit;
|
||||
import android.util.SparseBooleanArray;
|
||||
|
||||
import androidx.test.filters.FlakyTest;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
@@ -72,6 +74,7 @@ public class TaskPersisterTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@FlakyTest(bugId = 131005232)
|
||||
public void testTaskIdsPersistence() {
|
||||
SparseBooleanArray taskIdsOnFile = new SparseBooleanArray();
|
||||
for (int i = 0; i < 100; i++) {
|
||||
|
||||
Reference in New Issue
Block a user