Home
last modified time | relevance | path

Searched refs:getCause (Results 1 – 25 of 137) sorted by relevance

123456

/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DQosCallbackExceptionTest.java49 assertEquals(testcause, exception.getCause()); in testQosCallbackException()
103 assertTrue(e.getCause() instanceof SocketNotConnectedException); in validateQosCallbackException()
105 assertTrue(e.getCause() instanceof SocketRemoteAddressChangedException); in validateQosCallbackException()
107 assertTrue(e.getCause() instanceof SocketLocalAddressChangedException); in validateQosCallbackException()
109 assertTrue(e.getCause() instanceof SocketNotBoundException); in validateQosCallbackException()
111 assertTrue(e.getCause() instanceof NetworkReleasedException); in validateQosCallbackException()
115 assertEquals(cause, e.getCause()); in validateQosCallbackException()
131 throw new QosCallbackException(exception.getCause()); in triggerException()
/packages/services/Car/tests/BugReportApp/libs/
Dgoogle-api-client-android-1.30.2.jarMETA-INF/MANIFEST.MF META-INF/ com/ com/google/ com/ ...
/packages/services/Telephony/src/com/android/services/telephony/rcs/
DUceControllerManager.java176 Throwable cause = e.getCause(); in requestCapabilities()
201 Throwable cause = e.getCause(); in requestNetworkAvailability()
224 Throwable cause = e.getCause(); in getUcePublishState()
246 Throwable cause = e.getCause(); in addUceRegistrationOverride()
268 Throwable cause = e.getCause(); in removeUceRegistrationOverride()
289 Throwable cause = e.getCause(); in clearUceRegistrationOverride()
310 Throwable cause = e.getCause(); in getLatestRcsContactUceCapability()
332 Throwable cause = e.getCause(); in getLastPidfXml()
358 Throwable cause = e.getCause(); in removeUceRequestDisallowedStatus()
385 Throwable cause = e.getCause(); in setCapabilitiesRequestTimeout()
[all …]
/packages/modules/IPsec/src/java/android/net/ipsec/ike/exceptions/
DIkeIOException.java58 public IOException getCause() { in getCause() method in IkeIOException
59 return (IOException) super.getCause(); in getCause()
75 if (getCause() instanceof UnknownHostException) { in getMetricsErrorCode()
77 } else if (getCause() instanceof IkeTimeoutException) { in getMetricsErrorCode()
/packages/services/Car/tests/carservice_unit_test/src/android/car/util/concurrent/
DAndroidFutureTest.java72 assertThat(thrown.getCause()).isSameInstanceAs(origException); in testCompleteExceptionally_uncompleted()
170 exception = exception.getCause(); in testOrTimeout_uncompleted_timesOut()
205 assertThat(thrown.getCause()).isInstanceOf(UnsupportedOperationException.class); in testWriteToParcel_completedExceptionally()
231 assertThat(thrown.getCause()).isSameInstanceAs(exception); in testWriteToParcel_uncompleted_Exception()
251 assertThat(thrown.getCause()).isSameInstanceAs(exception); in testSupply_futureThrowingException()
276 assertThat(thrown.getCause()).isSameInstanceAs(exception); in testThenApply_functionThrowingException()
304 assertThat(thrown.getCause()).isSameInstanceAs(exception); in testThenCompose_functionThrowingException()
335 assertThat(thrown.getCause()).isSameInstanceAs(exception); in testThenCombine_functionThrowingException()
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/
DTestAdSelectionManagerTest.java182 assertThat(exception.getCause()).isInstanceOf(IllegalArgumentException.class); in assertInvalidAdSelectionIdFailsImpressionReporting()
202 assertThat(exception.getCause()).isInstanceOf(SecurityException.class); in testAddOverrideFailsWithDebugModeDisabled()
229 assertThat(exception.getCause()).isInstanceOf(SecurityException.class); in testRemoveOverrideFailsWithDebugModeDisabled()
276 assertThat(exception.getCause()).isInstanceOf(SecurityException.class); in assertResetAllOverridesFailsWithDebugModeDisabled()
321 assertThat(exception.getCause()).isInstanceOf(IllegalArgumentException.class); in assertNoBuyersConfigFailsAdSelection()
350 assertThat(exception.getCause()).isInstanceOf(SecurityException.class); in testAddFromOutcomesOverrideFailsWithDebugModeDisabled()
370 assertThat(exception.getCause()).isInstanceOf(SecurityException.class); in testRemoveFromOutcomesOverrideFailsWithDebugModeDisabled()
386 assertThat(exception.getCause()).isInstanceOf(SecurityException.class); in testResetAllFromOutcomesOverridesFailsWithDebugModeDisabled()
DCustomAudienceApiCtsTest.java375 assertTrue(exception.getCause() instanceof IllegalArgumentException); in testJoinCustomAudience_illegalExpirationTime_fail()
445 assertThat(exception.getCause()).isInstanceOf(IllegalStateException.class); in testFetchAndJoinCustomAudience_validFetchUri_validRequest()
506 assertThat(exception.getCause()).isInstanceOf(IllegalStateException.class); in testFetchAndJoinCustomAudience_validName_validRequest()
568 assertThat(exception.getCause()).isInstanceOf(IllegalStateException.class); in testFetchAndJoinCustomAudience_validActivationTime_validRequest()
627 assertThat(exception.getCause()).isInstanceOf(IllegalStateException.class); in testFetchAndJoinCustomAudience_validExpirationTime_validRequest()
686 assertThat(exception.getCause()).isInstanceOf(IllegalStateException.class); in testFetchAndJoinCustomAudience_validUserBiddingSignals_validRequest()
772 assertThat(exception.getCause()).isInstanceOf(SecurityException.class); in testAddOverrideFailsWithDebugModeDisabled()
789 assertThat(exception.getCause()).isInstanceOf(SecurityException.class); in testRemoveOverrideFailsWithDebugModeDisabled()
800 assertThat(exception.getCause()).isInstanceOf(SecurityException.class); in testResetAllOverridesFailsWithDebugModeDisabled()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/httpclient/
DAdServicesHttpsClientTest.java217 assertThat(exception.getCause()).isInstanceOf(AdServicesNetworkException.class); in testGetAndReadNothingFailedResponse()
228 assertThat(exception.getCause()).isInstanceOf(IOException.class); in testGetAndReadNothingDomainDoesNotExist()
240 assertThat(wrapperExecutionException.getCause()) in testGetAndReadNothingThrowsExceptionIfUsingPlainTextHttp()
292 assertThat(exception.getCause()).isInstanceOf(AdServicesNetworkException.class); in testFetchPayloadFailedResponse()
303 assertThat(exception.getCause()).isInstanceOf(IOException.class); in testFetchPayloadDomainDoesNotExist()
325 assertThat(exception.getCause()).isInstanceOf(IOException.class); in testThrowsIOExceptionWhenConnectionTimesOut()
335 assertThat(wrapperExecutionException.getCause()) in testFetchPayloadThrowsExceptionIfUsingPlainTextHttp()
356 assertThat(exception.getCause()).isInstanceOf(IOException.class); in testInputStreamToStringThrowsExceptionWhenExceedingMaxSize()
777 assertThat(exception.getCause()).isInstanceOf(AdServicesNetworkException.class); in testPostJsonFailedResponse()
788 assertThat(exception.getCause()).isInstanceOf(IOException.class); in testPostJsonDomainDoesNotExist()
[all …]
/packages/modules/AdServices/sdksandbox/tests/testutils/testscenario/testrunner/src/android/app/sdksandbox/testutils/testscenario/
DSdkSandboxTestScenarioRunner.java164 if (error.getCause() instanceof AssertionError) { in invokeMethodOnTestInstance()
166 } else if (error.getCause() instanceof InvocationTargetException) { in invokeMethodOnTestInstance()
168 } else if (error.getCause() instanceof NoSuchMethodException) { in invokeMethodOnTestInstance()
180 error.getCause().printStackTrace(errorWriter); in getStackTrace()
/packages/services/Car/car-lib/src/com/android/car/internal/util/
DParcelableException.java54 if (clazz.isAssignableFrom(getCause().getClass())) { in maybeRethrow()
55 throw (T) getCause(); in maybeRethrow()
87 writeToParcel(dest, getCause()); in writeToParcel()
DExceptionUtils.java53 while ((t = t.getCause()) != null) { in getCompleteMessage()
94 while (t.getCause() != null) t = t.getCause(); in getRootCause()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/util/
DDebugUtils.java58 if (e.getCause() != null && e.getCause() instanceof IsolatedServiceException) { in getIsolatedServiceExceptionCode()
59 return ((IsolatedServiceException) e.getCause()).getErrorCode(); in getIsolatedServiceExceptionCode()
/packages/modules/RemoteKeyProvisioning/app/tests/hosttest/src/com/android/rkpdapp/hosttest/
DRkpdStatsTests.java73 assertThat(attempt.getCause()).isEqualTo(Cause.OUT_OF_KEYS); in testDataBudgetEmptyGenerateKey()
106 assertThat(attempt.getCause()).isEqualTo(Cause.OUT_OF_KEYS); in testRetryableRkpError()
140 assertThat(attempt.getCause()).isEqualTo(Cause.OUT_OF_KEYS); in testRetryNeverWhenDeviceNotRegistered()
176 assertThat(attempt.getCause()).isEqualTo(Cause.SCHEDULED); in testKeyCreationUsesRemotelyProvisionedCertificate()
222 assertThat(attempt.getCause()).isEqualTo(Cause.SCHEDULED); in testPeriodicProvisionerNoop()
259 assertThat(attempt.getCause()).isEqualTo(Cause.OUT_OF_KEYS); in testPeriodicProvisionerProvisioningDisabled()
294 assertThat(attempt.getCause()).isEqualTo(Cause.OUT_OF_KEYS); in testKeyCreationWithEmptyKeyPool()
336 assertThat(attempt.getCause()).isEqualTo(Cause.OUT_OF_KEYS); in testKeyCreationWorksWhenAllKeysAssigned()
407 assertThat(attempt.getCause()).isEqualTo(Cause.KEY_CONSUMED); in verifyMetricsForKeyAssignedAfterFreshProvisioning()
/packages/apps/Car/VoiceControl/src/com/android/car/voicecontrol/
DRecognitionService.java98 Log.e(TAG, "Error initiating speech", e.getCause()); in sendBeginningOfSpeech()
107 Log.e(TAG, "Error cancelling speech", e.getCause()); in sendEndOfSpeech()
130 Log.e(TAG, "Error sending results", e.getCause()); in sendResults()
/packages/modules/RemoteKeyProvisioning/app/tests/e2e/src/com/android/rkpdapp/e2etest/
DKeystoreIntegrationTest.java253 assertThat(e.getCause()).isInstanceOf(KeyStoreException.class); in testKeyCreationFailsWhenRkpFails()
254 assertThat(((KeyStoreException) e.getCause()).getErrorCode()) in testKeyCreationFailsWhenRkpFails()
290 KeyStoreException keyStoreException = (KeyStoreException) e.getCause(); in testDataBudgetEmptyGenerateKey()
306 KeyStoreException keyStoreException = (KeyStoreException) e.getCause(); in testRetryableRkpError()
324 KeyStoreException keyStoreException = (KeyStoreException) e.getCause(); in testPeriodicProvisionerProvisioningDisabled()
342 KeyStoreException keyStoreException = (KeyStoreException) e.getCause(); in testRetryNeverWhenDeviceNotRegistered()
370 KeyStoreException keyStoreException = (KeyStoreException) e.getCause(); in testCancelDueToServiceTimeout()
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DIkeExceptionTest.java55 assertEquals(cause, exception.getCause()); in testIkeInternalException()
56 assertEquals(cause, exceptionWithMsg.getCause()); in testIkeInternalException()
80 assertEquals(cause, exception.getCause()); in testIkeIOException()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/exception/
DFilterException.java39 return this.getCause().getMessage(); in getMessage()
44 Throwable cause = t instanceof FilterException ? t.getCause() : t; in getResultCode()
/packages/modules/DeviceLock/framework/java/android/devicelock/
DParcelableException.java63 writeToParcel(dest, getCause()); in writeToParcel()
85 return (Exception) getCause(); in getException()
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/debuggablects/
DAdSelectionTest.java269 assertThat(selectAdsException.getCause()).isInstanceOf(IllegalStateException.class); in testAdSelection_withShortlyExpiringCustomAudience_selectAdsThrowsException()
303 assertThat(selectAdsException.getCause()).isInstanceOf(IllegalArgumentException.class); in testAdSelectionOutcomes_withNoAdSelectionId_throwsException()
410 assertThat(selectAdsException.getCause()).isInstanceOf(TimeoutException.class); in testAdSelection_withHighLatencyBackend_doesNotWinAuction()
439 selectAdsException.getCause() instanceof TimeoutException in testAdSelection_withInvalidScoringUrl_doesNotWinAuction()
440 || selectAdsException.getCause() in testAdSelection_withInvalidScoringUrl_doesNotWinAuction()
DFledgeApiCallFromBackgroundTest.java68 Assert.assertTrue(e.getCause() instanceof IllegalStateException); in testRunAdSelectionFromBackground()
70 ILLEGAL_STATE_BACKGROUND_CALLER_ERROR_MESSAGE, e.getCause().getMessage()); in testRunAdSelectionFromBackground()
/packages/services/Car/tests/CarLibUnitTest/src/android/car/content/pm/
DCarPackageManagerUnitTest.java93 assertThat(e.getCause()).isSameInstanceAs(cause); in testGetTargetCarVersion_self_remoteException()
112 assertThat(e.getCause()).isSameInstanceAs(cause); in testGetTargetCarVersion_runtimeException()
123 assertThat(e.getCause()).isSameInstanceAs(cause); in testGetTargetCarVersion_serviceException_unexpectedErrorCode()
/packages/services/Iwlan/src/com/google/android/iwlan/
DIwlanError.java134 if (exception.getCause() instanceof IOException) { in IwlanErrorIkeInternalException()
180 sb.append(mException.getCause()); in errorDetailsString()
194 .append(mException.getCause()) in errorDetailsString()
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/rootcts/
DScheduleCustomAudienceUpdateTest.java86 assertEquals("SecurityException", e.getCause().getClass().getSimpleName()); in testScheduleCustomAudienceUpdate_badUpdateUri_failure()
100 assertEquals("IllegalArgumentException", e.getCause().getClass().getSimpleName()); in testScheduleCustomAudienceUpdate_DelayExceedsLimit_failure()
190 assertEquals("IllegalStateException", e.getCause().getClass().getSimpleName()); in testScheduleCustomAudienceUpdate_Disabled_failure()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/
DSyncAppSearchBase.java65 e.getCause()); in executeAppSearchResultOperation()
101 e.getCause()); in executeAppSearchBatchResultOperation()
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/permissions/
DGrantTimeIntegrationTest.java198 final Throwable cause = e.getCause(); in grantHealthPermission()
211 final Throwable cause = e.getCause(); in getHealthDataHistoricalAccessStartDate()
226 final Throwable cause = e.getCause(); in revokePermissionWithDelay()

123456