Home
last modified time | relevance | path

Searched refs:getMessage (Results 1 – 25 of 181) sorted by relevance

12345678

/cts/tests/admin/src/android/admin/cts/
DDevicePolicyManagerTest.java121 assertDeviceOwnerMessage(e.getMessage()); in testRequestRemoteBugreport_failIfNotDeviceOwner()
134 assertDeviceOwnerMessage(e.getMessage()); in testSetSecurityLoggingEnabled_failIfNotDeviceOwner()
147 assertDeviceOwnerMessage(e.getMessage()); in testIsSecurityLoggingEnabled_failIfNotDeviceOwner()
160 assertDeviceOwnerMessage(e.getMessage()); in testRetrieveSecurityLogs_failIfNotDeviceOwner()
173 assertDeviceOwnerMessage(e.getMessage()); in testRetrievePreRebootSecurityLogs_failIfNotDeviceOwner()
186 assertDeviceOwnerMessage(e.getMessage()); in testSetNetworkLoggingEnabled_failIfNotDeviceOwner()
199 assertDeviceOwnerOrManageUsersMessage(e.getMessage()); in testIsNetworkLoggingEnabled_failIfNotDeviceOwner()
212 assertDeviceOwnerMessage(e.getMessage()); in testRetrieveNetworkLogs_failIfNotDeviceOwner()
224 assertDeviceOwnerMessage(e.getMessage()); in testRemoveUser_failIfNotDeviceOwner()
237 assertProfileOwnerMessage(e.getMessage()); in testSetApplicationHidden_failIfNotDeviceOrProfileOwner()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DExceptionTest.java31 assertEquals(e.getMessage(), "IAE"); in testExceptions()
37 assertEquals(e.getMessage(), "ISE"); in testExceptions()
43 assertEquals(e.getMessage(), "RE"); in testExceptions()
49 assertEquals(e.getMessage(), "DE"); in testExceptions()
/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()
DContactsContract_AllUriTest.java291 addFailure("Query failed: URI=" + uri + " Message=" + th.getMessage(), th); in checkQueryExecutable()
300 addFailure("Query with cancel failed: URI=" + uri + " Message=" + th.getMessage(), th); in checkQueryExecutable()
311 addFailure("Query with limit failed: URI=" + uri + " Message=" + th.getMessage(), th); in checkQueryExecutable()
326 addFailure("Query with limit failed: URI=" + uri + " Message=" + th.getMessage(), th); in checkQueryExecutable()
536 addFailure("Query failed: URI=" + uri + " Message=" + th.getMessage(), th); in checkColumnAccessible()
612 addFailure(operation + " for '" + uri + "' failed: " + e.getMessage(), e); in checkExecutable()
677 if (e.getMessage().contains("Stream I/O not supported")) { in testAllFileOperations()
/cts/tests/tests/database/src/android/database/cts/
DCursorIndexOutOfBoundsExceptionTest.java33 assertNull(e.getMessage()); in testConstructors()
39 assertEquals(expected1, e.getMessage()); in testConstructors()
46 assertEquals(expected2, e.getMessage()); in testConstructors()
DSQLExceptionTest.java31 assertNull(e.getMessage()); in testConstructors()
38 assertEquals(expected1, e.getMessage()); in testConstructors()
DStaleDataExceptionTest.java30 assertNull(e.getMessage()); in testConstructors()
37 assertEquals(expected1, e.getMessage()); in testConstructors()
/cts/tests/tests/os/src/android/os/cts/
DFileAccessPermissionTest.java116 fail(e.getMessage()); in testAccessAppDataDir()
142 fail(e.getMessage()); in testAccessAppDataDir()
152 fail(e.getMessage()); in testAccessAppDataDir()
175 fail(e.getMessage()); in writeFileCheck()
177 fail(e.getMessage()); in writeFileCheck()
183 fail(e.getMessage()); in writeFileCheck()
190 fail(e.getMessage()); in writeFileCheck()
DConditionVariableTest.java65 fail(e.getMessage()); in testConditionVariable()
84 fail(e.getMessage()); in testConditionVariable()
/cts/tests/tests/car/src/android/car/cts/
DExceptionsTest.java32 assertNull(exception.getMessage()); in testCarNotConnectedException()
36 assertEquals(MESSAGE, exception.getMessage()); in testCarNotConnectedException()
40 assertEquals(MESSAGE, exception.getMessage()); in testCarNotConnectedException()
/cts/tests/tests/util/src/android/util/cts/
DXmlTest.java122 fail(e.getMessage()); in testParseStringContentHandler()
201 fail(e.getMessage()); in testParseReaderContentHander()
207 fail(e.getMessage()); in testParseReaderContentHander()
236 fail(e.getMessage()); in testParseReaderContentHander()
238 fail(e.getMessage()); in testParseReaderContentHander()
271 fail(e.getMessage()); in testParseInputStreamEncodingContentHandler()
273 fail(e.getMessage()); in testParseInputStreamEncodingContentHandler()
303 fail(e.getMessage()); in testParseInputStreamEncodingContentHandler()
305 fail(e.getMessage()); in testParseInputStreamEncodingContentHandler()
335 fail(e.getMessage()); in testParseInputStreamEncodingContentHandler()
[all …]
DXmlEncodingTest.java107 fail(e.getMessage()); in testValueOf()
109 fail(e.getMessage()); in testValueOf()
139 fail(e.getMessage()); in testValueOf()
141 fail(e.getMessage()); in testValueOf()
171 fail(e.getMessage()); in testValueOf()
173 fail(e.getMessage()); in testValueOf()
203 fail(e.getMessage()); in testValueOf()
205 fail(e.getMessage()); in testValueOf()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManager_NameNotFoundExceptionTest.java31 assertNull(e.getMessage()); in testNameNotFoundException()
39 assertEquals(message, e.getMessage()); in testNameNotFoundException()
/cts/tests/tests/content/src/android/content/cts/
DIntentFilter_MalformedMimeTypeExceptionTest.java46 assertEquals(message, mMalformedMimeTypeException.getMessage()); in testMalformedMimeTypeException()
52 assertEquals(message, e.getMessage()); in testMalformedMimeTypeException()
/cts/tests/tests/proto/src/android/util/proto/cts/
DProtoOutputStreamTagTest.java99 ex.getMessage()); in checkMessageForType()
109 ex.getMessage()); in checkMessageForType()
133 ex.getMessage()); in checkMessageForCount()
147 ex.getMessage()); in checkMessageForCount()
/cts/tests/app/src/android/app/cts/
DPendingIntent_CanceledExceptionTest.java30 assertNull(e.getMessage()); in testConstructor()
38 assertEquals(message, canceledException.getMessage()); in testConstructor()
/cts/tests/tests/view/src/android/view/cts/
DWindowManager_BadTokenExceptionTest.java38 assertNull(e.getMessage()); in testBadTokenException()
48 assertEquals(message, e.getMessage()); in testBadTokenException()
/cts/tests/tests/permission/src/android/permission/cts/
DProviderPermissionTest.java93 assertNotNull("security exception's error message.", expected.getMessage()); in testWriteSettings()
95 + expected.getMessage() + "\".", in testWriteSettings()
96 expected.getMessage().contains(permission)); in testWriteSettings()
/cts/tests/tests/content/src/android/content/res/cts/
DResources_NotFoundExceptionTest.java53 assertEquals(MESSAGE, e.getMessage()); in testNotFoundException()
70 assertEquals(MESSAGE, e.getMessage()); in testNotFoundException()
/cts/common/util/tests/src/com/android/compatibility/common/util/
DReportLogTest.java100 assertEquals("Sample", report.getSummary().getMessage()); in testParse_summaryOnly()
106 assertEquals("Sample", report.getSummary().getMessage()); in testParse_full()
127 assertEquals("Expected message to be ok", MESSAGE, metric.getMessage()); in testLimits_message()
136 metric.getMessage()); in testLimits_message()
/cts/hostsidetests/devicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/
DDeviceAdminPasswordTest.java52 MoreAsserts.assertContainsRegex("Admin 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/tests/tests/provider/src/android/provider/cts/
DBlockedNumberContractTest.java170 assertTrue(expected.getMessage().contains("Unsupported URI")); in testInsert_failsWithInvalidInputs()
178 assertTrue(expected.getMessage().contains("Missing a required column")); in testInsert_failsWithInvalidInputs()
187 assertTrue(expected.getMessage().contains("Missing a required column")); in testInsert_failsWithInvalidInputs()
196 assertTrue(expected.getMessage().contains("must not be specified")); in testInsert_failsWithInvalidInputs()
275 assertTrue(expected.getMessage().contains("selection must be null")); in testDelete_failsOnInvalidInputs()
313 assertTrue(expected.getMessage().contains("Unsupported method")); in testAccessingNonExistentMethod_fails()
/cts/tools/vm-tests-tf/src/util/build/
DDasmBuildStep.java71 System.err.println("DASM Error: " + e.getMessage()); in assemble()
75 System.err.println("Exception <" + e.getClass().getName() + ">" + e.getMessage() + in assemble()
132 System.err.println("Exception <" + e.getClass().getName() + ">" + e.getMessage() + in assemble()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/
DBaseUserRestrictionsTest.java171 assertTrue("Restriction=" + restriction + " Message was: " + e.getMessage(), in assertCannotSetUserRestriction()
172 e.getMessage().contains("cannot set user restriction")); in assertCannotSetUserRestriction()
184 assertTrue("Restriction=" + restriction + " Message was: " + e.getMessage(), in assertCannotSetUserRestriction()
185 e.getMessage().contains("cannot set user restriction")); in assertCannotSetUserRestriction()
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/
DBindDeviceAdminServiceGoodSetupTest.java91 MoreAsserts.assertContainsRegex("Service intent must be explicit", ex.getMessage()); in testCannotBind_implicitIntent()
119 "must be protected by BIND_DEVICE_ADMIN", ex.getMessage()); 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()

12345678