Loading services/tests/servicestests/src/com/android/server/pm/ShortcutManagerTest7.java +3 −3 Original line number Original line Diff line number Diff line Loading @@ -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; Loading Loading @@ -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(), Loading Loading @@ -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); Loading services/tests/servicestests/src/com/android/server/pm/ShortcutManagerTest8.java +14 −14 Original line number Original line Diff line number Diff line Loading @@ -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); Loading Loading @@ -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); Loading Loading @@ -322,7 +322,7 @@ public class ShortcutManagerTest8 extends BaseShortcutManagerTest { }); }); } } public void testRequestPinShortcut() { public void disabled_testRequestPinShortcut() { checkRequestPinShortcut(/* resultIntent=*/ null); checkRequestPinShortcut(/* resultIntent=*/ null); } } Loading @@ -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()); } } Loading Loading @@ -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); Loading Loading @@ -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, () -> { Loading Loading @@ -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, () -> { Loading Loading @@ -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, () -> { Loading Loading @@ -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, () -> { Loading Loading @@ -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, () -> { Loading Loading @@ -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, () -> { Loading Loading @@ -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, () -> { Loading Loading @@ -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, () -> { Loading Loading @@ -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, () -> { Loading Loading
services/tests/servicestests/src/com/android/server/pm/ShortcutManagerTest7.java +3 −3 Original line number Original line Diff line number Diff line Loading @@ -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; Loading Loading @@ -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(), Loading Loading @@ -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); Loading
services/tests/servicestests/src/com/android/server/pm/ShortcutManagerTest8.java +14 −14 Original line number Original line Diff line number Diff line Loading @@ -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); Loading Loading @@ -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); Loading Loading @@ -322,7 +322,7 @@ public class ShortcutManagerTest8 extends BaseShortcutManagerTest { }); }); } } public void testRequestPinShortcut() { public void disabled_testRequestPinShortcut() { checkRequestPinShortcut(/* resultIntent=*/ null); checkRequestPinShortcut(/* resultIntent=*/ null); } } Loading @@ -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()); } } Loading Loading @@ -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); Loading Loading @@ -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, () -> { Loading Loading @@ -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, () -> { Loading Loading @@ -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, () -> { Loading Loading @@ -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, () -> { Loading Loading @@ -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, () -> { Loading Loading @@ -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, () -> { Loading Loading @@ -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, () -> { Loading Loading @@ -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, () -> { Loading Loading @@ -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, () -> { Loading