Home
last modified time | relevance | path

Searched refs:assertExpectException (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest10.java19 .assertExpectException;
137 assertExpectException(SecurityException.class, "Calling uid mismatch", in testCreateShortcutResult_defaultLauncherChanges()
146 assertExpectException(SecurityException.class, "Calling uid mismatch", in testCreateShortcutResult_defaultLauncherChanges()
179 assertExpectException(SecurityException.class, null, () -> in testStartConfigActivity_nonDefaultLauncher()
DShortcutManagerTest2.java19 …rt static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException;
78 assertExpectException( in testShortcutInfoMissingMandatoryFields()
83 assertExpectException( in testShortcutInfoMissingMandatoryFields()
88 assertExpectException( in testShortcutInfoMissingMandatoryFields()
93 assertExpectException( in testShortcutInfoMissingMandatoryFields()
98 assertExpectException( in testShortcutInfoMissingMandatoryFields()
103 assertExpectException( in testShortcutInfoMissingMandatoryFields()
109 assertExpectException( in testShortcutInfoMissingMandatoryFields()
114 assertExpectException( in testShortcutInfoMissingMandatoryFields()
119 assertExpectException( in testShortcutInfoMissingMandatoryFields()
[all …]
DShortcutManagerTest9.java19 …rt static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException;
96 assertExpectException(IllegalStateException.class, "foreground activity", () -> { in testNotForeground()
DShortcutManagerTest7.java19 …rt static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException;
83 assertExpectException(SecurityException.class, "must be shell", in testNonShell()
87 assertExpectException(SecurityException.class, "must be shell", in testNonShell()
DShortcutManagerTest8.java19 …rt static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException;
228 assertExpectException(IllegalStateException.class, "foreground activity", () -> { in testNotForeground()
398 assertExpectException(IllegalStateException.class, "not belong to package", () -> { in testRequestPinShortcut_wrongTargetActivity()
804 assertExpectException(IllegalArgumentException.class, "exists but disabled", () -> { in testRequestPinShortcut_wasDynamic_disabled_alreadyPinned()
836 assertExpectException(IllegalArgumentException.class, "exists but disabled", () -> { in testRequestPinShortcut_wasManifest_alreadyPinned()
1567 assertExpectException(SecurityException.class, "Calling uid mismatch", request::accept); in testRequestPinShortcut_wrongLauncherCannotAccept()
DShortcutManagerTest1.java44 …rt static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException;
482 assertExpectException( in testPublishWithNoActivity_noMainActivityInPackage()
1310 assertExpectException( in testGetShortcuts()
5612 assertExpectException( in testSaveAndLoad_crossProfile()
5691 assertExpectException( in testSaveAndLoad_crossProfile()
5707 assertExpectException( in testSaveAndLoad_crossProfile()
5712 assertExpectException( in testSaveAndLoad_crossProfile()
5747 assertExpectException(SecurityException.class, "Missing permission", () -> in testOnApplicationActive_permission()
/frameworks/base/services/tests/servicestests/src/com/android/server/testutis/
DTestUtils.java26 public static void assertExpectException(Class<? extends Throwable> expectedExceptionType, in assertExpectException() method in TestUtils
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
DShortcutManagerTestUtils.java402 public static void assertExpectException(Class<? extends Throwable> expectedExceptionType, in assertExpectException() method in ShortcutManagerTestUtils
404 assertExpectException("", expectedExceptionType, expectedExceptionMessageRegex, r); in assertExpectException()
408 assertExpectException( in assertCannotUpdateImmutable()
413 assertExpectException(IllegalArgumentException.class, in assertDynamicShortcutCountExceeded()
417 public static void assertExpectException(String message, in assertExpectException() method in ShortcutManagerTestUtils