Home
last modified time | relevance | path

Searched refs:assertFailure (Results 1 – 10 of 10) sorted by relevance

/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/
DAdServicesCommonManagerTest.java74 receiver.assertFailure(SecurityException.class); in testStatusManagerNotAuthorizedOnSPlus()
85 receiver.assertFailure(SecurityException.class); in testSetStatusEnabledNotExecutedOnSPlus()
97 receiver.assertFailure(SecurityException.class); in testStatusManagerNotAuthorizedCompat()
108 receiver.assertFailure(SecurityException.class); in testSetStatusEnabledNotExecutedCompat()
120 receiver.assertFailure(SecurityException.class); in testUpdateAdIdCache_notAuthorized_sPlus()
132 receiver.assertFailure(IllegalStateException.class); in testUpdateAdIdCache_notEnabled_sPlus()
144 receiver.assertFailure(SecurityException.class); in testUpdateAdIdCache_notAuthorized_rPlus()
156 receiver.assertFailure(IllegalStateException.class); in testUpdateAdIdCache_notEnabled_rPlus()
183 receiver.assertFailure(SecurityException.class); in testGetAdservicesCommonStates_notEnabled_rPlus()
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/
DOutcomeReceiverForTestsTest.java109 assertThrows(NullPointerException.class, () -> receiver.assertFailure(null)); in testAssertFailure_nullArg()
118 assertFailure(receiver, mError); in testOnError()
130 () -> receiver.assertFailure(NoSuchElementException.class)); in testOnError_wrongExceptionClass()
189 private void assertFailure(OutcomeReceiverForTests<String> receiver, Exception expectedError) in assertFailure() method in OutcomeReceiverForTestsTest
191 Exception actualError = receiver.assertFailure(expectedError.getClass()); in assertFailure()
/packages/modules/AdServices/adservices/tests/cts/adid/src/com/android/adservices/tests/adid/
DAdIdCompatibleManagerTest.java104 callback.assertFailure(LimitExceededException.class); in testAdIdCompatibleManager_verifyRateLimitReached()
118 Exception e = callback.assertFailure(IllegalStateException.class);
DAdIdManagerTest.java165 receiver.assertFailure(IllegalStateException.class);
177 receiver.assertFailure(IllegalStateException.class);
/packages/modules/AdServices/adservices/tests/endtoends/src/com/android/adservices/customaudience/
DCustomAudienceManagerTest.java211 receiver.assertFailure(IllegalStateException.class); in testGetchAndJoinCustomAudience_lowRamDevice()
230 receiver.assertFailure(IllegalStateException.class); in testLeaveCustomAudienceRequest_lowRamDevice()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/
DOutcomeReceiverForTests.java73 public <E extends Exception> E assertFailure(Class<E> expectedClass) in assertFailure() method in OutcomeReceiverForTests
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/common/
DAdServicesOutcomeReceiverForTests.java54 public <E extends Exception> E assertFailure(Class<E> expectedClass) in assertFailure() method in AdServicesOutcomeReceiverForTests
/packages/modules/AdServices/adservices/tests/cts/appsetid/src/com/android/adservices/tests/appsetid/
DAppSetIdManagerTest.java120 Exception e = receiver.assertFailure(IllegalStateException.class);
/packages/modules/AdServices/adservices/tests/cts/endtoends/topics/src/com/android/adservices/tests/cts/topics/
DTopicsManagerTest.java543 receiver.assertFailure(IllegalStateException.class); in testGetTopics_lowRamDevice()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollAdapterView.java2625 assertFailure("Scroll out of range?");
2913 private static void assertFailure(String msg) {