Home
last modified time | relevance | path

Searched refs:expectedException (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/RemoteProvisioningServiceTests/src/com/android/server/security/rkp/
DRemoteProvisioningRegistrationTest.java116 Exception expectedException = new Exception("oops!"); in getKeyHandlesArbitraryException() local
119 executor.execute(() -> receiver.onError(expectedException)))) in getKeyHandlesArbitraryException()
143 Exception expectedException = new RkpProxyException(expectedConversions.get(error), in getKeyMapsRkpErrorsCorrectly() local
147 executor.execute(() -> receiver.onError(expectedException)))) in getKeyMapsRkpErrorsCorrectly()
228 Exception expectedException = new RuntimeException("oops! bad input!"); in getKeyCatchesExceptionFromProxy() local
229 doThrow(expectedException) in getKeyCatchesExceptionFromProxy()
237 eq(expectedException.getMessage())); in getKeyCatchesExceptionFromProxy()
/frameworks/base/core/tests/coretests/src/android/os/
DPowerManagerTest.java262 } catch (IllegalArgumentException expectedException) { in testThermalStatusCallback()
284 } catch (IllegalArgumentException expectedException) { in testThermalStatusCallback()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DBaseShortcutManagerTest.java1938 @NonNull String shortcutId, int userId, Class<?> expectedException) {
1947 assertEquals("Exception type different", expectedException, thrown.getClass());
1950 protected void assertThrown(@NonNull final Class<?> expectedException,
1959 assertEquals("Exception type different", expectedException, thrown.getClass());