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

Commit 9cd2cd07 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Disable failing tests" into main

parents 612565f2 7c9f3ad4
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -109,7 +109,7 @@ public class ShortcutManagerTest7 extends BaseShortcutManagerTest {
        assertEquals(3, mService.mMaxUpdatesPerInterval);
        assertEquals(3, mService.mMaxUpdatesPerInterval);
    }
    }


    public void testRestConfig() throws Exception {
    public void disabled_testRestConfig() throws Exception {
        mService.mMaxUpdatesPerInterval = 99;
        mService.mMaxUpdatesPerInterval = 99;


        mInjectedCallingUid = Process.SHELL_UID;
        mInjectedCallingUid = Process.SHELL_UID;
@@ -223,7 +223,7 @@ public class ShortcutManagerTest7 extends BaseShortcutManagerTest {
    }
    }


    // This command is deprecated. Will remove the test later.
    // This command is deprecated. Will remove the test later.
    public void testLauncherCommands() throws Exception {
    public void disabled_testLauncherCommands() throws Exception {
        prepareGetRoleHoldersAsUser(getSystemLauncher().activityInfo.packageName, USER_10);
        prepareGetRoleHoldersAsUser(getSystemLauncher().activityInfo.packageName, USER_10);
        prepareGetHomeActivitiesAsUser(
        prepareGetHomeActivitiesAsUser(
                /* preferred */ getSystemLauncher().activityInfo.getComponentName(),
                /* preferred */ getSystemLauncher().activityInfo.getComponentName(),
@@ -401,7 +401,7 @@ public class ShortcutManagerTest7 extends BaseShortcutManagerTest {


    }
    }


    public void testDumpsysArgs() {
    public void disabled_testDumpsysArgs() {
        checkDumpsysArgs(null, true, false, false);
        checkDumpsysArgs(null, true, false, false);
        checkDumpsysArgs(array("-u"), true, true, false);
        checkDumpsysArgs(array("-u"), true, true, false);
        checkDumpsysArgs(array("--uid"), true, true, false);
        checkDumpsysArgs(array("--uid"), true, true, false);
+14 −14
Original line number Original line Diff line number Diff line
@@ -91,7 +91,7 @@ public class ShortcutManagerTest8 extends BaseShortcutManagerTest {
        assertEquals(USER_10, mService.getParentOrSelfUserId(USER_P0));
        assertEquals(USER_10, mService.getParentOrSelfUserId(USER_P0));
    }
    }


    public void testIsRequestPinShortcutSupported() {
    public void disabled_testIsRequestPinShortcutSupported() {
        setDefaultLauncher(USER_10, LAUNCHER_1);
        setDefaultLauncher(USER_10, LAUNCHER_1);
        setDefaultLauncher(USER_11, LAUNCHER_2);
        setDefaultLauncher(USER_11, LAUNCHER_2);


@@ -168,7 +168,7 @@ public class ShortcutManagerTest8 extends BaseShortcutManagerTest {
        });
        });
    }
    }


    public void testRequestPinShortcut_notSupported() {
    public void disabled_testRequestPinShortcut_notSupported() {
        // User-0's launcher has no confirmation activity.
        // User-0's launcher has no confirmation activity.
        setDefaultLauncher(USER_10, LAUNCHER_1);
        setDefaultLauncher(USER_10, LAUNCHER_1);


@@ -322,7 +322,7 @@ public class ShortcutManagerTest8 extends BaseShortcutManagerTest {
        });
        });
    }
    }


    public void testRequestPinShortcut() {
    public void disabled_testRequestPinShortcut() {
        checkRequestPinShortcut(/* resultIntent=*/ null);
        checkRequestPinShortcut(/* resultIntent=*/ null);
    }
    }


@@ -332,7 +332,7 @@ public class ShortcutManagerTest8 extends BaseShortcutManagerTest {
                PendingIntent.FLAG_MUTABLE).getIntentSender();
                PendingIntent.FLAG_MUTABLE).getIntentSender();
    }
    }


    public void testRequestPinShortcut_withCallback() {
    public void disabled_testRequestPinShortcut_withCallback() {
        checkRequestPinShortcut(makeResultIntent());
        checkRequestPinShortcut(makeResultIntent());
    }
    }


