Merge "Promote passing WM unit tests to presubmit" into udc-dev am: fb8e894486
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22849786 Change-Id: Ife1d59bf474ef5fc78b8456a09a2adeb7ff8d9c4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -62,7 +62,6 @@ import android.util.MergedConfiguration;
|
|||||||
import android.view.Display;
|
import android.view.Display;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
|
||||||
import androidx.test.filters.FlakyTest;
|
|
||||||
import androidx.test.filters.MediumTest;
|
import androidx.test.filters.MediumTest;
|
||||||
import androidx.test.platform.app.InstrumentationRegistry;
|
import androidx.test.platform.app.InstrumentationRegistry;
|
||||||
import androidx.test.rule.ActivityTestRule;
|
import androidx.test.rule.ActivityTestRule;
|
||||||
@@ -616,7 +615,6 @@ public class ActivityThreadTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@FlakyTest(bugId = 176134235)
|
|
||||||
public void testHandleConfigurationChanged_DoesntOverrideActivityConfig() {
|
public void testHandleConfigurationChanged_DoesntOverrideActivityConfig() {
|
||||||
final TestActivity activity = mActivityTestRule.launchActivity(new Intent());
|
final TestActivity activity = mActivityTestRule.launchActivity(new Intent());
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ import android.platform.test.annotations.Presubmit;
|
|||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.IWindowManager;
|
import android.view.IWindowManager;
|
||||||
|
|
||||||
import androidx.test.filters.FlakyTest;
|
|
||||||
import androidx.test.filters.MediumTest;
|
import androidx.test.filters.MediumTest;
|
||||||
|
|
||||||
import com.android.server.am.AssistDataRequester;
|
import com.android.server.am.AssistDataRequester;
|
||||||
@@ -155,7 +154,6 @@ public class AssistDataRequesterTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@FlakyTest(bugId = 130388718)
|
|
||||||
public void testRequestData() throws Exception {
|
public void testRequestData() throws Exception {
|
||||||
setupMocks(CURRENT_ACTIVITY_ASSIST_ALLOWED, CALLER_ASSIST_STRUCTURE_ALLOWED,
|
setupMocks(CURRENT_ACTIVITY_ASSIST_ALLOWED, CALLER_ASSIST_STRUCTURE_ALLOWED,
|
||||||
CALLER_ASSIST_SCREENSHOT_ALLOWED);
|
CALLER_ASSIST_SCREENSHOT_ALLOWED);
|
||||||
@@ -263,7 +261,6 @@ public class AssistDataRequesterTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@FlakyTest(bugId = 130388718)
|
|
||||||
public void testNoFetchScreenshots_expectNoScreenshotCallbacks() throws Exception {
|
public void testNoFetchScreenshots_expectNoScreenshotCallbacks() throws Exception {
|
||||||
setupMocks(CURRENT_ACTIVITY_ASSIST_ALLOWED, CALLER_ASSIST_STRUCTURE_ALLOWED,
|
setupMocks(CURRENT_ACTIVITY_ASSIST_ALLOWED, CALLER_ASSIST_STRUCTURE_ALLOWED,
|
||||||
CALLER_ASSIST_SCREENSHOT_ALLOWED);
|
CALLER_ASSIST_SCREENSHOT_ALLOWED);
|
||||||
@@ -275,7 +272,6 @@ public class AssistDataRequesterTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@FlakyTest(bugId = 130388718)
|
|
||||||
public void testDisallowAssistScreenshot_expectNullScreenshotCallback() throws Exception {
|
public void testDisallowAssistScreenshot_expectNullScreenshotCallback() throws Exception {
|
||||||
setupMocks(CURRENT_ACTIVITY_ASSIST_ALLOWED, CALLER_ASSIST_STRUCTURE_ALLOWED,
|
setupMocks(CURRENT_ACTIVITY_ASSIST_ALLOWED, CALLER_ASSIST_STRUCTURE_ALLOWED,
|
||||||
!CALLER_ASSIST_SCREENSHOT_ALLOWED);
|
!CALLER_ASSIST_SCREENSHOT_ALLOWED);
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ import static org.junit.Assert.assertTrue;
|
|||||||
import android.os.SystemClock;
|
import android.os.SystemClock;
|
||||||
import android.platform.test.annotations.Presubmit;
|
import android.platform.test.annotations.Presubmit;
|
||||||
|
|
||||||
import androidx.test.filters.FlakyTest;
|
|
||||||
import androidx.test.filters.MediumTest;
|
import androidx.test.filters.MediumTest;
|
||||||
|
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
@@ -110,7 +109,6 @@ public class PersisterQueueTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@FlakyTest(bugId = 131005232)
|
|
||||||
public void testProcessOneItem_Flush() throws Exception {
|
public void testProcessOneItem_Flush() throws Exception {
|
||||||
mFactory.setExpectedProcessedItemNumber(1);
|
mFactory.setExpectedProcessedItemNumber(1);
|
||||||
mListener.setExpectedOnPreProcessItemCallbackTimes(1);
|
mListener.setExpectedOnPreProcessItemCallbackTimes(1);
|
||||||
@@ -162,7 +160,6 @@ public class PersisterQueueTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@FlakyTest(bugId = 128526085)
|
|
||||||
public void testProcessTwoItems_OneAfterAnother() throws Exception {
|
public void testProcessTwoItems_OneAfterAnother() throws Exception {
|
||||||
// First item
|
// First item
|
||||||
mFactory.setExpectedProcessedItemNumber(1);
|
mFactory.setExpectedProcessedItemNumber(1);
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ import android.view.Surface;
|
|||||||
import android.view.WindowManager;
|
import android.view.WindowManager;
|
||||||
import android.view.WindowManager.LayoutParams;
|
import android.view.WindowManager.LayoutParams;
|
||||||
|
|
||||||
import androidx.test.filters.FlakyTest;
|
|
||||||
import androidx.test.filters.SmallTest;
|
import androidx.test.filters.SmallTest;
|
||||||
|
|
||||||
import com.android.server.wm.RefreshRatePolicy.FrameRateVote;
|
import com.android.server.wm.RefreshRatePolicy.FrameRateVote;
|
||||||
@@ -53,7 +52,6 @@ import org.junit.runner.RunWith;
|
|||||||
@SmallTest
|
@SmallTest
|
||||||
@Presubmit
|
@Presubmit
|
||||||
@RunWith(WindowTestRunner.class)
|
@RunWith(WindowTestRunner.class)
|
||||||
@FlakyTest
|
|
||||||
public class RefreshRatePolicyTest extends WindowTestsBase {
|
public class RefreshRatePolicyTest extends WindowTestsBase {
|
||||||
private static final int HI_MODE_ID = 1;
|
private static final int HI_MODE_ID = 1;
|
||||||
private static final float HI_REFRESH_RATE = 90;
|
private static final float HI_REFRESH_RATE = 90;
|
||||||
|
|||||||
@@ -98,7 +98,6 @@ public class SurfaceAnimationRunnerTest {
|
|||||||
mFinishCallbackLatch.countDown();
|
mFinishCallbackLatch.countDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
@FlakyTest(bugId = 144611135)
|
|
||||||
@Test
|
@Test
|
||||||
public void testAnimation() throws Exception {
|
public void testAnimation() throws Exception {
|
||||||
mSurfaceAnimationRunner
|
mSurfaceAnimationRunner
|
||||||
|
|||||||
@@ -52,7 +52,6 @@ import android.view.Display;
|
|||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
|
|
||||||
import androidx.test.filters.FlakyTest;
|
|
||||||
import androidx.test.filters.MediumTest;
|
import androidx.test.filters.MediumTest;
|
||||||
|
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
@@ -319,7 +318,6 @@ public class TaskStackChangedListenerTest {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Presubmit
|
@Presubmit
|
||||||
@FlakyTest(bugId = 150409355)
|
|
||||||
@Test
|
@Test
|
||||||
public void testNotifyTaskRequestedOrientationChanged() throws Exception {
|
public void testNotifyTaskRequestedOrientationChanged() throws Exception {
|
||||||
final ArrayBlockingQueue<int[]> taskIdAndOrientationQueue = new ArrayBlockingQueue<>(10);
|
final ArrayBlockingQueue<int[]> taskIdAndOrientationQueue = new ArrayBlockingQueue<>(10);
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ import static org.mockito.ArgumentMatchers.any;
|
|||||||
import android.hardware.HardwareBuffer;
|
import android.hardware.HardwareBuffer;
|
||||||
import android.platform.test.annotations.Presubmit;
|
import android.platform.test.annotations.Presubmit;
|
||||||
|
|
||||||
import androidx.test.filters.FlakyTest;
|
|
||||||
import androidx.test.filters.SmallTest;
|
import androidx.test.filters.SmallTest;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
@@ -55,7 +54,6 @@ public class WindowContainerThumbnailTest extends WindowTestsBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@FlakyTest(bugId = 131005232)
|
|
||||||
public void testDestroy_nullsSurface() {
|
public void testDestroy_nullsSurface() {
|
||||||
final WindowContainerThumbnail t = buildThumbnail();
|
final WindowContainerThumbnail t = buildThumbnail();
|
||||||
assertNotNull(t.getSurfaceControl());
|
assertNotNull(t.getSurfaceControl());
|
||||||
|
|||||||
Reference in New Issue
Block a user