Home
last modified time | relevance | path

Searched refs:ar (Results 1 – 25 of 118) sorted by relevance

12345

/frameworks/wilhelm/src/android/
DAudioRecorder_to_android.cpp32 SLresult audioRecorder_setPreset(CAudioRecorder* ar, SLuint32 recordPreset) { in audioRecorder_setPreset() argument
58 if (SL_OBJECT_STATE_UNREALIZED != ar->mObject.mState) { in audioRecorder_setPreset()
62 ar->mRecordSource = newRecordSource; in audioRecorder_setPreset()
69 SLresult audioRecorder_getPreset(CAudioRecorder* ar, SLuint32* pPreset) { in audioRecorder_getPreset() argument
72 switch (ar->mRecordSource) { in audioRecorder_getPreset()
101 void audioRecorder_handleNewPos_lockRecord(CAudioRecorder* ar) { in audioRecorder_handleNewPos_lockRecord() argument
106 interface_lock_shared(&ar->mRecord); in audioRecorder_handleNewPos_lockRecord()
107 callback = ar->mRecord.mCallback; in audioRecorder_handleNewPos_lockRecord()
108 callbackPContext = ar->mRecord.mContext; in audioRecorder_handleNewPos_lockRecord()
109 interface_unlock_shared(&ar->mRecord); in audioRecorder_handleNewPos_lockRecord()
[all …]
DAudioRecorder_to_android.h20 extern SLresult android_audioRecorder_checkSourceSink(CAudioRecorder* ar);
22 extern SLresult android_audioRecorder_create(CAudioRecorder* ar);
31 extern SLresult android_audioRecorder_setConfig(CAudioRecorder* ar, const SLchar *configKey,
43 extern SLresult android_audioRecorder_getConfig(CAudioRecorder* ar, const SLchar *configKey,
46 extern SLresult android_audioRecorder_realize(CAudioRecorder* ar, SLboolean async);
48 extern void android_audioRecorder_preDestroy(CAudioRecorder* ar);
50 extern void android_audioRecorder_destroy(CAudioRecorder* ar);
56 extern void android_audioRecorder_setRecordState(CAudioRecorder* ar, SLuint32 state);
58 extern void android_audioRecorder_useRecordEventMask(CAudioRecorder *ar);
60 extern void android_audioRecorder_getPosition(CAudioRecorder *ar, SLmillisecond *pPosMsec);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DSIMRecords.java613 AsyncResult ar; in handleMessage() local
639 ar = (AsyncResult)msg.obj; in handleMessage()
641 if (ar.exception != null) { in handleMessage()
642 loge("Exception querying IMSI, Exception:" + ar.exception); in handleMessage()
646 mImsi = (String) ar.result; in handleMessage()
696 ar = (AsyncResult)msg.obj; in handleMessage()
697 data = (byte[]) ar.result; in handleMessage()
700 if (ar.exception == null) { in handleMessage()
741 ar = (AsyncResult)msg.obj; in handleMessage()
743 if (ar.exception != null) { in handleMessage()
[all …]
DAdnRecordLoader.java145 AsyncResult ar; in handleMessage() local
152 ar = (AsyncResult)(msg.obj); in handleMessage()
153 adn = (AdnRecord)(ar.userObj); in handleMessage()
155 if (ar.exception != null) { in handleMessage()
157 ar.exception); in handleMessage()
160 int[] recordSize = (int[])ar.result; in handleMessage()
168 ar.exception); in handleMessage()
175 ar.exception); in handleMessage()
186 ar = (AsyncResult)(msg.obj); in handleMessage()
187 if (ar.exception != null) { in handleMessage()
[all …]
DUiccCardApplication.java225 private void onQueryFdnEnabled(AsyncResult ar) { in onQueryFdnEnabled() argument
227 if (ar.exception != null) { in onQueryFdnEnabled()
228 if (DBG) log("Error in querying facility lock:" + ar.exception); in onQueryFdnEnabled()
232 int[] result = (int[])ar.result; in onQueryFdnEnabled()
250 private void onChangeFdnDone(AsyncResult ar) { in onChangeFdnDone() argument
254 if (ar.exception == null) { in onChangeFdnDone()
259 attemptsRemaining = parsePinPukErrorResult(ar); in onChangeFdnDone()
260 loge("Error change facility fdn with exception " + ar.exception); in onChangeFdnDone()
262 Message response = (Message)ar.userObj; in onChangeFdnDone()
264 AsyncResult.forMessage(response).exception = ar.exception; in onChangeFdnDone()
[all …]
DRuimRecords.java241 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
242 mEFpl = (byte[]) ar.result; in onRecordLoaded()
255 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
256 mEFli = (byte[]) ar.result; in onRecordLoaded()
283 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
284 byte[] data = (byte[]) ar.result; in onRecordLoaded()
356 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
357 byte[] data = (byte[]) ar.result; in onRecordLoaded()
373 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
374 byte[] data = (byte[]) ar.result; in onRecordLoaded()
[all …]
DIsimUiccRecords.java107 AsyncResult ar; in handleMessage() local
123 ar = (AsyncResult)msg.obj; in handleMessage()
124 loge("ISim REFRESH(EVENT_ISIM_REFRESH) with exception: " + ar.exception); in handleMessage()
125 if (ar.exception == null) { in handleMessage()
129 handleIsimRefresh((IccRefreshResponse)ar.result); in handleMessage()
134 ar = (AsyncResult)msg.obj; in handleMessage()
136 if (ar.exception != null) { in handleMessage()
137 log("Exception ISIM AKA: " + ar.exception); in handleMessage()
140 auth_rsp = (String)ar.result; in handleMessage()
204 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
[all …]
DAdnRecordCache.java81 AsyncResult ar = new AsyncResult(null, null, new RuntimeException("AdnCache reset")); in clearWaiters() local
82 notifyWaiters(waiters, ar); in clearWaiters()
305 notifyWaiters(ArrayList<Message> waiters, AsyncResult ar) { in notifyWaiters() argument
314 AsyncResult.forMessage(waiter, ar.result, ar.exception); in notifyWaiters()
324 AsyncResult ar; in handleMessage() local
330 ar = (AsyncResult) msg.obj; in handleMessage()
337 if (ar.exception == null) { in handleMessage()
338 mAdnLikeFiles.put(efid, (ArrayList<AdnRecord>) ar.result); in handleMessage()
340 notifyWaiters(waiters, ar); in handleMessage()
343 ar = (AsyncResult)msg.obj; in handleMessage()
[all …]
DIccFileHandler.java403 private boolean processException(Message response, AsyncResult ar) { in processException() argument
406 IccIoResult result = (IccIoResult) ar.result; in processException()
407 if (ar.exception != null) { in processException()
408 sendResult(response, null, ar.exception); in processException()
424 AsyncResult ar; in handleMessage() local
439 ar = (AsyncResult)msg.obj; in handleMessage()
440 lc = (LoadLinearFixedContext) ar.userObj; in handleMessage()
441 result = (IccIoResult) ar.result; in handleMessage()
466 ar = (AsyncResult)msg.obj; in handleMessage()
467 lc = (LoadLinearFixedContext) ar.userObj; in handleMessage()
[all …]
DUiccController.java212 AsyncResult ar = (AsyncResult)msg.obj; in handleMessage() local
220 onGetIccCardStatusDone(ar, index); in handleMessage()
232 onSimRefresh(ar, index); in handleMessage()
241 AsyncResult ar; in getCiIndex() local
253 ar = (AsyncResult)msg.obj; in getCiIndex()
254 if (ar.userObj != null && ar.userObj instanceof Integer) { in getCiIndex()
255 index = (Integer)ar.userObj; in getCiIndex()
275 private synchronized void onGetIccCardStatusDone(AsyncResult ar, Integer index) { in onGetIccCardStatusDone() argument
276 if (ar.exception != null) { in onGetIccCardStatusDone()
279 + "never return an error", ar.exception); in onGetIccCardStatusDone()
[all …]
DUiccCarrierPrivilegeRules.java271 for (AccessRule ar : mAccessRules) { in getCarrierPrivilegeStatus()
272 if (ar.matches(certHash, packageName) || ar.matches(certHash256, packageName)) { in getCarrierPrivilegeStatus()
375 AsyncResult ar; in handleMessage() local
381 ar = (AsyncResult) msg.obj; in handleMessage()
382 if (ar.exception == null && ar.result != null) { in handleMessage()
383 mChannelId = ((int[]) ar.result)[0]; in handleMessage()
389 if (ar.exception instanceof CommandException && mRetryCount < MAX_RETRY && in handleMessage()
390 ((CommandException) (ar.exception)).getCommandError() == in handleMessage()
396 updateState(STATE_ERROR, "Error opening channel: " + ar.exception); in handleMessage()
403 ar = (AsyncResult) msg.obj; in handleMessage()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaSubscriptionSourceManager.java112 AsyncResult ar; in handleMessage() local
118 ar = (AsyncResult) msg.obj; in handleMessage()
119 handleGetCdmaSubscriptionSource(ar); in handleMessage()
128 ar = (AsyncResult)msg.obj; in handleMessage()
129 if (ar.exception == null) { in handleMessage()
130 int actStatus = ((int[])ar.result)[0]; in handleMessage()
140 logw("EVENT_SUBSCRIPTION_STATUS_CHANGED, Exception:" + ar.exception); in handleMessage()
186 private void handleGetCdmaSubscriptionSource(AsyncResult ar) { in handleGetCdmaSubscriptionSource() argument
187 if ((ar.exception == null) && (ar.result != null)) { in handleGetCdmaSubscriptionSource()
188 int newSubscriptionSource = ((int[]) ar.result)[0]; in handleGetCdmaSubscriptionSource()
[all …]
DCdmaServiceStateTracker.java285 AsyncResult ar; in handleMessage() local
352 ar = (AsyncResult) msg.obj; in handleMessage()
353 onSignalStrengthResult(ar, false); in handleMessage()
359 ar = (AsyncResult) msg.obj; in handleMessage()
361 if (ar.exception == null) { in handleMessage()
362 String states[] = (String[])ar.result; in handleMessage()
409 ar = (AsyncResult) msg.obj; in handleMessage()
410 handlePollStateResult(msg.what, ar); in handleMessage()
414 ar = (AsyncResult) msg.obj; in handleMessage()
416 if (ar.exception == null) { in handleMessage()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DIccPhoneBookInterfaceManager.java63 AsyncResult ar;
67 ar = (AsyncResult) msg.obj;
69 if (ar.exception == null) {
70 mRecordSize = (int[])ar.result;
78 notifyPending(ar);
82 ar = (AsyncResult) msg.obj;
84 mSuccess = (ar.exception == null);
85 notifyPending(ar);
89 ar = (AsyncResult)msg.obj;
91 if (ar.exception == null) {
[all …]
DTelephonyDevController.java115 AsyncResult ar = (AsyncResult) sRilHardwareConfig.obj; in registerRIL() local
116 if (ar.exception == null) { in registerRIL()
117 handleGetHardwareConfigChanged(ar); in registerRIL()
132 AsyncResult ar; in handleMessage() local
136 ar = (AsyncResult) msg.obj; in handleMessage()
137 handleGetHardwareConfigChanged(ar); in handleMessage()
167 private static void handleGetHardwareConfigChanged(AsyncResult ar) { in handleGetHardwareConfigChanged() argument
168 if ((ar.exception == null) && (ar.result != null)) { in handleGetHardwareConfigChanged()
169 List hwcfg = (List)ar.result; in handleGetHardwareConfigChanged()
DPhoneBase.java558 AsyncResult ar; in handleMessage() local
581 ar = (AsyncResult)msg.obj; in handleMessage()
582 if (ar.exception == null) { in handleMessage()
608 ar = (AsyncResult) msg.obj; in handleMessage()
609 if ((ar.exception == null) && (ar.result != null)) { in handleMessage()
610 String dialString = (String) ar.result; in handleMessage()
621 ar = (AsyncResult)msg.obj; in handleMessage()
622 if (ar.exception == null) { in handleMessage()
623 handleSrvccStateChanged((int[]) ar.result); in handleMessage()
625 Rlog.e(LOG_TAG, "Srvcc exception: " + ar.exception); in handleMessage()
[all …]
/frameworks/compile/mclinker/lib/LD/
DGroupReader.cpp78 Archive* ar = new Archive(**input, pBuilder); in readGroup() local
79 ArchiveListEntry* entry = new ArchiveListEntry(*ar, input); in readGroup()
82 m_ArchiveReader.readArchive(pConfig, *ar); in readGroup()
83 cur_obj_cnt += ar->numOfObjectMember(); in readGroup()
119 Archive& ar = (*it)->archive; in readGroup() local
121 if (ar.getARFile().attribute()->isWholeArchive()) in readGroup()
123 m_ArchiveReader.readArchive(pConfig, ar); in readGroup()
124 cur_obj_cnt += ar.numOfObjectMember(); in readGroup()
131 Archive& ar = (*it)->archive; in readGroup() local
132 if (ar.numOfObjectMember() > 0) { in readGroup()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneMmiCode.java977 AsyncResult ar; in handleMessage() local
981 ar = (AsyncResult) (msg.obj); in handleMessage()
983 onSetComplete(msg, ar); in handleMessage()
987 ar = (AsyncResult) (msg.obj); in handleMessage()
993 if ((ar.exception == null) && (msg.arg1 == 1)) { in handleMessage()
1000 onSetComplete(msg, ar); in handleMessage()
1004 ar = (AsyncResult) (msg.obj); in handleMessage()
1005 onQueryCfComplete(ar); in handleMessage()
1009 ar = (AsyncResult) (msg.obj); in handleMessage()
1010 onQueryComplete(ar); in handleMessage()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DUsimPhoneBookManager.java335 AsyncResult ar; in handleMessage() local
339 ar = (AsyncResult) msg.obj; in handleMessage()
340 if (ar.exception == null) { in handleMessage()
341 createPbrFile((ArrayList<byte[]>)ar.result); in handleMessage()
349 ar = (AsyncResult) msg.obj; in handleMessage()
350 if (ar.exception == null) { in handleMessage()
351 mPhoneBookRecords.addAll((ArrayList<AdnRecord>)ar.result); in handleMessage()
359 ar = (AsyncResult) msg.obj; in handleMessage()
360 if (ar.exception == null) { in handleMessage()
361 mIapFileRecord = ((ArrayList<byte[]>)ar.result); in handleMessage()
[all …]
DUsimDataDownloadHandler.java282 AsyncResult ar; in handleMessage() local
290 ar = (AsyncResult) msg.obj; in handleMessage()
292 if (ar.exception != null) { in handleMessage()
293 Rlog.e(TAG, "UICC Send Envelope failure, exception: " + ar.exception); in handleMessage()
299 int[] dcsPid = (int[]) ar.userObj; in handleMessage()
300 sendSmsAckForEnvelopeResponse((IccIoResult) ar.result, dcsPid[0], dcsPid[1]); in handleMessage()
304 ar = (AsyncResult) msg.obj; in handleMessage()
305 if (ar.exception == null) { in handleMessage()
309 Rlog.d(TAG, "Failed to write SMS-PP message to UICC", ar.exception); in handleMessage()
DGsmMmiCode.java1074 AsyncResult ar; in handleMessage() local
1078 ar = (AsyncResult) (msg.obj); in handleMessage()
1080 onSetComplete(msg, ar); in handleMessage()
1084 ar = (AsyncResult) (msg.obj); in handleMessage()
1090 if ((ar.exception == null) && (msg.arg1 == 1)) { in handleMessage()
1097 onSetComplete(msg, ar); in handleMessage()
1101 ar = (AsyncResult) (msg.obj); in handleMessage()
1102 onGetClirComplete(ar); in handleMessage()
1106 ar = (AsyncResult) (msg.obj); in handleMessage()
1107 onQueryCfComplete(ar); in handleMessage()
[all …]
DGSMPhone.java1427 AsyncResult ar; in handleMessage() local
1485 ar = (AsyncResult)msg.obj; in handleMessage()
1487 if (ar.exception != null) { in handleMessage()
1491 if (LOCAL_DEBUG) Rlog.d(LOG_TAG, "Baseband version: " + ar.result); in handleMessage()
1493 (String)ar.result); in handleMessage()
1497 ar = (AsyncResult)msg.obj; in handleMessage()
1499 if (ar.exception != null) { in handleMessage()
1503 mImei = (String)ar.result; in handleMessage()
1507 ar = (AsyncResult)msg.obj; in handleMessage()
1509 if (ar.exception != null) { in handleMessage()
[all …]
DGsmServiceStateTracker.java283 AsyncResult ar; in handleMessage() local
327 ar = (AsyncResult) msg.obj; in handleMessage()
328 onSignalStrengthResult(ar, true); in handleMessage()
334 ar = (AsyncResult) msg.obj; in handleMessage()
336 if (ar.exception == null) { in handleMessage()
337 String states[] = (String[])ar.result; in handleMessage()
365 ar = (AsyncResult) msg.obj; in handleMessage()
367 handlePollStateResult(msg.what, ar); in handleMessage()
377 ar = (AsyncResult) msg.obj; in handleMessage()
379 String nitzString = (String)((Object[])ar.result)[0]; in handleMessage()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGSMPhoneTest.java.broken140 AsyncResult ar;
311 ar = (AsyncResult) msg.obj;
312 cn = (Connection) ar.result;
603 ar = (AsyncResult) msg.obj;
604 cn = (Connection) ar.result;
1363 AsyncResult ar;
1370 ar = (AsyncResult) (msg.obj);
1371 cn = (Connection) (ar.result);
1379 ar = (AsyncResult) (msg.obj);
1380 assertEquals(Connection.PostDialState.STARTED, ar.userObj);
[all …]
/frameworks/base/core/java/com/android/internal/os/
DZygoteInit.java336 TypedArray ar = mResources.obtainTypedArray( in preloadResources() local
338 int N = preloadDrawables(runtime, ar); in preloadResources()
339 ar.recycle(); in preloadResources()
344 ar = mResources.obtainTypedArray( in preloadResources()
346 N = preloadColorStateLists(runtime, ar); in preloadResources()
347 ar.recycle(); in preloadResources()
357 private static int preloadColorStateLists(VMRuntime runtime, TypedArray ar) { in preloadColorStateLists() argument
358 int N = ar.length(); in preloadColorStateLists()
360 int id = ar.getResourceId(i, 0); in preloadColorStateLists()
369 + " (" + ar.getString(i) + ")"); in preloadColorStateLists()
[all …]

12345