Home
last modified time | relevance | path

Searched defs:thrown (Results 1 – 25 of 45) sorted by relevance

12

/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/
DDefaultRadioTunerTest.java122 UnsupportedOperationException thrown = assertThrows( in seek_forRadioTuner_throwsException() local
134 UnsupportedOperationException thrown = assertThrows(UnsupportedOperationException.class, in getMetadataImage_forRadioTuner_throwsException() local
156 UnsupportedOperationException thrown = assertThrows( in isConfigFlagSet_forRadioTuner_throwsException() local
167 UnsupportedOperationException thrown = assertThrows(UnsupportedOperationException.class, in setConfigFlag_forRadioTuner_throwsException() local
176 UnsupportedOperationException thrown = assertThrows(UnsupportedOperationException.class, in setParameters_forRadioTuner_throwsException() local
185 UnsupportedOperationException thrown = assertThrows(UnsupportedOperationException.class, in getParameters_forRadioTuner_throwsException() local
DTunerAdapterTest.java187 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in getConfiguration_withInvalidParameters_fails() local
420 RuntimeException thrown = assertThrows(RuntimeException.class, in tune_withSelectorWhenServiceDied_fails() local
463 RuntimeException thrown = assertThrows(RuntimeException.class, in cancelAnnouncement_whenServiceDied_fails() local
520 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in getMetadataImage_withImageIdUnavailable_fails() local
529 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in getMetadataImage_withInvalidId_fails() local
540 RuntimeException thrown = assertThrows(RuntimeException.class, in getMetadataImage_whenServiceDied_fails() local
561 RuntimeException thrown = assertThrows(RuntimeException.class, in startBackgroundScan_whenServiceDied_fails() local
584 IllegalStateException thrown = assertThrows(IllegalStateException.class, in isAnalogForced_whenNotSupported_fails() local
606 IllegalStateException thrown = assertThrows(IllegalStateException.class, in setAnalogForced_whenNotSupported_fails() local
629 RuntimeException thrown = assertThrows(RuntimeException.class, in isConfigFlagSupported_whenServiceDied_fails() local
[all …]
DRadioMetadataTest.java104 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in putString_withIllegalKey() local
117 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in putInt_withIllegalKey() local
130 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in putBitmap_withIllegalKey() local
143 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in putClock_withIllegalKey() local
158 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in putStringArray_withIllegalKey_throwsException() local
171 NullPointerException thrown = assertThrows(NullPointerException.class, () -> { in putStringArray_withNullKey_throwsException() local
183 NullPointerException thrown = assertThrows(NullPointerException.class, () -> { in putStringArray_withNullString_throwsException() local
298 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in getBitmapId_withIllegalKey_fails() local
310 NullPointerException thrown = assertThrows(NullPointerException.class, () -> { in getBitmapId_withNullKey_fails() local
370 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in getStringArray_withKeyNotInMetadata() local
[all …]
DRadioAnnouncementTest.java43 NullPointerException thrown = assertThrows(NullPointerException.class, () -> { in constructor_withNullSelector_fails() local
53 NullPointerException thrown = assertThrows(NullPointerException.class, () -> { in constructor_withNullVendorInfo_fails() local
DProgramSelectorTest.java128 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in construct_withNullInSecondaryIdsForSelector() local
196 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in getFirstId_withIdNotInSelector() local
345 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in createAmFmSelector_withInvalidBand_throwsIllegalArgumentException() local
358 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in createAmFmSelector_withInvalidFrequency_throwsIllegalArgumentException() local
371 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in createAmFmSelector_withInvalidSubChannel_throwsIllegalArgumentException() local
383 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in createAmFmSelector_withSubChannelNotSupported_throwsIllegalArgumentException() local
DProgramListTest.java303 IllegalStateException thrown = assertThrows(IllegalStateException.class, in getProgramList_forTunerAdapterWhenListNotReady_fails() local
316 RuntimeException thrown = assertThrows(RuntimeException.class, in getProgramList_forTunerAdapterWhenServiceDied_fails() local
351 RuntimeException thrown = assertThrows(RuntimeException.class, () -> { in getDynamicProgramList_forTunerAdapterWithServiceDied_throwsException() local
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
DFadeManagerConfigurationUnitTest.java315 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in testSetFadeState_toInvalid_fails() local
344 NullPointerException thrown = assertThrows(NullPointerException.class, () -> in testSetFadeOutVolShaperConfig_withNullAudioAttributes_fails() local
370 NullPointerException thrown = assertThrows(NullPointerException.class, () -> in testSetFadeInVolShaperConfig_withNullAudioAttributes_fails() local
398 NullPointerException thrown = assertThrows(NullPointerException.class, () -> in testSetFadeOutDuration_withNullAudioAttributes_fails() local
409 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in testSetFadeOutDuration_withInvalidDuration_fails() local
420 NullPointerException thrown = assertThrows(NullPointerException.class, () -> in testSetFadeInDuration_withNullAudioAttributes_fails() local
431 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in testSetFadeInDuration_withInvalidDuration_fails() local
481 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in testSetFadeableUsages_withInvalidUsage_fails() local
491 NullPointerException thrown = assertThrows(NullPointerException.class, () -> in testSetFadeableUsages_withNullUsages_fails() local
580 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in testAddFadeableUsage_withInvalidUsage_fails() local
[all …]
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/
DTunerSessionHidlTest.java396 UnsupportedOperationException thrown = assertThrows(UnsupportedOperationException.class, in tune_withUnsupportedSelector_throwsException() local
423 ParcelableException thrown = assertThrows(ParcelableException.class, () -> { in tune_withUnknownErrorFromHal_fails() local
437 IllegalStateException thrown = assertThrows(IllegalStateException.class, in tune_withClosedTuner_fails() local
497 IllegalStateException thrown = assertThrows(IllegalStateException.class, () -> { in step_withHalInInvalidState_fails() local
576 ParcelableException thrown = assertThrows(ParcelableException.class, () -> { in seek_withInternalErrorFromHal_fails() local
609 RuntimeException thrown = assertThrows(RuntimeException.class, () -> { in cancel_whenHalThrowsRemoteException_fails() local
622 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in getImage_withInvalidId_throwsIllegalArgumentException() local
646 RuntimeException thrown = assertThrows(RuntimeException.class, () -> { in getImage_whenHalThrowsException_fails() local
692 ParcelableException thrown = assertThrows(ParcelableException.class, () -> { in startProgramListUpdates_withUnknownErrorFromHal_fails() local
752 RuntimeException thrown = assertThrows(RuntimeException.class, () -> { in setConfigFlag_withUnsupportedFlag_throwsRuntimeException() local
[all …]
DBroadcastRadioServiceHidlTest.java147 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in openSession_withIdNotFound() local
161 IllegalStateException thrown = assertThrows(IllegalStateException.class, in openSession_forNonCurrentUser_throwsException() local
173 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in openSession_withoutAudio_fails() local
DAnnouncementAggregatorHidlTest.java89 RuntimeException thrown = assertThrows(RuntimeException.class, in constructor_withBinderDied() local
150 IllegalStateException thrown = assertThrows(IllegalStateException.class, in watchModule_afterClosed_throwsException() local
DRadioModuleHidlTest.java110 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in getImage_withInvalidIdFromRadioModule_throwsIllegalArgumentException() local
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/aidl/
DTunerSessionTest.java399 UnsupportedOperationException thrown = assertThrows(UnsupportedOperationException.class, in tune_withUnsupportedSelector_throwsException() local
414 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in tune_withInvalidSelector_throwsIllegalArgumentException() local
442 ParcelableException thrown = assertThrows(ParcelableException.class, () -> { in tune_withUnknownErrorFromHal_fails() local
456 IllegalStateException thrown = assertThrows(IllegalStateException.class, in tune_withClosedTuner_fails() local
518 IllegalStateException thrown = assertThrows(IllegalStateException.class, () -> { in step_withHalInInvalidState_fails() local
597 ParcelableException thrown = assertThrows(ParcelableException.class, () -> { in seek_withInternalErrorFromHal_fails() local
630 RuntimeException thrown = assertThrows(RuntimeException.class, () -> { in cancel_whenHalThrowsRemoteException_fails() local
643 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in getImage_withInvalidId_throwsIllegalArgumentException() local
668 RuntimeException thrown = assertThrows(RuntimeException.class, () -> { in getImage_whenHalThrowsException_fails() local
971 ParcelableException thrown = assertThrows(ParcelableException.class, () -> { in startProgramListUpdates_withUnknownErrorFromHal_fails() local
[all …]
DRadioModuleTest.java109 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in getImage_withInvalidIdFromRadioModule_throwsIllegalArgumentException() local
130 ParcelableException thrown = assertThrows(ParcelableException.class, () -> in addAnnouncementListener_whenHalThrowsRemoteException() local
DAnnouncementAggregatorTest.java88 RuntimeException thrown = assertThrows(RuntimeException.class, () -> in constructor_withBinderDied() local
148 IllegalStateException thrown = assertThrows(IllegalStateException.class, in watchModule_afterClosed_throwsException() local
DBroadcastRadioServiceImplTest.java161 IllegalStateException thrown = assertThrows(IllegalStateException.class, in openSession_forNonCurrentUser_throwsException() local
173 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in openSession_withoutAudio_fails() local
/frameworks/libs/modules-utils/javatests/com/android/modules/utils/testing/
DExtendedMockitoRuleTest.java510 Exception thrown = assertThrows(Exception.class, in testAfterSessionFinished_whenSessionFailsToFinish() local
546 Exception thrown = assertThrows(Exception.class, in testMockitoFrameworkCleared_whenTestFails() local
564 Exception thrown = assertThrows(Exception.class, in testMockitoFrameworkCleared_whenAfterSessionFinished() local
580 Exception thrown = assertThrows(Exception.class, in testMockitoFrameworkCleared_whenStaticMockFixturesFailed() local
594 Exception thrown = assertThrows(Exception.class, in testMockitoFrameworkCleared_whenSessionFailsToFinish() local
/frameworks/base/tools/hoststubgen/hoststubgen/test-tiny-framework/tiny-test/src/com/android/hoststubgen/test/tinyframework/
DTinyFrameworkClassWithAnnotTest.java26 public ExpectedException thrown = ExpectedException.none(); field in TinyFrameworkClassWithAnnotTest
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DProxyAccessibilityServiceConnectionTest.java223 UnsupportedOperationException thrown = in testSetServiceInfo_setIllegalOperationExceptionThrown() local
233 UnsupportedOperationException thrown = in testDisableSelf_setIllegalOperationExceptionThrown() local
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/
DIntermediateClass.java82 public static int get5(Throwable thrown) { in get5()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/
DPrimarySwitchControllerTest.java29 public final ExpectedException thrown = ExpectedException.none(); field in PrimarySwitchControllerTest
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DBarChartInfoTest.java35 public final ExpectedException thrown = ExpectedException.none(); field in BarChartInfoTest
/frameworks/base/services/tests/servicestests/src/com/android/server/os/
DBugreportManagerServiceImplTest.java216 Exception thrown = assertThrows(IllegalArgumentException.class, in testStartBugreport_throwsForNonAdminUser() local
233 Exception thrown = assertThrows(IllegalArgumentException.class, in testStartBugreport_throwsForNotAffiliatedUser() local
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/
DIRadioServiceAidlImplTest.java126 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in openTuner_withNullCallbackForAidlImpl_fails() local
DIRadioServiceHidlImplTest.java127 NullPointerException thrown = assertThrows(NullPointerException.class, in openTuner_withNullCallbackForHidlImpl_fails() local
/frameworks/opt/car/services/updatableServices/tests/src/com/android/server/wm/
DCarActivityInterceptorUpdatableTest.java351 var thrown = in registerInterceptor_existingIndex_throwsException() local
360 var thrown = in unregisterInterceptor_throwsException() local

12