/frameworks/wilhelm/src/android/ |
D | AudioRecorder_to_android.cpp | 39 SLresult audioRecorder_setPreset(CAudioRecorder* ar, SLuint32 recordPreset) { in audioRecorder_setPreset() argument 68 if (SL_OBJECT_STATE_UNREALIZED != ar->mObject.mState) { in audioRecorder_setPreset() 72 ar->mRecordSource = newRecordSource; in audioRecorder_setPreset() 80 SLresult audioRecorder_setPerformanceMode(CAudioRecorder* ar, SLuint32 mode) { in audioRecorder_setPerformanceMode() argument 106 if (SL_OBJECT_STATE_UNREALIZED != ar->mObject.mState) { in audioRecorder_setPerformanceMode() 110 ar->mPerformanceMode = perfMode; in audioRecorder_setPerformanceMode() 117 SLresult audioRecorder_getPreset(CAudioRecorder* ar, SLuint32* pPreset) { in audioRecorder_getPreset() argument 120 switch (ar->mRecordSource) { in audioRecorder_getPreset() 153 SLresult audioRecorder_getPerformanceMode(CAudioRecorder* ar, SLuint32 *pMode) { in audioRecorder_getPerformanceMode() argument 156 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 | 653 AsyncResult ar; in handleMessage() local 670 ar = (AsyncResult) msg.obj; in handleMessage() 672 if (ar.exception != null) { in handleMessage() 673 loge("Exception querying IMSI, Exception:" + ar.exception); in handleMessage() 677 setImsi((String) ar.result); in handleMessage() 684 ar = (AsyncResult) msg.obj; in handleMessage() 685 data = (byte[]) ar.result; in handleMessage() 688 if (ar.exception == null) { in handleMessage() 729 ar = (AsyncResult) msg.obj; in handleMessage() 731 if (ar.exception != null) { in handleMessage() [all …]
|
D | AdnRecordLoader.java | 152 AsyncResult ar; in handleMessage() local 159 ar = (AsyncResult)(msg.obj); in handleMessage() 160 adn = (AdnRecord)(ar.userObj); in handleMessage() 162 if (ar.exception != null) { in handleMessage() 164 ar.exception); in handleMessage() 167 int[] recordSize = (int[])ar.result; in handleMessage() 175 ar.exception); in handleMessage() 197 ar.exception); in handleMessage() 213 ar = (AsyncResult)(msg.obj); in handleMessage() 214 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() 112 response = (IccIoResult) ar.result; in handleMessage() 123 response = (IccIoResult) ar.result; in handleMessage() 154 AsyncResult ar; in handleMessage() local 158 ar = (AsyncResult) msg.obj; in handleMessage() 159 if (ar.exception == null && ar.result != null) { in handleMessage() 160 mChannelId = ((int[]) ar.result)[0]; in handleMessage() [all …]
|
D | UiccCardApplication.java | 251 private void onQueryFdnEnabled(AsyncResult ar) { in onQueryFdnEnabled() argument 253 if (ar.exception != null) { in onQueryFdnEnabled() 254 if (DBG) log("Error in querying facility lock:" + ar.exception); in onQueryFdnEnabled() 258 int[] result = (int[])ar.result; in onQueryFdnEnabled() 279 private void onChangeFdnDone(AsyncResult ar) { in onChangeFdnDone() argument 283 if (ar.exception == null) { in onChangeFdnDone() 288 attemptsRemaining = parsePinPukErrorResult(ar); in onChangeFdnDone() 289 loge("Error change facility fdn with exception " + ar.exception); in onChangeFdnDone() 291 Message response = (Message)ar.userObj; in onChangeFdnDone() 293 AsyncResult.forMessage(response).exception = ar.exception; in onChangeFdnDone() [all …]
|
D | UiccCarrierPrivilegeRules.java | 261 for (UiccAccessRule ar : mAccessRules) { in getPackageNames() 262 if (!TextUtils.isEmpty(ar.getPackageName())) { in getPackageNames() 263 pkgNames.add(ar.getPackageName()); in getPackageNames() 295 for (UiccAccessRule ar : mAccessRules) { in getCarrierPrivilegeStatus() 296 int accessStatus = ar.getCarrierPrivilegeStatus(signature, packageName); in getCarrierPrivilegeStatus() 353 for (UiccAccessRule ar : mAccessRules) { in getCarrierPrivilegeStatus() 354 int accessStatus = ar.getCarrierPrivilegeStatus(packageInfo); in getCarrierPrivilegeStatus() 398 public static boolean shouldRetry(AsyncResult ar, int retryCount) { in shouldRetry() argument 399 if (ar.exception instanceof CommandException && retryCount < MAX_RETRY) { in shouldRetry() 400 CommandException.Error error = ((CommandException) (ar.exception)).getCommandError(); in shouldRetry() [all …]
|
D | IccFileHandler.java | 451 private boolean processException(Message response, AsyncResult ar) { in processException() argument 454 IccIoResult result = (IccIoResult) ar.result; in processException() 455 if (ar.exception != null) { in processException() 456 sendResult(response, null, ar.exception); in processException() 472 AsyncResult ar; in handleMessage() local 487 ar = (AsyncResult)msg.obj; in handleMessage() 488 lc = (LoadLinearFixedContext) ar.userObj; in handleMessage() 489 result = (IccIoResult) ar.result; in handleMessage() 513 ar = (AsyncResult)msg.obj; in handleMessage() 514 lc = (LoadLinearFixedContext) ar.userObj; in handleMessage() [all …]
|
D | SimPhonebookRecordCache.java | 341 AsyncResult ar; in handleMessage() local 349 ar = (AsyncResult)msg.obj; in handleMessage() 350 if (ar != null && ar.exception != null) { in handleMessage() 360 ar = (AsyncResult)msg.obj; in handleMessage() 361 if (ar != null && ar.exception == null) { in handleMessage() 362 AdnCapacity capacity = (AdnCapacity)ar.result; in handleMessage() 373 ar = (AsyncResult)msg.obj; in handleMessage() 374 if (ar.exception != null) { in handleMessage() 376 ar.result = null; in handleMessage() 379 handlePhonebookRecordReceived((ReceivedPhonebookRecords)(ar.result)); 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 == nullptr) 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 == nullptr) return false; in KernelCpuUidFreqTimeBpfMapReader_readBpfData() [all …]
|
D | com_android_internal_os_KernelCpuBpfTracking.cpp | 38 auto ar = env->NewLongArray(allFreqs.size()); in KernelCpuBpfTracking_getFreqsInternal() local 39 if (ar != nullptr) { in KernelCpuBpfTracking_getFreqsInternal() 40 env->SetLongArrayRegion(ar, 0, allFreqs.size(), in KernelCpuBpfTracking_getFreqsInternal() 43 return ar; in KernelCpuBpfTracking_getFreqsInternal() 56 auto ar = env->NewIntArray(freqsClusters.size()); in KernelCpuBpfTracking_getFreqsClustersInternal() local 57 if (ar != nullptr) { in KernelCpuBpfTracking_getFreqsClustersInternal() 58 env->SetIntArrayRegion(ar, 0, freqsClusters.size(), in KernelCpuBpfTracking_getFreqsClustersInternal() 61 return ar; in KernelCpuBpfTracking_getFreqsClustersInternal()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
D | CdmaSubscriptionSourceManager.java | 115 AsyncResult ar; in handleMessage() local 121 ar = (AsyncResult) msg.obj; in handleMessage() 122 handleGetCdmaSubscriptionSource(ar); in handleMessage() 131 ar = (AsyncResult)msg.obj; in handleMessage() 132 if (ar.exception == null) { in handleMessage() 133 int actStatus = ((int[])ar.result)[0]; in handleMessage() 143 logw("EVENT_SUBSCRIPTION_STATUS_CHANGED, Exception:" + ar.exception); in handleMessage() 190 private void handleGetCdmaSubscriptionSource(AsyncResult ar) { in handleGetCdmaSubscriptionSource() argument 191 if ((ar.exception == null) && (ar.result != null)) { in handleGetCdmaSubscriptionSource() 192 int newSubscriptionSource = ((int[]) ar.result)[0]; in handleGetCdmaSubscriptionSource() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | AdnRecordCacheTest.java | 138 AsyncResult ar = (AsyncResult) message.obj; in updateAdnByIndexEfException() local 139 Assert.assertNotNull(ar.exception); in updateAdnByIndexEfException() 140 assertTrue((ar.exception.toString().contains("EF is not known ADN-like EF:0x6FC5"))); in updateAdnByIndexEfException() 153 AsyncResult ar = (AsyncResult) message.obj; in updateAdnByIndex_WriteResponseException() local 154 Assert.assertNotNull(ar.exception); in updateAdnByIndex_WriteResponseException() 155 assertTrue((ar.exception.toString().contains("Have pending update for EF:0x6FC7"))); in updateAdnByIndex_WriteResponseException() 186 AsyncResult ar = (AsyncResult) message.obj; in updateAdnBySearch_EfException() local 187 Assert.assertNotNull(ar.exception); in updateAdnBySearch_EfException() 188 assertTrue((ar.exception.toString().contains("EF is not known ADN-like EF:0x6FC5"))); in updateAdnBySearch_EfException() 197 AsyncResult ar = (AsyncResult) message.obj; in updateAdnBySearch_Exception() local [all …]
|
D | UiccCarrierPrivilegeRulesTest.java | 79 AsyncResult ar = new AsyncResult(null, new int[]{0}, null); in testHelper() 80 message.obj = ar; in testHelper() 91 AsyncResult ar = new AsyncResult(null, iir, null); in testHelper() 92 message.obj = ar; in testHelper() 296 AsyncResult ar = new AsyncResult( in testRetryARAM_shouldNotRetry() local 300 assertTrue(!mUiccCarrierPrivilegeRules.shouldRetry(ar, 0)); in testRetryARAM_shouldNotRetry() 315 AsyncResult ar = new AsyncResult(null, new int[]{0}, null); in testAID_OnlyARAM() 316 message.obj = ar; in testAID_OnlyARAM() 320 AsyncResult ar = new AsyncResult(null, null, null); in testAID_OnlyARAM() 321 message.obj = ar; in testAID_OnlyARAM() [all …]
|
/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 | 56 protected IccIoResult parseResult(AsyncResult ar) { in parseResult() argument 58 if (ar.exception == null && ar.result != null) { in parseResult() 59 response = (IccIoResult) ar.result; in parseResult() 61 if (ar.result == null) { in parseResult() 63 } else if (ar.exception instanceof CommandException) { in parseResult() 64 Rlog.e(LOG_TAG, "CommandException", ar.exception); in parseResult() 66 Rlog.e(LOG_TAG, "CommandException", ar.exception); in parseResult()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivitySnapshotController.java | 185 void addOnBackPressedActivity(ActivityRecord ar) { in addOnBackPressedActivity() argument 189 mOnBackPressedActivities.add(ar); in addOnBackPressedActivity() 245 final ActivityRecord ar = mPendingRemoveActivity.valueAt(i); in postProcess() local 246 removeCachedFiles(ar); in postProcess() 250 final ActivityRecord ar = mPendingDeleteActivity.valueAt(i); in postProcess() local 251 removeIfUserSavedFileExist(ar); in postProcess() 283 for (ActivityRecord ar : mActivities) { in write() 284 mCache.putSnapshot(ar, snapshot); in write() 313 final ActivityRecord ar = mPendingLoadActivity.valueAt(i); in loadActivitySnapshot() local 314 final UserSavedFile usf = findSavedFile(ar); in loadActivitySnapshot() [all …]
|
D | AppWarnings.java | 350 private void showUnsupportedDisplaySizeDialogUiThread(@NonNull ActivityRecord ar) { in showUnsupportedDisplaySizeDialogUiThread() argument 351 final int userId = getUserIdForActivity(ar); in showUnsupportedDisplaySizeDialogUiThread() 360 if (!hasPackageFlag(userId, ar.packageName, FLAG_HIDE_DISPLAY_SIZE)) { in showUnsupportedDisplaySizeDialogUiThread() 362 AppWarnings.this, getUiContextForActivity(ar), ar.info.applicationInfo, userId); in showUnsupportedDisplaySizeDialogUiThread() 379 private void showUnsupportedCompileSdkDialogUiThread(@NonNull ActivityRecord ar) { in showUnsupportedCompileSdkDialogUiThread() argument 380 final int userId = getUserIdForActivity(ar); in showUnsupportedCompileSdkDialogUiThread() 389 if (!hasPackageFlag(userId, ar.packageName, FLAG_HIDE_COMPILE_SDK)) { in showUnsupportedCompileSdkDialogUiThread() 391 AppWarnings.this, getUiContextForActivity(ar), ar.info.applicationInfo, userId); in showUnsupportedCompileSdkDialogUiThread() 408 private void showDeprecatedTargetSdkDialogUiThread(@NonNull ActivityRecord ar) { in showDeprecatedTargetSdkDialogUiThread() argument 409 final int userId = getUserIdForActivity(ar); in showDeprecatedTargetSdkDialogUiThread() [all …]
|
D | SnapshotController.java | 101 final ActivityRecord ar = tf != null ? tf.getTopMostActivity() in onTransactionReady() local 103 if (ar != null && ar.getTask().isVisibleRequested()) { in onTransactionReady() 107 activityTargets.put(ar); in onTransactionReady() 119 void put(ActivityRecord ar) { in put() argument 120 OpenCloseActivities activities = mActivitiesMap.get(ar.getTask()); in put() 123 mActivitiesMap.put(ar.getTask(), activities); in put() 125 activities.add(ar); in put() 139 void add(ActivityRecord ar) { in add() argument 140 if (ar.isVisibleRequested()) { in add() 141 mOpenActivities.add(ar); in add() [all …]
|
/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/ |
D | CallWaitingController.java | 269 private synchronized void onSetCallWaitingDone(AsyncResult ar) { in onSetCallWaitingDone() argument 270 if (ar.userObj == null) { in onSetCallWaitingDone() 273 if (ar.exception == null) { in onSetCallWaitingDone() 276 loge("onSetCallWaitingDone e=" + ar.exception); in onSetCallWaitingDone() 281 if (!(ar.userObj instanceof Cw)) { in onSetCallWaitingDone() 288 Cw cw = (Cw) ar.userObj; in onSetCallWaitingDone() 292 sendToTarget(cw.mOnComplete, ar.result, ar.exception); in onSetCallWaitingDone() 296 if (ar.exception == null) { in onSetCallWaitingDone() 312 sendToTarget(cw.mOnComplete, ar.result, ar.exception); in onSetCallWaitingDone() 315 private synchronized void onGetCallWaitingDone(AsyncResult ar) { in onGetCallWaitingDone() argument [all …]
|
D | NetworkScanRequestTracker.java | 113 AsyncResult ar = (AsyncResult) msg.obj; 115 (NetworkScanRequestInfo) ar.userObj, 127 private void logEmptyResultOrException(AsyncResult ar) { in logEmptyResultOrException() argument 128 if (ar.result == null) { in logEmptyResultOrException() 131 Log.e(TAG, "NetworkScanResult: Exception: " + ar.exception); in logEmptyResultOrException() 420 private synchronized void startScanDone(AsyncResult ar) { in startScanDone() argument 421 NetworkScanRequestInfo nsri = (NetworkScanRequestInfo) ar.userObj; in startScanDone() 430 if (ar.exception == null && ar.result != null) { in startScanDone() 435 logEmptyResultOrException(ar); in startScanDone() 436 if (ar.exception != null) { in startScanDone() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/ |
D | CellularDataService.java | 86 AsyncResult ar = (AsyncResult) message.obj; in CellularDataServiceProvider() 89 DataCallResponse response = (DataCallResponse) ar.result; in CellularDataServiceProvider() 90 callback.onSetupDataCallComplete(ar.exception != null in CellularDataServiceProvider() 96 callback.onDeactivateDataCallComplete(ar.exception != null in CellularDataServiceProvider() 101 callback.onSetInitialAttachApnComplete(ar.exception != null in CellularDataServiceProvider() 106 callback.onSetDataProfileComplete(ar.exception != null in CellularDataServiceProvider() 112 ar.exception != null in CellularDataServiceProvider() 115 ar.result != null ? (List<DataCallResponse>) ar.result in CellularDataServiceProvider() 120 notifyDataCallListChanged((List<DataCallResponse>) ar.result); in CellularDataServiceProvider() 123 callback.onHandoverStarted(toResultCode(ar.exception)); in CellularDataServiceProvider() [all …]
|
D | KeepaliveTracker.java | 133 AsyncResult ar; in handleMessage() local 138 ar = (AsyncResult) msg.obj; in handleMessage() 140 if (ar.exception != null || ar.result == null) { in handleMessage() 142 + ar.exception); in handleMessage() 147 ks = (KeepaliveStatus) ar.result; in handleMessage() 151 ar = (AsyncResult) msg.obj; in handleMessage() 154 if (ar.exception != null) { in handleMessage() 156 + handle + " e=" + ar.exception); in handleMessage() 166 ar = (AsyncResult) msg.obj; in handleMessage() 167 if (ar.exception != null) { in handleMessage() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
D | ImsPhoneMmiCode.java | 1245 AsyncResult ar; in handleMessage() local 1249 ar = (AsyncResult) (msg.obj); in handleMessage() 1251 onSetComplete(msg, ar); in handleMessage() 1255 ar = (AsyncResult) (msg.obj); in handleMessage() 1261 if ((ar.exception == null) && (msg.arg1 == 1)) { in handleMessage() 1269 onSetComplete(msg, ar); in handleMessage() 1273 ar = (AsyncResult) (msg.obj); in handleMessage() 1274 onQueryCfComplete(ar); in handleMessage() 1278 ar = (AsyncResult) (msg.obj); in handleMessage() 1279 onQueryComplete(ar); in handleMessage() [all …]
|