/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | ShortcutManagerTest10.java | 19 .assertExpectException; 130 assertExpectException(SecurityException.class, "Calling uid mismatch", in testCreateShortcutResult_defaultLauncherChanges() 139 assertExpectException(SecurityException.class, "Calling uid mismatch", in testCreateShortcutResult_defaultLauncherChanges() 173 assertExpectException(SecurityException.class, null, () -> in testStartConfigActivity_nonDefaultLauncher()
|
H A D | ShortcutManagerTest2.java | 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() 124 assertExpectException( in testShortcutInfoMissingMandatoryFields() [all …]
|
H A D | ShortcutManagerTest9.java | 19 …rt static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException; 96 assertExpectException(IllegalStateException.class, "foreground activity", () -> { in testNotForeground()
|
H A D | ShortcutManagerTest7.java | 20 …rt static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException; 90 assertExpectException(SecurityException.class, "must be shell", in testNonShell() 94 assertExpectException(SecurityException.class, "must be shell", in testNonShell()
|
H A D | ShortcutManagerTest8.java | 19 …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()
|
H A D | ShortcutManagerTest1.java | 690 assertExpectException( in testPublishWithNoActivity_noMainActivityInPackage() 1657 assertExpectException( in testCachedShortcuts_accessShortcutsPermission() 1675 assertExpectException( in testCachedShortcuts_accessShortcutsPermission() 1889 assertExpectException( in testGetShortcuts() 1925 assertExpectException( in testGetShortcuts() 2128 assertExpectException( in testGetShortcuts_personsFlag() 6757 assertExpectException( in testSaveAndLoad_crossProfile() 6836 assertExpectException( in testSaveAndLoad_crossProfile() 6852 assertExpectException( in testSaveAndLoad_crossProfile() 6857 assertExpectException( in testSaveAndLoad_crossProfile() [all …]
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/parser/ |
H A D | RuleBinaryParserTest.java | 33 import static com.android.server.testutils.TestUtils.assertExpectException; 412 assertExpectException( in testBinaryString_invalidAtomicFormula_noIndexing() 439 assertExpectException( in testBinaryString_withEmptyRule_noIndexing() 475 assertExpectException( in testBinaryString_invalidCompoundFormula_invalidNumberOfFormulas_noIndexing() 502 assertExpectException( in testBinaryString_invalidRule_invalidOperator_noIndexing() 532 assertExpectException( in testBinaryString_invalidRule_invalidEffect_noIndexing() 562 assertExpectException( in testBinaryString_invalidRule_invalidConnector_noIndexing() 592 assertExpectException( in testBinaryString_invalidRule_invalidKey_noIndexing() 622 assertExpectException( in testBinaryString_invalidRule_invalidSeparator_noIndexing() 652 assertExpectException( in testBinaryString_invalidRule_invalidEndMarker_noIndexing()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
H A D | DevicePolicyManagerTest.java | 687 assertExpectException(IllegalStateException.class, in testRemoveActiveAdmin_userNotRunningOrLocked() 856 assertExpectException(SecurityException.class, in testForceRemoveActiveAdmin_nonShellCaller() 1327 assertExpectException(SecurityException.class, in testSetDeviceOwner_failures() 1333 assertExpectException(SecurityException.class, in testSetDeviceOwner_failures() 1475 assertExpectException(SecurityException.class, in testClearDeviceOwner_fromDifferentUser() 1574 assertExpectException(SecurityException.class, in testSetProfileOwner_failures() 1580 assertExpectException(SecurityException.class, in testSetProfileOwner_failures() 2689 assertExpectException(SecurityException.class, in testGetMacAddress() 2695 assertExpectException(SecurityException.class, in testGetMacAddress() 2927 assertExpectException(SecurityException.class, in testIsMeteredDataDisabledForUserPackage_nonSystemUidCaller() [all …]
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/backup/ |
H A D | BackupPasswordManagerTest.java | 19 import static com.android.server.testutils.TestUtils.assertExpectException; 83 assertExpectException( in hasBackupPassword_throwsSecurityExceptionIfLacksPermission() 138 assertExpectException( in backupPasswordMatches_throwsSecurityExceptionIfLacksPermission() 173 assertExpectException( in setBackupPassword_throwsSecurityExceptionIfLacksPermission()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/serializer/ |
H A D | RuleBinarySerializerTest.java | 38 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 D | RuleIndexingDetailsIdentifierTest.java | 23 import static com.android.server.testutils.TestUtils.assertExpectException; 121 assertExpectException( in getIndexType_nullRule() 133 assertExpectException( in getIndexType_invalidFormula()
|
/aosp12/frameworks/base/services/tests/servicestests/utils/com/android/server/testutils/ |
H A D | TestUtils.java | 33 public static void assertExpectException(Class<? extends Throwable> expectedExceptionType, in assertExpectException() method in TestUtils
|
/aosp12/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/ |
H A D | ShortcutManagerTestUtils.java | 477 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
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/ |
H A D | AppIntegrityManagerServiceImplTest.java | 208 TestUtils.assertExpectException( in updateRuleSet_notAuthorized() 227 TestUtils.assertExpectException( in updateRuleSet_notSystemApp()
|