Home
last modified time | relevance | path

Searched refs:assertExpectException (Results 1 – 11 of 11) 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.java20 …rt static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException;
84 assertExpectException(SecurityException.class, "must be shell", in testNonShell()
88 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.java49 …rt static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException;
519 assertExpectException( in testPublishWithNoActivity_noMainActivityInPackage()
1350 assertExpectException( in testGetShortcuts()
6133 assertExpectException( in testSaveAndLoad_crossProfile()
6212 assertExpectException( in testSaveAndLoad_crossProfile()
6228 assertExpectException( in testSaveAndLoad_crossProfile()
6233 assertExpectException( in testSaveAndLoad_crossProfile()
6268 assertExpectException(SecurityException.class, "Missing permission", () -> in testOnApplicationActive_permission()
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/
DBackupPasswordManagerTest.java19 import static com.android.server.testutils.TestUtils.assertExpectException;
83 assertExpectException( in hasBackupPassword_throwsSecurityExceptionIfLacksPermission()
138 assertExpectException( in backupPasswordMatches_throwsSecurityExceptionIfLacksPermission()
173 assertExpectException( in setBackupPassword_throwsSecurityExceptionIfLacksPermission()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java29 import static com.android.server.testutils.TestUtils.assertExpectException;
347 assertExpectException(SecurityException.class, /* messageRegex= */ null, in testSetActiveAdmin_SecurityException()
353 assertExpectException(SecurityException.class, /* messageRegex= */ null, in testSetActiveAdmin_SecurityException()
440 assertExpectException(IllegalArgumentException.class, /* messageRegex= */ null, in testSetActiveAdmin()
507 assertExpectException(IllegalArgumentException.class, /* messageRegex= */ null, in testSetActiveAdmin_twiceWithoutReplace()
520 assertExpectException(IllegalArgumentException.class, in testSetActiveAdmin_permissionCheck()
551 assertExpectException(SecurityException.class, /* messageRegex =*/ null, in testRemoveActiveAdmin_SecurityException()
561 assertExpectException(SecurityException.class, /* messageRegex =*/ null, in testRemoveActiveAdmin_SecurityException()
585 assertExpectException(IllegalStateException.class, in testRemoveActiveAdmin_userNotRunningOrLocked()
746 assertExpectException(SecurityException.class, in testForceRemoveActiveAdmin()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DCachedSyntheticPasswordTests.java22 import static com.android.server.testutils.TestUtils.assertExpectException;
126 assertExpectException(IllegalStateException.class, /* messageRegex= */ null, in testUntrustedCredentialChangeBlockedIfSpNotCached()
/frameworks/base/services/tests/servicestests/src/com/android/server/testutils/
DTestUtils.java33 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.java408 public static void assertExpectException(Class<? extends Throwable> expectedExceptionType, in assertExpectException() method in ShortcutManagerTestUtils
410 assertExpectException("", expectedExceptionType, expectedExceptionMessageRegex, r); in assertExpectException()
414 assertExpectException( in assertCannotUpdateImmutable()
419 assertExpectException(IllegalArgumentException.class, in assertDynamicShortcutCountExceeded()
423 public static void assertExpectException(String message, in assertExpectException() method in ShortcutManagerTestUtils