Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/net/http/
DX509TrustManagerExtensions.java106 if (e.getCause() instanceof CertificateException) { in checkServerTrusted()
107 throw (CertificateException) e.getCause(); in checkServerTrusted()
109 if (e.getCause() instanceof RuntimeException) { in checkServerTrusted()
110 throw (RuntimeException) e.getCause(); in checkServerTrusted()
112 throw new CertificateException("checkServerTrusted failed", e.getCause()); in checkServerTrusted()
144 if (e.getCause() instanceof RuntimeException) { in isSameTrustConfiguration()
145 throw (RuntimeException) e.getCause(); in isSameTrustConfiguration()
147 throw new RuntimeException("isSameTrustConfiguration failed", e.getCause()); in isSameTrustConfiguration()
/frameworks/base/core/java/android/os/
DParcelableException.java44 if (clazz.isAssignableFrom(getCause().getClass())) { in maybeRethrow()
45 throw (T) getCause(); in maybeRethrow()
76 writeToParcel(dest, getCause()); in writeToParcel()
/frameworks/opt/net/voip/src/java/android/net/sip/
DSipException.java33 && (cause.getCause() != null)) in SipException()
34 ? cause.getCause() in SipException()
/frameworks/base/core/java/android/util/
DExceptionUtils.java49 while ((t = t.getCause()) != null) { in getCompleteMessage()
86 while (t.getCause() != null) t = t.getCause(); in getRootCause()
DReflectiveProperty.java122 throw new RuntimeException(e.getCause()); in set()
143 throw new RuntimeException(e.getCause()); in get()
DLog.java361 t = t.getCause(); in getStackTraceString()
456 t = t.getCause(); in printlns()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerException.java50 throw new PackageManagerException(e.error, e.getMessage(), e.getCause()); in from()
56 e.getMessage(), e.getCause()); in from()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DAgentExceptionTest.java46 assertThat(exception.getCause()).isEqualTo(cause); in testTransitory_withCause()
63 assertThat(exception.getCause()).isEqualTo(cause); in testPermanent_withCause()
DTaskExceptionTest.java51 assertThat(exception.getCause()).isEqualTo(cause); in testStateCompromised_whenCauseInstanceOfTaskException()
62 assertThat(exception.getCause()).isEqualTo(cause); in testStateCompromised_whenCauseNotInstanceOfTaskException()
99 assertThat(exception.getCause()).isEqualTo(cause); in testCausedBy_whenCauseNotInstanceOfTaskException()
DBackupExceptionTest.java38 assertThat(exception.getCause()).isEqualTo(cause); in testConstructor_passesCause()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/
DDrawerLayoutUtil.java30 import static com.android.layoutlib.bridge.util.ReflectionUtils.getCause;
63 getCause(e), null, null); in openDrawer()
DFragmentTabHostUtil.java26 import static com.android.layoutlib.bridge.util.ReflectionUtils.getCause;
72 Throwable cause = getCause(e); in setup()
DRecyclerViewUtil.java32 import static com.android.layoutlib.bridge.util.ReflectionUtils.getCause;
74 Throwable cause = getCause(e); in setAdapter()
/frameworks/base/core/tests/coretests/src/com/android/internal/infra/
DAndroidFutureTest.java84 assertThat(executionException.getCause()).isSameAs(origException); in testCompleteExceptionally()
125 Throwable cause = executionException.getCause(); in testWriteToParcel_Exception()
155 assertThat(executionException.getCause()).isInstanceOf(UnsupportedOperationException.class); in testWriteToParcel_Incomplete_Exception()
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesDrawableTest.java70 exception.getCause().getCause().getMessage() in testLoadColorAsDrawableFailureThrowsOriginalException()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/
DEncryptedFullBackupDataProcessor.java116 if (exception.get().getCause() instanceof SizeQuotaExceededException) { in pushData()
154 if (exception.get().getCause() instanceof SizeQuotaExceededException) { in finish()
194 if (!(exception.getCause() instanceof SizeQuotaExceededException) in reportNetworkFailureIfNecessary()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteDatabaseCorruptException.java40 th = th.getCause(); in isCorruptException()
/frameworks/base/tests/testables/src/android/testing/
DTestableLooper.java295 if (re.getCause() instanceof LooperException) { in invokeExplosively()
296 throw ((LooperException) re.getCause()).getSource(); in invokeExplosively()
298 throw re.getCause(); in invokeExplosively()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DReflectionUtils.java107 public static Throwable getCause(@NonNull Throwable throwable) { in getCause() method in ReflectionUtils
108 Throwable cause = throwable.getCause(); in getCause()
/frameworks/base/apct-tests/perftests/core/src/android/os/
DParcelPerfTest.java231 assertTrue(e.getCause() instanceof RemoteException); in timeReadException()
233 assertNull(e.getCause()); in timeReadException()
/frameworks/base/core/java/android/view/inspector/
DStaticInspectionCompanionProvider.java51 Throwable cause = e.getCause(); in provide()
/frameworks/base/tests/utils/testutils/java/android/app/test/
DMockAnswerUtil.java53 throw e.getCause(); in answer()
/frameworks/base/core/java/android/ddm/
DDdmHandleViewDebug.java389 Log.e(TAG, "Exception while invoking method: " + e.getCause().getMessage()); in invokeViewMethod()
390 String msg = e.getCause().getMessage(); in invokeViewMethod()
392 msg = e.getCause().toString(); in invokeViewMethod()
/frameworks/base/core/java/android/os/strictmode/
DViolation.java35 final Throwable cause = getCause(); in hashCode()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/
DBridge.java391 while (t2.getCause() != null) { in createSession()
392 t2 = t2.getCause(); in createSession()
419 while (t2.getCause() != null) { in renderDrawable()
420 t2 = t.getCause(); in renderDrawable()

123