/frameworks/wilhelm/src/android/ |
D | AudioRecorder_to_android.cpp | 36 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 …]
|
D | AudioRecorder_to_android.h | 20 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/ |
D | SIMRecords.java | 618 AsyncResult ar; in handleMessage() local 636 ar = (AsyncResult) msg.obj; in handleMessage() 638 if (ar.exception != null) { in handleMessage() 639 loge("Exception querying IMSI, Exception:" + ar.exception); in handleMessage() 643 setImsi((String) ar.result); in handleMessage() 650 ar = (AsyncResult) msg.obj; in handleMessage() 651 data = (byte[]) ar.result; in handleMessage() 654 if (ar.exception == null) { in handleMessage() 695 ar = (AsyncResult) msg.obj; in handleMessage() 697 if (ar.exception != null) { in handleMessage() [all …]
|
D | AdnRecordLoader.java | 150 AsyncResult ar; in handleMessage() local 157 ar = (AsyncResult)(msg.obj); in handleMessage() 158 adn = (AdnRecord)(ar.userObj); in handleMessage() 160 if (ar.exception != null) { in handleMessage() 162 ar.exception); in handleMessage() 165 int[] recordSize = (int[])ar.result; in handleMessage() 173 ar.exception); in handleMessage() 180 ar.exception); in handleMessage() 191 ar = (AsyncResult)(msg.obj); in handleMessage() 192 if (ar.exception != null) { in handleMessage() [all …]
|
D | UiccPkcs15.java | 102 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 …]
|
D | UiccCardApplication.java | 246 private void onQueryFdnEnabled(AsyncResult ar) { in onQueryFdnEnabled() argument 248 if (ar.exception != null) { in onQueryFdnEnabled() 249 if (DBG) log("Error in querying facility lock:" + ar.exception); in onQueryFdnEnabled() 253 int[] result = (int[])ar.result; in onQueryFdnEnabled() 271 private void onChangeFdnDone(AsyncResult ar) { in onChangeFdnDone() argument 275 if (ar.exception == null) { in onChangeFdnDone() 280 attemptsRemaining = parsePinPukErrorResult(ar); in onChangeFdnDone() 281 loge("Error change facility fdn with exception " + ar.exception); in onChangeFdnDone() 283 Message response = (Message)ar.userObj; in onChangeFdnDone() 285 AsyncResult.forMessage(response).exception = ar.exception; in onChangeFdnDone() [all …]
|
D | UiccCarrierPrivilegeRules.java | 253 for (UiccAccessRule ar : mAccessRules) { in getPackageNames() 254 if (!TextUtils.isEmpty(ar.getPackageName())) { in getPackageNames() 255 pkgNames.add(ar.getPackageName()); in getPackageNames() 287 for (UiccAccessRule ar : mAccessRules) { in getCarrierPrivilegeStatus() 288 int accessStatus = ar.getCarrierPrivilegeStatus(signature, packageName); in getCarrierPrivilegeStatus() 345 for (UiccAccessRule ar : mAccessRules) { in getCarrierPrivilegeStatus() 346 int accessStatus = ar.getCarrierPrivilegeStatus(packageInfo); in getCarrierPrivilegeStatus() 436 public static boolean shouldRetry(AsyncResult ar, int retryCount) { in shouldRetry() argument 437 if (ar.exception instanceof CommandException && retryCount < MAX_RETRY) { in shouldRetry() 438 CommandException.Error error = ((CommandException) (ar.exception)).getCommandError(); in shouldRetry() [all …]
|
D | RuimRecords.java | 244 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument 245 mEFpl = (byte[]) ar.result; in onRecordLoaded() 258 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument 259 mEFli = (byte[]) ar.result; in onRecordLoaded() 286 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument 287 byte[] data = (byte[]) ar.result; in onRecordLoaded() 375 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument 376 byte[] data = (byte[]) ar.result; in onRecordLoaded() 392 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument 393 byte[] data = (byte[]) ar.result; in onRecordLoaded() [all …]
|
D | IccFileHandler.java | 456 private boolean processException(Message response, AsyncResult ar) { in processException() argument 459 IccIoResult result = (IccIoResult) ar.result; in processException() 460 if (ar.exception != null) { in processException() 461 sendResult(response, null, ar.exception); in processException() 477 AsyncResult ar; in handleMessage() local 492 ar = (AsyncResult)msg.obj; in handleMessage() 493 lc = (LoadLinearFixedContext) ar.userObj; in handleMessage() 494 result = (IccIoResult) ar.result; in handleMessage() 518 ar = (AsyncResult)msg.obj; in handleMessage() 519 lc = (LoadLinearFixedContext) ar.userObj; in handleMessage() [all …]
|
D | AdnRecordCache.java | 87 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 …]
|
/frameworks/base/core/jni/ |
D | com_android_internal_os_KernelCpuUidBpfMapReader.cpp | 37 jlongArray ar = (jlongArray)env->CallObjectMethod(sparseAr, gSparseArrayClassInfo.get, uid); in getUidArray() local 38 if (!ar) { in getUidArray() 39 ar = env->NewLongArray(sz); in getUidArray() 40 if (ar == NULL) return ar; in getUidArray() 41 env->CallVoidMethod(sparseAr, gSparseArrayClassInfo.put, uid, ar); in getUidArray() 43 return ar; in getUidArray() 46 static void copy2DVecToArray(JNIEnv *env, jlongArray ar, std::vector<std::vector<uint64_t>> &vec) { in copy2DVecToArray() argument 50 env->SetLongArrayRegion(ar, start, subVec.size(), in copy2DVecToArray() 77 jlongArray ar = getUidArray(env, sparseAr, uid, s); in KernelCpuUidFreqTimeBpfMapReader_readBpfData() local 78 if (ar == NULL) return false; in KernelCpuUidFreqTimeBpfMapReader_readBpfData() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
D | CdmaSubscriptionSourceManager.java | 114 AsyncResult ar; in handleMessage() local 120 ar = (AsyncResult) msg.obj; in handleMessage() 121 handleGetCdmaSubscriptionSource(ar); in handleMessage() 130 ar = (AsyncResult)msg.obj; in handleMessage() 131 if (ar.exception == null) { in handleMessage() 132 int actStatus = ((int[])ar.result)[0]; in handleMessage() 142 logw("EVENT_SUBSCRIPTION_STATUS_CHANGED, Exception:" + ar.exception); in handleMessage() 189 private void handleGetCdmaSubscriptionSource(AsyncResult ar) { in handleGetCdmaSubscriptionSource() argument 190 if ((ar.exception == null) && (ar.result != null)) { in handleGetCdmaSubscriptionSource() 191 int newSubscriptionSource = ((int[]) ar.result)[0]; in handleGetCdmaSubscriptionSource() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | UiccCarrierPrivilegeRulesTest.java | 68 AsyncResult ar = new AsyncResult(null, new int[]{0}, null); in testHelper() 69 message.obj = ar; in testHelper() 80 AsyncResult ar = new AsyncResult(null, iir, null); in testHelper() 81 message.obj = ar; in testHelper() 285 AsyncResult ar = new AsyncResult( in testRetryARAM_shouldNotRetry() local 289 assertTrue(!mUiccCarrierPrivilegeRules.shouldRetry(ar, 0)); in testRetryARAM_shouldNotRetry() 308 AsyncResult ar = new AsyncResult(null, new int[]{0}, null); in testAID_OnlyARAM() 309 message.obj = ar; in testAID_OnlyARAM() 313 AsyncResult ar = new AsyncResult(null, null, null); in testAID_OnlyARAM() 314 message.obj = ar; in testAID_OnlyARAM() [all …]
|
D | SIMRecordsTest.java | 124 AsyncResult ar = (AsyncResult) message.obj; in testSetForbiddenPlmnsPad() local 125 assertEquals(SHORT_FPLMNS_LIST.size(), (int) ar.result); in testSetForbiddenPlmnsPad() 139 AsyncResult ar = (AsyncResult) message.obj; in testSetForbiddenPlmnsTruncate() local 140 assertEquals(MAX_NUM_FPLMN, (int) ar.result); in testSetForbiddenPlmnsTruncate() 154 AsyncResult ar = (AsyncResult) message.obj; in testSetForbiddenPlmnsClear() local 155 assertEquals(EMPTY_FPLMN_LIST.size(), (int) ar.result); in testSetForbiddenPlmnsClear() 199 AsyncResult ar = (AsyncResult) message.obj; in testGetForbiddenPlmns() local 200 assertNull(ar.exception); in testGetForbiddenPlmns() 202 (String[]) ar.result); in testGetForbiddenPlmns() 222 AsyncResult ar = (AsyncResult) message.obj; in testGetForbiddenPlmnsException() local [all …]
|
D | UiccControllerTest.java | 252 AsyncResult ar = new AsyncResult(null, ics, null); in testCardIdFromIccStatus() local 253 Message msg = Message.obtain(mUiccControllerUT, EVENT_GET_ICC_STATUS_DONE, ar); in testCardIdFromIccStatus() 289 AsyncResult ar = new AsyncResult(null, status, null); in testCardIdFromSlotStatus() local 290 Message msg = Message.obtain(mUiccControllerUT, EVENT_GET_SLOT_STATUS_DONE, ar); in testCardIdFromSlotStatus() 312 AsyncResult ar = new AsyncResult(null, status, null); in testCardIdForDefaultEuicc() local 313 Message msg = Message.obtain(mUiccControllerUT, EVENT_GET_SLOT_STATUS_DONE, ar); in testCardIdForDefaultEuicc() 343 AsyncResult ar = new AsyncResult(null, ics, null); in testGetAllUiccCardInfos() local 344 Message msg = Message.obtain(mUiccControllerUT, EVENT_GET_ICC_STATUS_DONE, ar); in testGetAllUiccCardInfos() 380 AsyncResult ar = new AsyncResult(null, ics, null); in testIccidWithTrailingF() local 381 Message msg = Message.obtain(mUiccControllerUT, EVENT_GET_ICC_STATUS_DONE, ar); in testIccidWithTrailingF() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | PhoneConfigurationManager.java | 139 AsyncResult ar; in handleMessage() local 145 ar = (AsyncResult) msg.obj; in handleMessage() 146 if (ar.userObj != null && ar.userObj instanceof Phone) { in handleMessage() 147 phone = (Phone) ar.userObj; in handleMessage() 157 ar = (AsyncResult) msg.obj; in handleMessage() 158 if (ar != null && ar.exception == null) { in handleMessage() 162 log(msg.what + " failure. Not switching multi-sim config." + ar.exception); in handleMessage() 166 ar = (AsyncResult) msg.obj; in handleMessage() 167 if (ar != null && ar.exception == null) { in handleMessage() 169 boolean enabled = (boolean) ar.result; in handleMessage() [all …]
|
D | NetworkScanRequestTracker.java | 109 AsyncResult ar = (AsyncResult) msg.obj; 111 (NetworkScanRequestInfo) ar.userObj, 123 private void logEmptyResultOrException(AsyncResult ar) { in logEmptyResultOrException() argument 124 if (ar.result == null) { in logEmptyResultOrException() 127 Log.e(TAG, "NetworkScanResult: Exception: " + ar.exception); in logEmptyResultOrException() 405 private synchronized void startScanDone(AsyncResult ar) { in startScanDone() argument 406 NetworkScanRequestInfo nsri = (NetworkScanRequestInfo) ar.userObj; in startScanDone() 415 if (ar.exception == null && ar.result != null) { in startScanDone() 420 logEmptyResultOrException(ar); in startScanDone() 421 if (ar.exception != null) { in startScanDone() [all …]
|
D | TelephonyDevController.java | 109 AsyncResult ar = (AsyncResult) sRilHardwareConfig.obj; in registerRIL() local 110 if (ar.exception == null) { in registerRIL() 111 handleGetHardwareConfigChanged(ar); in registerRIL() 126 AsyncResult ar; in handleMessage() local 130 ar = (AsyncResult) msg.obj; in handleMessage() 131 handleGetHardwareConfigChanged(ar); in handleMessage() 162 private static void handleGetHardwareConfigChanged(AsyncResult ar) { in handleGetHardwareConfigChanged() argument 163 if ((ar.exception == null) && (ar.result != null)) { in handleGetHardwareConfigChanged() 164 List hwcfg = (List)ar.result; in handleGetHardwareConfigChanged()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/apdu/ |
D | OpenLogicalChannelInvocation.java | 52 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()
|
D | TransmitApduLogicalChannelInvocation.java | 55 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()
|
D | CloseLogicalChannelInvocation.java | 50 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/ |
D | GroupReader.cpp | 78 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/ |
D | ImsPhoneMmiCode.java | 1176 AsyncResult ar; in handleMessage() local 1180 ar = (AsyncResult) (msg.obj); in handleMessage() 1182 onSetComplete(msg, ar); in handleMessage() 1186 ar = (AsyncResult) (msg.obj); in handleMessage() 1192 if ((ar.exception == null) && (msg.arg1 == 1)) { in handleMessage() 1200 onSetComplete(msg, ar); in handleMessage() 1204 ar = (AsyncResult) (msg.obj); in handleMessage() 1205 onQueryCfComplete(ar); in handleMessage() 1209 ar = (AsyncResult) (msg.obj); in handleMessage() 1210 onQueryComplete(ar); in handleMessage() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | AppWarnings.java | 239 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/dataconnection/ |
D | CellularDataService.java | 72 AsyncResult ar = (AsyncResult) message.obj; in CellularDataServiceProvider() 75 DataCallResponse response = (DataCallResponse) ar.result; in CellularDataServiceProvider() 76 callback.onSetupDataCallComplete(ar.exception != null in CellularDataServiceProvider() 82 callback.onDeactivateDataCallComplete(ar.exception != null in CellularDataServiceProvider() 87 callback.onSetInitialAttachApnComplete(ar.exception != null in CellularDataServiceProvider() 92 callback.onSetDataProfileComplete(ar.exception != null in CellularDataServiceProvider() 98 ar.exception != null in CellularDataServiceProvider() 101 ar.exception != null in CellularDataServiceProvider() 102 ? null : (List<DataCallResponse>) ar.result in CellularDataServiceProvider() 106 notifyDataCallListChanged((List<DataCallResponse>) ar.result); in CellularDataServiceProvider()
|