Home
last modified time | relevance | path

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

123456

/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/policy/
DDeviceStateControllerImplTest.java85 ExecutionException thrown = assertThrows(ExecutionException.class, in lockDevice_withProvisionInProgressState_shouldThrowException() local
100 ExecutionException thrown = assertThrows(ExecutionException.class, in lockDevice_withProvisionPausedState_shouldThrowException() local
115 ExecutionException thrown = assertThrows(ExecutionException.class, in lockDevice_withProvisionFailedState_shouldThrowException() local
147 ExecutionException thrown = assertThrows(ExecutionException.class, in lockDevice_withClearDeviceState_shouldThrowException() local
204 ExecutionException thrown = assertThrows(ExecutionException.class, in unlockDevice_withProvisionInProgressState_shouldThrowException() local
219 ExecutionException thrown = assertThrows(ExecutionException.class, in unlockDevice_withProvisionPausedState_shouldThrowException() local
234 ExecutionException thrown = assertThrows(ExecutionException.class, in unlockDevice_withProvisionFailedState_shouldThrowException() local
250 ExecutionException thrown = assertThrows(ExecutionException.class, in unlockDevice_withClearDeviceState_shouldThrowException() local
276 ExecutionException thrown = assertThrows(ExecutionException.class, in clearDevice_withUnprovisionedState_shouldThrowException() local
291 ExecutionException thrown = assertThrows(ExecutionException.class, in clearDevice_withProvisionInProgressState_shouldThrowException() local
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DAudioControlWrapperV2Test.java131 IllegalStateException thrown = assertThrows(IllegalStateException.class, in registerFocusListener_throws() local
190 IllegalStateException thrown = assertThrows(IllegalStateException.class, in onAudioFocusChange_throws() local
206 UnsupportedOperationException thrown = assertThrows(UnsupportedOperationException.class, in onDevicesToMuteChange_throws() local
218 UnsupportedOperationException thrown = assertThrows(UnsupportedOperationException.class, in registerAudioGainCallback_throws() local
228 UnsupportedOperationException thrown = assertThrows(UnsupportedOperationException.class, in unregisterAudioGainCallback_throws() local
238 UnsupportedOperationException thrown = assertThrows(UnsupportedOperationException.class, in setModuleChangeCallback_throws() local
249 UnsupportedOperationException thrown = assertThrows(UnsupportedOperationException.class, in clearModuleChangeCallback_throws() local
273 IllegalStateException thrown = assertThrows(IllegalStateException.class, in linkToDeath_throws() local
299 IllegalStateException thrown = assertThrows(IllegalStateException.class, in unlinkToDeath_throws() local
DAudioControlWrapperV1Test.java103 IllegalStateException thrown = assertThrows(IllegalStateException.class, in getBusForContext_throws() local
162 UnsupportedOperationException thrown = assertThrows(UnsupportedOperationException.class, in onDevicesToMuteChange_throws() local
174 UnsupportedOperationException thrown = assertThrows(UnsupportedOperationException.class, in registerAudioGainCallback_throws() local
184 UnsupportedOperationException thrown = assertThrows(UnsupportedOperationException.class, in unregisterAudioGainCallback_throws() local
194 UnsupportedOperationException thrown = assertThrows(UnsupportedOperationException.class, in setModuleChangeCallback_throws() local
204 UnsupportedOperationException thrown = assertThrows(UnsupportedOperationException.class, in clearModuleChangeCallback_throws() local
227 IllegalStateException thrown = assertThrows(IllegalStateException.class, in linkToDeath_throws() local
253 IllegalStateException thrown = assertThrows(IllegalStateException.class, in unlinkToDeath_throws() local
DHalAudioDeviceInfoTest.java113 Throwable thrown = assertThrows(NullPointerException.class, in constructor_requiresNonNullAudioPort() local
127 Throwable thrown = assertThrows(NullPointerException.class, in constructor_requiresNonNullAudioGains() local
150 Throwable thrown = assertThrows(IllegalStateException.class, in constructor_requiresJointModeAudioGain() local
173 Throwable thrown = assertThrows(IllegalArgumentException.class, in constructor_requiresMaxGainLargerThanMin() local
196 Throwable thrown = assertThrows(IllegalArgumentException.class, in constructor_requiresDefaultGainLargerThanMin() local
219 Throwable thrown = assertThrows(IllegalArgumentException.class, in constructor_requiresDefaultGainSmallerThanMax() local
242 Throwable thrown = assertThrows(IllegalArgumentException.class, in constructor_requiresGainStepSizeFactorOfRange() local
265 Throwable thrown = assertThrows(IllegalArgumentException.class, in constructor_requiresGainStepSizeFactorOfRangeToDefault() local
281 Throwable thrown = assertThrows(IllegalArgumentException.class, in constructor_requiresAudioPortDeviceExt() local
295 Throwable thrown = assertThrows(IllegalArgumentException.class, in constructor_requiresConnectionBus() local
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/fakevhal/
DFakeVhalConfigParserUnitTest.java93 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in testConfigFileHaveInvalidJsonObject() local
105 var thrown = assertThrows(IllegalArgumentException.class, () -> in testConfigFileInvalidJsonKey() local
116 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in testConfigFileRootIsNotArray() local
127 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in testConfigFileRootHasElementIsNotJsonObject() local
139 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in testParseEachPropertyJsonObjectIsEmpty() local
163 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in testParsePropertyIdFieldNotExist() local
174 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in testParsePropertyIdValueNull() local
185 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in testParsePropertyIdWithWrongValueType() local
208 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in testParsePropertyIdWithEmptyStringValue() local
220 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in testParsePropertyIdWithIntStringValue() local
[all …]
/packages/modules/DeviceLock/tests/unittests/src/com/android/server/devicelock/
DDeviceLockControllerConnectorStubTest.java87 ExecutionException thrown = assertThrows(ExecutionException.class, in lockDevice_withClearedState_shouldThrowException() local
128 ExecutionException thrown = assertThrows(ExecutionException.class, in unlockDevice_withClearedState_shouldThrowException() local
169 ExecutionException thrown = assertThrows(ExecutionException.class, in clearDeviceRestrictions_withClearedState_shouldThrowException() local
179 ExecutionException thrown = assertThrows(ExecutionException.class, in isDeviceLocked_withUndefinedState_shouldThrownException() local
211 ExecutionException thrown = assertThrows(ExecutionException.class, in isDeviceLocked_withClearedState_shouldThrownException() local
/packages/modules/Connectivity/staticlibs/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
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAdSelectionConfigValidatorTest.java166 IllegalArgumentException thrown = in testVerifyEmptySeller() local
184 IllegalArgumentException thrown = in testVerifyNotDomainNameSeller() local
201 IllegalArgumentException thrown = in testVerifyInvalidSeller() local
223 IllegalArgumentException thrown = in testVerifyNoHostSeller() local
240 IllegalArgumentException thrown = in testVerifyNoHostDecisionLogicUri() local
263 IllegalArgumentException thrown = in testVerifyInconsistentSellerUris() local
286 IllegalArgumentException thrown = in testVerifyTrustedScoringSignalsUriIsRelative() local
308 IllegalArgumentException thrown = in testVerifyTrustedScoringSignalsUriIsNotHTTPS() local
334 IllegalArgumentException thrown = in testVerifyInconsistentSellerUrisByPrefix() local
371 IllegalArgumentException thrown = in testContextualAdsDecisionLogicEtldMismatch() local
/packages/modules/AdServices/sdksandbox/tests/cts/inprocess/src/com/android/sdksandbox/tests/cts/inprocess/
DSdkSandboxRestrictionsTest.java91 UnsupportedSchemeException thrown = assertThrows( in testNoWidevineAccess() local
116 SecurityException thrown = in testCannotRequestPermissions() local
131 SecurityException thrown = in testNoImplicitIntents() local
140 SecurityException thrown = in testSendBroadcastsRestrictions_withAction() local
150 SecurityException thrown = in testSendBroadcastRestrictions_withoutAction() local
282 SecurityException thrown = in testSandboxCannotAccess_StorageAccessFramework() local
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZonesHelperTest.java775 IllegalArgumentException thrown = in loadAudioZones_versionOneFailsOnAudioZoneId() local
794 IllegalArgumentException thrown = in loadAudioZones_versionOneFailsOnOccupantZoneId() local
922 IllegalArgumentException thrown = in loadAudioZones_failsOnDuplicateOccupantZoneId() local
941 IllegalArgumentException thrown = in loadAudioZones_failsOnDuplicateAudioZoneId() local
961 IllegalArgumentException thrown = in loadAudioZones_failsOnDuplicateZoneConfigName() local
982 IllegalArgumentException thrown = in loadAudioZones_failsOnEmptyZoneConfigName() local
1003 NullPointerException thrown = in loadAudioZones_failsOnMissingZoneConfigName() local
1024 IllegalArgumentException thrown = in loadAudioZones_failsOnPrimaryZoneWithMultipleConfigs() local
1046 IllegalArgumentException thrown = in loadAudioZones_failsOnEmptyInputDeviceAddress() local
1065 IllegalArgumentException thrown = in loadAudioZones_failsOnNonNumericalAudioZoneId() local
[all …]
DCarAudioFadeConfigurationHelperTest.java72 MissingResourceException thrown = assertThrows(MissingResourceException.class, in constructor_withNoConfigs_fails() local
85 NullPointerException thrown = assertThrows(NullPointerException.class, in constructor_configWithNoName_fails() local
98 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in constructor_configWithEmptyName_fails() local
/packages/services/Car/tests/carservice_unit_test/src/android/car/oem/
DOemCarAudioFocusEvaluationRequestUnitTest.java135 IllegalStateException thrown = assertThrows(IllegalStateException.class, () -> in builder_withReuse_fails() local
186 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in setFocusHolders_withNullHolders_fails() local
209 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in addFocusHolders_withNullHolder_fails() local
232 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in setFocusLosers_withNullLosers_fails() local
255 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in addFocusLosers_withNullLosers_fails() local
278 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in setMutedVolumeGroups_withNullGroups_fails() local
301 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in addMutedVolumeGroups_withNullGroups_fails() local
314 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in setAudioFocusRequest_withNullGroups_fails() local
DOemCarAudioFocusResultUnitTest.java259 IllegalStateException thrown = assertThrows(IllegalStateException.class, () -> in builder_withReuse_fails() local
269 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in setAudioFocusEntry_withNullEntry_fails() local
296 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in setNewlyLostAudioFocusEntries_withNullEntries_fails() local
323 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in addNewlyLostAudioFocusEntry_withNullEntry_fails() local
350 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in setNewlyBlockedAudioFocusEntries_withNullEntries_fails() local
376 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in addNewlyBlockedAudioFocusEntry_withNullEntry_fails() local
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioMirrorRequestHandlerTest.java112 NullPointerException thrown = assertThrows(NullPointerException.class, () -> { in registerAudioZonesMirrorStatusCallback_withNullCallback_fails() local
123 NullPointerException thrown = assertThrows(NullPointerException.class, () -> { in unregisterAudioZonesMirrorStatusCallback_withNullCallback_fails() local
205 NullPointerException thrown = assertThrows(NullPointerException.class, () -> { in setMirrorDeviceInfos_withNullMirrorDeviceAddress() local
268 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in getAudioDeviceInfo_forInvalidRequestIdFails() local
303 NullPointerException thrown = assertThrows(NullPointerException.class, () -> { in enableMirrorForZones_withNullZoneIds_fails() local
313 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in enableMirrorForZones_withInvalidRequestId() local
368 NullPointerException thrown = assertThrows(NullPointerException.class, in rejectMirrorForZones_withNullZones_fails() local
381 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in rejectMirrorForZones_withEmptyZones_fails() local
460 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in verifyValidRequestId_withNoLongerValidRequest() local
470 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in verifyValidRequestId_withInvalidRequestId() local
DCarAudioContextInfoTest.java55 NullPointerException thrown = assertThrows(NullPointerException.class, () -> { in constructor_withNullAttributes_fails() local
66 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in constructor_withEmptyAudioAttributes_fails() local
77 NullPointerException thrown = assertThrows(NullPointerException.class, () -> { in constructor_withNullName_fails() local
88 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in constructor_withEmptyName_fails() local
99 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> { in constructor_withNegativeId_fails() local
DCarVolumeGroupFactoryTest.java117 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in setDeviceInfoForContext_withDifferentStepSize_throws() local
131 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in setDeviceInfoForContext_withSameContext_throws() local
296 NullPointerException thrown = assertThrows(NullPointerException.class, in factoryConstructor_withNullCarAudioSettings_fails() local
309 NullPointerException thrown = assertThrows(NullPointerException.class, in factoryConstructor_withNullCarAudioContext_fails() local
322 NullPointerException thrown = assertThrows(NullPointerException.class, in factoryConstructor_withNullCarActivationVolumeConfig_fails() local
/packages/services/Car/tests/carservice_unit_test/src/android/car/media/
DCarVolumeGroupInfoUnitTest.java144 NullPointerException thrown = assertThrows(NullPointerException.class, () -> in build_buildsGroupInfo_withNullAudioDevices_fails() local
179 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in build_buildsGroupInfo_withMinActivationVolumeOutOfMinMaxRange_fails() local
192 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in build_buildsGroupInfo_withMaxActivationVolumeOutOfMinMaxRange_fails() local
206 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in build_buildsGroupInfo_withMinLargerThanMaxActivationVolume_fails() local
233 NullPointerException thrown = assertThrows(NullPointerException.class, () -> in build_withNullName_fails() local
272 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in setMaxVolumeGainIndex_withMinLargerThanMax_buildFails() local
285 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in setVolumeGainIndex_withGainOutOfMinMaxRange_buildFails() local
326 NullPointerException thrown = assertThrows(NullPointerException.class, in setAudioAttribute_withNull_buildFails() local
344 IllegalStateException thrown = assertThrows(IllegalStateException.class, () -> in builder_withReuse_fails() local
DCarVolumeGroupEventUnitTest.java105 IllegalStateException thrown = assertThrows(IllegalStateException.class, () -> in builder_withReuse_fails() local
114 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in build_withNullVolumeGroupInfo_fails() local
126 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in build_withNullExtraInfo_fails() local
138 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in addCarVolumeGroupInfo_withNullEntry_fails() local
179 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> in setExtraInfos_withNullEntry_fails() local
/packages/services/Car/tests/CarLibUnitTest/src/android/car/media/
DCarAudioManagerUnitTest.java649 NullPointerException thrown = assertThrows(NullPointerException.class, () -> in registerCarVolumeGroupEventCallback_withNullExecutor_fails() local
660 NullPointerException thrown = assertThrows(NullPointerException.class, () -> in registerCarVolumeGroupEventCallback_withNullCallback_fails() local
710 NullPointerException thrown = assertThrows(NullPointerException.class, () -> in unregisterCarVolumeGroupEventCallback_withNullCallback_fails() local
963 NullPointerException thrown = assertThrows(NullPointerException.class, () -> in switchAudioZoneToConfig_withNullConfig_fails() local
974 NullPointerException thrown = assertThrows(NullPointerException.class, () -> in switchAudioZoneToConfig_withNullExecutor_fails() local
985 NullPointerException thrown = assertThrows(NullPointerException.class, () -> in switchAudioZoneToConfig_withNullCallback_fails() local
1007 NullPointerException thrown = assertThrows(NullPointerException.class, () -> in setAudioZoneConfigsChangeCallback_withNullExecutor_fails() local
1017 NullPointerException thrown = assertThrows(NullPointerException.class, () -> in setAudioZoneConfigsChangeCallback_withNullCallback_fails() local
1039 IllegalStateException thrown = assertThrows(IllegalStateException.class, () -> in setAudioZoneConfigsChangeCallback_multipleTimes_fails() local
1117 NullPointerException thrown = assertThrows(NullPointerException.class, () -> in setPrimaryZoneMediaAudioRequestCallback_withNullExecutor_fails() local
[all …]
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/
DSafetyCenterManagerTest.kt188 val thrown = in setSafetySourceData_unknownId_throwsIllegalArgumentException() constant
200 val thrown = in setSafetySourceData_staticId_throwsIllegalArgumentException() constant
214 val thrown = in setSafetySourceData_differentPackage_throwsIllegalArgumentException() constant
235 val thrown = in setSafetySourceData_wronglySignedPackage_throwsIllegalArgumentException() constant
265 val thrown = in setSafetySourceData_invalidPackageCertificate_throwsIllegalArgumentException() constant
279 val thrown = in setSafetySourceData_sourceInStatelessGroupNotUnspecified_throwsIllegalArgumentException() constant
297 val thrown = in setSafetySourceData_nullUnknownId_throwsIllegalArgumentException() constant
309 val thrown = in setSafetySourceData_nullStaticId_throwsIllegalArgumentException() constant
323 val thrown = in setSafetySourceData_nullDifferentPackage_throwsIllegalArgumentException() constant
340 val thrown = in setSafetySourceData_issueOnlyWithStatus_throwsIllegalArgumentException() constant
[all …]
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DTimeRangeFilterTest.java116 Throwable thrown = assertThrows(IllegalArgumentException.class, builder::build); in instantTimeRange_startTimeNotLaterThanEndTime_throws() local
129 Throwable thrown = assertThrows(IllegalArgumentException.class, builder::build); in localTimeRange_startTimeNotLaterThanEndTime_throws() local
139 Throwable thrown = in instantTimeRange_bothEndsOpen_throws() local
150 Throwable thrown = in localTimeRange_bothEndsOpen_throws() local
/packages/services/Car/tests/carservice_unit_test/src/android/car/util/concurrent/
DAndroidFutureTest.java70 ExecutionException thrown = assertThrows(ExecutionException.class, in testCompleteExceptionally_uncompleted() local
204 ExecutionException thrown = assertThrows(ExecutionException.class, () -> fromParcel.get()); in testWriteToParcel_completedExceptionally() local
229 ExecutionException thrown = in testWriteToParcel_uncompleted_Exception() local
249 ExecutionException thrown = assertThrows(ExecutionException.class, () -> future.get()); in testSupply_futureThrowingException() local
274 ExecutionException thrown = assertThrows(ExecutionException.class, () -> farFuture.get()); in testThenApply_functionThrowingException() local
301 ExecutionException thrown = assertThrows(ExecutionException.class, in testThenCompose_functionThrowingException() local
332 ExecutionException thrown = assertThrows(ExecutionException.class, in testThenCombine_functionThrowingException() local
/packages/services/Car/tests/carservice_unit_test/src/android/car/os/
DThreadPolicyWithPriorityUnitTest.java60 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in testThreadPolicyWithPriorityInvalidPolicy() local
72 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in testThreadPolicyWithPriorityPriorityTooSmall() local
84 IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, in testThreadPolicyWithPriorityPriorityTooLarge() local
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/autodelete/
DAutoDeleteRangeTest.kt65 val thrown = in fromNumberOfMonths_unsupportedNumberOfMonths_throws() constant
77 val thrown = in deletionEnd_rangeNever_throws() constant
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DAggregationApisTest.java388 Throwable thrown = assertThrows(IllegalArgumentException.class, requestBuilder::build); in aggregationRequest_emptyAggregationType_throws() local
400 Throwable thrown = in groupByPeriod_withInstantTimeFilter_throws() local
417 Throwable thrown = in groupByPeriod_zeroPeriod_throws() local
430 Throwable thrown = in groupByPeriod_hugeNumberOfGroups_throws() local
448 Throwable thrown = in groupByDuration_zeroDuration_throws() local
460 Throwable thrown = in groupByDuration_hugeNumberOfGroups_throws() local

123456