/frameworks/base/packages/SystemUI/log/src/com/android/systemui/log/core/ |
D | Logger.kt | 54 exception: Throwable? = null, in log() 57 val message = buffer.obtain(tag, level, messagePrinter, exception) in log() 78 exception: Throwable? = null, in log() 79 ) = log(level, { str1!! }, exception) { str1 = message } in log() 89 exception: Throwable? = null, 91 ) = log(LogLevel.VERBOSE, messagePrinter, exception, messageInitializer) 102 exception: Throwable? = null, 103 ) = log(LogLevel.VERBOSE, message, exception) 113 exception: Throwable? = null, 115 ) = log(LogLevel.DEBUG, messagePrinter, exception, messageInitializer) [all …]
|
D | LogcatOnlyMessageBuffer.kt | 38 exception: Throwable?, in obtain() 46 singleMessage.reset(tag, level, System.currentTimeMillis(), messagePrinter, exception) in obtain() 65 LogLevel.VERBOSE -> Log.v(message.tag, strMessage, message.exception) in commit() 66 LogLevel.DEBUG -> Log.d(message.tag, strMessage, message.exception) in commit() 67 LogLevel.INFO -> Log.i(message.tag, strMessage, message.exception) in commit() 68 LogLevel.WARNING -> Log.w(message.tag, strMessage, message.exception) in commit() 69 LogLevel.ERROR -> Log.e(message.tag, strMessage, message.exception) in commit() 70 LogLevel.WTF -> Log.wtf(message.tag, strMessage, message.exception) in commit()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/ |
D | EuiccCardController.java | 320 } catch (RemoteException exception) { in getAllProfiles() 321 loge("getAllProfiles callback failure.", exception); in getAllProfiles() 332 } catch (RemoteException exception) { in getAllProfiles() 333 loge("getAllProfiles callback failure.", exception); in getAllProfiles() 342 } catch (RemoteException exception) { in getAllProfiles() 343 loge("getAllProfiles callback failure.", exception); in getAllProfiles() 371 } catch (RemoteException exception) { in getProfile() 372 loge("getProfile callback failure.", exception); in getProfile() 382 } catch (RemoteException exception) { in getProfile() 383 loge("getProfile callback failure.", exception); in getProfile() [all …]
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/ |
D | TaskExceptionTest.java | 37 TaskException exception = TaskException.stateCompromised(); in testStateCompromised() local 39 assertThat(exception.isStateCompromised()).isTrue(); in testStateCompromised() 40 assertThat(exception.getStatus()).isEqualTo(BackupTransport.TRANSPORT_ERROR); in testStateCompromised() 47 TaskException exception = TaskException.stateCompromised(cause); in testStateCompromised_whenCauseInstanceOfTaskException() local 49 assertThat(exception.isStateCompromised()).isTrue(); in testStateCompromised_whenCauseInstanceOfTaskException() 50 assertThat(exception.getStatus()).isEqualTo(BackupTransport.TRANSPORT_NOT_INITIALIZED); in testStateCompromised_whenCauseInstanceOfTaskException() 51 assertThat(exception.getCause()).isEqualTo(cause); in testStateCompromised_whenCauseInstanceOfTaskException() 58 TaskException exception = TaskException.stateCompromised(cause); in testStateCompromised_whenCauseNotInstanceOfTaskException() local 60 assertThat(exception.isStateCompromised()).isTrue(); in testStateCompromised_whenCauseNotInstanceOfTaskException() 61 assertThat(exception.getStatus()).isEqualTo(BackupTransport.TRANSPORT_ERROR); in testStateCompromised_whenCauseNotInstanceOfTaskException() [all …]
|
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()
|
/frameworks/base/tools/protologtool/tests/com/android/protolog/tool/ |
D | CommandOptionsTest.kt | 53 val exception = assertThrows<InvalidCommandException>(InvalidCommandException::class.java) { in noCommand() constant 56 assertThat(exception).hasMessageThat().contains("No command specified") in noCommand() 62 val exception = assertThrows<InvalidCommandException>(InvalidCommandException::class.java) { in invalidCommand() constant 65 assertThat(exception).hasMessageThat().contains("Unknown command") in invalidCommand() 99 val exception = assertThrows<InvalidCommandException>(InvalidCommandException::class.java) { in transformClasses_noViewerConfigFile() constant 102 assertThat(exception).hasMessageThat().contains("--viewer-config-file-path") in transformClasses_noViewerConfigFile() 156 val exception = assertThrows<InvalidCommandException>(InvalidCommandException::class.java) { in transformClasses_noProtoLogClass() constant 159 assertThat(exception).hasMessageThat().contains("--protolog-class") in transformClasses_noProtoLogClass() 171 val exception = assertThrows<InvalidCommandException>(InvalidCommandException::class.java) { in transformClasses_noProtoLogGroupClass() constant 174 assertThat(exception).hasMessageThat().contains("--loggroups-class") in transformClasses_noProtoLogGroupClass() [all …]
|
/frameworks/base/core/java/android/content/ |
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() 58 public ContentProviderResult(Uri uri, Integer count, Bundle extras, Throwable exception) { in ContentProviderResult() argument 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() [all …]
|
/frameworks/base/services/credentials/java/com/android/server/credentials/ |
D | GetRequestSession.java | 120 String exception = GetCredentialException.TYPE_UNKNOWN; in launchUiWithProviderData() 121 mRequestSessionMetric.collectFrameworkException(exception); in launchUiWithProviderData() 122 respondToClientWithErrorAndFinish(exception, "Unable to instantiate selector"); in launchUiWithProviderData() 153 String exception = GetCredentialException.TYPE_NO_CREDENTIAL; in onFinalResponseReceived() local 154 mRequestSessionMetric.collectFrameworkException(exception); in onFinalResponseReceived() 155 respondToClientWithErrorAndFinish(exception, in onFinalResponseReceived() 169 String exception = GetCredentialException.TYPE_USER_CANCELED; in onUiCancellation() local 172 exception = GetCredentialException.TYPE_INTERRUPTED; in onUiCancellation() 175 mRequestSessionMetric.collectFrameworkException(exception); in onUiCancellation() 176 respondToClientWithErrorAndFinish(exception, message); in onUiCancellation() [all …]
|
D | CreateRequestSession.java | 152 String exception = CreateCredentialException.TYPE_NO_CREATE_OPTIONS; in onFinalResponseReceived() local 153 mRequestSessionMetric.collectFrameworkException(exception); in onFinalResponseReceived() 154 respondToClientWithErrorAndFinish(exception, in onFinalResponseReceived() 167 String exception = CreateCredentialException.TYPE_USER_CANCELED; in onUiCancellation() local 170 exception = CreateCredentialException.TYPE_INTERRUPTED; in onUiCancellation() 173 mRequestSessionMetric.collectFrameworkException(exception); in onUiCancellation() 174 respondToClientWithErrorAndFinish(exception, message); in onUiCancellation() 179 String exception = CreateCredentialException.TYPE_NO_CREATE_OPTIONS; in onUiSelectorInvocationFailure() local 180 mRequestSessionMetric.collectFrameworkException(exception); in onUiSelectorInvocationFailure() 181 respondToClientWithErrorAndFinish(exception, in onUiSelectorInvocationFailure() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/log/ |
D | LogBufferTest.kt | 58 val exception = createTestException("Exception message", "TestClass") in <lambda>() constant 60 logger.e("Extra message", exception) in <lambda>() 73 val exception = in <lambda>() constant 80 logger.e("Extra message", exception) in <lambda>() 92 val exception = RuntimeException("Root exception message") in <lambda>() constant 93 exception.addSuppressed( in <lambda>() 100 exception.addSuppressed(createTestException("Second suppressed exception", "SecondClass")) in <lambda>() 102 logger.e("Extra message", exception) in <lambda>() 129 val exception = RuntimeException(message, cause) in <lambda>() constant 130 exception.stackTrace = in <lambda>() [all …]
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
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()
|
/frameworks/base/packages/SystemUI/log/src/com/android/systemui/log/ |
D | LogBuffer.kt | 124 exception: Throwable? = null, in log() 126 val message = obtain(tag, level, messagePrinter, exception) in log() 149 exception: Throwable? = null, in log() 150 ) = log(tag, level, { str1 = message }, { str1!! }, exception) in log() 166 exception: Throwable?, in obtain() 172 message.reset(tag, level, System.currentTimeMillis(), messagePrinter, exception) in obtain() 256 LogLevel.VERBOSE -> Log.v(message.tag, strMessage, message.exception) in echoToLogcat() 257 LogLevel.DEBUG -> Log.d(message.tag, strMessage, message.exception) in echoToLogcat() 258 LogLevel.INFO -> Log.i(message.tag, strMessage, message.exception) in echoToLogcat() 259 LogLevel.WARNING -> Log.w(message.tag, strMessage, message.exception) in echoToLogcat() [all …]
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/exception/ |
D | VCardNotSupportedExceptionTest.java | 19 import com.android.vcard.exception.VCardNotSupportedException; 27 VCardNotSupportedException exception = new VCardNotSupportedException(); in testExceptionWithoutMessage() local 28 assertNull(exception.getMessage()); in testExceptionWithoutMessage() 32 VCardNotSupportedException exception = new VCardNotSupportedException(TEST_MESSAGE); in testExceptionWithMessage() local 33 assertEquals(exception.getMessage(), TEST_MESSAGE); in testExceptionWithMessage()
|
D | VCardInvalidCommentLineExceptionTest.java | 19 import com.android.vcard.exception.VCardInvalidCommentLineException; 27 VCardInvalidCommentLineException exception = new VCardInvalidCommentLineException(); in testExceptionWithoutMessage() local 28 assertNull(exception.getMessage()); in testExceptionWithoutMessage() 32 VCardInvalidCommentLineException exception = new VCardInvalidCommentLineException( in testExceptionWithMessage() local 34 assertEquals(exception.getMessage(), TEST_MESSAGE); in testExceptionWithMessage()
|
D | VCardNestedExceptionTest.java | 19 import com.android.vcard.exception.VCardNestedException; 27 VCardNestedException exception = new VCardNestedException(); in testExceptionWithoutMessage() local 28 assertNull(exception.getMessage()); in testExceptionWithoutMessage() 32 VCardNestedException exception = new VCardNestedException(TEST_MESSAGE); in testExceptionWithMessage() local 33 assertEquals(exception.getMessage(), TEST_MESSAGE); in testExceptionWithMessage()
|
D | VCardVersionExceptionTest.java | 19 import com.android.vcard.exception.VCardVersionException; 27 VCardVersionException exception = new VCardVersionException(); in testExceptionWithoutMessage() local 28 assertNull(exception.getMessage()); in testExceptionWithoutMessage() 32 VCardVersionException exception = new VCardVersionException(TEST_MESSAGE); in testExceptionWithMessage() local 33 assertEquals(exception.getMessage(), TEST_MESSAGE); in testExceptionWithMessage()
|
D | VCardInvalidLineExceptionTest.java | 19 import com.android.vcard.exception.VCardInvalidLineException; 27 VCardInvalidLineException exception = new VCardInvalidLineException(); in testExceptionWithoutMessage() local 28 assertNull(exception.getMessage()); in testExceptionWithoutMessage() 32 VCardInvalidLineException exception = new VCardInvalidLineException(TEST_MESSAGE); in testExceptionWithMessage() local 33 assertEquals(exception.getMessage(), TEST_MESSAGE); in testExceptionWithMessage()
|
D | VCardAgentNotSupportedExceptionTest.java | 19 import com.android.vcard.exception.VCardAgentNotSupportedException; 27 VCardAgentNotSupportedException exception = new VCardAgentNotSupportedException(); in testExceptionWithoutMessage() local 28 assertNull(exception.getMessage()); in testExceptionWithoutMessage() 32 VCardAgentNotSupportedException exception = new VCardAgentNotSupportedException( in testExceptionWithMessage() local 34 assertEquals(exception.getMessage(), TEST_MESSAGE); in testExceptionWithMessage()
|
D | VCardExceptionTest.java | 19 import com.android.vcard.exception.VCardException; 27 VCardException exception = new VCardException(); in testExceptionWithoutMessage() local 28 assertNull(exception.getMessage()); in testExceptionWithoutMessage() 32 VCardException exception = new VCardException(TEST_MESSAGE); in testExceptionWithMessage() local 33 assertEquals(exception.getMessage(), TEST_MESSAGE); in testExceptionWithMessage()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/parsing/result/ |
D | ParseInputAndResultTest.kt | 85 assertThat(result.exception).isNull() in errorCode() 95 assertThat(result.exception).isNull() in errorMessage() 106 assertThat(result.exception).isNull() in errorCodeAndMessage() 113 val exception = IOException() in errorCodeAndMessageAndException() constant 114 val result = input.error<Any?>(errorCode, errorMessage, exception) in errorCodeAndMessageAndException() 118 assertThat(result.exception).isSameInstanceAs(exception) in errorCodeAndMessageAndException() 125 val exception = IOException() in errorCarryResult() constant 126 val result = input.error<Any?>(errorCode, errorMessage, exception) in errorCarryResult() 130 assertThat(result.exception).isSameInstanceAs(exception) in errorCarryResult() 136 assertThat(carriedResult.exception).isSameInstanceAs(exception) in errorCarryResult() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | SIMRecords.java | 392 AsyncResult.forMessage((onComplete)).exception = in setVoiceMailNumber() 418 AsyncResult.forMessage((onComplete)).exception = in setVoiceMailNumber() 672 if (ar.exception != null) { in handleMessage() 673 loge("Exception querying IMSI, Exception:" + ar.exception); in handleMessage() 688 if (ar.exception == null) { in handleMessage() 731 if (ar.exception != null) { in handleMessage() 779 if (ar.exception != null) { in handleMessage() 796 if (ar.exception == null) { in handleMessage() 803 AsyncResult.forMessage(((Message) ar.userObj)).exception = ar.exception; in handleMessage() 816 if (ar.exception != null) { in handleMessage() [all …]
|
D | AdnRecordLoader.java | 162 if (ar.exception != null) { in handleMessage() 164 ar.exception); in handleMessage() 175 ar.exception); in handleMessage() 197 ar.exception); in handleMessage() 214 if (ar.exception != null) { in handleMessage() 216 ar.exception); in handleMessage() 230 if (ar.exception != null) { in handleMessage() 231 throw new RuntimeException("load failed", ar.exception); in handleMessage() 262 if (ar.exception == null) { in handleMessage() 289 if (ar.exception != null) { in handleMessage() [all …]
|
/frameworks/base/test-junit/src/junit/framework/ |
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()
|
/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/soundtrigger_middleware/ |
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 97 final var event = SessionEvent.createForException(SESSION_TYPE, exception, param1, param2); in sessionEventException_getStringContainsInfo() 100 assertThat(stringRep).contains(exception.toString()); in sessionEventException_getStringContainsInfo() 108 Exception exception = new Exception("test"); in sessionEventExceptionNoArgs_getStringContainsInfo() local [all …]
|
/frameworks/libs/service_entitlement/tests/src/com/android/libraries/entitlement/http/ |
D | HttpClientTest.java | 123 ServiceEntitlementException exception = in request_httpGetResponseBadRequest_throwsException() local 127 assertThat(exception.getErrorCode()).isEqualTo( in request_httpGetResponseBadRequest_throwsException() 129 assertThat(exception.getHttpStatus()).isEqualTo(HttpURLConnection.HTTP_BAD_REQUEST); in request_httpGetResponseBadRequest_throwsException() 130 assertThat(exception).hasMessageThat().contains("Invalid connection response"); in request_httpGetResponseBadRequest_throwsException() 131 assertThat(exception.getRetryAfter()).isEqualTo(RETRY_AFTER); in request_httpGetResponseBadRequest_throwsException() 213 ServiceEntitlementException exception = expectThrows( in request_getResponseCodeFailed_expectThrowsException() local 216 assertThat(exception.getErrorCode()).isEqualTo( in request_getResponseCodeFailed_expectThrowsException() 218 assertThat(exception.getMessage()).isEqualTo("Read response code failed!"); in request_getResponseCodeFailed_expectThrowsException() 219 assertThat(exception.getHttpStatus()).isEqualTo(0); in request_getResponseCodeFailed_expectThrowsException() 220 assertThat(exception.getRetryAfter()).isEmpty(); in request_getResponseCodeFailed_expectThrowsException() [all …]
|