Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest10.java18 …rt static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException;
134 assertExpectException(SecurityException.class, "Calling uid mismatch", in testCreateShortcutResult_defaultLauncherChanges()
143 assertExpectException(SecurityException.class, "Calling uid mismatch", in testCreateShortcutResult_defaultLauncherChanges()
177 assertExpectException(SecurityException.class, null, () -> in testStartConfigActivity_nonDefaultLauncher()
DShortcutManagerTest9.java19 …rt static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException;
99 assertExpectException(IllegalStateException.class, "foreground activity", () -> { in testNotForeground()
DShortcutManagerTest2.java19 …rt static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException;
83 assertExpectException( in testShortcutInfoMissingMandatoryFields()
88 assertExpectException( in testShortcutInfoMissingMandatoryFields()
93 assertExpectException( in testShortcutInfoMissingMandatoryFields()
98 assertExpectException( in testShortcutInfoMissingMandatoryFields()
103 assertExpectException( in testShortcutInfoMissingMandatoryFields()
108 assertExpectException( in testShortcutInfoMissingMandatoryFields()
114 assertExpectException( in testShortcutInfoMissingMandatoryFields()
119 assertExpectException( in testShortcutInfoMissingMandatoryFields()
124 assertExpectException( in testShortcutInfoMissingMandatoryFields()
[all …]
DShortcutManagerTest7.java20 …rt static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException;
93 assertExpectException(SecurityException.class, "must be shell", in testNonShell()
97 assertExpectException(SecurityException.class, "must be shell", in testNonShell()
DShortcutManagerTest8.java19 …rt static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException;
231 assertExpectException(IllegalStateException.class, "foreground activity", () -> { in testNotForeground()
403 assertExpectException(IllegalStateException.class, "not belong to package", () -> { in testRequestPinShortcut_wrongTargetActivity()
809 assertExpectException(IllegalArgumentException.class, "exists but disabled", () -> { in testRequestPinShortcut_wasDynamic_disabled_alreadyPinned()
841 assertExpectException(IllegalArgumentException.class, "exists but disabled", () -> { in testRequestPinShortcut_wasManifest_alreadyPinned()
1572 assertExpectException(SecurityException.class, "Calling uid mismatch", request::accept); in testRequestPinShortcut_wrongLauncherCannotAccept()
DShortcutManagerTest1.java48 …rt static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException;
746 assertExpectException( in testPublishWithNoActivity_noMainActivityInPackage()
1713 assertExpectException( in testCachedShortcuts_accessShortcutsPermission()
1731 assertExpectException( in testCachedShortcuts_accessShortcutsPermission()
1945 assertExpectException( in testGetShortcuts()
1981 assertExpectException( in testGetShortcuts()
2184 assertExpectException( in testGetShortcuts_personsFlag()
6728 assertExpectException( in testSaveAndLoad_crossProfile()
6807 assertExpectException( in testSaveAndLoad_crossProfile()
6823 assertExpectException( in testSaveAndLoad_crossProfile()
[all …]
/frameworks/base/services/tests/mockingservicestests/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/integrity/parser/
DRuleBinaryParserTest.java33 import static com.android.server.testutils.TestUtils.assertExpectException;
448 assertExpectException( in testBinaryString_invalidAtomicFormula_noIndexing()
475 assertExpectException( in testBinaryString_withEmptyRule_noIndexing()
511 assertExpectException( in testBinaryString_invalidCompoundFormula_invalidNumberOfFormulas_noIndexing()
538 assertExpectException( in testBinaryString_invalidRule_invalidOperator_noIndexing()
568 assertExpectException( in testBinaryString_invalidRule_invalidEffect_noIndexing()
598 assertExpectException( in testBinaryString_invalidRule_invalidConnector_noIndexing()
628 assertExpectException( in testBinaryString_invalidRule_invalidKey_noIndexing()
658 assertExpectException( in testBinaryString_invalidRule_invalidSeparator_noIndexing()
688 assertExpectException( in testBinaryString_invalidRule_invalidEndMarker_noIndexing()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java66 import static com.android.server.testutils.TestUtils.assertExpectException;
483 assertExpectException(SecurityException.class, /* messageRegex= */ null, in testSetActiveAdmin_SecurityException()
489 assertExpectException(SecurityException.class, /* messageRegex= */ null, in testSetActiveAdmin_SecurityException()
581 assertExpectException(IllegalArgumentException.class, /* messageRegex= */ null, in testSetActiveAdmin()
650 assertExpectException(IllegalArgumentException.class, /* messageRegex= */ null, in testSetActiveAdmin_twiceWithoutReplace()
664 assertExpectException(IllegalArgumentException.class, in testSetActiveAdmin_permissionCheck()
696 assertExpectException(SecurityException.class, /* messageRegex =*/ null, in testRemoveActiveAdmin_SecurityException()
706 assertExpectException(SecurityException.class, /* messageRegex =*/ null, in testRemoveActiveAdmin_SecurityException()
730 assertExpectException(IllegalStateException.class, in testRemoveActiveAdmin_userNotRunningOrLocked()
907 assertExpectException(SecurityException.class, in testForceRemoveActiveAdmin_nonShellCaller()
[all …]
/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/servicestests/src/com/android/server/integrity/serializer/
DRuleBinarySerializerTest.java38 import static com.android.server.testutils.TestUtils.assertExpectException;
114 assertExpectException( in testBinaryString_serializeNullRules()
487 assertExpectException( in testBinaryString_serializeInvalidFormulaType()
651 assertExpectException( in testBinaryString_totalRuleSizeLimitReached()
679 assertExpectException( in testBinaryString_tooManyPackageNameIndexedRules()
707 assertExpectException( in testBinaryString_tooManyAppCertificateIndexedRules()
735 assertExpectException( in testBinaryString_tooManyNonIndexedRules()
DRuleIndexingDetailsIdentifierTest.java23 import static com.android.server.testutils.TestUtils.assertExpectException;
121 assertExpectException( in getIndexType_nullRule()
133 assertExpectException( in getIndexType_invalidFormula()
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
DShortcutManagerTestUtils.java477 public static void assertExpectException(Class<? extends Throwable> expectedExceptionType, in assertExpectException() method in ShortcutManagerTestUtils
479 assertExpectException("", expectedExceptionType, expectedExceptionMessageRegex, r); in assertExpectException()
483 assertExpectException( in assertCannotUpdateImmutable()
488 assertExpectException(IllegalArgumentException.class, in assertDynamicShortcutCountExceeded()
492 public static void assertExpectException(String message, in assertExpectException() method in ShortcutManagerTestUtils
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/
DAppIntegrityManagerServiceImplTest.java208 TestUtils.assertExpectException( in updateRuleSet_notAuthorized()
227 TestUtils.assertExpectException( in updateRuleSet_notSystemApp()