/aosp14/frameworks/base/packages/SystemUI/log/src/com/android/systemui/log/core/ |
H A D | Logger.kt | 54 exception: Throwable? = null, 78 exception: Throwable? = null, 89 exception: Throwable? = null, 102 exception: Throwable? = null, 113 exception: Throwable? = null, 126 exception: Throwable? = null, 137 exception: Throwable? = null, 150 exception: Throwable? = null, 161 exception: Throwable? = null, 174 exception: Throwable? = null, [all …]
|
/aosp14/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/ |
H A D | TaskExceptionTest.java | 39 assertThat(exception.isStateCompromised()).isTrue(); in testStateCompromised() 49 assertThat(exception.isStateCompromised()).isTrue(); in testStateCompromised_whenCauseInstanceOfTaskException() 51 assertThat(exception.getCause()).isEqualTo(cause); in testStateCompromised_whenCauseInstanceOfTaskException() 60 assertThat(exception.isStateCompromised()).isTrue(); in testStateCompromised_whenCauseNotInstanceOfTaskException() 62 assertThat(exception.getCause()).isEqualTo(cause); in testStateCompromised_whenCauseNotInstanceOfTaskException() 74 TaskException exception = in testForStatus_whenTransportNotInitialized() local 77 assertThat(exception.isStateCompromised()).isFalse(); in testForStatus_whenTransportNotInitialized() 87 assertThat(exception).isEqualTo(cause); in testCausedBy_whenCauseInstanceOfTaskException_returnsCause() 96 assertThat(exception).isNotEqualTo(cause); in testCausedBy_whenCauseNotInstanceOfTaskException() 99 assertThat(exception.getCause()).isEqualTo(cause); in testCausedBy_whenCauseNotInstanceOfTaskException() [all …]
|
H A D | AgentExceptionTest.java | 34 AgentException exception = AgentException.transitory(); in testTransitory_isTransitory() local 36 assertThat(exception.isTransitory()).isTrue(); in testTransitory_isTransitory() 43 AgentException exception = AgentException.transitory(cause); in testTransitory_withCause() local 45 assertThat(exception.isTransitory()).isTrue(); in testTransitory_withCause() 46 assertThat(exception.getCause()).isEqualTo(cause); in testTransitory_withCause() 51 AgentException exception = AgentException.permanent(); in testPermanent_isNotTransitory() local 53 assertThat(exception.isTransitory()).isFalse(); in testPermanent_isNotTransitory() 60 AgentException exception = AgentException.permanent(cause); in testPermanent_withCause() local 62 assertThat(exception.isTransitory()).isFalse(); in testPermanent_withCause() 63 assertThat(exception.getCause()).isEqualTo(cause); in testPermanent_withCause()
|
/aosp14/frameworks/base/services/credentials/java/com/android/server/credentials/ |
H A D | GetRequestSession.java | 115 String exception = GetCredentialException.TYPE_UNKNOWN; in launchUiWithProviderData() 150 respondToClientWithErrorAndFinish(exception, in onFinalResponseReceived() 164 String exception = GetCredentialException.TYPE_USER_CANCELED; in onUiCancellation() local 167 exception = GetCredentialException.TYPE_INTERRUPTED; in onUiCancellation() 170 mRequestSessionMetric.collectFrameworkException(exception); in onUiCancellation() 171 respondToClientWithErrorAndFinish(exception, message); in onUiCancellation() 176 String exception = GetCredentialException.TYPE_NO_CREDENTIAL; in onUiSelectorInvocationFailure() local 177 mRequestSessionMetric.collectFrameworkException(exception); in onUiSelectorInvocationFailure() 178 respondToClientWithErrorAndFinish(exception, in onUiSelectorInvocationFailure() 204 respondToClientWithErrorAndFinish(exception, in onProviderStatusChanged() [all …]
|
H A D | CreateRequestSession.java | 150 mRequestSessionMetric.collectFrameworkException(exception); in onFinalResponseReceived() 151 respondToClientWithErrorAndFinish(exception, in onFinalResponseReceived() 164 String exception = CreateCredentialException.TYPE_USER_CANCELED; in onUiCancellation() local 167 exception = CreateCredentialException.TYPE_INTERRUPTED; in onUiCancellation() 170 mRequestSessionMetric.collectFrameworkException(exception); in onUiCancellation() 171 respondToClientWithErrorAndFinish(exception, message); in onUiCancellation() 176 String exception = CreateCredentialException.TYPE_NO_CREATE_OPTIONS; in onUiSelectorInvocationFailure() local 177 mRequestSessionMetric.collectFrameworkException(exception); in onUiSelectorInvocationFailure() 178 respondToClientWithErrorAndFinish(exception, in onUiSelectorInvocationFailure() 195 mRequestSessionMetric.collectFrameworkException(exception); in onProviderStatusChanged() [all …]
|
/aosp14/frameworks/base/core/java/android/content/ |
H A D | ContentProviderResult.java | 39 public final @Nullable Throwable exception; field in ContentProviderResult 53 public ContentProviderResult(@NonNull Throwable exception) { in ContentProviderResult() argument 54 this(null, null, null, exception); in ContentProviderResult() 62 this.exception = exception; in ContentProviderResult() 82 exception = ParcelableException.readFromParcel(source); in ContentProviderResult() 84 exception = null; in ContentProviderResult() 93 exception = cpr.exception; in ContentProviderResult() 116 if (exception != null) { in writeToParcel() 118 ParcelableException.writeToParcel(dest, exception); in writeToParcel() 154 if (exception != null) { in toString() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/log/ |
H A D | LogBufferTest.kt | 58 val exception = createTestException("Exception message", "TestClass") regex 60 logger.e("Extra message", exception) 73 val exception = regex 80 logger.e("Extra message", exception) 92 val exception = RuntimeException("Root exception message") regex 93 exception.addSuppressed( 100 exception.addSuppressed(createTestException("Second suppressed exception", "SecondClass")) 102 logger.e("Extra message", exception) 129 val exception = RuntimeException(message, cause) regex 130 exception.stackTrace = [all …]
|
/aosp14/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | AsyncRunner.java | 40 public Exception exception; field in AsyncRunner.RunnerResult 82 } catch (Exception exception) { in doInBackground() 83 result.exception = exception; in doInBackground() 90 } catch (Exception exception) { in doInBackground() 91 result.exception = exception; in doInBackground() 113 setException(result.exception); in onPostExecute() 118 } catch (Exception exception) { in onPostExecute() 120 setException(exception); in onPostExecute() 235 synchronized private void setException(Exception exception) { in setException() argument 236 mException = exception; in setException()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/content/pm/parsing/result/ |
H A D | ParseInputAndResultTest.kt | 85 assertThat(result.exception).isNull() 95 assertThat(result.exception).isNull() 106 assertThat(result.exception).isNull() 113 val exception = IOException() regex 118 assertThat(result.exception).isSameInstanceAs(exception) 125 val exception = IOException() regex 130 assertThat(result.exception).isSameInstanceAs(exception) 136 assertThat(carriedResult.exception).isSameInstanceAs(exception) 180 assertThat(result.exception).isNull() 211 assertThat(result.exception).isNull() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/log/src/com/android/systemui/log/ |
H A D | LogBuffer.kt | 144 exception: Throwable? = null, 146 val message = obtain(tag, level, messagePrinter, exception) 169 exception: Throwable? = null, 170 ) = log(tag, level, { str1 = message }, { str1!! }, exception) 186 exception: Throwable?, 290 LogLevel.VERBOSE -> Log.v(message.tag, strMessage, message.exception) 291 LogLevel.DEBUG -> Log.d(message.tag, strMessage, message.exception) 292 LogLevel.INFO -> Log.i(message.tag, strMessage, message.exception) 293 LogLevel.WARNING -> Log.w(message.tag, strMessage, message.exception) 294 LogLevel.ERROR -> Log.e(message.tag, strMessage, message.exception) [all …]
|
H A D | LogMessageImpl.kt | 29 override var exception: Throwable?, 49 exception: Throwable? = null, 55 this.exception = exception
|
/aosp14/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/soundtrigger_middleware/ |
H A D | SoundTriggerMiddlewareLoggingTest.java | 36 Exception exception = new Exception("test"); in serviceEventException_getStringContainsInfo() local 41 SERVICE_TYPE, packageName, exception, param1, param2); in serviceEventException_getStringContainsInfo() 45 assertThat(stringRep).contains(exception.toString()); in serviceEventException_getStringContainsInfo() 54 Exception exception = new Exception("test"); in serviceEventExceptionNoArgs_getStringContainsInfo() local 55 final var event = ServiceEvent.createForException(SERVICE_TYPE, packageName, exception); in serviceEventExceptionNoArgs_getStringContainsInfo() 59 assertThat(stringRep).contains(exception.toString()); in serviceEventExceptionNoArgs_getStringContainsInfo() 96 Exception exception = new Exception("test"); in sessionEventException_getStringContainsInfo() local 100 assertThat(stringRep).contains(exception.toString()); in sessionEventException_getStringContainsInfo() 108 Exception exception = new Exception("test"); in sessionEventExceptionNoArgs_getStringContainsInfo() local 109 final var event = SessionEvent.createForException(SESSION_TYPE, exception); in sessionEventExceptionNoArgs_getStringContainsInfo() [all …]
|
/aosp14/frameworks/base/test-base/src/junit/framework/ |
H A D | TestCase.java | 131 Throwable exception= null; in runBare() local 136 exception= running; in runBare() 142 if (exception == null) exception= tearingDown; in runBare() 145 if (exception != null) throw exception; in runBare()
|
/aosp14/frameworks/base/core/tests/utillib/src/android/test/ |
H A D | BandwidthTestCase.java | 118 Throwable exception = null; in runMethod() local 124 exception = null; in runMethod() 127 exception = e.getTargetException(); in runMethod() 130 exception = e; in runMethod() 140 } while ((runCount < tolerance) && (isRepetitive || exception != null)); in runMethod() 142 if (exception != null) { in runMethod() 143 throw exception; in runMethod()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dump/ |
H A D | LogEulogizerTest.kt | 111 val exception = RuntimeException("Something bad happened") regex 112 assertEquals(exception, eulogizer.record(exception)) 126 val exception = RuntimeException("Something bad happened") regex 127 assertEquals(exception, eulogizer.record(exception)) 141 val exception = RuntimeException("Something bad happened") regex 142 assertEquals(exception, eulogizer.record(exception))
|
/aosp14/frameworks/base/test-runner/src/android/test/suitebuilder/ |
H A D | TestSuiteBuilder.java | 195 } catch (Exception exception) { in build() 196 Log.i("TestSuiteBuilder", "Failed to create test.", exception); in build() 198 suite.addTest(new FailedToCreateTests(exception)); in build() 236 private final Exception exception; field in TestSuiteBuilder.FailedToCreateTests 238 public FailedToCreateTests(Exception exception) { in FailedToCreateTests() argument 240 this.exception = exception; in FailedToCreateTests() 244 throw new RuntimeException("Exception during suite construction", exception); in testSuiteConstructionFailed()
|
/aosp14/frameworks/base/core/java/android/os/ |
H A D | Registrant.java | 58 notifyException(Throwable exception) in notifyException() argument 60 internalNotifyRegistrant (null, exception); in notifyException() 70 internalNotifyRegistrant (ar.result, ar.exception); in notifyRegistrant() 74 internalNotifyRegistrant (Object result, Throwable exception) in internalNotifyRegistrant() argument 84 msg.obj = new AsyncResult(userObj, result, exception); in internalNotifyRegistrant()
|
H A D | RegistrantList.java | 88 internalNotifyRegistrants (Object result, Throwable exception) in internalNotifyRegistrants() argument 92 r.internalNotifyRegistrant(result, exception); in internalNotifyRegistrants() 104 notifyException(Throwable exception) in notifyException() argument 106 internalNotifyRegistrants (null, exception); in notifyException() 121 internalNotifyRegistrants(ar.result, ar.exception); in notifyRegistrants()
|
/aosp14/frameworks/base/core/java/android/content/pm/verify/domain/ |
H A D | DomainVerificationManager.java | 376 private Exception rethrow(Exception exception, @Nullable String packageName) { in rethrow() argument 377 if (exception instanceof ServiceSpecificException) { in rethrow() 378 int serviceSpecificErrorCode = ((ServiceSpecificException) exception).errorCode; in rethrow() 380 packageName = exception.getMessage(); in rethrow() 387 return exception; in rethrow() 388 } else if (exception instanceof RemoteException) { in rethrow() 389 return ((RemoteException) exception).rethrowFromSystemServer(); in rethrow() 391 return exception; in rethrow()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/ |
H A D | ServiceWrapperTest.kt | 63 private val exception = RemoteException() regex 88 `when`(service.load(any())).thenThrow(exception) 104 `when`(service.loadSuggested(any())).thenThrow(exception) 121 `when`(service.subscribe(any(), any())).thenThrow(exception) 139 `when`(subscription.cancel()).thenThrow(exception) 160 `when`(service.action(any(), any(), any())).thenThrow(exception)
|
/aosp14/frameworks/base/test-base/src/android/test/ |
H A D | InstrumentationTestCase.java | 215 Throwable exception = null; in runMethod() local 221 exception = null; in runMethod() 224 exception = e.getTargetException(); in runMethod() 227 exception = e; in runMethod() 237 } while ((runCount < tolerance) && (isRepetitive || exception != null)); in runMethod() 239 if (exception != null) { in runMethod() 240 throw exception; in runMethod()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/verify/domain/ |
H A D | DomainVerificationManagerStub.java | 121 private RuntimeException rethrow(Exception exception) throws RuntimeException { in rethrow() argument 122 if (exception instanceof NameNotFoundException) { in rethrow() 125 } else if (exception instanceof RuntimeException) { in rethrow() 126 return (RuntimeException) exception; in rethrow() 128 return new RuntimeException(exception); in rethrow()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/content/res/ |
H A D | ResourcesDrawableTest.java | 56 Exception exception = null; in testLoadColorAsDrawableFailureThrowsOriginalException() local 61 exception = e; in testLoadColorAsDrawableFailureThrowsOriginalException() 66 exception in testLoadColorAsDrawableFailureThrowsOriginalException() 72 exception.getCause().getCause().getMessage() in testLoadColorAsDrawableFailureThrowsOriginalException()
|
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/test/ |
H A D | TestExceptionDeferrer.kt | 42 val exception = IllegalStateException(message) regex 43 Log.e(tag, "Deferring error: ", exception) 44 deferredErrors.add(exception)
|
/aosp14/frameworks/base/keystore/tests/src/android/security/keystore/ |
H A D | KeyStoreExceptionTest.java | 34 KeyStoreException exception = new KeyStoreException(-1, primaryMessage, keystoreMessage); in testKeystoreMessageIsIncluded() local 36 String exceptionMessage = exception.getMessage(); in testKeystoreMessageIsIncluded() 40 String exceptionString = exception.toString(); in testKeystoreMessageIsIncluded()
|