Home
last modified time | relevance | path

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

123456

/packages/services/Telephony/src/com/android/phone/
DCallWaitingSwitchPreference.java88 if (ar.exception instanceof CommandException) { in handleGetCallWaitingResponse()
91 ar.exception); in handleGetCallWaitingResponse()
95 (CommandException)ar.exception); in handleGetCallWaitingResponse()
97 } else if (ar.userObj instanceof Throwable || ar.exception != null) { in handleGetCallWaitingResponse()
100 Log.d(LOG_TAG, "handleGetCallWaitingResponse: Exception" + ar.exception); in handleGetCallWaitingResponse()
125 if (ar.exception != null) { in handleSetCallWaitingResponse()
127 Log.d(LOG_TAG, "handleSetCallWaitingResponse: ar.exception=" + ar.exception); in handleSetCallWaitingResponse()
134 MESSAGE_SET_CALL_WAITING, MESSAGE_SET_CALL_WAITING, ar.exception)); in handleSetCallWaitingResponse()
DTimeConsumingPreferenceActivity.java20 public void onException(Preference preference, CommandException exception); in onException() argument
199 public void onException(Preference preference, CommandException exception) { in onException() argument
200 if (exception.getCommandError() == CommandException.Error.FDN_CHECK_FAILURE) { in onException()
202 } else if (exception.getCommandError() == CommandException.Error.RADIO_NOT_AVAILABLE) { in onException()
204 } else if (exception.getCommandError() == CommandException.Error.SS_MODIFIED_TO_DIAL) { in onException()
206 } else if (exception.getCommandError() == CommandException.Error in onException()
209 } else if (exception.getCommandError() == CommandException.Error.SS_MODIFIED_TO_USSD) { in onException()
211 } else if (exception.getCommandError() == CommandException.Error.SS_MODIFIED_TO_SS) { in onException()
DCLIRListPreference.java180 if (ar.exception != null) { in handleGetCLIRResponse()
181 Log.i(LOG_TAG, "handleGetCLIRResponse: ar.exception=" + ar.exception); in handleGetCLIRResponse()
182 mTcpListener.onException(CLIRListPreference.this, (CommandException) ar.exception); in handleGetCLIRResponse()
202 if (ar.exception != null) { in handleSetCLIRResponse()
203 if (DBG) Log.d(LOG_TAG, "handleSetCallWaitingResponse: ar.exception="+ar.exception); in handleSetCLIRResponse()
209 MESSAGE_SET_CLIR, MESSAGE_SET_CLIR, ar.exception)); in handleSetCLIRResponse()
DPhoneInterfaceManager.java468 if (ar.exception == null && ar.result != null) { in handleMessage()
474 } else if (ar.exception instanceof CommandException) { in handleMessage()
476 ar.exception); in handleMessage()
504 if (ar.exception == null && ar.result != null) { in handleMessage()
510 } else if (ar.exception instanceof CommandException) { in handleMessage()
512 ar.exception); in handleMessage()
540 if (ar.exception == null && ar.result != null) { in handleMessage()
564 if (ar.exception == null && ar.result != null) { in handleMessage()
570 } else if (ar.exception instanceof CommandException) { in handleMessage()
572 ar.exception); in handleMessage()
[all …]
DCallForwardEditPreference.java345 if (ar.exception != null) { in handleGetCFResponse()
346 Log.d(LOG_TAG, "handleGetCFResponse: ar.exception=" + ar.exception); in handleGetCFResponse()
347 if (ar.exception instanceof CommandException) { in handleGetCFResponse()
349 (CommandException) ar.exception); in handleGetCFResponse()
420 if (ar.exception != null) { in handleSetCFResponse()
421 Log.d(LOG_TAG, "handleSetCFResponse: ar.exception=" + ar.exception); in handleSetCFResponse()
427 obtainMessage(MESSAGE_GET_CF, msg.arg1, MESSAGE_SET_CF, ar.exception)); in handleSetCFResponse()
430 msg.arg1, MyHandler.MESSAGE_SET_CF, ar.exception)); in handleSetCFResponse()
DCdmaVoicePrivacySwitchPreference.java81 if (ar.exception != null) { in handleGetVPResponse()
82 if (DBG) Log.d(LOG_TAG, "handleGetVPResponse: ar.exception=" + ar.exception); in handleGetVPResponse()
97 if (ar.exception != null) { in handleSetVPResponse()
98 if (DBG) Log.d(LOG_TAG, "handleSetVPResponse: ar.exception=" + ar.exception); in handleSetVPResponse()
DCallBarringEditPreference.java329 if (ar.exception != null) { in handleGetCallBarringResponse()
331 Log.d(LOG_TAG, "handleGetCallBarringResponse: ar.exception=" + ar.exception); in handleGetCallBarringResponse()
333 pref.mTcpListener.onException(pref, (CommandException) ar.exception); in handleGetCallBarringResponse()
367 if (ar.exception != null || ar.userObj instanceof Throwable) { in handleSetCallBarringResponse()
369 Log.d(LOG_TAG, "handleSetCallBarringResponse: ar.exception=" + ar.exception); in handleSetCallBarringResponse()
379 ar.exception), in handleSetCallBarringResponse()
DGsmUmtsCallBarringOptions.java239 if (ar.exception != null) {
243 + ar.exception);
245 onException(mButtonChangePW, (CommandException) ar.exception);
260 if (ar.exception != null) {
263 + ar.exception);
265 onException(mButtonDisableAll, (CommandException) ar.exception);
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetSystemInterface.java255 } catch (RemoteException exception) { in getNetworkOperator()
256 Log.e(TAG, "getNetworkOperator() failed: " + exception.getMessage()); in getNetworkOperator()
257 exception.printStackTrace(); in getNetworkOperator()
276 } catch (RemoteException exception) { in getSubscriberNumber()
277 Log.e(TAG, "getSubscriberNumber() failed: " + exception.getMessage()); in getSubscriberNumber()
278 exception.printStackTrace(); in getSubscriberNumber()
299 } catch (RemoteException exception) { in listCurrentCalls()
300 Log.e(TAG, "listCurrentCalls() failed: " + exception.getMessage()); in listCurrentCalls()
301 exception.printStackTrace(); in listCurrentCalls()
/packages/apps/Bluetooth/jni/
DIUserManager.cc42 int32_t exception = reply.readExceptionCode(); in getCredentialOwnerProfile() local
43 if (exception != 0) { in getCredentialOwnerProfile()
44 ALOGE("%s: got exception (%d)\n", __func__, exception); in getCredentialOwnerProfile()
61 int32_t exception = reply.readExceptionCode(); in getProfileParentId() local
62 if (exception != 0) { in getProfileParentId()
63 ALOGE("%s: got exception (%d)\n", __func__, exception); in getProfileParentId()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/
DVendorServiceInfoTest.java35 public ExpectedException exception = ExpectedException.none(); field in VendorServiceInfoTest
39 exception.expect(IllegalArgumentException.class); in emptyString()
45 exception.expect(IllegalArgumentException.class); in multipleHashTags()
51 exception.expect(IllegalArgumentException.class); in unknownArg()
57 exception.expect(IllegalArgumentException.class); in invalidComponentName()
110 exception.expect(IllegalArgumentException.class); in triggerUnknown()
137 exception.expect(IllegalArgumentException.class); in userUnknown()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DEvenMoreAsserts.java39 public static <T extends Exception> void assertThrows(Class<T> exception, Runnable r) { in assertThrows() argument
40 assertThrows(null, exception, r); in assertThrows()
43 public static <T extends Exception> void assertThrows(String message, Class<T> exception, in assertThrows() argument
51 if (!exception.isInstance(caught)) { in assertThrows()
52 Assert.fail(appendUserMessage("Exception " + exception + " expected but " + in assertThrows()
58 "Exception " + exception + " expected but no exception was thrown.", in assertThrows()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DActionTestHelpers.java128 public final Exception exception; field in ActionTestHelpers.StubActionService.StubActionServiceCallLog
134 final Exception exception, in StubActionServiceCallLog() argument
139 this.exception = exception; in StubActionServiceCallLog()
170 final Exception exception) { in handleFailureFromBackgroundWorker() argument
171 mServiceCalls.add(new StubActionServiceCallLog(null, request, null, exception, null)); in handleFailureFromBackgroundWorker()
/packages/services/Telephony/src/com/android/phone/settings/
DVoicemailSettingsActivity.java758 if (ar.exception != null) { in handleForwardingSettingsReadResult()
759 error = ar.exception; in handleForwardingSettingsReadResult()
857 if (result.exception != null) {
859 result.exception.getMessage());
873 if (entry.getValue().exception == null) {
917 if (result.exception != null) {
919 result.exception.getMessage());
986 if (result != null && result.exception == null) { in switchToPreviousVoicemailProvider()
1137 Throwable exception = result.exception; in isFwdChangeSuccess() local
1138 if (exception != null) { in isFwdChangeSuccess()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DModel.java120 if (result.exception != null) { in update()
121 Log.e(TAG, "Error while loading directory contents", result.exception); in update()
123 notifyUpdateListeners(result.exception); in update()
292 public Update(Exception exception, boolean remoteActionsEnabled) { in Update() argument
293 assert(exception != null); in Update()
295 mException = exception; in Update()
/packages/apps/Dialer/java/com/android/dialer/calllog/database/
DCoalescer.java119 } catch (Exception exception) { in coalesceInternal()
144 String message = exception.getMessage(); in coalesceInternal()
146 && ((exception instanceof StaleDataException in coalesceInternal()
148 || (exception instanceof IllegalStateException in coalesceInternal()
150 throw new ExpectedCoalescerException(exception); in coalesceInternal()
153 throw exception; in coalesceInternal()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DContentProviderTask.java51 public final Exception exception; field in ContentProviderTask.Result
59 private Result(Exception exception, ContentProviderResult[] results) { in Result() argument
60 this.exception = exception; in Result()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DBackgroundWorkerService.java143 } catch (final Exception exception) { in doBackgroundWork()
145 LogUtil.e(TAG, "Error in background worker", exception); in doBackgroundWork()
146 if (!(exception instanceof DataModelException)) { in doBackgroundWork()
156 mHost.handleFailureFromBackgroundWorker(action, exception); in doBackgroundWork()
/packages/modules/NetworkStack/src/android/net/util/
DSharedLog.java124 public void e(@NonNull String msg, @Nullable Throwable exception) { in e() argument
125 if (exception == null) { in e()
129 Log.e(mTag, record(Category.ERROR, msg + ": " + exception.getMessage()), exception); in e()
/packages/services/Car/car-lib/src/android/car/hardware/power/
DCarPowerManager.java268 mFuture.whenComplete((result, exception) -> { in updateFuture() argument
269 if (exception != null && !(exception instanceof CancellationException)) { in updateFuture()
270 Log.e(TAG, "Exception occurred while waiting for future", exception); in updateFuture()
/packages/apps/Dialer/java/com/android/contacts/common/model/
DContact.java81 private Contact(Uri requestedUri, Contact.Status status, Exception exception) { in Contact() argument
82 if (status == Status.ERROR && exception == null) { in Contact()
86 mException = exception; in Contact()
189 public static Contact forError(Uri requestedUri, Exception exception) { in forError() argument
190 return new Contact(requestedUri, Status.ERROR, exception); in forError()
/packages/services/Telephony/src/com/android/phone/settings/fdn/
DFdnSetting.java250 if (ar.exception != null) {
251 if (ar.exception instanceof CommandException) {
255 ((CommandException) ar.exception).getCommandError();
286 if (ar.exception != null) {
287 if (ar.exception instanceof CommandException) {
291 CommandException ce = (CommandException) ar.exception;
/packages/services/Telephony/testapps/TelephonyManagerTestApp/src/com/android/phone/testapps/telephonymanagertestapp/
DCallingMethodActivity.java112 } catch (Exception exception) { in executeCallMethod()
113 Log.d(TelephonyManagerTestApp.TAG, "Exception: " + exception); in executeCallMethod()
116 exception.printStackTrace(stack); in executeCallMethod()
117 mReturnValue.setText("Exception " + exception.getMessage() + "\n" + s.toString()); in executeCallMethod()
/packages/services/Car/service/src/com/android/car/garagemode/
DGarageMode.java198 mFuture.whenComplete((result, exception) -> { in updateFuture() argument
199 if (exception == null) { in updateFuture()
201 } else if (exception instanceof CancellationException) { in updateFuture()
204 LOG.e("GarageMode ended due to exception: ", exception); in updateFuture()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DPersonItemData.java32 void onPersonDataFailed(PersonItemData data, Exception exception); in onPersonDataFailed() argument
57 protected void notifyDataFailed(final Exception exception) { in notifyDataFailed() argument
59 mListener.onPersonDataFailed(this, exception); in notifyDataFailed()

123456