Home
last modified time | relevance | path

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

/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/cluster/
DClusterHomeManagerPermissionTest.java86 SecurityException thrown = assertThrows(SecurityException.class, in testRegisterClusterStateListener_requiresPermission() local
94 SecurityException thrown = assertThrows(SecurityException.class, in testRegisterClusterNavigationStateListener_requiresPermission() local
103 SecurityException thrown = assertThrows(SecurityException.class, in testGetClusterState_requiresPermission() local
110 SecurityException thrown = assertThrows(SecurityException.class, in testUnReportState_requiresPermission() local
117 SecurityException thrown = assertThrows(SecurityException.class, in testRequestDisplay_requiresPermission() local
124 SecurityException thrown = assertThrows(SecurityException.class, in testStartFixedActivityModeAsUser_requiresPermission() local
132 SecurityException thrown = assertThrows(SecurityException.class, in testStopFixedActivityMode_requiresPermission() local
140 SecurityException thrown = assertThrows(SecurityException.class, in testSendHeartbeat_requiresPermission() local
149 SecurityException thrown = assertThrows(SecurityException.class, in testStartVisibilityMonitoring_requiresPermission() local
/cts/common/device-side/bedstead/performanceanalyzer/src/test/kotlin/com/android/bedstead/performanceanalyzer/
DPerformanceAnalyzerTest.kt50 val thrown = assertThrows(PerformanceTestFailedException::class.java) { in analyzeThat_runnable_finishesIn_false_throws() constant
69 val thrown = assertThrows(PerformanceTestFailedException::class.java) { in analyzeThat_runnable_withCleanUpSpecified_finishesIn_false_throws() constant
90 val thrown = assertThrows(PerformanceTestFailedException::class.java) { in analyzeThat_runnable_withCleanUpAndIterationsSpecified_finishesIn_false_throws() constant
102 val thrown = assertThrows(PerformanceTestFailedException::class.java) { in analyzeThat_runnableThatFails_summaryContainsFailureCounts() constant
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/
DCarOccupantZoneManagerPermissionTest.java59 SecurityException thrown = assertThrows(SecurityException.class, in testDisplayIdForDriver() local
68 SecurityException thrown = assertThrows(SecurityException.class, in testGetAudioZoneIdForOccupant() local
76 SecurityException thrown = assertThrows(SecurityException.class, in testGetOccupantForAudioZoneId() local
85 SecurityException thrown = assertThrows(SecurityException.class, in testAssignProfileUserToOccupantZone() local
/cts/tests/appsearch/src/com/android/cts/appsearch/external/ast/query/
DGetSearchStringParameterNodeCtsTest.java51 IllegalArgumentException thrown = in testConstructor_throwsOnNegativeIndex() local
85 IllegalArgumentException thrown = in testSetSearchStringIndex_throwsOnNegativeIndex() local
DSemanticSearchNodeCtsTest.java58 IllegalArgumentException thrown = in testConstructor_throwsOnInvalidBounds() local
142 IllegalArgumentException thrown = in testSetBounds_throwsOnInvalidInputs() local
/cts/hostsidetests/appsecurity/test-apps/SettingsProviderInvalidKeyTestApp/src/com/android/cts/settingsproviderinvalidkeytestapp/
DSettingsProviderInvalidKeyTest.java30 IllegalStateException thrown = expectThrows(IllegalStateException.class, in testLongKeysAreRejected() local
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/wifi/
DCarWifiManagerPermissionTest.java58 SecurityException thrown = assertThrows(SecurityException.class, runnable); in expectPermissionException() local
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/input/
DCarInputManagerPermissionTest.java77 SecurityException thrown = assertThrows(SecurityException.class, in testInjectKeyEventPermission() local
/cts/tests/appcloning/src/android/appcloning/cts/
DCrossProfileIntentFilterTest.java72 Throwable thrown = assertThrows(RuntimeException.class, () -> { in addCrossProfileIntentFilterForSystemAccessTest() local
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/watchdog/
DCarWatchdogManagerPermissionTest.java201 SecurityException thrown = assertThrows(SecurityException.class, runnable); in expectPermissionException() local
206 SecurityException thrown = assertThrows(SecurityException.class, runnable); in expectPermissionException() local
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioSystemUsageTest.java111 UnsupportedOperationException thrown = expectThrows(UnsupportedOperationException.class, in getOutputForAttr_returnsError() local
/cts/tools/vm-tests-tf/src/dot/junit/
DDxTestCase.java23 private static void checkError(Class<?> expectedErrorClass, Throwable thrown, in checkError()
DDxAbstractMain.java25 private static void checkError(Class<?> expectedErrorClass, Throwable thrown, in checkError()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DThreadNetworkTest.java137 ExecutionException thrown = assertThrows( in enableThread_disallowThreadNetworkIsSet_failWithFailedPrecondition() local
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DUtils.java82 final Throwable[] thrown = new Throwable[1]; in runOnMainThread() local
/cts/tests/tests/car/src/android/car/cts/
DCarPropertyValueTest.java190 IllegalStateException thrown = in testIsPropertyIdHardwarePropId_userBuild() local
DCarPropertyConfigTest.java359 IllegalStateException thrown = in testIsPropertyIdSimulationPropId_userBuild() local
DCarOccupantZoneManagerTest.java422 NullPointerException thrown = assertThrows(NullPointerException.class, in testGetOccupantZoneForNullUser() local
DCarAudioManagerTest.java1412 NullPointerException thrown = assertThrows(NullPointerException.class, () -> in enableMirrorForAudioZones_withNullList() local
/cts/tests/tests/content/src/android/content/res/cts/
DResourcesTest.java470 var thrown = in testGetDrawable_fakeFrro() local