Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A 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()
H A DShortcutManagerTest9.java19 …rt static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException;
99 assertExpectException(IllegalStateException.class, "foreground activity", () -> { in testNotForeground()
H A DShortcutManagerTest2.java83 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()
129 assertExpectException( in testShortcutInfoMissingMandatoryFields()
[all …]
H A 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()
H A 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()
H A DShortcutManagerTest1.java695 assertExpectException( in testPublishWithNoActivity_noMainActivityInPackage()
1662 assertExpectException( in testCachedShortcuts_accessShortcutsPermission()
1680 assertExpectException( in testCachedShortcuts_accessShortcutsPermission()
1894 assertExpectException( in testGetShortcuts()
1930 assertExpectException( in testGetShortcuts()
2133 assertExpectException( in testGetShortcuts_personsFlag()
6925 assertExpectException( in testSaveAndLoad_crossProfile()
7004 assertExpectException( in testSaveAndLoad_crossProfile()
7020 assertExpectException( in testSaveAndLoad_crossProfile()
7025 assertExpectException( in testSaveAndLoad_crossProfile()
[all …]
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/
H A 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()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/parser/
H A 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()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DDevicePolicyManagerTest.java732 assertExpectException(IllegalStateException.class, in testRemoveActiveAdmin_userNotRunningOrLocked()
909 assertExpectException(SecurityException.class, in testForceRemoveActiveAdmin_nonShellCaller()
1360 assertExpectException(SecurityException.class, in testSetDeviceOwner_failures()
1366 assertExpectException(SecurityException.class, in testSetDeviceOwner_failures()
1501 assertExpectException(SecurityException.class, in testClearDeviceOwner_fromDifferentUser()
1600 assertExpectException(SecurityException.class, in testSetProfileOwner_failures()
1606 assertExpectException(SecurityException.class, in testSetProfileOwner_failures()
2685 assertExpectException(SecurityException.class, in testGetMacAddress()
2691 assertExpectException(SecurityException.class, in testGetMacAddress()
2922 assertExpectException(SecurityException.class, in testIsMeteredDataDisabledForUserPackage_nonSystemUidCaller()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/serializer/
H A 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()
H A DRuleIndexingDetailsIdentifierTest.java23 import static com.android.server.testutils.TestUtils.assertExpectException;
121 assertExpectException( in getIndexType_nullRule()
133 assertExpectException( in getIndexType_invalidFormula()
/aosp14/frameworks/base/services/tests/servicestests/utils/com/android/server/testutils/
H A DTestUtils.java33 public static void assertExpectException(Class<? extends Throwable> expectedExceptionType, in assertExpectException() method in TestUtils
/aosp14/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
H A 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
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/
H A DAppIntegrityManagerServiceImplTest.java208 TestUtils.assertExpectException( in updateRuleSet_notAuthorized()
227 TestUtils.assertExpectException( in updateRuleSet_notSystemApp()