/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/ |
D | DynamicLogger.java | 87 Throwable throwable, in log() argument 90 mRealLogger.log(level, tag, throwable, msgFmt, msgArgs); in log() 147 Throwable throwable, in call() argument 152 sFallbackLogger.log(level, tag, throwable, "%s", args); in call() 235 Throwable throwable, in log() argument 241 call(level, tag, throwable, mExcWtf, tag, msg, throwable); in log() 244 call(level, tag, throwable, mExcE, tag, msg, throwable); in log() 247 call(level, tag, throwable, mExcW, tag, msg, throwable); in log() 250 call(level, tag, throwable, mExcI, tag, msg, throwable); in log() 253 call(level, tag, throwable, mExcD, tag, msg, throwable); in log() [all …]
|
D | LogEntry.java | 32 public final @Nullable Throwable throwable; field in LogEntry 38 public LogEntry(LogLevel level, String tag, String message, @Nullable Throwable throwable) { in LogEntry() argument 42 this.throwable = throwable; in LogEntry() 47 return Objects.hash(level, message, tag, throwable); in hashCode() 59 && Objects.equals(throwable, other.throwable); in equals() 69 + throwable in toString() 118 check("throwable").that(mActual.throwable).isSameInstanceAs(expected); in hasThrowable()
|
/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
D | Logger.java | 73 public void v(String message, Throwable throwable) { in v() argument 75 Log.v(TAG, mPrefix.concat(message), throwable); in v() 98 public void d(String message, Throwable throwable) { in d() argument 100 Log.d(TAG, mPrefix.concat(message), throwable); in d() 123 public void i(String message, Throwable throwable) { in i() argument 125 Log.i(TAG, mPrefix.concat(message), throwable); in i() 145 public void w(String message, Throwable throwable) { in w() argument 146 Log.w(TAG, mPrefix.concat(message), throwable); in w() 165 public void e(String message, Throwable throwable) { in e() argument 166 Log.e(TAG, mPrefix.concat(message), throwable); in e() [all …]
|
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/fledge/ |
D | FledgeAppNotAllowedMemoryTest.java | 66 private void tryToRunAdSelectionAndReporting(Class<? extends Throwable> throwable) in tryToRunAdSelectionAndReporting() argument 73 throwable); in tryToRunAdSelectionAndReporting() 80 throwable); in tryToRunAdSelectionAndReporting() 88 throwable); in tryToRunAdSelectionAndReporting() 91 private void tryToJoinAndLeaveCA(Class<? extends Throwable> throwable) throws Throwable { in tryToJoinAndLeaveCA() argument 97 throwable); in tryToJoinAndLeaveCA() 103 throwable); in tryToJoinAndLeaveCA() 107 ThrowingRunnable runnable, Class<? extends Throwable> throwable) throws Throwable { in assertThrowIfPresent() argument 108 if (throwable == null) { in assertThrowIfPresent() 114 throwable.getCanonicalName(), in assertThrowIfPresent()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/stats/ |
D | AdSelectionExecutionLoggerTest.java | 749 Throwable throwable = in testAdSelectionExecutionLogger_redundantStartOfGetBuyersCustomAudience() local 753 assertThat(throwable.getMessage()).contains(REPEATED_START_BIDDING_STAGE); in testAdSelectionExecutionLogger_redundantStartOfGetBuyersCustomAudience() 766 Throwable throwable = in testAdSelectionExecutionLogger_redundantEndOfGetBuyersCustomAudience() local 772 assertThat(throwable.getMessage()).contains(REPEATED_END_GET_BUYERS_CUSTOM_AUDIENCE); in testAdSelectionExecutionLogger_redundantEndOfGetBuyersCustomAudience() 779 Throwable throwable = in testAdSelectionExecutionLogger_missingStartBiddingStage() local 785 assertThat(throwable.getMessage()).contains(MISSING_START_BIDDING_STAGE); in testAdSelectionExecutionLogger_missingStartBiddingStage() 794 Throwable throwable = in testAdSelectionExecutionLogger_missingGetBuyersCustomAudience() local 798 assertThat(throwable.getMessage()).contains(MISSING_GET_BUYERS_CUSTOM_AUDIENCE); in testAdSelectionExecutionLogger_missingGetBuyersCustomAudience() 814 Throwable throwable = in testAdSelectionExecutionLogger_redundantStartRunAdBidding() local 818 assertThat(throwable.getMessage()).contains(REPEATED_START_RUN_AD_BIDDING); in testAdSelectionExecutionLogger_redundantStartRunAdBidding() [all …]
|
D | RunAdBiddingPerCAExecutionLoggerTest.java | 534 Throwable throwable = in testRunAdBiddingPerCAExecutionLogger_repeatedStartRunAdBiddingPerCA() local 540 assertThat(throwable.getMessage()).contains(REPEATED_START_RUN_AD_BIDDING_PER_CA); in testRunAdBiddingPerCAExecutionLogger_repeatedStartRunAdBiddingPerCA() 550 Throwable throwable = in testRunAdBiddingPerCAExecutionLogger_missingStartRunAdBiddingPerCA() local 554 assertThat(throwable.getMessage()).contains(MISSING_START_RUN_AD_BIDDING_PER_CA); in testRunAdBiddingPerCAExecutionLogger_missingStartRunAdBiddingPerCA() 569 Throwable throwable = in testRunAdBiddingPerCAExecutionLogger_repeatedStartGetBuyerDecisionLogic() local 573 assertThat(throwable.getMessage()).contains(REPEATED_START_GET_BUYER_DECISION_LOGIC); in testRunAdBiddingPerCAExecutionLogger_repeatedStartGetBuyerDecisionLogic() 584 Throwable throwable = in testRunAdBiddingPerCAExecutionLogger_missingStartGetBuyerDecisionLogic() local 590 assertThat(throwable.getMessage()).contains(MISSING_START_GET_BUYER_DECISION_LOGIC); in testRunAdBiddingPerCAExecutionLogger_missingStartGetBuyerDecisionLogic() 607 Throwable throwable = in testRunAdBiddingPerCAExecutionLogger_repeatedEndGetBuyerDecisionLogic() local 613 assertThat(throwable.getMessage()).contains(REPEATED_END_GET_BUYER_DECISION_LOGIC); in testRunAdBiddingPerCAExecutionLogger_repeatedEndGetBuyerDecisionLogic() [all …]
|
D | BackgroundFetchExecutionLoggerTest.java | 88 Throwable throwable = in testBackgroundFetchExecutionLogger_missingStartBackgroundFetch() local 94 assertThat(throwable).hasMessageThat().contains(MISSING_START_TIMESTAMP); in testBackgroundFetchExecutionLogger_missingStartBackgroundFetch() 105 Throwable throwable = in testBackgroundFetchExecutionLogger_repeatedEndBackgroundFetch() local 111 assertThat(throwable).hasMessageThat().contains(REPEATED_END_TIMESTAMP); in testBackgroundFetchExecutionLogger_repeatedEndBackgroundFetch()
|
D | UpdateCustomAudienceExecutionLoggerTest.java | 93 Throwable throwable = in testUpdateCustomAudienceExecutionLogger_missingStart() local 99 assertThat(throwable).hasMessageThat().contains(MISSING_START_UPDATE_CUSTOM_AUDIENCE); in testUpdateCustomAudienceExecutionLogger_missingStart() 114 Throwable throwable = in testUpdateCustomAudienceExecutionLogger_RepeatedClose() local 120 assertThat(throwable).hasMessageThat().contains(REPEATED_END_UPDATE_CUSTOM_AUDIENCE); in testUpdateCustomAudienceExecutionLogger_RepeatedClose()
|
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/mockito/ |
D | ExtendedMockitoExpectations.java | 321 public static void verifyErrorLogUtilError(Throwable throwable, int errorCode, int ppapiName) { in verifyErrorLogUtilError() argument 322 verifyErrorLogUtilError(throwable, errorCode, ppapiName, times(1)); in verifyErrorLogUtilError() 338 Throwable throwable, int errorCode, int ppapiName, VerificationMode mode) { in verifyErrorLogUtilError() argument 339 verify(() -> ErrorLogUtil.e(throwable, errorCode, ppapiName), mode); in verifyErrorLogUtilError() 396 public void assertReceived(Expect expect, Throwable throwable, int errorCode, int ppapiName) in assertReceived() argument 400 .that(result.throwable) in assertReceived() 401 .isSameInstanceAs(throwable); in assertReceived() 414 expect.withMessage("throwable on %s", result).that(result.throwable).isNull(); in assertReceived() 425 @Nullable public final Throwable throwable; field in ExtendedMockitoExpectations.ErrorLogUtilInvocation 429 ErrorLogUtilInvocation(Throwable throwable, int errorCode, int ppapiName) { in ErrorLogUtilInvocation() argument [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | ThrowableAnalyzer.java | 27 public static boolean isOOM(Throwable throwable) { in isOOM() argument 30 while (throwable != null) { in isOOM() 31 if (throwable instanceof OutOfMemoryError) { in isOOM() 34 throwable = throwable.getCause(); in isOOM()
|
/packages/modules/OnDevicePersonalization/framework/java/com/android/federatedcompute/internal/util/ |
D | LogUtil.java | 61 public static int d(String tag, Throwable throwable, String msg) { in d() argument 63 return Log.d(TAG, tag + " - " + msg, throwable); in d() 95 public static int w(String tag, Throwable throwable, String msg) { in w() argument 97 return Log.w(TAG, tag + " - " + msg, throwable); in w() 120 public static int e(String tag, Throwable throwable, String msg) { in e() argument 122 return Log.e(TAG, tag + " - " + msg, throwable); in e() 137 public static int e(String tag, Throwable throwable, String format, Object... params) { in e() argument 140 return Log.e(TAG, tag + " - " + msg, throwable); in e()
|
/packages/services/Car/car-lib/src/android/car/util/concurrent/ |
D | AndroidFuture.java | 546 private static void writeThrowable(@NonNull Parcel parcel, @Nullable Throwable throwable) { in writeThrowable() argument 547 boolean hasThrowable = throwable != null; in writeThrowable() 553 boolean isFrameworkParcelable = throwable instanceof Parcelable in writeThrowable() 554 && throwable.getClass().getClassLoader() == Parcelable.class.getClassLoader(); in writeThrowable() 557 parcel.writeParcelable((Parcelable) throwable, in writeThrowable() 562 parcel.writeString(throwable.getClass().getName()); in writeThrowable() 563 parcel.writeString(throwable.getMessage()); in writeThrowable() 564 StackTraceElement[] stackTrace = throwable.getStackTrace(); in writeThrowable() 574 writeThrowable(parcel, throwable.getCause()); in writeThrowable() 595 Throwable throwable; in readThrowable() local [all …]
|
/packages/apps/Dialer/java/com/android/dialer/commandline/ |
D | CommandLineReceiver.java | 82 public void onFailure(Throwable throwable) { in onReceive() argument 83 if (throwable instanceof IllegalCommandLineArgumentException) { in onReceive() 84 LogUtil.e(outputTag, throwable.getMessage() + "\n\nusage:\n" + command.getUsage()); in onReceive() 86 LogUtil.e(outputTag, "error running command future", throwable); in onReceive() 92 } catch (Throwable throwable) { in onReceive() 93 LogUtil.e(outputTag, "error running command", throwable); in onReceive()
|
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/common/logging/ |
D | ErrorLogUtilCall.java | 47 public ErrorLogUtilCall(Class<? extends Throwable> throwable, int errorCode, int ppapiName) { in ErrorLogUtilCall() argument 48 this(throwable, errorCode, ppapiName, DEFAULT_TIMES); in ErrorLogUtilCall() 53 Class<? extends Throwable> throwable, int errorCode, int ppapiName, int times) { in ErrorLogUtilCall() argument 55 mThrowable = throwable; in ErrorLogUtilCall() 108 Objects.equals(annotation.throwable(), Undefined.class) in createFrom() 110 : annotation.throwable(), in createFrom() 127 defaultParams.throwable(), in createFrom()
|
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/storage/util/ |
D | Visitor.java | 37 public VisitException(String s, Throwable throwable) { in VisitException() argument 38 super(s, throwable); in VisitException() 41 public VisitException(Throwable throwable) { in VisitException() argument 42 super(throwable); in VisitException()
|
/packages/apps/ThemePicker/src/com/android/customization/model/ |
D | CustomizationManager.java | 43 void onError(@Nullable Throwable throwable); in onError() argument 58 default void onError(@Nullable Throwable throwable) { in onError() argument 59 if (throwable != null) { in onError() 60 Log.e("OptionsFecthedListener", "Error loading options", throwable); in onError()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/ |
D | AppSearchHelper.java | 380 public void onSystemError(Throwable throwable) { in indexContactsAsync() 381 Log.e(TAG, "Failed to add contacts", throwable); in indexContactsAsync() 387 throwable) in indexContactsAsync() 392 future.completeExceptionally(throwable); in indexContactsAsync() 480 public void onSystemError(Throwable throwable) { in removeContactsByIdAsync() 481 Log.e(TAG, "Failed to delete contacts", throwable); in removeContactsByIdAsync() 487 throwable) in removeContactsByIdAsync() 492 future.completeExceptionally(throwable); in removeContactsByIdAsync() 525 public void onSystemError(Throwable throwable) { 526 Log.e(TAG, "Failed to get contacts", throwable); [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/ |
D | MessagingException.java | 77 public MessagingException(String message, Throwable throwable) { in MessagingException() argument 78 this(UNSPECIFIED_EXCEPTION, message, throwable); in MessagingException() 81 public MessagingException(int exceptionType, String message, Throwable throwable) { in MessagingException() argument 82 super(message, throwable); in MessagingException()
|
/packages/apps/ThemePicker/src/com/android/customization/picker/color/data/repository/ |
D | ColorPickerRepositoryImpl.kt | 106 override fun onError(throwable: Throwable?) { in <lambda>() 107 Log.e(TAG, "Error loading theme bundles", throwable) in <lambda>() 110 throwable ?: Throwable("Error loading theme bundles") in <lambda>() 132 override fun onError(throwable: Throwable?) { in <lambda>() 133 Log.w(TAG, "Apply theme with error", throwable) in <lambda>() 136 Result.failure(throwable ?: Throwable("Error loading theme bundles")) in <lambda>()
|
/packages/modules/AdServices/adservices/tests/unittest/adservices-test-utility/src/com/android/adservices/common/logging/ |
D | AdServicesErrorLogUtilWithExceptionVerifierTest.java | 372 Class<? extends Throwable> throwable, in mockAnnotationAndInitErrorLogUtilCall() argument 377 doReturn(throwable).when(annotation).throwable(); in mockAnnotationAndInitErrorLogUtilCall() 383 return new ErrorLogUtilCall(throwable, errorCode, ppapiName, times); in mockAnnotationAndInitErrorLogUtilCall() 387 Class<? extends Throwable> throwable, int errorCode, int ppapiName) { in mockDefaultParams() argument 388 doReturn(throwable).when(mDefaultParams).throwable(); in mockDefaultParams()
|
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/meta_testing/ |
D | FakeLogger.java | 54 Throwable throwable, in log() argument 57 addEntry(level, tag, throwable, msgFmt, msgArgs); in log() 74 Throwable throwable, in addEntry() argument 78 LogEntry logEntry = new LogEntry(level, tag, message, throwable); in addEntry()
|
/packages/services/Car/car-lib/src/com/android/car/internal/util/ |
D | ExceptionUtils.java | 46 public static String getCompleteMessage(String msg, Throwable throwable) { in getCompleteMessage() argument 47 Throwable t = throwable; in getCompleteMessage() 92 public static @NonNull Throwable getRootCause(@NonNull Throwable throwable) { in getRootCause() argument 93 Throwable t = throwable; in getRootCause()
|
/packages/apps/ThemePicker/src/com/android/customization/picker/grid/data/repository/ |
D | GridRepository.kt | 90 override fun onError(throwable: Throwable?) { in getSelectedOption() 93 throwable ?: Exception("Failed to load grid options!") in getSelectedOption() 139 override fun onError(throwable: Throwable?) { in onSelected() 160 override fun onError(throwable: Throwable?) { in applySelectedOption() 161 callback.onError(throwable) in applySelectedOption()
|
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/encryption/ |
D | BackgroundKeyFetchJobService.java | 120 public void onFailure(Throwable throwable) { in onStartJob() 125 if (throwable instanceof ExecutionException) { in onStartJob() 129 } else if (throwable instanceof TimeoutException) { in onStartJob() 133 } else if (throwable instanceof InterruptedException) { in onStartJob() 138 } else if (throwable instanceof IllegalArgumentException) { in onStartJob()
|
/packages/apps/Dialer/java/com/android/dialer/blockreportspam/ |
D | ShowBlockReportSpamDialogReceiver.java | 238 public void onFailure(Throwable throwable) { in blockNumber() argument 239 if (throwable instanceof BlockingFailedException) { in blockNumber() 243 throw new RuntimeException(throwable); in blockNumber() 264 public void onFailure(Throwable throwable) { in unblockNumber() argument 265 if (throwable instanceof BlockingFailedException) { in unblockNumber() 270 throw new RuntimeException(throwable); in unblockNumber()
|