Home
last modified time | relevance | path

Searched refs:mThrowable (Results 1 – 5 of 5) sorted by relevance

/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/
DDeviceSideDynamicLoggerTest.java36 private final Throwable mThrowable = new Throwable("D'OH!"); field in DeviceSideDynamicLoggerTest
55 mLogger.log(WTF, mTag, mThrowable, "%s %s", "message", "in a bottle"); in testWtf_withThrowable()
57 verify(() -> Log.wtf(mTag, "message in a bottle", mThrowable)); in testWtf_withThrowable()
69 mLogger.log(ERROR, mTag, mThrowable, "%s %s", "message", "in a bottle"); in testE_withThrowable()
71 verify(() -> Log.e(mTag, "message in a bottle", mThrowable)); in testE_withThrowable()
83 mLogger.log(WARNING, mTag, mThrowable, "%s %s", "message", "in a bottle"); in testW_withThrowable()
85 verify(() -> Log.w(mTag, "message in a bottle", mThrowable)); in testW_withThrowable()
97 mLogger.log(INFO, mTag, mThrowable, "%s %s", "message", "in a bottle"); in testI_withThrowable()
99 verify(() -> Log.i(mTag, "message in a bottle", mThrowable)); in testI_withThrowable()
111 mLogger.log(DEBUG, mTag, mThrowable, "%s %s", "message", "in a bottle"); in testD_withThrowable()
[all …]
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/common/logging/
DErrorLogUtilCall.java42 public final Class<? extends Throwable> mThrowable; field in ErrorLogUtilCall
55 mThrowable = throwable; in ErrorLogUtilCall()
109 ? defaultParams.mThrowable in createFrom()
133 if (Objects.equals(call.mThrowable, Undefined.class)) { in validateAllParamsDefined()
152 return Objects.equals(mThrowable, other.mThrowable) in equals()
159 return Objects.hash(mThrowable, mErrorCode, mPpapiName); in hashCode()
177 || Objects.equals(mThrowable, other.mThrowable)) in isEquivalentInvocation()
189 + mThrowable.getSimpleName() in logInvocationToString()
206 return !Objects.equals(mThrowable, None.class); in isCallWithException()
210 return Objects.equals(mThrowable, Any.class); in isCallWithAnyException()
/packages/modules/AdServices/shared/tests/host-side/java/com/android/adservices/shared/testing/
DHostSideDynamicLoggerTest.java36 private final Throwable mThrowable = new Throwable("D'OH!"); field in HostSideDynamicLoggerTest
56 mLogger.log(LogLevel.WTF, mTag, mThrowable, "%s %s", "message", "in a bottle"); in testWtf_withThrowable()
77 getExpectedMessage(LogLevel.WTF, mThrowable.toString()) + "\n")); in testWtf_withThrowable()
89 mLogger.log(LogLevel.ERROR, mTag, mThrowable, "%s %s", "message", "in a bottle"); in testE_withThrowable()
91 assertLogEntryWithMultiLineException(LogLevel.ERROR, mThrowable, "message in a bottle"); in testE_withThrowable()
103 mLogger.log(LogLevel.WARNING, mTag, mThrowable, "%s %s", "message", "in a bottle"); in testW_withThrowable()
105 assertLogEntryWithMultiLineException(LogLevel.WARNING, mThrowable, "message in a bottle"); in testW_withThrowable()
117 mLogger.log(LogLevel.INFO, mTag, mThrowable, "%s %s", "message", "in a bottle"); in testI_withThrowable()
119 assertLogEntryWithFlattenedException(LogLevel.INFO, mThrowable, "message in a bottle"); in testI_withThrowable()
131 mLogger.log(LogLevel.DEBUG, mTag, mThrowable, "%s %s", "message", "in a bottle"); in testD_withThrowable()
[all …]
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/meta_testing/
DSimpleStatement.java30 private Throwable mThrowable; field in SimpleStatement
36 if (mThrowable != null) { in evaluate()
37 mLog.v("Throwing %s", mThrowable); in evaluate()
38 throw mThrowable; in evaluate()
43 mThrowable = t; in failWith()
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/
DJUnitHelper.java50 private Throwable mThrowable; field in JUnitHelper.SimpleStatement
56 if (mThrowable != null) { in evaluate()
57 Log.d(TAG, "Throwing " + mThrowable); in evaluate()
58 throw mThrowable; in evaluate()
63 mThrowable = t; in failWith()