Home
last modified time | relevance | path

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

12345678910>>...18

/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/tests/car_permission_tests/src/android/car/cts/permissiontest/media/
DCarAudioManagerPermissionTest.java77 assertThat(e.getMessage()).contains(PERMISSION_CAR_CONTROL_AUDIO_VOLUME); in setGroupVolumePermission()
84 assertThat(e.getMessage()).contains(PERMISSION_CAR_CONTROL_AUDIO_VOLUME); in setGroupVolumeWithZonePermission()
91 assertThat(e.getMessage()).contains(PERMISSION_CAR_CONTROL_AUDIO_VOLUME); in getGroupMaxVolumePermission()
98 assertThat(e.getMessage()).contains(PERMISSION_CAR_CONTROL_AUDIO_VOLUME); in getGroupMaxVolumeWithZonePermission()
105 assertThat(e.getMessage()).contains(PERMISSION_CAR_CONTROL_AUDIO_VOLUME); in getGroupMinVolumePermission()
112 assertThat(e.getMessage()).contains(PERMISSION_CAR_CONTROL_AUDIO_VOLUME); in getGroupMinVolumeWithZonePermission()
119 assertThat(e.getMessage()).contains(PERMISSION_CAR_CONTROL_AUDIO_VOLUME); in getGroupVolumePermission()
126 assertThat(e.getMessage()).contains(PERMISSION_CAR_CONTROL_AUDIO_VOLUME); in getGroupVolumeWithZonePermission()
133 assertThat(e.getMessage()).contains(PERMISSION_CAR_CONTROL_AUDIO_VOLUME); in setFadeTowardFrontPermission()
140 assertThat(e.getMessage()).contains(PERMISSION_CAR_CONTROL_AUDIO_VOLUME); in setBalanceTowardRightPermission()
[all …]
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/admin/
DCarDevicePolicyManagerPermissionTest.java56 assertThat(e.getMessage()).contains(CREATE_USERS); in testRemoveUserPermission()
57 assertThat(e.getMessage()).contains(MANAGE_USERS); in testRemoveUserPermission()
64 assertThat(e.getMessage()).contains(CREATE_USERS); in testCreateUserPermission()
65 assertThat(e.getMessage()).contains(MANAGE_USERS); in testCreateUserPermission()
72 assertThat(e.getMessage()).contains(CREATE_USERS); in testStartUserInBackgroundPermission()
73 assertThat(e.getMessage()).contains(MANAGE_USERS); in testStartUserInBackgroundPermission()
80 assertThat(e.getMessage()).contains(CREATE_USERS); in testStopUserPermission()
81 assertThat(e.getMessage()).contains(MANAGE_USERS); in testStopUserPermission()
/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/
DPropertyPathCtsTest.java40 assertThat(e.getMessage()).startsWith("Malformed path (blank property name)"); in testPropertyPathInvalid()
43 assertThat(e.getMessage()).startsWith("Malformed path (no starting '[')"); in testPropertyPathInvalid()
46 assertThat(e.getMessage()).startsWith("Malformed path (no ending ']')"); in testPropertyPathInvalid()
49 assertThat(e.getMessage()).startsWith("Malformed path (\"\" as path index)"); in testPropertyPathInvalid()
52 assertThat(e.getMessage()).startsWith("Malformed path (\"b\" as path index)"); in testPropertyPathInvalid()
55 assertThat(e.getMessage()).startsWith("Malformed path (path index less than 0)"); in testPropertyPathInvalid()
58 assertThat(e.getMessage()).startsWith("Malformed path (\"0.\" as path index)"); in testPropertyPathInvalid()
61 assertThat(e.getMessage()).startsWith("Malformed path (']' not followed by '.')"); in testPropertyPathInvalid()
64 assertThat(e.getMessage()).startsWith("Malformed path (']' not followed by '.')"); in testPropertyPathInvalid()
121 assertThat(e.getMessage()).startsWith("Invalid propertyName value"); in testPathSegmentInvalid()
[all …]
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/power/
DCarPowerManagerPermissionTest.java62 assertThat(e.getMessage()).contains(PERMISSION_CAR_POWER); in testGetPowerState()
70 assertThat(e.getMessage()).contains(PERMISSION_CAR_POWER); in testRequestShutdownOnNextSuspend()
78 assertThat(e.getMessage()).contains(PERMISSION_CAR_POWER); in testScheduleNextWakeupTime()
86 assertThat(e.getMessage()).contains(PERMISSION_CAR_POWER); in testSetListener()
95 assertThat(e.getMessage()).contains(PERMISSION_CONTROL_SHUTDOWN_PROCESS); in testSetListenerWithCompletion()
103 assertThat(e.getMessage()).contains(PERMISSION_READ_CAR_POWER_POLICY); in testGetCurrentPowerPolicy()
111 assertThat(e.getMessage()).contains(PERMISSION_CONTROL_CAR_POWER_POLICY); in testApplyPowerPolicy()
122 assertThat(e.getMessage()).contains(PERMISSION_READ_CAR_POWER_POLICY); in testAddPowerPolicyChangeListener()
130 assertThat(e.getMessage()).contains(PERMISSION_CAR_POWER); in testNotifyUserActivity()
/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/car_permission_tests/src/android/car/cts/permissiontest/cluster/
DClusterHomeManagerPermissionTest.java89 assertThat(thrown.getMessage()).isEqualTo(EXPECTED_ERROR_MESSAGE); in testRegisterClusterStateListener_requiresPermission()
97 assertThat(thrown.getMessage()) in testRegisterClusterNavigationStateListener_requiresPermission()
105 assertThat(thrown.getMessage()).isEqualTo(EXPECTED_ERROR_MESSAGE); in testGetClusterState_requiresPermission()
112 assertThat(thrown.getMessage()).isEqualTo(EXPECTED_ERROR_MESSAGE); in testUnReportState_requiresPermission()
119 assertThat(thrown.getMessage()).isEqualTo(EXPECTED_ERROR_MESSAGE); in testRequestDisplay_requiresPermission()
127 assertThat(thrown.getMessage()).isEqualTo(EXPECTED_ERROR_MESSAGE); in testStartFixedActivityModeAsUser_requiresPermission()
134 assertThat(thrown.getMessage()).isEqualTo(EXPECTED_ERROR_MESSAGE); in testStopFixedActivityMode_requiresPermission()
143 assertThat(thrown.getMessage()).isEqualTo(EXPECTED_ERROR_MESSAGE); in testSendHeartbeat_requiresPermission()
151 assertThat(thrown.getMessage()).isEqualTo(EXPECTED_ERROR_MESSAGE); in testStartVisibilityMonitoring_requiresPermission()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/telemetry/
DCarTelemetryManagerPermissionTest.java60 assertThat(e.getMessage()).contains(Car.PERMISSION_USE_CAR_TELEMETRY_SERVICE); in testAddMetricsConfig()
68 assertThat(e.getMessage()).contains(Car.PERMISSION_USE_CAR_TELEMETRY_SERVICE); in testRemoveMetricsConfig()
76 assertThat(e.getMessage()).contains(Car.PERMISSION_USE_CAR_TELEMETRY_SERVICE); in testRemoveAllMetricsConfigs()
85 assertThat(e.getMessage()).contains(Car.PERMISSION_USE_CAR_TELEMETRY_SERVICE); in testGetFinishedReport()
94 assertThat(e.getMessage()).contains(Car.PERMISSION_USE_CAR_TELEMETRY_SERVICE); in testGetAllFinishedReports()
103 assertThat(e.getMessage()).contains(Car.PERMISSION_USE_CAR_TELEMETRY_SERVICE); in testSetReportReadyListener()
111 assertThat(e.getMessage()).contains(Car.PERMISSION_USE_CAR_TELEMETRY_SERVICE); in testClearReportReadyListener()
/cts/tests/admin/src/android/admin/cts/
DDevicePolicyManagerTest.java137 assertDeviceOwnerMessage(e.getMessage()); in testRemoveUser_failIfNotDeviceOwner()
150 assertDeviceOwnerMessage(e.getMessage()); in testSetLocationEnabled_failIfNotDeviceOwner()
178 assertProfileOwnerMessage(e.getMessage()); in testSetMasterVolumeMuted_failIfNotDeviceOrProfileOwner()
191 assertProfileOwnerMessage(e.getMessage()); in testIsMasterVolumeMuted_failIfNotDeviceOrProfileOwner()
204 assertDeviceOwnerMessage(e.getMessage()); in testSetRecommendedGlobalProxy_failIfNotDeviceOwner()
220 assertDeviceOwnerMessage(e.getMessage()); in testClearDeviceOwnerApp_failIfNotDeviceOwner()
233 assertDeviceOwnerMessage(e.getMessage()); in testSwitchUser_failIfNotDeviceOwner()
247 assertProfileOwnerMessage(e.getMessage()); in testHasCaCertInstalled_failIfNotProfileOwner()
273 assertProfileOwnerMessage(e.getMessage()); in testUninstallAllUserCaCerts_failIfNotProfileOwner()
300 assertProfileOwnerMessage(e.getMessage()); in testSetRestrictionsProvider_failIfNotProfileOwner()
[all …]
/cts/tests/quickaccesswallet/src/android/quickaccesswallet/cts/
DGetWalletCardsErrorTest.java57 assertThat(error.getMessage()).isEqualTo(newError.getMessage()); in testParcel_toParcel()
69 assertThat(error.getMessage()).isEqualTo(newError.getMessage()); in testParcel_withNullIcon_toParcel()
81 assertThat(error.getMessage()).isEqualTo(newError.getMessage()); in testParcel_withNullIconAndMessage_toParcel()
/cts/tests/tests/database/src/android/database/cts/
DSQLiteCantOpenDatabaseExceptionTest.java44 Log.i(TAG, "Caught excepted exception: " + e.getMessage(), e); in callWithExceptedMessage()
45 if (e.getMessage().startsWith("Cannot open database") && in callWithExceptedMessage()
46 e.getMessage().matches(expectedMessagePatter)) { in callWithExceptedMessage()
49 fail("Unexpected exception message: " + e.getMessage()); in callWithExceptedMessage()
DCursorIndexOutOfBoundsExceptionTest.java42 assertNull(e.getMessage()); in testConstructors()
48 assertEquals(expected1, e.getMessage()); in testConstructors()
55 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/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/common/src/com/android/cts/appdataisolation/common/
DFileUtils.java60 assertThat(exception.getMessage()).contains(JAVA_FILE_PERMISSION_DENIED_MSG); in assertDirIsNotAccessible()
61 assertThat(exception.getMessage()).doesNotContain(JAVA_FILE_NOT_FOUND_MSG); in assertDirIsNotAccessible()
73 assertThat(exception.getMessage()).contains(JAVA_FILE_NOT_FOUND_MSG); in assertDirDoesNotExist()
74 assertThat(exception.getMessage()).doesNotContain(JAVA_FILE_PERMISSION_DENIED_MSG); in assertDirDoesNotExist()
119 assertThat(exception.getMessage()).contains(JAVA_FILE_NOT_FOUND_MSG); in assertFileDoesNotExist()
120 assertThat(exception.getMessage()).doesNotContain(JAVA_FILE_PERMISSION_DENIED_MSG); in assertFileDoesNotExist()
/cts/tests/tests/os/src/android/os/cts/
DFileAccessPermissionTest.java120 fail(e.getMessage()); in testAccessAppDataDir()
150 fail(e.getMessage()); in testExternalStorageAccess()
160 fail(e.getMessage()); in testExternalStorageAccess()
200 fail(e.getMessage()); in writeFileCheck()
202 fail(e.getMessage()); in writeFileCheck()
208 fail(e.getMessage()); in writeFileCheck()
215 fail(e.getMessage()); in writeFileCheck()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/
DCarOccupantZoneManagerPermissionTest.java62 assertThat(thrown.getMessage()).isEqualTo( in testDisplayIdForDriver()
70 assertThat(thrown.getMessage()).isEqualTo( in testGetAudioZoneIdForOccupant()
79 assertThat(thrown.getMessage()).isEqualTo( in testGetOccupantForAudioZoneId()
88 assertThat(thrown.getMessage()).isEqualTo(getPermissionFailureMsg()); in testAssignProfileUserToOccupantZone()
/cts/tests/tests/car/src/android/car/cts/
DExceptionsTest.java39 assertThat(exception.getMessage()).isNull(); in testCarNotConnectedException()
43 assertThat(exception.getMessage()).isEqualTo(MESSAGE); in testCarNotConnectedException()
47 assertThat(exception.getMessage()).isEqualTo(MESSAGE); in testCarNotConnectedException()
/cts/tests/credentials/src/android/credentials/cts/unittests/
DGetCredentialExceptionTest.java53 assertThat(exc.getMessage()).isNull(); in testConstructor_type()
66 assertThat(exc.getMessage()).isEqualTo(message); in testConstructor_type_message()
79 assertThat(exc.getMessage()).isNull(); in testConstructor_type_cause()
93 assertThat(exc.getMessage()).isEqualTo(message); in testConstructor_type_message_cause()
DClearCredentialStateExceptionTest.java51 assertThat(exc.getMessage()).isNull(); in testConstructor_type()
63 assertThat(exc.getMessage()).isEqualTo(message); in testConstructor_type_message()
75 assertThat(exc.getMessage()).isNull(); in testConstructor_type_cause()
89 assertThat(exc.getMessage()).isEqualTo(message); in testConstructor_type_message_cause()
DCreateCredentialExceptionTest.java52 assertThat(exc.getMessage()).isNull(); in testConstructor_type()
65 assertThat(exc.getMessage()).isEqualTo(message); in testConstructor_type_message()
78 assertThat(exc.getMessage()).isNull(); in testConstructor_type_cause()
92 assertThat(exc.getMessage()).isEqualTo(message); in testConstructor_type_message_cause()
/cts/tests/app/src/android/app/cts/
DRecoverableSecurityExceptionTest.java31 assertEquals(rse.getMessage(), "foo"); in testSimple()
45 assertEquals(before.getMessage(), after.getMessage()); in testParcelable()
/cts/tests/tests/nfc/src/android/nfc/cts/
DNfcServiceManagerTest.java69 String baseExceptionDescription = baseException.getMessage(); in test_ServiceNotFoundException()
72 assertEquals(baseExceptionDescription + exceptionDescription, newException.getMessage()); in test_ServiceNotFoundException()
76 assertEquals(baseExceptionDescription + exceptionDescription, exception.getMessage()); in test_ServiceNotFoundException()
DTagLostExceptionTest.java14 Assert.assertTrue(e.getMessage() == null); in testTagLostException()
20 Assert.assertTrue(e.getMessage().equals(s)); in testTagLostException()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothServiceManagerTest.java69 String baseExceptionDescription = baseException.getMessage(); in test_ServiceNotFoundException()
72 assertEquals(baseExceptionDescription + exceptionDescription, newException.getMessage()); in test_ServiceNotFoundException()
76 assertEquals(baseExceptionDescription + exceptionDescription, exception.getMessage()); in test_ServiceNotFoundException()

12345678910>>...18