Home
last modified time | relevance | path

Searched refs:assertContainsRegex (Results 1 – 12 of 12) sorted by relevance

/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContactsMetadataProviderTest.java49 MoreAsserts.assertContainsRegex("can't access ContactMetadataProvider", e.getMessage()); in testCallerCheck()
55 MoreAsserts.assertContainsRegex("can't access ContactMetadataProvider", e.getMessage()); in testCallerCheck()
61 MoreAsserts.assertContainsRegex("can't access ContactMetadataProvider", e.getMessage()); in testCallerCheck()
67 MoreAsserts.assertContainsRegex("can't access ContactMetadataProvider", e.getMessage()); in testCallerCheck()
/cts/hostsidetests/devicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/
DDeviceAdminPasswordTest.java52 MoreAsserts.assertContainsRegex("Cannot change current password", e.getMessage()); in checkSetPassword_nycRestrictions_failure()
66 MoreAsserts.assertContainsRegex("Cannot call with null password", e.getMessage()); in checkClearPassword_nycRestrictions_failure()
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
DGeneralDelegateTest.java60 MoreAsserts.assertContainsRegex("Caller with uid \\d+ is not " + otherPackage, in testDifferentPackageNameThrowsException()
74 MoreAsserts.assertContainsRegex("No active admin", expected.getMessage()); in testSettingAdminComponentNameThrowsException()
DDelegateTestUtils.java39 MoreAsserts.assertContainsRegex(expectedExceptionMessageRegex, e.getMessage()); in assertExpectException()
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/
DBindDeviceAdminServiceGoodSetupTest.java91 MoreAsserts.assertContainsRegex("Service intent must be explicit", ex.getMessage()); in testCannotBind_implicitIntent()
118 MoreAsserts.assertContainsRegex( in testCannotBind_unprotectedCrossUserService()
135 MoreAsserts.assertContainsRegex("Only allow to bind service", ex.getMessage()); in testCheckCannotBind_nonManagingPackage()
149 MoreAsserts.assertContainsRegex("target user id must be different", ex.getMessage()); in testCannotBind_sameUser()
DBindDeviceAdminServiceFailsTest.java73 MoreAsserts.assertContainsRegex( in checkCannotBind()
/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
DBaseShortcutManagerHostTest.java99 assertContainsRegex("Success", in clearShortcuts()
196 public MatchResult assertContainsRegex( in assertContainsRegex() method in BaseShortcutManagerHostTest
198 return assertContainsRegex(null, expectedRegex, actual); in assertContainsRegex()
208 public MatchResult assertContainsRegex( in assertContainsRegex() method in BaseShortcutManagerHostTest
DShortcutManagerBackupTest.java135 assertContainsRegex( in doBackup()
142 assertContainsRegex( in doBackup()
147 assertContainsRegex( in doBackup()
156 assertContainsRegex( in doRestore()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DClearProfileOwnerNegativeTest.java36 MoreAsserts.assertContainsRegex("clear profile owner", e.getMessage()); in tearDown()
DApplicationRestrictionsTest.java114 MoreAsserts.assertContainsRegex( in testNullComponentThrowsException()
122 MoreAsserts.assertContainsRegex( in testNullComponentThrowsException()
218 MoreAsserts.assertContainsRegex(OTHER_PACKAGE, expected.getMessage()); in testSetApplicationRestrictionsManagingPackageForNotInstalledPackage()
DDelegatedCertInstallerTest.java271 MoreAsserts.assertContainsRegex("is not installed on the current user", in testSetNotExistCertInstallerPackage()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerNegativeTest.java81 MoreAsserts.assertContainsRegex(expectedMessage, in callMethodExpectingSecurityException()