Home
last modified time | relevance | path

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

/aosp_15_r20/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
H A DShortcutManagerClientApiTest.java18 …rt static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException;
84 assertExpectException( in testShortcutInfoMissingMandatoryFields()
89 assertExpectException( in testShortcutInfoMissingMandatoryFields()
94 assertExpectException( in testShortcutInfoMissingMandatoryFields()
99 assertExpectException( in testShortcutInfoMissingMandatoryFields()
104 assertExpectException( in testShortcutInfoMissingMandatoryFields()
109 assertExpectException( in testShortcutInfoMissingMandatoryFields()
114 assertExpectException( in testShortcutInfoMissingMandatoryFields()
119 assertExpectException( in testShortcutInfoMissingMandatoryFields()
124 assertExpectException( in testShortcutInfoMissingMandatoryFields()
[all …]
H A DShortcutManagerStartShortcutTest.java18 …rt static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException;
86 assertExpectException(exceptionClass, "", () -> { in assertShortcutCantStart()
343 assertExpectException( in testNonExistent()
368 assertExpectException( in testUnExported()
H A DShortcutManagerSpoofDetectionTest.java18 …rt static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException;
44 assertExpectException( in assertCallingPackageMismatch()
H A DShortcutManagerFakingPublisherTest.java18 …rt static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException;
171 assertExpectException( in assertShortcutPackageMismatch()
H A DShortcutManagerConfigActivityTest.java62 assertExpectException(SecurityException.class, null, () -> in testGetShortcutConfigActivityList()
139 assertExpectException(SecurityException.class, null, request::accept); in testCreateShortcutResultIntent_noDefault()
/aosp_15_r20/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DDevicePolicyManagerTest.java66 import static com.android.server.testutils.TestUtils.assertExpectException;
493 assertExpectException(SecurityException.class, /* messageRegex= */ null, in testSetActiveAdmin_SecurityException()
499 assertExpectException(SecurityException.class, /* messageRegex= */ null, in testSetActiveAdmin_SecurityException()
591 assertExpectException(IllegalArgumentException.class, /* messageRegex= */ null, in testSetActiveAdmin()
660 assertExpectException(IllegalArgumentException.class, /* messageRegex= */ null, in testSetActiveAdmin_twiceWithoutReplace()
674 assertExpectException(IllegalArgumentException.class, in testSetActiveAdmin_permissionCheck()
706 assertExpectException(SecurityException.class, /* messageRegex =*/ null, in testRemoveActiveAdmin_SecurityException()
716 assertExpectException(SecurityException.class, /* messageRegex =*/ null, in testRemoveActiveAdmin_SecurityException()
740 assertExpectException(IllegalStateException.class, in testRemoveActiveAdmin_userNotRunningOrLocked()
917 assertExpectException(SecurityException.class, in testForceRemoveActiveAdmin_nonShellCaller()
[all …]
/aosp_15_r20/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
H A DWorkProfileNetworkLoggingDelegateTest.java19 import static com.android.cts.delegate.DelegateTestUtils.assertExpectException;
79 assertExpectException(SecurityException.class, null, in testCannotAccessApis()
82 assertExpectException(SecurityException.class, null, in testCannotAccessApis()
85 assertExpectException(SecurityException.class, null, in testCannotAccessApis()
H A DSecurityLoggingDelegateTest.java22 import static com.android.cts.delegate.DelegateTestUtils.assertExpectException;
61 assertExpectException(SecurityException.class, null, in testCannotAccessApis()
64 assertExpectException(SecurityException.class, null, in testCannotAccessApis()
67 assertExpectException(SecurityException.class, null, in testCannotAccessApis()
H A DDelegateTestUtils.java146 public static void assertExpectException(Class<? extends Throwable> expectedExceptionType, in assertExpectException() method in DelegateTestUtils
/aosp_15_r20/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 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 …]
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 DShortcutManagerTest9.java19 …rt static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException;
99 assertExpectException(IllegalStateException.class, "foreground activity", () -> { in testNotForeground()
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.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 …]
/aosp_15_r20/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()
/aosp_15_r20/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
/aosp_15_r20/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
/aosp_15_r20/cts/hostsidetests/shortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/
H A DShortcutManagerSecondaryUserTest.java18 …rt static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException;
/aosp_15_r20/development/tools/repo_diff/service/repodiff/persistence/filesystem/testdata/
H A Dcommit.csv99619 …orm/frameworks/base,[email protected],Use assertExpectException in DPMS te…