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;
530 assertExpectException( in testPublishWithNoActivity_noMainActivityInPackage()
1361 assertExpectException( in testGetShortcuts()
6144 assertExpectException( in testSaveAndLoad_crossProfile()
6223 assertExpectException( in testSaveAndLoad_crossProfile()
6239 assertExpectException( in testSaveAndLoad_crossProfile()
6244 assertExpectException( in testSaveAndLoad_crossProfile()
6279 assertExpectException(SecurityException.class, "Missing permission", () -> in testOnApplicationActive_permission()
6290 assertExpectException(SecurityException.class, "Missing permission", () -> in testGetShareTargets_permission()
6299 assertExpectException(SecurityException.class, "Missing permission", () -> in testHasShareTargets_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.java33 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()
442 assertExpectException(IllegalArgumentException.class, /* messageRegex= */ null, in testSetActiveAdmin()
509 assertExpectException(IllegalArgumentException.class, /* messageRegex= */ null, in testSetActiveAdmin_twiceWithoutReplace()
522 assertExpectException(IllegalArgumentException.class, in testSetActiveAdmin_permissionCheck()
553 assertExpectException(SecurityException.class, /* messageRegex =*/ null, in testRemoveActiveAdmin_SecurityException()
563 assertExpectException(SecurityException.class, /* messageRegex =*/ null, in testRemoveActiveAdmin_SecurityException()
587 assertExpectException(IllegalStateException.class, in testRemoveActiveAdmin_userNotRunningOrLocked()
752 assertExpectException(SecurityException.class, in testForceRemoveActiveAdmin()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DCachedSyntheticPasswordTests.java21 import static com.android.server.testutils.TestUtils.assertExpectException;
132 assertExpectException( in testUntrustedCredentialChangeBlockedIfSpNotCached()
/frameworks/base/services/tests/servicestests/utils/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.java413 public static void assertExpectException(Class<? extends Throwable> expectedExceptionType, in assertExpectException() method in ShortcutManagerTestUtils
415 assertExpectException("", expectedExceptionType, expectedExceptionMessageRegex, r); in assertExpectException()
419 assertExpectException( in assertCannotUpdateImmutable()
424 assertExpectException(IllegalArgumentException.class, in assertDynamicShortcutCountExceeded()
428 public static void assertExpectException(String message, in assertExpectException() method in ShortcutManagerTestUtils