Home
last modified time | relevance | path

Searched refs:throwable (Results 1 – 25 of 52) sorted by relevance

123

/frameworks/base/packages/StatementService/src/com/android/statementservice/utils/
DResult.kt24 data class Failure<T>(val message: String? = null, val throwable: Throwable? = null) : in successValueOrNull() constant in com.android.statementservice.utils.Result.Failure
27 constructor(message: String) : this(message = message, throwable = null) in successValueOrNull()
28 constructor(throwable: Throwable) : this(message = null, throwable = throwable) in successValueOrNull()
/frameworks/base/core/java/android/view/
DInflateException.java28 public InflateException(String detailMessage, Throwable throwable) { in InflateException() argument
29 super(detailMessage, throwable); in InflateException()
36 public InflateException(Throwable throwable) { in InflateException() argument
37 super(throwable); in InflateException()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DUiObjectNotFoundException.java41 public UiObjectNotFoundException(String detailMessage, Throwable throwable) { in UiObjectNotFoundException() argument
42 super(detailMessage, throwable); in UiObjectNotFoundException()
48 public UiObjectNotFoundException(Throwable throwable) { in UiObjectNotFoundException() argument
49 super(throwable); in UiObjectNotFoundException()
/frameworks/base/services/core/java/com/android/server/utils/
DSlogf.java152 public static void v(String tag, Throwable throwable, String format, @Nullable Object... args) { in v() argument
153 v(tag, getMessage(format, args), throwable); in v()
162 public static void d(String tag, Throwable throwable, String format, @Nullable Object... args) { in d() argument
163 d(tag, getMessage(format, args), throwable); in d()
172 public static void i(String tag, Throwable throwable, String format, @Nullable Object... args) { in i() argument
173 i(tag, getMessage(format, args), throwable); in i()
182 public static void w(String tag, Throwable throwable, String format, @Nullable Object... args) { in w() argument
183 w(tag, getMessage(format, args), throwable); in w()
192 public static void e(String tag, Throwable throwable, String format, @Nullable Object... args) { in e() argument
193 e(tag, getMessage(format, args), throwable); in e()
[all …]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DUncaughtExceptionPreHandlerManager.kt53 fun handleUncaughtException(thread: Thread?, throwable: Throwable?) { in handleUncaughtException()
56 handler.uncaughtException(thread, throwable) in handleUncaughtException()
67 override fun uncaughtException(thread: Thread?, throwable: Throwable?) { in uncaughtException()
68 handleUncaughtException(thread, throwable) in uncaughtException()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DFooterPreferenceTest.java102 } catch (Throwable throwable) { in onBindViewHolder_whenTitleIsNull_shouldNotRaiseNpe()
103 actualThrowable = throwable; in onBindViewHolder_whenTitleIsNull_shouldNotRaiseNpe()
118 } catch (Throwable throwable) { in onBindViewHolder_whenLearnMoreIsNull_shouldNotRaiseNpe()
119 actualThrowable = throwable; in onBindViewHolder_whenLearnMoreIsNull_shouldNotRaiseNpe()
134 } catch (Throwable throwable) { in onBindViewHolder_whenIconFrameIsNull_shouldNotRaiseNpe()
135 actualThrowable = throwable; in onBindViewHolder_whenIconFrameIsNull_shouldNotRaiseNpe()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/
DPluginManagerImpl.java276 public void uncaughtException(Thread thread, Throwable throwable) { in uncaughtException() argument
281 boolean disabledAny = checkStack(throwable); in uncaughtException()
293 throwable = new CrashWhilePluginActiveException(throwable); in uncaughtException()
297 private boolean checkStack(Throwable throwable) { in checkStack() argument
298 if (throwable == null) return false; in checkStack()
301 for (StackTraceElement element : throwable.getStackTrace()) { in checkStack()
307 return disabledAny | checkStack(throwable.getCause()); in checkStack()
312 public CrashWhilePluginActiveException(Throwable throwable) { in CrashWhilePluginActiveException() argument
313 super(throwable); in CrashWhilePluginActiveException()
/frameworks/base/core/java/com/android/internal/infra/
DAndroidFuture.java560 private static void writeThrowable(@NonNull Parcel parcel, @Nullable Throwable throwable) { in writeThrowable() argument
561 boolean hasThrowable = throwable != null; in writeThrowable()
567 boolean isFrameworkParcelable = throwable instanceof Parcelable in writeThrowable()
568 && throwable.getClass().getClassLoader() == Parcelable.class.getClassLoader(); in writeThrowable()
571 parcel.writeParcelable((Parcelable) throwable, in writeThrowable()
576 parcel.writeString(throwable.getClass().getName()); in writeThrowable()
577 parcel.writeString(throwable.getMessage()); in writeThrowable()
578 StackTraceElement[] stackTrace = throwable.getStackTrace(); in writeThrowable()
588 writeThrowable(parcel, throwable.getCause()); in writeThrowable()
610 Throwable throwable; in readThrowable() local
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/
DEuiccCardException.java30 public EuiccCardException(String message, Throwable throwable) { in EuiccCardException() argument
31 super(message, throwable); in EuiccCardException()
/frameworks/base/core/tests/coretests/src/android/animation/
DFutureWaiter.java45 public boolean setException(Throwable throwable) { in setException() argument
46 return super.setException(throwable); in setException()
/frameworks/base/services/core/java/com/android/server/
DAppFuseMountException.java30 public AppFuseMountException(String detailMessage, Throwable throwable) { in AppFuseMountException() argument
31 super(detailMessage, throwable); in AppFuseMountException()
/frameworks/base/core/java/com/android/internal/pm/parsing/
DPackageParserException.java26 public PackageParserException(int error, String detailMessage, Throwable throwable) { in PackageParserException() argument
27 super(detailMessage, throwable); in PackageParserException()
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/asn1/
DInvalidAsn1DataException.java31 public InvalidAsn1DataException(int tag, String message, Throwable throwable) { in InvalidAsn1DataException() argument
32 super(message, throwable); in InvalidAsn1DataException()
/frameworks/base/core/java/android/util/
DBackupUtils.java43 public BadVersionException(String message, Throwable throwable) { in BadVersionException() argument
44 super(message, throwable); in BadVersionException()
/frameworks/base/services/core/java/com/android/server/pm/
DParallelPackageParser.java67 Throwable throwable; // Set if an error occurs during parsing field in ParallelPackageParser.ParseResult
74 ", throwable=" + throwable + in toString()
110 pr.throwable = e; in submit()
DPackageManagerException.java145 public PackageManagerException(int error, String detailMessage, Throwable throwable) { in PackageManagerException() argument
146 super(detailMessage, throwable); in PackageManagerException()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenMediaRecorder.java460 Throwable throwable = null; in close() local
468 if (throwable == null) { in close()
469 throwable = e; in close()
476 if (throwable != null) { in close()
477 if (throwable instanceof IOException) { in close()
478 throw (IOException) throwable; in close()
481 if (throwable instanceof RuntimeException) { in close()
482 throw (RuntimeException) throwable; in close()
485 throw (Error) throwable; in close()
/frameworks/base/core/java/android/app/smartspace/
DSmartspaceSession.java232 } catch (Throwable throwable) { in finalize()
233 throwable.printStackTrace(); in finalize()
243 } catch (Throwable throwable) { in close()
244 throwable.printStackTrace(); in close()
/frameworks/base/test-base/src/android/test/
DInstrumentationTestCase.java145 } catch (Throwable throwable) { in runTestOnUiThread()
146 exceptions[0] = throwable; in runTestOnUiThread()
196 } catch (Throwable throwable) { in runTest()
197 exceptions[0] = throwable; in runTest()
/frameworks/base/core/java/android/app/search/
DSearchSession.java263 } catch (Throwable throwable) { in finalize()
264 throwable.printStackTrace(); in finalize()
278 } catch (Throwable throwable) { in close()
279 throwable.printStackTrace(); in close()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUdfpsLogger.kt34 fun e(tag: String, @CompileTimeConstant msg: String, throwable: Throwable?) { in e()
35 logBuffer.log(tag, ERROR, {}, { msg }, exception = throwable) in e()
/frameworks/base/core/java/android/service/storage/
DExternalStorageService.java258 private void sendResult(String sessionId, Throwable throwable, RemoteCallback callback) { in sendResult() argument
261 if (throwable != null) { in sendResult()
262 bundle.putParcelable(EXTRA_ERROR, new ParcelableException(throwable)); in sendResult()
/frameworks/layoutlib/common/src/com/android/layoutlib/common/util/
DReflectionUtils.java152 public static Throwable getCause(@NonNull Throwable throwable) { in getCause() argument
153 Throwable cause = throwable.getCause(); in getCause()
154 return cause == null ? throwable : cause; in getCause()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSystemUIService.java87 (thread, throwable) -> mLogBufferEulogizer.record(throwable)); in onCreate()
/frameworks/base/core/tests/utillib/src/android/test/
DBandwidthTestCase.java81 } catch (Throwable throwable) { in runTest()
82 exceptions[0] = throwable; in runTest()

123