Home
last modified time | relevance | path

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

12345678910

/cts/tests/tests/identity/src/android/security/identity/cts/
DIdentityApiTest.java47 assertEquals("Message", e.getMessage()); in testConstructorsAlreadyPersonalizedException()
51 assertEquals("Message 2", e.getMessage()); in testConstructorsAlreadyPersonalizedException()
58 assertEquals("Message", e.getMessage()); in testConstructorsCipherSuiteNotSupportedException()
62 assertEquals("Message 2", e.getMessage()); in testConstructorsCipherSuiteNotSupportedException()
69 assertEquals("Message", e.getMessage()); in testConstructorsDocTypeNotSupportedException()
73 assertEquals("Message 2", e.getMessage()); in testConstructorsDocTypeNotSupportedException()
80 assertEquals("Message", e.getMessage()); in testConstructorsEphemeralPublicKeyNotFoundException()
84 assertEquals("Message 2", e.getMessage()); in testConstructorsEphemeralPublicKeyNotFoundException()
91 assertEquals("Message", e.getMessage()); in testConstructorsIdentityCredentialException()
95 assertEquals("Message 2", e.getMessage()); in testConstructorsIdentityCredentialException()
[all …]
/cts/tests/admin/src/android/admin/cts/
DDevicePolicyManagerTest.java144 assertDeviceOwnerMessage(e.getMessage()); in testRequestRemoteBugreport_failIfNotDeviceOwner()
157 assertDeviceOwnerMessage(e.getMessage()); in testSetSecurityLoggingEnabled_failIfNotDeviceOwner()
170 assertDeviceOwnerMessage(e.getMessage()); in testIsSecurityLoggingEnabled_failIfNotDeviceOwner()
183 assertDeviceOwnerMessage(e.getMessage()); in testRetrieveSecurityLogs_failIfNotDeviceOwner()
196 assertDeviceOwnerMessage(e.getMessage()); in testRetrievePreRebootSecurityLogs_failIfNotDeviceOwner()
209 assertDeviceOwnerMessage(e.getMessage()); in testSetNetworkLoggingEnabled_failIfNotDeviceOwner()
222 assertDeviceOwnerOrManageUsersMessage(e.getMessage()); in testIsNetworkLoggingEnabled_failIfNotDeviceOwner()
235 assertDeviceOwnerMessage(e.getMessage()); in testRetrieveNetworkLogs_failIfNotDeviceOwner()
247 assertDeviceOwnerMessage(e.getMessage()); in testRemoveUser_failIfNotDeviceOwner()
260 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/media/src/android/mediav2/cts/
DMuxerUnitTest.java99 fail(e.getMessage()); in testIfNullPathIsRejected()
115 fail(e.getMessage()); in testIfNullFdIsRejected()
131 fail(e.getMessage()); in testIfInvalidFdIsRejected()
146 fail(e.getMessage()); in testIfReadOnlyFdIsRejected()
178 fail(e.getMessage()); in testIfNonSeekableFdIsRejected()
193 fail(e.getMessage()); in testIfInvalidOutputFormatIsRejected()
275 fail(e.getMessage()); in testIfAddTrackSucceedsAfterStart()
295 fail(e.getMessage()); in testIfAddTrackSucceedsAfterWriteSampleData()
316 fail(e.getMessage()); in testIfAddTrackSucceedsAfterStop()
334 fail(e.getMessage()); in testIfAddTrackSucceedsAfterRelease()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DFileAccessPermissionTest.java118 fail(e.getMessage()); in testAccessAppDataDir()
148 fail(e.getMessage()); in testExternalStorageAccess()
158 fail(e.getMessage()); in testExternalStorageAccess()
198 fail(e.getMessage()); in writeFileCheck()
200 fail(e.getMessage()); in writeFileCheck()
206 fail(e.getMessage()); in writeFileCheck()
213 fail(e.getMessage()); in writeFileCheck()
DParcelFileDescriptorTest.java277 assertContains("OMG MUFFINS", e.getMessage()); in testPipeError_Discouraged()
295 assertContains("OMG MUFFINS", e.getMessage()); in testPipeError()
326 assertContains("OMG BANANAS", listener.get().getMessage()); in testFileError()
340 assertContains("DETACHED", listener.get().getMessage()); in testFileDetach()
359 assertContains("BLUE RAWR", e.getMessage()); in testSocketErrorAfterClose()
383 assertContains("RAWR RED", e.getMessage()); in testSocketMultipleCheck()
441 fail(e.getMessage()); in checkIsValid()
/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/util/src/android/util/cts/
DXmlTest.java123 fail(e.getMessage()); in testParseStringContentHandler()
202 fail(e.getMessage()); in testParseReaderContentHander()
208 fail(e.getMessage()); in testParseReaderContentHander()
237 fail(e.getMessage()); in testParseReaderContentHander()
239 fail(e.getMessage()); in testParseReaderContentHander()
272 fail(e.getMessage()); in testParseInputStreamEncodingContentHandler()
274 fail(e.getMessage()); in testParseInputStreamEncodingContentHandler()
304 fail(e.getMessage()); in testParseInputStreamEncodingContentHandler()
306 fail(e.getMessage()); in testParseInputStreamEncodingContentHandler()
336 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/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()
DStaleDataExceptionTest.java30 assertNull(e.getMessage()); in testConstructors()
37 assertEquals(expected1, e.getMessage()); in testConstructors()
DSQLExceptionTest.java31 assertNull(e.getMessage()); in testConstructors()
38 assertEquals(expected1, e.getMessage()); in testConstructors()
/cts/tests/app/src/android/app/cts/
DRecoverableSecurityExceptionTest.java31 assertEquals(rse.getMessage(), "foo"); in testSimple()
45 assertEquals(before.getMessage(), after.getMessage()); in testParcelable()
DPendingIntent_CanceledExceptionTest.java30 assertNull(e.getMessage()); in testConstructor()
38 assertEquals(message, canceledException.getMessage()); in testConstructor()
/cts/tests/tests/car/src/android/car/cts/
DExceptionsTest.java49 assertNull(exception.getMessage()); in testCarNotConnectedException()
53 assertEquals(MESSAGE, exception.getMessage()); in testCarNotConnectedException()
57 assertEquals(MESSAGE, exception.getMessage()); in testCarNotConnectedException()
/cts/tests/tests/proto/src/android/util/proto/cts/
DProtoOutputStreamTagTest.java100 ex.getMessage()); in checkMessageForType()
111 ex.getMessage()); in checkMessageForType()
136 ex.getMessage()); in checkMessageForCount()
151 ex.getMessage()); in checkMessageForCount()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManager_NameNotFoundExceptionTest.java33 assertNull(e.getMessage()); in testNameNotFoundException()
41 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/keystore/src/android/keystore/cts/
DEcdsaSignaturePerformanceTest.java121 mSignature.update(getMessage()); in measure()
141 mSignature.update(getMessage()); in initialSetUp()
152 mSignature.update(getMessage()); in measure()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowManager_BadTokenExceptionTest.java39 assertNull(e.getMessage()); in testBadTokenException()
49 assertEquals(message, e.getMessage()); in testBadTokenException()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/
DBaseUserRestrictionsTest.java175 assertTrue("Restriction=" + restriction + " Message was: " + e.getMessage(), in assertCannotSetUserRestriction()
176 e.getMessage().contains("cannot set user restriction")); in assertCannotSetUserRestriction()
188 assertTrue("Restriction=" + restriction + " Message was: " + e.getMessage(), in assertCannotSetUserRestriction()
189 e.getMessage().contains("cannot set user restriction")); in assertCannotSetUserRestriction()
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DZipParser.java162 "Failed to parse: " + name + "\n" + ex.getMessage()); in parseFileContent()
171 System.err.println("Failed to parse: " + getFileName() + "\n" + e.getMessage()); in parseFileContent()
178 System.err.println("Failed to close: " + getFileName() + "\n" + e.getMessage()); in parseFileContent()
221 System.err.printf(ex.getMessage()); in main()
/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()
/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()

12345678910