@@ -410,7 +410,7 @@ public class ShortcutManagerTest8 extends BaseShortcutManagerTest {
        });
        });
    }
    }


    public void testRequestPinShortcut_noTargetActivity_noMainActivity() {
    public void disabled_testRequestPinShortcut_noTargetActivity_noMainActivity() {
        setDefaultLauncher(USER_10, LAUNCHER_1);
        setDefaultLauncher(USER_10, LAUNCHER_1);
        setDefaultLauncher(USER_11, LAUNCHER_2);
        setDefaultLauncher(USER_11, LAUNCHER_2);


@@ -675,7 +675,7 @@ public class ShortcutManagerTest8 extends BaseShortcutManagerTest {
        });
        });
    }
    }


    public void testRequestPinShortcut_manifestExists_alreadyPinned() {
    public void disabled_testRequestPinShortcut_manifestExists_alreadyPinned() {
        setDefaultLauncher(USER_10, LAUNCHER_1);
        setDefaultLauncher(USER_10, LAUNCHER_1);


        runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> {
        runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> {
@@ -757,7 +757,7 @@ public class ShortcutManagerTest8 extends BaseShortcutManagerTest {
        });
        });
    }
    }


    public void testRequestPinShortcut_wasDynamic_alreadyPinned() {
    public void disabled_testRequestPinShortcut_wasDynamic_alreadyPinned() {
        setDefaultLauncher(USER_10, LAUNCHER_1);
        setDefaultLauncher(USER_10, LAUNCHER_1);


        runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> {
        runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> {
@@ -785,7 +785,7 @@ public class ShortcutManagerTest8 extends BaseShortcutManagerTest {
        });
        });
    }
    }


    public void testRequestPinShortcut_wasDynamic_disabled_alreadyPinned() {
    public void disabled_testRequestPinShortcut_wasDynamic_disabled_alreadyPinned() {
        setDefaultLauncher(USER_10, LAUNCHER_1);
        setDefaultLauncher(USER_10, LAUNCHER_1);


        runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> {
        runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> {
@@ -816,7 +816,7 @@ public class ShortcutManagerTest8 extends BaseShortcutManagerTest {
        });
        });
    }
    }


    public void testRequestPinShortcut_wasManifest_alreadyPinned() {
    public void disabled_testRequestPinShortcut_wasManifest_alreadyPinned() {
        setDefaultLauncher(USER_10, LAUNCHER_1);
        setDefaultLauncher(USER_10, LAUNCHER_1);


        runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> {
        runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> {
@@ -910,7 +910,7 @@ public class ShortcutManagerTest8 extends BaseShortcutManagerTest {
        });
        });
    }
    }


    public void testRequestPinShortcut_manifestExists_alreadyPinnedByAnother() {
    public void disabled_testRequestPinShortcut_manifestExists_alreadyPinnedByAnother() {
        // Initially all launchers have the shortcut permission, until we call setDefaultLauncher().
        // Initially all launchers have the shortcut permission, until we call setDefaultLauncher().


        runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> {
        runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> {
@@ -1106,7 +1106,7 @@ public class ShortcutManagerTest8 extends BaseShortcutManagerTest {
    /**
    /**
     * When trying to pin an existing shortcut, the new fields shouldn't override existing fields.
     * When trying to pin an existing shortcut, the new fields shouldn't override existing fields.
     */
     */
    public void testRequestPinShortcut_manifestExists_titleWontChange() {
    public void disabled_testRequestPinShortcut_manifestExists_titleWontChange() {
        setDefaultLauncher(USER_10, LAUNCHER_1);
        setDefaultLauncher(USER_10, LAUNCHER_1);


        runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> {
        runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> {
@@ -1287,7 +1287,7 @@ public class ShortcutManagerTest8 extends BaseShortcutManagerTest {
     * The manifest shortcut existed, but before accepting(), it's removed.  Because the request
     * The manifest shortcut existed, but before accepting(), it's removed.  Because the request
     * has a partial shortcut, accept() should fail.
     * has a partial shortcut, accept() should fail.
     */
     */
    public void testRequestPinShortcut_manifestExists_thenRemoved_error() {
    public void disabled_testRequestPinShortcut_manifestExists_thenRemoved_error() {
        setDefaultLauncher(USER_10, LAUNCHER_1);
        setDefaultLauncher(USER_10, LAUNCHER_1);


        runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> {
        runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> {
@@ -1344,7 +1344,7 @@ public class ShortcutManagerTest8 extends BaseShortcutManagerTest {
     * The manifest shortcut existed, but before accepting(), it's removed.  Because the request
     * The manifest shortcut existed, but before accepting(), it's removed.  Because the request
     * has all the mandatory fields, we can go ahead and still publish it.
     * has all the mandatory fields, we can go ahead and still publish it.
     */
     */
    public void testRequestPinShortcut_manifestExists_thenRemoved_okay() {
    public void disabled_testRequestPinShortcut_manifestExists_thenRemoved_okay() {
        setDefaultLauncher(USER_10, LAUNCHER_1);
        setDefaultLauncher(USER_10, LAUNCHER_1);


        runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> {
        runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> {
@@ -1478,7 +1478,7 @@ public class ShortcutManagerTest8 extends BaseShortcutManagerTest {
     * The manifest shortcut existed, but before accepting(), it's removed.  Because the request
     * The manifest shortcut existed, but before accepting(), it's removed.  Because the request
     * has a partial shortcut, accept() should fail.
     * has a partial shortcut, accept() should fail.
     */
     */
    public void testRequestPinShortcut_manifestExists_thenDisabled_error() {
    public void disabled_testRequestPinShortcut_manifestExists_thenDisabled_error() {
        setDefaultLauncher(USER_10, LAUNCHER_1);
        setDefaultLauncher(USER_10, LAUNCHER_1);


        runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> {
        runWithCaller(CALLING_PACKAGE_1, USER_P0, () -> {