Home
last modified time | relevance | path

Searched refs:expectedException (Results 1 – 12 of 12) sorted by relevance

/cts/tests/tests/accounts/src/android/accounts/cts/
DAuthenticatorDescriptionTest.java22 } catch (IllegalArgumentException expectedException) { in testObjectCreationWithNullAccountType()
30 } catch (IllegalArgumentException expectedException) { in testAccountObjectCreationWithNullPackageName()
DAccountTest.java30 } catch (IllegalArgumentException expectedException) { in testAccountObjectCreationWithNullName()
39 } catch (IllegalArgumentException expectedException) { in testAccountObjectCreationWithNullAccountType()
DAccountManagerTest.java525 } catch (AuthenticatorException expectedException) { in testAddAccountWithNoAuthenticator()
/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteStatementTest.java267 SQLiteDoneException expectedException = null; in testGetBlobFailureNoParam() local
271 expectedException = ex; in testGetBlobFailureNoParam()
278 assertNotNull("Should have thrown SQLiteDoneException", expectedException); in testGetBlobFailureNoParam()
288 SQLiteDoneException expectedException = null; in testGetBlobFailureParam() local
292 expectedException = ex; in testGetBlobFailureParam()
299 assertNotNull("Should have thrown SQLiteDoneException", expectedException); in testGetBlobFailureParam()
/cts/tests/app/FgsTimeoutTest/FgsTimeoutTestHelper/src/android/app/cts/fgstimeouttesthelper/
DFgsTimeoutMessageReceiver.java94 Class<?> expectedException = null; in onReceive() local
97 expectedException = m.getExpectedExceptionClass(); in onReceive()
158 final boolean isExpected = expectedException != null in onReceive()
159 && expectedException.isAssignableFrom(th.getClass()); in onReceive()
/cts/tests/tests/instantapp/src/android/cts/instantapp/resolver/
DResolverServiceMethodFallbackTest.kt129 val expectedException = ExpectedException.none() in <lambda>() constant
142 expectedException.expect(IllegalStateException::class.java) in <lambda>()
145 expectedException.expect(TestRemoteCallbackException::class.java) in <lambda>()
150 expectedException.expect(TestRemoteCallbackException::class.java) in <lambda>()
/cts/hostsidetests/appsecurity/test-apps/PackageInstallerPermissionRequestApp/src/com/android/cts/packageinstallerpermissionrequestapp/
DPermissionRequestTest.kt37 val expectedException = ExpectedException.none() constant
60 expectedException.expect(SecurityException::class.java) in setSelfAsInstallerAndWhitelistPermission()
/cts/tests/app/ShortFgsTest/ShortFgsTestHelper/src/android/app/cts/shortfgstesthelper/
DShortFgsMessageReceiver.java101 Class<?> expectedException = null; in onReceive() local
104 expectedException = m.getExpectedExceptionClass(); in onReceive()
195 final boolean isExpected = expectedException != null in onReceive()
196 && expectedException.isAssignableFrom(th.getClass()); in onReceive()
/cts/tests/wearable/src/android/wearable/cts/
DCtsIsolatedWearableSensingService.java176 String expectedException = data.getString(EXPECTED_EXCEPTION_KEY); in onDataProvided() local
178 relativeFilePath, expectedContent, expectedException, statusConsumer); in onDataProvided()
275 String expectedException, in readFileAndVerify() argument
297 if (expectedException != null in readFileAndVerify()
298 && expectedException.equals(ex.getClass().getSimpleName())) { in readFileAndVerify()
/cts/tests/tests/os/src/android/os/cts/
DPowerManager_ThermalTest.java111 } catch (IllegalArgumentException expectedException) { in testThermalStatusCallback()
132 } catch (IllegalArgumentException expectedException) { in testThermalStatusCallback()
/cts/tests/app/src/android/app/cts/
DActivityManagerFgsBgStartTest.java1267 ForegroundServiceStartNotAllowedException expectedException = null; in testFgsStartFromBGException() local
1275 expectedException = e; in testFgsStartFromBGException()
1281 assertNotNull(expectedException); in testFgsStartFromBGException()
1282 assertTrue(expectedException.getMessage().contains(expectedMessage)); in testFgsStartFromBGException()
/cts/tests/ondeviceintelligence/src/android/ondeviceintelligence/cts/
DOnDeviceIntelligenceManagerTest.java580 OnDeviceIntelligenceException expectedException = constructException(bundle); in exceptionPopulatedWhenAttemptingProcessRequest() local
590 assertEquals(error.getErrorCode(), expectedException.getErrorCode()); in exceptionPopulatedWhenAttemptingProcessRequest()