Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a4d140e authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Suppress "DistinctVarargsChecker" errorprone warnings

These tests intentionally use the same arguments.

Bug: 371307720
Test: atest services/tests/mockingservicestests/src/com/android/server/am/BroadcastQueueTest.java
Flag: TEST_ONLY
Change-Id: I9c91d2b84f540655949837f07c63e00935aa0cb7
parent d469420a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1554,6 +1554,7 @@ public class BroadcastQueueTest extends BaseBroadcastQueueTest {
     * Verify that when dispatching we respect tranches of priority.
     */
    @DisableFlags(Flags.FLAG_LIMIT_PRIORITY_SCOPE)
    @SuppressWarnings("DistinctVarargsChecker")
    @Test
    public void testPriority_flagDisabled() throws Exception {
        final ProcessRecord callerApp = makeActiveProcessRecord(PACKAGE_RED);
@@ -1600,6 +1601,7 @@ public class BroadcastQueueTest extends BaseBroadcastQueueTest {
    /**
     * Verify that when dispatching we respect tranches of priority.
     */
    @SuppressWarnings("DistinctVarargsChecker")
    @Test
    public void testOrdered_withPriorities() throws Exception {
        final ProcessRecord callerApp = makeActiveProcessRecord(PACKAGE_RED);
@@ -1649,6 +1651,7 @@ public class BroadcastQueueTest extends BaseBroadcastQueueTest {
     * Verify that when dispatching we respect tranches of priority.
     */
    @EnableFlags(Flags.FLAG_LIMIT_PRIORITY_SCOPE)
    @SuppressWarnings("DistinctVarargsChecker")
    @Test
    public void testPriority_changeIdDisabled() throws Exception {
        final ProcessRecord callerApp = makeActiveProcessRecord(PACKAGE_RED);