Home
last modified time | relevance | path

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

12345

/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.java615 AsyncResult ar; in handleMessage() local
642 ar = (AsyncResult) msg.obj; in handleMessage()
644 if (ar.exception != null) { in handleMessage()
645 loge("Exception querying IMSI, Exception:" + ar.exception); in handleMessage()
649 setImsi((String) ar.result); in handleMessage()
656 ar = (AsyncResult) msg.obj; in handleMessage()
657 data = (byte[]) ar.result; in handleMessage()
660 if (ar.exception == null) { in handleMessage()
701 ar = (AsyncResult) msg.obj; in handleMessage()
703 if (ar.exception != null) { in handleMessage()
[all …]
DAdnRecordLoader.java151 AsyncResult ar; in handleMessage() local
158 ar = (AsyncResult)(msg.obj); in handleMessage()
159 adn = (AdnRecord)(ar.userObj); in handleMessage()
161 if (ar.exception != null) { in handleMessage()
163 ar.exception); in handleMessage()
166 int[] recordSize = (int[])ar.result; in handleMessage()
174 ar.exception); in handleMessage()
181 ar.exception); in handleMessage()
192 ar = (AsyncResult)(msg.obj); in handleMessage()
193 if (ar.exception != null) { in handleMessage()
[all …]
DUiccPkcs15.java102 AsyncResult ar = (AsyncResult) msg.obj; in handleMessage() local
103 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()
116 IccIoResult response = (IccIoResult) ar.result; in handleMessage()
147 AsyncResult ar; in handleMessage() local
151 ar = (AsyncResult) msg.obj; in handleMessage()
152 if (ar.exception == null && ar.result != null) { in handleMessage()
153 mChannelId = ((int[]) ar.result)[0]; in handleMessage()
157 log("error: " + ar.exception); in handleMessage()
[all …]
DUiccCardApplication.java239 private void onQueryFdnEnabled(AsyncResult ar) { in onQueryFdnEnabled() argument
241 if (ar.exception != null) { in onQueryFdnEnabled()
242 if (DBG) log("Error in querying facility lock:" + ar.exception); in onQueryFdnEnabled()
246 int[] result = (int[])ar.result; in onQueryFdnEnabled()
264 private void onChangeFdnDone(AsyncResult ar) { in onChangeFdnDone() argument
268 if (ar.exception == null) { in onChangeFdnDone()
273 attemptsRemaining = parsePinPukErrorResult(ar); in onChangeFdnDone()
274 loge("Error change facility fdn with exception " + ar.exception); in onChangeFdnDone()
276 Message response = (Message)ar.userObj; in onChangeFdnDone()
278 AsyncResult.forMessage(response).exception = ar.exception; in onChangeFdnDone()
[all …]
DRuimRecords.java254 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
255 mEFpl = (byte[]) ar.result; in onRecordLoaded()
268 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
269 mEFli = (byte[]) ar.result; in onRecordLoaded()
296 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
297 byte[] data = (byte[]) ar.result; in onRecordLoaded()
369 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
370 byte[] data = (byte[]) ar.result; in onRecordLoaded()
386 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
387 byte[] data = (byte[]) ar.result; in onRecordLoaded()
[all …]
DUiccCarrierPrivilegeRules.java251 for (UiccAccessRule ar : mAccessRules) { in getPackageNames()
252 if (!TextUtils.isEmpty(ar.getPackageName())) { in getPackageNames()
253 pkgNames.add(ar.getPackageName()); in getPackageNames()
285 for (UiccAccessRule ar : mAccessRules) { in getCarrierPrivilegeStatus()
286 int accessStatus = ar.getCarrierPrivilegeStatus(signature, packageName); in getCarrierPrivilegeStatus()
343 for (UiccAccessRule ar : mAccessRules) { in getCarrierPrivilegeStatus()
344 int accessStatus = ar.getCarrierPrivilegeStatus(packageInfo); in getCarrierPrivilegeStatus()
431 AsyncResult ar; in handleMessage() local
438 ar = (AsyncResult) msg.obj; in handleMessage()
439 if (ar.exception == null && ar.result != null) { in handleMessage()
[all …]
DAdnRecordCache.java87 AsyncResult ar = new AsyncResult(null, null, new RuntimeException("AdnCache reset")); in clearWaiters() local
88 notifyWaiters(waiters, ar); in clearWaiters()
321 notifyWaiters(ArrayList<Message> waiters, AsyncResult ar) { in notifyWaiters() argument
330 AsyncResult.forMessage(waiter, ar.result, ar.exception); in notifyWaiters()
340 AsyncResult ar; in handleMessage() local
346 ar = (AsyncResult) msg.obj; in handleMessage()
353 if (ar.exception == null) { in handleMessage()
354 mAdnLikeFiles.put(efid, (ArrayList<AdnRecord>) ar.result); in handleMessage()
356 notifyWaiters(waiters, ar); in handleMessage()
359 ar = (AsyncResult)msg.obj; in handleMessage()
[all …]
DIsimUiccRecords.java108 AsyncResult ar; in handleMessage() local
129 ar = (AsyncResult)msg.obj; in handleMessage()
131 if (ar.exception != null) { in handleMessage()
132 log("Exception ISIM AKA: " + ar.exception); in handleMessage()
135 auth_rsp = (String)ar.result; in handleMessage()
202 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
203 byte[] data = (byte[]) ar.result; in onRecordLoaded()
213 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
214 ArrayList<byte[]> impuList = (ArrayList<byte[]>) ar.result; in onRecordLoaded()
230 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
[all …]
DIccFileHandler.java422 private boolean processException(Message response, AsyncResult ar) { in processException() argument
425 IccIoResult result = (IccIoResult) ar.result; in processException()
426 if (ar.exception != null) { in processException()
427 sendResult(response, null, ar.exception); in processException()
443 AsyncResult ar; in handleMessage() local
458 ar = (AsyncResult)msg.obj; in handleMessage()
459 lc = (LoadLinearFixedContext) ar.userObj; in handleMessage()
460 result = (IccIoResult) ar.result; in handleMessage()
485 ar = (AsyncResult)msg.obj; in handleMessage()
486 lc = (LoadLinearFixedContext) ar.userObj; in handleMessage()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneConfigurationManager.java128 AsyncResult ar; in handleMessage() local
134 ar = (AsyncResult) msg.obj; in handleMessage()
135 if (ar.userObj != null && ar.userObj instanceof Phone) { in handleMessage()
136 phone = (Phone) ar.userObj; in handleMessage()
146 ar = (AsyncResult) msg.obj; in handleMessage()
147 if (ar != null && ar.exception == null) { in handleMessage()
151 log(msg.what + " failure. Not switching multi-sim config." + ar.exception); in handleMessage()
155 ar = (AsyncResult) msg.obj; in handleMessage()
156 if (ar != null && ar.exception == null) { in handleMessage()
158 boolean enabled = (boolean) ar.result; in handleMessage()
[all …]
DNetworkScanRequestTracker.java109 private void logEmptyResultOrException(AsyncResult ar) { in logEmptyResultOrException() argument
110 if (ar.result == null) { in logEmptyResultOrException()
113 Log.e(TAG, "NetworkScanResult: Exception: " + ar.exception); in logEmptyResultOrException()
390 private synchronized void startScanDone(AsyncResult ar) { in startScanDone() argument
391 NetworkScanRequestInfo nsri = (NetworkScanRequestInfo) ar.userObj; in startScanDone()
400 if (ar.exception == null && ar.result != null) { in startScanDone()
405 logEmptyResultOrException(ar); in startScanDone()
406 if (ar.exception != null) { in startScanDone()
408 ((CommandException) (ar.exception)).getCommandError(); in startScanDone()
416 private void receiveResult(AsyncResult ar) { in receiveResult() argument
[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()
168 private static void handleGetHardwareConfigChanged(AsyncResult ar) { in handleGetHardwareConfigChanged() argument
169 if ((ar.exception == null) && (ar.result != null)) { in handleGetHardwareConfigChanged()
170 List hwcfg = (List)ar.result; in handleGetHardwareConfigChanged()
DIccPhoneBookInterfaceManager.java64 AsyncResult ar = (AsyncResult) msg.obj;
65 Request request = (Request) ar.userObj;
70 if (ar.exception == null) {
71 recordSize = (int[]) ar.result;
79 loge("EVENT_GET_SIZE_DONE: failed; ex=" + ar.exception);
84 boolean success = (ar.exception == null);
86 loge("EVENT_UPDATE_DONE - failed; ex=" + ar.exception);
92 if (ar.exception == null) {
93 records = (List<AdnRecord>) ar.result;
96 + ar.exception);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaSubscriptionSourceManager.java113 AsyncResult ar; in handleMessage() local
119 ar = (AsyncResult) msg.obj; in handleMessage()
120 handleGetCdmaSubscriptionSource(ar); in handleMessage()
129 ar = (AsyncResult)msg.obj; in handleMessage()
130 if (ar.exception == null) { in handleMessage()
131 int actStatus = ((int[])ar.result)[0]; in handleMessage()
141 logw("EVENT_SUBSCRIPTION_STATUS_CHANGED, Exception:" + ar.exception); in handleMessage()
188 private void handleGetCdmaSubscriptionSource(AsyncResult ar) { in handleGetCdmaSubscriptionSource() argument
189 if ((ar.exception == null) && (ar.result != null)) { in handleGetCdmaSubscriptionSource()
190 int newSubscriptionSource = ((int[]) ar.result)[0]; in handleGetCdmaSubscriptionSource()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/apdu/
DOpenLogicalChannelInvocation.java52 protected IccOpenLogicalChannelResponse parseResult(AsyncResult ar) { in parseResult() argument
56 if (ar.exception == null && ar.result != null) { in parseResult()
57 int[] result = (int[]) ar.result; in parseResult()
69 if (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.java55 protected IccIoResult parseResult(AsyncResult ar) { in parseResult() argument
57 if (ar.exception == null && ar.result != null) { in parseResult()
58 response = (IccIoResult) ar.result; in parseResult()
60 if (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()
DCloseLogicalChannelInvocation.java50 protected Boolean parseResult(AsyncResult ar) { in parseResult() argument
51 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()
/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/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccCarrierPrivilegeRulesTest.java108 AsyncResult ar = new AsyncResult(null, new int[]{0}, null); in testHelper()
109 message.obj = ar; in testHelper()
120 AsyncResult ar = new AsyncResult(null, iir, null); in testHelper()
121 message.obj = ar; in testHelper()
318 AsyncResult ar = new AsyncResult(null, new int[]{0}, null); in testAID_OnlyARAM()
319 message.obj = ar; in testAID_OnlyARAM()
323 AsyncResult ar = new AsyncResult(null, null, null); in testAID_OnlyARAM()
324 message.obj = ar; in testAID_OnlyARAM()
336 AsyncResult ar = new AsyncResult(null, iir, null); in testAID_OnlyARAM()
337 message.obj = ar; in testAID_OnlyARAM()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DAppWarnings.java239 private void showUnsupportedDisplaySizeDialogUiThread(ActivityRecord ar) { in showUnsupportedDisplaySizeDialogUiThread() argument
244 if (ar != null && !hasPackageFlag( in showUnsupportedDisplaySizeDialogUiThread()
245 ar.packageName, FLAG_HIDE_DISPLAY_SIZE)) { in showUnsupportedDisplaySizeDialogUiThread()
247 AppWarnings.this, mUiContext, ar.info.applicationInfo); in showUnsupportedDisplaySizeDialogUiThread()
260 private void showUnsupportedCompileSdkDialogUiThread(ActivityRecord ar) { in showUnsupportedCompileSdkDialogUiThread() argument
265 if (ar != null && !hasPackageFlag( in showUnsupportedCompileSdkDialogUiThread()
266 ar.packageName, FLAG_HIDE_COMPILE_SDK)) { in showUnsupportedCompileSdkDialogUiThread()
268 AppWarnings.this, mUiContext, ar.info.applicationInfo); in showUnsupportedCompileSdkDialogUiThread()
281 private void showDeprecatedTargetSdkDialogUiThread(ActivityRecord ar) { in showDeprecatedTargetSdkDialogUiThread() argument
286 if (ar != null && !hasPackageFlag( in showDeprecatedTargetSdkDialogUiThread()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneMmiCode.java1098 AsyncResult ar; in handleMessage() local
1102 ar = (AsyncResult) (msg.obj); in handleMessage()
1104 onSetComplete(msg, ar); in handleMessage()
1108 ar = (AsyncResult) (msg.obj); in handleMessage()
1114 if ((ar.exception == null) && (msg.arg1 == 1)) { in handleMessage()
1121 onSetComplete(msg, ar); in handleMessage()
1125 ar = (AsyncResult) (msg.obj); in handleMessage()
1126 onQueryCfComplete(ar); in handleMessage()
1130 ar = (AsyncResult) (msg.obj); in handleMessage()
1131 onQueryComplete(ar); in handleMessage()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DCellularDataService.java80 AsyncResult ar = (AsyncResult) message.obj; in CellularDataServiceProvider()
83 DataCallResponse response = (DataCallResponse) ar.result; in CellularDataServiceProvider()
84 callback.onSetupDataCallComplete(ar.exception != null in CellularDataServiceProvider()
90 callback.onDeactivateDataCallComplete(ar.exception != null in CellularDataServiceProvider()
95 callback.onSetInitialAttachApnComplete(ar.exception != null in CellularDataServiceProvider()
100 callback.onSetDataProfileComplete(ar.exception != null in CellularDataServiceProvider()
106 ar.exception != null in CellularDataServiceProvider()
109 ar.exception != null in CellularDataServiceProvider()
110 ? null : (List<DataCallResponse>) ar.result in CellularDataServiceProvider()
114 notifyDataCallListChanged((List<DataCallResponse>) ar.result); in CellularDataServiceProvider()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DUsimDataDownloadHandler.java299 AsyncResult ar; in handleMessage() local
307 ar = (AsyncResult) msg.obj; in handleMessage()
309 if (ar.exception != null) { in handleMessage()
310 Rlog.e(TAG, "UICC Send Envelope failure, exception: " + ar.exception); in handleMessage()
316 int[] dcsPid = (int[]) ar.userObj; in handleMessage()
317 sendSmsAckForEnvelopeResponse((IccIoResult) ar.result, dcsPid[0], dcsPid[1]); in handleMessage()
321 ar = (AsyncResult) msg.obj; in handleMessage()
322 if (ar.exception == null) { in handleMessage()
326 Rlog.d(TAG, "Failed to write SMS-PP message to UICC", ar.exception); in handleMessage()

12345