Home
last modified time | relevance | path

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

1234

/frameworks/wilhelm/src/android/
DAudioRecorder_to_android.cpp36 SLresult audioRecorder_setPreset(CAudioRecorder* ar, SLuint32 recordPreset) { in audioRecorder_setPreset() argument
65 if (SL_OBJECT_STATE_UNREALIZED != ar->mObject.mState) { in audioRecorder_setPreset()
69 ar->mRecordSource = newRecordSource; in audioRecorder_setPreset()
77 SLresult audioRecorder_setPerformanceMode(CAudioRecorder* ar, SLuint32 mode) { in audioRecorder_setPerformanceMode() argument
103 if (SL_OBJECT_STATE_UNREALIZED != ar->mObject.mState) { in audioRecorder_setPerformanceMode()
107 ar->mPerformanceMode = perfMode; in audioRecorder_setPerformanceMode()
114 SLresult audioRecorder_getPreset(CAudioRecorder* ar, SLuint32* pPreset) { in audioRecorder_getPreset() argument
117 switch (ar->mRecordSource) { in audioRecorder_getPreset()
150 SLresult audioRecorder_getPerformanceMode(CAudioRecorder* ar, SLuint32 *pMode) { in audioRecorder_getPerformanceMode() argument
153 switch (ar->mPerformanceMode) { in audioRecorder_getPerformanceMode()
[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.java658 AsyncResult ar; in handleMessage() local
685 ar = (AsyncResult) msg.obj; in handleMessage()
687 if (ar.exception != null) { in handleMessage()
688 loge("Exception querying IMSI, Exception:" + ar.exception); in handleMessage()
692 mImsi = (String) ar.result; in handleMessage()
743 ar = (AsyncResult) msg.obj; in handleMessage()
744 data = (byte[]) ar.result; in handleMessage()
747 if (ar.exception == null) { in handleMessage()
788 ar = (AsyncResult) msg.obj; in handleMessage()
790 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 …]
DUiccPkcs15.java111 AsyncResult ar = (AsyncResult) msg.obj; in handleMessage() local
112 if (ar.exception != null || ar.result == null) { in handleMessage()
113 log("Error: " + ar.exception); in handleMessage()
114 AsyncResult.forMessage(mCallback, null, ar.exception); in handleMessage()
125 IccIoResult response = (IccIoResult) ar.result; in handleMessage()
156 AsyncResult ar; in handleMessage() local
160 ar = (AsyncResult) msg.obj; in handleMessage()
161 if (ar.exception == null && ar.result != null) { in handleMessage()
162 mChannelId = ((int[]) ar.result)[0]; in handleMessage()
166 log("error: " + ar.exception); 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.java243 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
244 mEFpl = (byte[]) ar.result; in onRecordLoaded()
257 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
258 mEFli = (byte[]) ar.result; in onRecordLoaded()
285 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
286 byte[] data = (byte[]) ar.result; in onRecordLoaded()
358 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
359 byte[] data = (byte[]) ar.result; in onRecordLoaded()
375 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
376 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()
311 notifyWaiters(ArrayList<Message> waiters, AsyncResult ar) { in notifyWaiters() argument
320 AsyncResult.forMessage(waiter, ar.result, ar.exception); in notifyWaiters()
330 AsyncResult ar; in handleMessage() local
336 ar = (AsyncResult) msg.obj; in handleMessage()
343 if (ar.exception == null) { in handleMessage()
344 mAdnLikeFiles.put(efid, (ArrayList<AdnRecord>) ar.result); in handleMessage()
346 notifyWaiters(waiters, ar); in handleMessage()
349 ar = (AsyncResult)msg.obj; in handleMessage()
[all …]
DIccFileHandler.java405 private boolean processException(Message response, AsyncResult ar) { in processException() argument
408 IccIoResult result = (IccIoResult) ar.result; in processException()
409 if (ar.exception != null) { in processException()
410 sendResult(response, null, ar.exception); in processException()
426 AsyncResult ar; in handleMessage() local
441 ar = (AsyncResult)msg.obj; in handleMessage()
442 lc = (LoadLinearFixedContext) ar.userObj; in handleMessage()
443 result = (IccIoResult) ar.result; in handleMessage()
468 ar = (AsyncResult)msg.obj; in handleMessage()
469 lc = (LoadLinearFixedContext) ar.userObj; in handleMessage()
[all …]
DUiccController.java222 AsyncResult ar = (AsyncResult)msg.obj; in handleMessage() local
230 onGetIccCardStatusDone(ar, index); in handleMessage()
242 onSimRefresh(ar, index); in handleMessage()
251 AsyncResult ar; in getCiIndex() local
263 ar = (AsyncResult)msg.obj; in getCiIndex()
264 if (ar.userObj != null && ar.userObj instanceof Integer) { in getCiIndex()
265 index = (Integer)ar.userObj; in getCiIndex()
285 private synchronized void onGetIccCardStatusDone(AsyncResult ar, Integer index) { in onGetIccCardStatusDone() argument
286 if (ar.exception != null) { in onGetIccCardStatusDone()
289 + "never return an error", ar.exception); in onGetIccCardStatusDone()
[all …]
DUiccCarrierPrivilegeRules.java259 for (AccessRule ar : mAccessRules) { in getPackageNames()
260 if(!TextUtils.isEmpty(ar.packageName)) { in getPackageNames()
261 pkgNames.add(ar.packageName); in getPackageNames()
286 for (AccessRule ar : mAccessRules) { in getCarrierPrivilegeStatus()
287 if (ar.matches(certHash, packageName) || ar.matches(certHash256, packageName)) { in getCarrierPrivilegeStatus()
412 AsyncResult ar; in handleMessage() local
418 ar = (AsyncResult) msg.obj; in handleMessage()
419 if (ar.exception == null && ar.result != null) { in handleMessage()
420 mChannelId = ((int[]) ar.result)[0]; in handleMessage()
427 if (ar.exception instanceof CommandException && mRetryCount < MAX_RETRY in handleMessage()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaSubscriptionSourceManager.java110 AsyncResult ar; in handleMessage() local
116 ar = (AsyncResult) msg.obj; in handleMessage()
117 handleGetCdmaSubscriptionSource(ar); in handleMessage()
126 ar = (AsyncResult)msg.obj; in handleMessage()
127 if (ar.exception == null) { in handleMessage()
128 int actStatus = ((int[])ar.result)[0]; in handleMessage()
138 logw("EVENT_SUBSCRIPTION_STATUS_CHANGED, Exception:" + ar.exception); in handleMessage()
184 private void handleGetCdmaSubscriptionSource(AsyncResult ar) { in handleGetCdmaSubscriptionSource() argument
185 if ((ar.exception == null) && (ar.result != null)) { in handleGetCdmaSubscriptionSource()
186 int newSubscriptionSource = ((int[]) ar.result)[0]; in handleGetCdmaSubscriptionSource()
[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/
DIccPhoneBookInterfaceManager.java64 AsyncResult ar;
68 ar = (AsyncResult) msg.obj;
70 if (ar.exception == null) {
71 mRecordSize = (int[])ar.result;
79 notifyPending(ar);
83 ar = (AsyncResult) msg.obj;
85 mSuccess = (ar.exception == null);
86 notifyPending(ar);
90 ar = (AsyncResult)msg.obj;
92 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()
DGsmCdmaPhone.java2079 AsyncResult ar; in handleMessage() local
2089 ar = (AsyncResult)msg.obj; in handleMessage()
2091 if (ar.exception != null) { in handleMessage()
2094 String[] respId = (String[])ar.result; in handleMessage()
2123 ar = (AsyncResult) msg.obj; in handleMessage()
2124 if (ar.exception == null && ar.result != null) { in handleMessage()
2125 mRilVersion = (Integer) ar.result; in handleMessage()
2136 ar = (AsyncResult) msg.obj; in handleMessage()
2137 if (ar.exception == null) { in handleMessage()
2138 if ((ar.result != null) && (((int[]) ar.result).length != 0)) { in handleMessage()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneMmiCode.java1050 AsyncResult ar; in handleMessage() local
1054 ar = (AsyncResult) (msg.obj); in handleMessage()
1056 onSetComplete(msg, ar); in handleMessage()
1060 ar = (AsyncResult) (msg.obj); in handleMessage()
1066 if ((ar.exception == null) && (msg.arg1 == 1)) { in handleMessage()
1073 onSetComplete(msg, ar); in handleMessage()
1077 ar = (AsyncResult) (msg.obj); in handleMessage()
1078 onQueryCfComplete(ar); in handleMessage()
1082 ar = (AsyncResult) (msg.obj); in handleMessage()
1083 onQueryComplete(ar); in handleMessage()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDataConnectionTest.java177 private long getSuggestedRetryDelay(AsyncResult ar) throws Exception { in getSuggestedRetryDelay() argument
182 return (long) method.invoke(mDc, ar); in getSuggestedRetryDelay()
233 AsyncResult ar = new AsyncResult(null, response, null); in testModemSuggestRetry() local
234 assertEquals(response.suggestedRetryTime, getSuggestedRetryDelay(ar)); in testModemSuggestRetry()
238 ar = new AsyncResult(null, response, null); in testModemSuggestRetry()
239 assertEquals(response.suggestedRetryTime, getSuggestedRetryDelay(ar)); in testModemSuggestRetry()
243 ar = new AsyncResult(null, response, null); in testModemSuggestRetry()
244 assertEquals(response.suggestedRetryTime, getSuggestedRetryDelay(ar)); in testModemSuggestRetry()
252 AsyncResult ar = new AsyncResult(null, response, null); in testModemNotSuggestRetry() local
253 assertEquals(RetryManager.NO_SUGGESTED_RETRY_DELAY, getSuggestedRetryDelay(ar)); in testModemNotSuggestRetry()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
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.java1087 AsyncResult ar; in handleMessage() local
1091 ar = (AsyncResult) (msg.obj); in handleMessage()
1093 onSetComplete(msg, ar); in handleMessage()
1097 ar = (AsyncResult) (msg.obj); in handleMessage()
1103 if ((ar.exception == null) && (msg.arg1 == 1)) { in handleMessage()
1110 onSetComplete(msg, ar); in handleMessage()
1114 ar = (AsyncResult) (msg.obj); in handleMessage()
1115 onGetClirComplete(ar); in handleMessage()
1119 ar = (AsyncResult) (msg.obj); in handleMessage()
1120 onQueryCfComplete(ar); in handleMessage()
[all …]
DUsimPhoneBookManager.java522 AsyncResult ar; in handleMessage() local
526 ar = (AsyncResult) msg.obj; in handleMessage()
527 if (ar.exception == null) { in handleMessage()
528 createPbrFile((ArrayList<byte[]>)ar.result); in handleMessage()
536 ar = (AsyncResult) msg.obj; in handleMessage()
537 if (ar.exception == null) { in handleMessage()
538 mPhoneBookRecords.addAll((ArrayList<AdnRecord>)ar.result); in handleMessage()
546 ar = (AsyncResult) msg.obj; in handleMessage()
547 if (ar.exception == null) { in handleMessage()
548 mIapFileRecord = ((ArrayList<byte[]>)ar.result); 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.java359 TypedArray ar = mResources.obtainTypedArray( in preloadResources() local
361 int N = preloadDrawables(ar); in preloadResources()
362 ar.recycle(); in preloadResources()
367 ar = mResources.obtainTypedArray( in preloadResources()
369 N = preloadColorStateLists(ar); in preloadResources()
370 ar.recycle(); in preloadResources()
377 ar = mResources.obtainTypedArray( in preloadResources()
379 N = preloadDrawables(ar); in preloadResources()
380 ar.recycle(); in preloadResources()
391 private static int preloadColorStateLists(TypedArray ar) { in preloadColorStateLists() argument
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DIconLoader.java131 AsyncResult ar; in handleMessage() local
136 ar = (AsyncResult) msg.obj; in handleMessage()
137 if (handleImageDescriptor((byte[]) ar.result)) { in handleMessage()
145 ar = (AsyncResult) msg.obj; in handleMessage()
146 byte[] rawData = ((byte[]) ar.result); in handleMessage()
160 ar = (AsyncResult) msg.obj; in handleMessage()
161 byte [] clut = ((byte[]) ar.result); in handleMessage()

1234