Home
last modified time | relevance | path

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

/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/tests/accounts/src/android/accounts/cts/
DAccountTest.java21 } catch (IllegalArgumentException expectedException) { in testAccountObjectCreationWithNullName()
29 } catch (IllegalArgumentException expectedException) { in testAccountObjectCreationWithNullAccountType()
DAuthenticatorDescriptionTest.java22 } catch (IllegalArgumentException expectedException) { in testObjectCreationWithNullAccountType()
30 } catch (IllegalArgumentException expectedException) { in testAccountObjectCreationWithNullPackageName()
DAccountManagerTest.java511 } catch (AuthenticatorException expectedException) { in testAddAccountWithNoAuthenticator()
/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 in com.android.cts.packageinstallerpermissionrequestapp.PermissionRequestTest
60 expectedException.expect(SecurityException::class.java) in setSelfAsInstallerAndWhitelistPermission()
/cts/tests/tests/os/src/android/os/cts/
DPowerManager_ThermalTest.java98 } catch (IllegalArgumentException expectedException) { in testThermalStatusCallback()
119 } catch (IllegalArgumentException expectedException) { in testThermalStatusCallback()
/cts/tests/app/src/android/app/cts/
DActivityManagerFgsBgStartTest.java1130 ForegroundServiceStartNotAllowedException expectedException = null; in testFgsStartFromBGException() local
1138 expectedException = e; in testFgsStartFromBGException()
1144 assertNotNull(expectedException); in testFgsStartFromBGException()
1145 assertTrue(expectedException.getMessage().contains(expectedMessage)); in testFgsStartFromBGException()