Home
last modified time | relevance | path

Searched refs:AsyncResult (Results 1 – 25 of 100) sorted by relevance

1234

/frameworks/base/core/java/android/os/
DAsyncResult.java22 public class AsyncResult class
35 public static AsyncResult
38 AsyncResult ret; in forMessage()
40 ret = new AsyncResult (m.obj, r, ex); in forMessage()
48 public static AsyncResult
51 AsyncResult ret; in forMessage()
53 ret = new AsyncResult (m.obj, null, null); in forMessage()
62 AsyncResult (Object uo, Object r, Throwable ex) in AsyncResult() method in AsyncResult
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccCarrierPrivilegeRulesTest.java27 import android.os.AsyncResult;
108 AsyncResult ar = new AsyncResult(null, new int[]{0}, null); in testHelper()
120 AsyncResult ar = new AsyncResult(null, iir, null); in testHelper()
318 AsyncResult ar = new AsyncResult(null, new int[]{0}, null); in testAID_OnlyARAM()
323 AsyncResult ar = new AsyncResult(null, null, null); in testAID_OnlyARAM()
336 AsyncResult ar = new AsyncResult(null, iir, null); in testAID_OnlyARAM()
380 AsyncResult ar = new AsyncResult(null, new int[]{0}, null); in testAID_OnlyARAD()
385 AsyncResult ar = new AsyncResult(null, null, null); in testAID_OnlyARAD()
399 AsyncResult ar = new AsyncResult(null, iir, null); in testAID_OnlyARAD()
442 AsyncResult ar = new AsyncResult(null, new int[]{0}, null); in testAID_BothARAMandARAD()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRadioIndication.java87 import android.os.AsyncResult;
163 mRil.mGsmSmsRegistrant.notifyRegistrant(new AsyncResult(null, sms, null)); in newSms()
174 mRil.mSmsStatusRegistrant.notifyRegistrant(new AsyncResult(null, pduArray, null)); in newSmsStatusReport()
184 mRil.mSmsOnSimRegistrant.notifyRegistrant(new AsyncResult(null, recordNumber, null)); in newSmsOnSim()
198 mRil.mUSSDRegistrant.notifyRegistrant(new AsyncResult (null, resp, null)); in onUssd()
219 mRil.mNITZTimeRegistrant.notifyRegistrant(new AsyncResult (null, result, null)); in nitzTimeReceived()
236 mRil.mSignalStrengthRegistrant.notifyRegistrant(new AsyncResult (null, ss, null)); in currentSignalStrength()
252 mRil.mLceInfoRegistrants.notifyRegistrants(new AsyncResult(null, response, null)); in currentLinkCapacityEstimate()
268 mRil.mSignalStrengthRegistrant.notifyRegistrant(new AsyncResult(null, ss, null)); in currentSignalStrength_1_2()
302 new AsyncResult(null, response, null)); in currentPhysicalChannelConfigs()
[all …]
DTelephonyDevController.java23 import android.os.AsyncResult;
115 AsyncResult ar = (AsyncResult) sRilHardwareConfig.obj; in registerRIL()
132 AsyncResult ar; in handleMessage()
136 ar = (AsyncResult) msg.obj; in handleMessage()
168 private static void handleGetHardwareConfigChanged(AsyncResult ar) { in handleGetHardwareConfigChanged()
DIccPhoneBookInterfaceManager.java20 import android.os.AsyncResult;
64 AsyncResult ar;
68 ar = (AsyncResult) msg.obj;
83 ar = (AsyncResult) msg.obj;
90 ar = (AsyncResult)msg.obj;
104 private void notifyPending(AsyncResult ar) {
DNetworkScanRequestTracker.java24 import android.os.AsyncResult;
71 mScheduler.startScanDone((AsyncResult) msg.obj);
75 mScheduler.receiveResult((AsyncResult) msg.obj);
83 mScheduler.stopScanDone((AsyncResult) msg.obj);
91 mScheduler.interruptScanDone((AsyncResult) msg.obj);
101 private void logEmptyResultOrException(AsyncResult ar) { in logEmptyResultOrException()
343 private synchronized void startScanDone(AsyncResult ar) { in startScanDone()
369 private void receiveResult(AsyncResult ar) { in receiveResult()
418 private void stopScanDone(AsyncResult ar) { in stopScanDone()
449 private void interruptScanDone(AsyncResult ar) { in interruptScanDone()
DProxyController.java21 import android.os.AsyncResult;
337 AsyncResult ar = (AsyncResult)msg.obj; in onStartRadioCapabilityResponse()
350 RadioCapability rc = (RadioCapability) ((AsyncResult) msg.obj).result; in onStartRadioCapabilityResponse()
358 if (((AsyncResult) msg.obj).exception != null) { in onStartRadioCapabilityResponse()
407 RadioCapability rc = (RadioCapability) ((AsyncResult) msg.obj).result; in onApplyRadioCapabilityResponse()
414 if (((AsyncResult) msg.obj).exception != null) { in onApplyRadioCapabilityResponse()
432 RadioCapability rc = (RadioCapability) ((AsyncResult) msg.obj).result; in onNotificationRadioCapabilityChanged()
448 if ((((AsyncResult) msg.obj).exception != null) || in onNotificationRadioCapabilityChanged()
475 RadioCapability rc = (RadioCapability) ((AsyncResult) msg.obj).result; in onFinishRadioCapabilityResponse()
DIccCard.java19 import android.os.AsyncResult;
270 AsyncResult ret = AsyncResult.forMessage(onComplete); in sendMessageWithCardAbsentException()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DAdnRecordCache.java19 import android.os.AsyncResult;
81 AsyncResult ar = new AsyncResult(null, null, new RuntimeException("AdnCache reset")); in clearWaiters()
125 AsyncResult.forMessage(response).exception = e; in sendErrorResponse()
264 AsyncResult.forMessage(response).result = result; in requestLoadAllAdnLike()
295 AsyncResult.forMessage(response).exception in requestLoadAllAdnLike()
311 notifyWaiters(ArrayList<Message> waiters, AsyncResult ar) { in notifyWaiters()
320 AsyncResult.forMessage(waiter, ar.result, ar.exception); in notifyWaiters()
330 AsyncResult ar; in handleMessage()
336 ar = (AsyncResult) msg.obj; in handleMessage()
349 ar = (AsyncResult)msg.obj; in handleMessage()
[all …]
DAdnRecordLoader.java21 import android.os.AsyncResult;
145 AsyncResult ar; in handleMessage()
152 ar = (AsyncResult)(msg.obj); in handleMessage()
186 ar = (AsyncResult)(msg.obj); in handleMessage()
195 ar = (AsyncResult)(msg.obj); in handleMessage()
226 ar = (AsyncResult)(msg.obj); in handleMessage()
254 ar = (AsyncResult)(msg.obj); in handleMessage()
285 AsyncResult.forMessage(mUserResponse) in handleMessage()
296 AsyncResult.forMessage(mUserResponse).result in handleMessage()
DUiccPkcs15.java19 import android.os.AsyncResult;
102 AsyncResult ar = (AsyncResult) msg.obj; in handleMessage()
105 AsyncResult.forMessage(mCallback, null, ar.exception); in handleMessage()
120 AsyncResult.forMessage(mCallback, result, (result == null) ? in handleMessage()
147 AsyncResult ar; in handleMessage()
151 ar = (AsyncResult) msg.obj; in handleMessage()
155 AsyncResult.forMessage(mCallback, null, null); in handleMessage()
158 AsyncResult.forMessage(mCallback, null, ar.exception); in handleMessage()
195 AsyncResult ar = (AsyncResult) msg.obj; in handleMessage()
DSIMRecords.java21 import android.os.AsyncResult;
380 AsyncResult.forMessage((onComplete)).exception = in setVoiceMailNumber()
404 AsyncResult.forMessage((onComplete)).exception = in setVoiceMailNumber()
632 AsyncResult ar; in handleMessage()
660 ar = (AsyncResult) msg.obj; in handleMessage()
725 ar = (AsyncResult) msg.obj; in handleMessage()
770 ar = (AsyncResult) msg.obj; in handleMessage()
818 ar = (AsyncResult) msg.obj; in handleMessage()
835 ar = (AsyncResult) msg.obj; in handleMessage()
844 AsyncResult.forMessage(((Message) ar.userObj)).exception = ar.exception; in handleMessage()
[all …]
DIsimUiccRecords.java21 import android.os.AsyncResult;
102 AsyncResult ar; in handleMessage()
123 ar = (AsyncResult)msg.obj; in handleMessage()
195 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded()
206 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded()
223 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded()
234 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded()
244 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded()
297 mLockedRecordsLoadedRegistrants.notifyRegistrants(new AsyncResult(null, null, null)); in onLockedAllRecordsLoaded()
300 new AsyncResult(null, null, null)); in onLockedAllRecordsLoaded()
[all …]
DIccFileHandler.java400 AsyncResult.forMessage(response, result, ex); in sendResult()
405 private boolean processException(Message response, AsyncResult ar) { in processException()
426 AsyncResult ar; in handleMessage()
441 ar = (AsyncResult)msg.obj; in handleMessage()
446 if (processException(response, (AsyncResult) msg.obj)) { in handleMessage()
468 ar = (AsyncResult)msg.obj; in handleMessage()
473 if (processException(response, (AsyncResult) msg.obj)) { in handleMessage()
510 ar = (AsyncResult)msg.obj; in handleMessage()
514 if (processException(response, (AsyncResult) msg.obj)) { in handleMessage()
547 ar = (AsyncResult)msg.obj; in handleMessage()
[all …]
DUiccCardApplication.java20 import android.os.AsyncResult;
228 private void onQueryFdnEnabled(AsyncResult ar) { in onQueryFdnEnabled()
253 private void onChangeFdnDone(AsyncResult ar) { in onChangeFdnDone()
267 AsyncResult.forMessage(response).exception = ar.exception; in onChangeFdnDone()
283 private void onQueryFacilityLock(AsyncResult ar) { in onQueryFacilityLock()
333 private void onChangeFacilityLock(AsyncResult ar) { in onChangeFacilityLock()
346 AsyncResult.forMessage(response).exception = ar.exception; in onChangeFacilityLock()
355 private int parsePinPukErrorResult(AsyncResult ar) { in parsePinPukErrorResult()
373 AsyncResult ar;
388 ar = (AsyncResult)msg.obj;
[all …]
DRuimRecords.java23 import android.os.AsyncResult;
185 AsyncResult.forMessage((onComplete)).exception = in setVoiceMailNumber()
247 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded()
261 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded()
289 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded()
362 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded()
379 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded()
416 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded()
449 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded()
454 private void onGetCSimEprlDone(AsyncResult ar) { in onGetCSimEprlDone()
[all …]
DUiccController.java21 import android.os.AsyncResult;
378 AsyncResult ar = (AsyncResult)msg.obj; in handleMessage()
420 mIccChangedRegistrants.notifyRegistrants(new AsyncResult(null, phoneId, null)); in handleMessage()
434 AsyncResult ar; in getCiIndex()
445 } else if(msg.obj != null && msg.obj instanceof AsyncResult) { in getCiIndex()
446 ar = (AsyncResult)msg.obj; in getCiIndex()
475 private synchronized void onGetIccCardStatusDone(AsyncResult ar, Integer index) { in onGetIccCardStatusDone()
511 mIccChangedRegistrants.notifyRegistrants(new AsyncResult(null, index, null)); in onGetIccCardStatusDone()
514 private synchronized void onGetSlotStatusDone(AsyncResult ar) { in onGetSlotStatusDone()
617 private void onSimRefresh(AsyncResult ar, Integer index) { in onSimRefresh()
DIccRecords.java20 import android.os.AsyncResult;
200 void onRecordLoaded(AsyncResult ar); in onRecordLoaded()
309 r.notifyRegistrant(new AsyncResult(null, null, null)); in registerForRecordsLoaded()
330 r.notifyRegistrant(new AsyncResult(null, null, null)); in registerForRecordsOverride()
346 r.notifyRegistrant(new AsyncResult(null, null, null)); in registerForLockedRecordsLoaded()
369 r.notifyRegistrant(new AsyncResult(null, null, null)); in registerForNetworkLockedRecordsLoaded()
389 r.notifyRegistrant(new AsyncResult(null, null, null)); in registerForImsiReady()
405 r.notifyRegistrant(new AsyncResult(null, null, null)); in registerForSpnUpdate()
521 AsyncResult.forMessage(onComplete).exception = in setMsisdnNumber()
643 AsyncResult ar; in handleMessage()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/async/
DAsyncMessageInvocation.java19 import android.os.AsyncResult;
53 AsyncResult result = (AsyncResult) msg.obj; in handleMessage()
71 protected abstract Response parseResult(AsyncResult result) throws Throwable; in parseResult()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierActionAgentTest.java29 import android.os.AsyncResult;
121 assertEquals(false, ((AsyncResult) message.getValue().obj).result); in testCarrierActionResetOnAPM()
124 assertEquals(false, ((AsyncResult) message.getValue().obj).result); in testCarrierActionResetOnAPM()
135 assertEquals(true, ((AsyncResult) message.getValue().obj).result); in testCarrierActionResetOnAPM()
139 assertEquals(true, ((AsyncResult) message.getValue().obj).result); in testCarrierActionResetOnAPM()
164 assertEquals(false, ((AsyncResult) message.getValue().obj).result); in testCarrierActionResetOnAPNChange()
168 assertEquals(false, ((AsyncResult) message.getValue().obj).result); in testCarrierActionResetOnAPNChange()
177 assertEquals(true, ((AsyncResult) message.getValue().obj).result); in testCarrierActionResetOnAPNChange()
181 assertEquals(true, ((AsyncResult) message.getValue().obj).result); in testCarrierActionResetOnAPNChange()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneBase.java21 import android.os.AsyncResult;
83 AsyncResult result = new AsyncResult(null, Boolean.TRUE, null); in startRingbackTone()
89 AsyncResult result = new AsyncResult(null, Boolean.FALSE, null); in stopRingbackTone()
111 mOnHoldRegistrants.notifyRegistrants(new AsyncResult(null, result, null)); in startOnHoldTone()
121 mOnHoldRegistrants.notifyRegistrants(new AsyncResult(null, result, null)); in stopOnHoldTone()
135 AsyncResult result = new AsyncResult(null, Integer.valueOf(mode), null); in onTtyModeReceived()
378 AsyncResult.forMessage(onComplete, null, null); in setVoiceMailNumber()
395 AsyncResult.forMessage(onComplete, null, null); in getOutgoingCallerIdDisplay()
403 AsyncResult.forMessage(onComplete, null, null); in setOutgoingCallerIdDisplay()
409 AsyncResult.forMessage(onComplete, null, null); in getCallWaiting()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaSubscriptionSourceManager.java24 import android.os.AsyncResult;
111 AsyncResult ar; in handleMessage()
117 ar = (AsyncResult) msg.obj; in handleMessage()
127 ar = (AsyncResult)msg.obj; in handleMessage()
185 private void handleGetCdmaSubscriptionSource(AsyncResult ar) { in handleGetCdmaSubscriptionSource()
195 mCdmaSubscriptionSourceChangedRegistrants.notifyRegistrants(new AsyncResult(null, in handleGetCdmaSubscriptionSource()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGsmInboundSmsHandlerTest.java42 import android.os.AsyncResult;
238 new AsyncResult(null, mSmsMessage, null)); in testNewSms()
245 new AsyncResult(null, mSmsMessage, null)); in testNewSms()
262 new AsyncResult(null, mSmsMessage, null)); in testNewSmsFromBlockedNumber_noBroadcastsSent()
310 mGsmInboundSmsHandler.sendMessage(InboundSmsHandler.EVENT_INJECT_SMS, new AsyncResult(null, in testInjectSms()
317 mGsmInboundSmsHandler.sendMessage(InboundSmsHandler.EVENT_INJECT_SMS, new AsyncResult(null, in testInjectSms()
450 mGsmInboundSmsHandler.sendMessage(InboundSmsHandler.EVENT_NEW_SMS, new AsyncResult(null, in testMultiPartSmsWithIncompleteWAP()
463 mGsmInboundSmsHandler.sendMessage(InboundSmsHandler.EVENT_NEW_SMS, new AsyncResult(null, in testMultiPartSmsWithIncompleteWAP()
478 mGsmInboundSmsHandler.sendMessage(InboundSmsHandler.EVENT_NEW_SMS, new AsyncResult(null, in testMultiPartSmsWithIncompleteWAP()
507 mGsmInboundSmsHandler.sendMessage(InboundSmsHandler.EVENT_NEW_SMS, new AsyncResult(null, in testMultiPartSms()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipPhoneBase.java21 import android.os.AsyncResult;
88 AsyncResult result = new AsyncResult(null, Boolean.TRUE, null); in startRingbackTone()
94 AsyncResult result = new AsyncResult(null, Boolean.FALSE, null); in stopRingbackTone()
335 AsyncResult.forMessage(onComplete, null, null); in setVoiceMailNumber()
352 AsyncResult.forMessage(onComplete, null, null); in getOutgoingCallerIdDisplay()
360 AsyncResult.forMessage(onComplete, null, null); in setOutgoingCallerIdDisplay()
366 AsyncResult.forMessage(onComplete, null, null); in getCallWaiting()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/apdu/
DLogicalChannelMocker.java25 import android.os.AsyncResult;
53 AsyncResult.forMessage(msg, responseInts, exception); in mockOpenLogicalChannelResponse()
87 AsyncResult.forMessage(msg, result, exception); in mockSendToLogicalChannel()
99 AsyncResult.forMessage(msg); in mockCloseLogicalChannel()

1234