Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/
DDefaultRadioTunerTest.java130 UnsupportedOperationException thrown = assertThrows( in seek_forRadioTuner_throwsException() local
154 UnsupportedOperationException thrown = assertThrows( in isConfigFlagSet_forRadioTuner_throwsException() local
165 UnsupportedOperationException thrown = assertThrows(UnsupportedOperationException.class, in setConfigFlag_forRadioTuner_throwsException() local
174 UnsupportedOperationException thrown = assertThrows(UnsupportedOperationException.class, in setParameters_forRadioTuner_throwsException() local
183 UnsupportedOperationException thrown = assertThrows(UnsupportedOperationException.class, in getParameters_forRadioTuner_throwsException() local
DTunerAdapterTest.java165 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in getConfiguration_withInvalidParameters_fails() local
398 RuntimeException thrown = assertThrows(RuntimeException.class, in tune_withSelectorWhenServiceDied_fails() local
441 RuntimeException thrown = assertThrows(RuntimeException.class, in cancelAnnouncement_whenServiceDied_fails() local
498 RuntimeException thrown = assertThrows(RuntimeException.class, in getMetadataImage_whenServiceDied_fails() local
519 RuntimeException thrown = assertThrows(RuntimeException.class, in startBackgroundScan_whenServiceDied_fails() local
542 IllegalStateException thrown = assertThrows(IllegalStateException.class, in isAnalogForced_whenNotSupported_fails() local
564 IllegalStateException thrown = assertThrows(IllegalStateException.class, in setAnalogForced_whenNotSupported_fails() local
587 RuntimeException thrown = assertThrows(RuntimeException.class, in isConfigFlagSupported_whenServiceDied_fails() local
610 RuntimeException thrown = assertThrows(RuntimeException.class, in isConfigFlagSet_whenServiceDied_fails() local
630 RuntimeException thrown = assertThrows(RuntimeException.class, in setConfigFlag_whenServiceDied_fails() 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
DRadioMetadataTest.java83 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in putString_withIllegalKey() local
96 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in putInt_withIllegalKey() local
109 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in putClock_withIllegalKey() local
DProgramSelectorTest.java185 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in getFirstId_withIdNotInSelector() local
322 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in createAmFmSelector_withInvalidFrequency_throwsIllegalArgumentException() local
335 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in createAmFmSelector_withInvalidSubChannel_throwsIllegalArgumentException() local
347 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in createAmFmSelector_withSubChannelNotSupported_throwsIllegalArgumentException() local
DProgramListTest.java282 IllegalStateException thrown = assertThrows(IllegalStateException.class, in getProgramList_forTunerAdapterWhenListNotReady_fails() local
295 RuntimeException thrown = assertThrows(RuntimeException.class, in getProgramList_forTunerAdapterWhenServiceDied_fails() local
330 RuntimeException thrown = assertThrows(RuntimeException.class, () -> { in getDynamicProgramList_forTunerAdapterWithServiceDied_throwsException() local
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/
DCleanupTest.kt56 val thrown = assertFailsWith<TestException1> { in testThrowTry() constant
74 val thrown = assertFailsWith<TestException2> { in testThrowCleanup() constant
92 val thrown = assertFailsWith<TestException1> { in testThrowBoth() constant
161 val thrown = assertFailsWith<TestException2> { in testThrowInCatch() constant
180 val thrown = assertFailsWith<AssertionError> { in testAssertionErrorInCatch() constant
199 val thrown = assertFailsWith<TestException1> { in testMultipleCleanups() constant
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/
DTunerSessionHidlTest.java365 UnsupportedOperationException thrown = assertThrows(UnsupportedOperationException.class, in tune_withUnsupportedSelector_throwsException() local
392 ParcelableException thrown = assertThrows(ParcelableException.class, () -> { in tune_withUnknownErrorFromHal_fails() local
467 IllegalStateException thrown = assertThrows(IllegalStateException.class, () -> { in step_withHalInInvalidState_fails() local
546 ParcelableException thrown = assertThrows(ParcelableException.class, () -> { in seek_withInternalErrorFromHal_fails() local
595 RuntimeException thrown = assertThrows(RuntimeException.class, () -> { in cancel_whenHalThrowsRemoteException_fails() local
608 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in getImage_withInvalidId_throwsIllegalArgumentException() local
633 RuntimeException thrown = assertThrows(RuntimeException.class, () -> { in getImage_whenHalThrowsException_fails() local
678 ParcelableException thrown = assertThrows(ParcelableException.class, () -> { in startProgramListUpdates_withUnknownErrorFromHal_fails() local
738 RuntimeException thrown = assertThrows(RuntimeException.class, () -> { in setConfigFlag_withUnsupportedFlag_throwsRuntimeException() local
784 RuntimeException thrown = assertThrows(RuntimeException.class, () -> { in isConfigFlagSet_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
DRadioModuleHidlTest.java110 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in getImage_withInvalidIdFromRadioModule_throwsIllegalArgumentException() local
DAnnouncementAggregatorHidlTest.java131 IllegalStateException thrown = assertThrows(IllegalStateException.class, in watchModule_afterClosed_throwsException() local
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/aidl/
DTunerSessionTest.java398 UnsupportedOperationException thrown = assertThrows(UnsupportedOperationException.class, in tune_withUnsupportedSelector_throwsException() local
413 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in tune_withInvalidSelector_throwsIllegalArgumentException() local
456 ParcelableException thrown = assertThrows(ParcelableException.class, () -> { in tune_withUnknownErrorFromHal_fails() local
519 IllegalStateException thrown = assertThrows(IllegalStateException.class, () -> { in step_withHalInInvalidState_fails() local
598 ParcelableException thrown = assertThrows(ParcelableException.class, () -> { in seek_withInternalErrorFromHal_fails() local
635 RuntimeException thrown = assertThrows(RuntimeException.class, () -> { in cancel_whenHalThrowsRemoteException_fails() local
648 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in getImage_withInvalidId_throwsIllegalArgumentException() local
673 RuntimeException thrown = assertThrows(RuntimeException.class, () -> { in getImage_whenHalThrowsException_fails() local
957 ParcelableException thrown = assertThrows(ParcelableException.class, () -> { in startProgramListUpdates_withUnknownErrorFromHal_fails() local
1017 RuntimeException thrown = assertThrows(RuntimeException.class, () -> { in setConfigFlag_withUnsupportedFlag_throwsRuntimeException() local
[all …]
DBroadcastRadioServiceImplTest.java161 IllegalStateException thrown = assertThrows(IllegalStateException.class, in openSession_forNonCurrentUser_throwsException() local
173 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in openSession_withoutAudio_fails() local
DRadioModuleTest.java110 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in getImage_withInvalidIdFromRadioModule_throwsIllegalArgumentException() local
DAnnouncementAggregatorTest.java130 IllegalStateException thrown = assertThrows(IllegalStateException.class, in watchModule_afterClosed_throwsException() 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/services/tests/servicestests/src/com/android/server/accessibility/
DProxyAccessibilityServiceConnectionTest.java219 UnsupportedOperationException thrown = in testSetServiceInfo_setIllegalOperationExceptionThrown() local
229 UnsupportedOperationException thrown = in testDisableSelf_setIllegalOperationExceptionThrown_() local
/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
DAppEntitiesHeaderControllerTest.java42 public final ExpectedException thrown = ExpectedException.none(); field in AppEntitiesHeaderControllerTest
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/
DSensorControllerTest.java87 Throwable thrown = assertThrows( in createSensor_invalidHandle_throwsException() local
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/
DIRadioServiceHidlImplTest.java124 NullPointerException thrown = assertThrows(NullPointerException.class, in openTuner_withNullCallbackForHidlImpl_fails() local
DIRadioServiceAidlImplTest.java126 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in openTuner_withNullCallbackForAidlImpl_fails() local
/frameworks/base/core/java/android/util/
DBase64OutputStream.java108 IOException thrown = null; in close() local
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DStagingManagerTest.java460 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in getStagedApexInfos_validatePreConditions() local
470 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in getStagedApexInfos_validatePreConditions() local
480 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in getStagedApexInfos_validatePreConditions() local

12