Home
last modified time | relevance | path

Searched refs:exception (Results 1 – 25 of 214) sorted by relevance

123456789

/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/
DEuiccCardController.java238 } 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/
DTaskExceptionTest.java37 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 …]
DAgentExceptionTest.java34 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/
DContentProviderResult.java39 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/opt/telephony/src/java/com/android/internal/telephony/uicc/
DSIMRecords.java358 AsyncResult.forMessage((onComplete)).exception = in setVoiceMailNumber()
382 AsyncResult.forMessage((onComplete)).exception = in setVoiceMailNumber()
632 if (ar.exception != null) { in handleMessage()
633 loge("Exception querying IMSI, Exception:" + ar.exception); in handleMessage()
648 if (ar.exception == null) { in handleMessage()
691 if (ar.exception != null) { in handleMessage()
739 if (ar.exception != null) { in handleMessage()
756 if (ar.exception == null) { in handleMessage()
763 AsyncResult.forMessage(((Message) ar.userObj)).exception = ar.exception; in handleMessage()
776 if (ar.exception != null) { in handleMessage()
[all …]
DAdnRecordLoader.java160 if (ar.exception != null) { in handleMessage()
162 ar.exception); in handleMessage()
173 ar.exception); in handleMessage()
180 ar.exception); in handleMessage()
192 if (ar.exception != null) { in handleMessage()
194 ar.exception); in handleMessage()
203 if (ar.exception != null) { in handleMessage()
204 throw new RuntimeException("load failed", ar.exception); in handleMessage()
235 if (ar.exception == null) { in handleMessage()
262 if (ar.exception != null) { in handleMessage()
[all …]
DUiccPkcs15.java103 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()
226 if (ar.exception == null && ar.result != null) { in handleMessage()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/
DEncryptedFullBackupDataProcessor.java111 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/test-base/src/junit/framework/
DTestCase.java131 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/packages/SystemUI/tests/src/com/android/systemui/dump/
DLogEulogizerTest.kt96 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/
DPartnerConfigHelper.java100 } 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/native/libs/binder/ndk/
Dstatus.cpp29 AStatus* AStatus_fromExceptionCode(binder_exception_t exception) { in AStatus_fromExceptionCode() argument
30 return new AStatus(Status::fromExceptionCode(PruneException(exception))); in AStatus_fromExceptionCode()
33 AStatus* AStatus_fromExceptionCodeWithMessage(binder_exception_t exception, const char* message) { in AStatus_fromExceptionCodeWithMessage() argument
34 return new AStatus(Status::fromExceptionCode(PruneException(exception), message)); in AStatus_fromExceptionCodeWithMessage()
132 binder_exception_t PruneException(int32_t exception) { in PruneException() argument
133 switch (exception) { in PruneException()
159 << ": Unknown status_t pruned into EX_TRANSACTION_FAILED: " << exception; in PruneException()
/frameworks/base/core/tests/utillib/src/android/test/
DBandwidthTestCase.java118 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/base/core/java/android/os/
DRegistrant.java58 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
85 msg.obj = new AsyncResult(userObj, result, exception); in internalNotifyRegistrant()
DRegistrantList.java88 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/
DTestSuiteBuilder.java195 } 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/
DBridgeXmlPullAttributesTest.java98 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/
DCloseLogicalChannelInvocation.java51 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()
DOpenLogicalChannelInvocation.java56 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()
DTransmitApduLogicalChannelInvocation.java57 if (ar.exception == null && ar.result != null) { in parseResult()
62 } else if (ar.exception instanceof CommandException) { in parseResult()
63 Rlog.e(LOG_TAG, "CommandException", ar.exception); in parseResult()
65 Rlog.e(LOG_TAG, "CommandException", ar.exception); in parseResult()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/
DEuiccCardTest.java74 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 …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DServiceWrapperTest.kt63 private val exception = RemoteException() constant
88 `when`(service.load(any())).thenThrow(exception) in testLoad_error()
104 `when`(service.loadSuggested(any())).thenThrow(exception) in testLoadSuggested_error()
121 `when`(service.subscribe(any(), any())).thenThrow(exception) in testSubscribe_error()
139 `when`(subscription.cancel()).thenThrow(exception) in testCancel_error()
160 `when`(service.action(any(), any(), any())).thenThrow(exception) in testOnAction_error()
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesDrawableTest.java54 Exception exception = null; in testLoadColorAsDrawableFailureThrowsOriginalException() local
59 exception = e; in testLoadColorAsDrawableFailureThrowsOriginalException()
64 exception in testLoadColorAsDrawableFailureThrowsOriginalException()
70 exception.getCause().getCause().getMessage() in testLoadColorAsDrawableFailureThrowsOriginalException()
/frameworks/base/test-base/src/android/test/
DInstrumentationTestCase.java215 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()
/frameworks/rs/tests/lldb/tests/harness/
Ddecorators.py122 exception=UserWarning argument
127 self.exception = exception
153 warnings.warn(warning, self.exception, 2)

123456789