/frameworks/base/core/java/com/android/internal/inputmethod/ |
D | CallbackUtils.java | 54 Throwable exception = null; in onResult() local 59 exception = throwable; in onResult() 63 if (exception != null) { in onResult() 64 callback.onError(ThrowableHolder.of(exception)); in onResult() 80 Throwable exception = null; in onResult() local 85 exception = throwable; in onResult() 89 if (exception != null) { in onResult() 90 callback.onError(ThrowableHolder.of(exception)); in onResult() 107 Throwable exception = null; in onResult() local 112 exception = throwable; in onResult() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/ |
D | EuiccCardController.java | 238 } catch (RemoteException exception) { in getAllProfiles() 239 loge("getAllProfiles callback failure.", exception); in getAllProfiles() 250 } catch (RemoteException exception) { in getAllProfiles() 251 loge("getAllProfiles callback failure.", exception); in getAllProfiles() 260 } catch (RemoteException exception) { in getAllProfiles() 261 loge("getAllProfiles callback failure.", exception); in getAllProfiles() 287 } catch (RemoteException exception) { in getProfile() 288 loge("getProfile callback failure.", exception); in getProfile() 298 } catch (RemoteException exception) { in getProfile() 299 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/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/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/BackupEncryption/src/com/android/server/backup/encryption/tasks/ |
D | EncryptedFullBackupDataProcessor.java | 111 Optional<Exception> exception = getTaskException(); in pushData() local 112 Slog.e(TAG, "Encrypted upload failed", exception.orElse(null)); in pushData() 113 if (exception.isPresent()) { in pushData() 114 reportNetworkFailureIfNecessary(exception.get()); in pushData() 116 if (exception.get().getCause() instanceof SizeQuotaExceededException) { in pushData() 148 Optional<Exception> exception = getTaskException(); in finish() local 150 if (exception.isPresent()) { in finish() 151 Slog.e(TAG, "Exception during encrypted full backup", exception.get()); in finish() 152 reportNetworkFailureIfNecessary(exception.get()); in finish() 154 if (exception.get().getCause() instanceof SizeQuotaExceededException) { in finish() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/parsing/result/ |
D | ParseInputAndResultTest.kt | 83 assertThat(result.exception).isNull() in errorCode() 93 assertThat(result.exception).isNull() in errorMessage() 104 assertThat(result.exception).isNull() in errorCodeAndMessage() 111 val exception = IOException() in errorCodeAndMessageAndException() constant 112 val result = input.error<Any?>(errorCode, errorMessage, exception) in errorCodeAndMessageAndException() 116 assertThat(result.exception).isSameInstanceAs(exception) in errorCodeAndMessageAndException() 123 val exception = IOException() in errorCarryResult() constant 124 val result = input.error<Any?>(errorCode, errorMessage, exception) in errorCarryResult() 128 assertThat(result.exception).isSameInstanceAs(exception) in errorCarryResult() 134 assertThat(carriedResult.exception).isSameInstanceAs(exception) in errorCarryResult() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | SIMRecords.java | 369 AsyncResult.forMessage((onComplete)).exception = in setVoiceMailNumber() 393 AsyncResult.forMessage((onComplete)).exception = in setVoiceMailNumber() 643 if (ar.exception != null) { in handleMessage() 644 loge("Exception querying IMSI, Exception:" + ar.exception); in handleMessage() 659 if (ar.exception == null) { in handleMessage() 702 if (ar.exception != null) { in handleMessage() 750 if (ar.exception != null) { in handleMessage() 767 if (ar.exception == null) { in handleMessage() 774 AsyncResult.forMessage(((Message) ar.userObj)).exception = ar.exception; in handleMessage() 787 if (ar.exception != null) { in handleMessage() [all …]
|
D | AdnRecordLoader.java | 161 if (ar.exception != null) { in handleMessage() 163 ar.exception); in handleMessage() 174 ar.exception); in handleMessage() 181 ar.exception); in handleMessage() 193 if (ar.exception != null) { in handleMessage() 195 ar.exception); in handleMessage() 204 if (ar.exception != null) { in handleMessage() 205 throw new RuntimeException("load failed", ar.exception); in handleMessage() 236 if (ar.exception == null) { in handleMessage() 263 if (ar.exception != null) { in handleMessage() [all …]
|
D | UiccPkcs15.java | 103 if (ar.exception != null || ar.result == null) { in handleMessage() 104 log("Error: " + ar.exception); in handleMessage() 105 AsyncResult.forMessage(mCallback, null, ar.exception); in handleMessage() 152 if (ar.exception == null && ar.result != null) { in handleMessage() 157 log("error: " + ar.exception); in handleMessage() 158 AsyncResult.forMessage(mCallback, null, ar.exception); in handleMessage() 199 if (ar.exception == null) { in handleMessage() 207 log("select pkcs15 failed: " + ar.exception); in handleMessage() 214 if (ar.exception == null && ar.result != null) { in handleMessage() 225 if (ar.exception == null && ar.result != null) { in handleMessage() [all …]
|
/frameworks/base/test-base/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/opt/telephony/src/java/com/android/internal/telephony/ |
D | GbaManager.java | 178 } catch (RemoteException exception) { in onServiceConnected() 181 logd("RemoteException " + exception); in onServiceConnected() 245 } catch (RemoteException exception) { in bootstrapAuthenticationRequest() 246 loge("exception to call service: " + exception); in bootstrapAuthenticationRequest() 270 } catch (RemoteException exception) { 271 logd("RemoteException " + exception); 294 } catch (RemoteException exception) { 295 logd("RemoteException " + exception); 319 } catch (RemoteException exception) { in processRequests() 322 logd("RemoteException " + exception); in processRequests() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dump/ |
D | LogEulogizerTest.kt | 96 val exception = RuntimeException("Something bad happened") in testFileIsCreated() constant 97 assertEquals(exception, eulogizer.record(exception)) in testFileIsCreated() 110 val exception = RuntimeException("Something bad happened") in testExistingFileIsOverwritten() constant 111 assertEquals(exception, eulogizer.record(exception)) in testExistingFileIsOverwritten() 124 val exception = RuntimeException("Something bad happened") in testYoungFileIsNotOverwritten() constant 125 assertEquals(exception, eulogizer.record(exception)) in testYoungFileIsNotOverwritten()
|
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/partner/ |
D | PartnerConfigHelper.java | 100 } catch (PackageManager.NameNotFoundException exception) { in getColor() 101 Log.e(TAG, exception.getMessage()); in getColor() 147 } catch (PackageManager.NameNotFoundException exception) { in getColorStateList() 148 Log.e(TAG, exception.getMessage()); in getColorStateList() 190 } catch (PackageManager.NameNotFoundException | NotFoundException exception) { in getDrawable() 191 Log.e(TAG, exception.getMessage()); in getDrawable() 225 } catch (PackageManager.NameNotFoundException exception) { in getString() 226 Log.e(TAG, exception.getMessage()); in getString() 271 } catch (PackageManager.NameNotFoundException exception) { in getDimension() 272 Log.e(TAG, exception.getMessage()); in getDimension() [all …]
|
/frameworks/base/core/tests/utillib/src/android/test/ |
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()
|
/frameworks/native/libs/binder/ndk/ |
D | status.cpp | 30 AStatus* AStatus_fromExceptionCode(binder_exception_t exception) { in AStatus_fromExceptionCode() argument 31 return new AStatus(Status::fromExceptionCode(PruneException(exception))); in AStatus_fromExceptionCode() 34 AStatus* AStatus_fromExceptionCodeWithMessage(binder_exception_t exception, const char* message) { in AStatus_fromExceptionCodeWithMessage() argument 35 return new AStatus(Status::fromExceptionCode(PruneException(exception), message)); in AStatus_fromExceptionCodeWithMessage() 135 binder_exception_t PruneException(int32_t exception) { in PruneException() argument 136 switch (exception) { in PruneException() 161 LOG(WARNING) << __func__ << ": Unknown binder exception (" << exception in PruneException()
|
/frameworks/base/core/java/android/os/ |
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()
|
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()
|
/frameworks/base/test-runner/src/android/test/suitebuilder/ |
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()
|
/frameworks/layoutlib/bridge/tests/src/android/util/ |
D | BridgeXmlPullAttributesTest.java | 98 boolean exception = false; in testGetAttributeIntValueForEnums() 102 exception = true; in testGetAttributeIntValueForEnums() 104 assertTrue(exception); in testGetAttributeIntValueForEnums() 105 exception = false; in testGetAttributeIntValueForEnums() 109 exception = true; in testGetAttributeIntValueForEnums() 111 assertTrue(exception); in testGetAttributeIntValueForEnums()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/apdu/ |
D | CloseLogicalChannelInvocation.java | 51 if (ar.exception == null) { in parseResult() 54 if (ar.exception instanceof CommandException) { in parseResult() 55 Rlog.e(LOG_TAG, "CommandException", ar.exception); in parseResult() 57 Rlog.e(LOG_TAG, "Unknown exception", ar.exception); in parseResult()
|
D | OpenLogicalChannelInvocation.java | 56 if (ar.exception == null && ar.result != null) { in parseResult() 72 if (ar.exception != null) { in parseResult() 73 Rlog.e(LOG_TAG, "Exception", ar.exception); in parseResult() 77 if (ar.exception instanceof CommandException) { in parseResult() 79 ((CommandException) (ar.exception)).getCommandError(); in parseResult()
|
/frameworks/base/core/java/android/content/pm/verify/domain/ |
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()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/ |
D | EuiccCardTest.java | 74 public Throwable exception; field in EuiccCardTest.ResultCaptor 90 exception = e; in onException() 203 assertUnexpectedException(resultCaptor.exception); in testGetAllProfiles() 282 assertUnexpectedException(resultCaptor.exception); in testDisableProfile() 294 assertUnexpectedException(resultCaptor.exception); in testDisableProfile_SimRefresh() 306 assertEquals(3, ((EuiccCardErrorException) resultCaptor.exception).getErrorCode()); in testDisableProfile_Error() 318 assertUnexpectedException(resultCaptor.exception); in testSwitchToProfile() 330 assertUnexpectedException(resultCaptor.exception); in testSwitchToProfile_SimRefresh() 342 assertEquals(3, ((EuiccCardErrorException) resultCaptor.exception).getErrorCode()); in testSwitchToProfile_Error() 366 assertUnexpectedException(resultCaptor.exception); in testSetNickname() [all …]
|