Home
last modified time | relevance | path

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

123456789

/aosp12/frameworks/wilhelm/src/android/
H A DAudioRecorder_to_android.cpp119 switch (ar->mRecordSource) { in audioRecorder_getPreset()
264 ar->mSampleRateMilliHz, ar->mNumChannels); in android_audioRecorder_checkSourceSink()
331 assert(ar->mBufferQueue.mFront != ar->mBufferQueue.mRear); in audioRecorder_callback()
350 if (newFront == &ar->mBufferQueue.mArray[ar->mBufferQueue.mNumBuffers + 1]) { in audioRecorder_callback()
422 ar->mAudioRecord.clear(); in android_audioRecorder_create()
720 ar, status); in android_audioRecorder_realize()
808 if (ar->mAudioRecord != 0) { in android_audioRecorder_destroy()
813 ar->mAudioRecord.~sp(); in android_audioRecorder_destroy()
822 if (ar->mAudioRecord == 0) { in android_audioRecorder_setRecordState()
851 if (ar->mAudioRecord == 0) { in android_audioRecorder_useRecordEventMask()
[all …]
H A 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);
/aosp12/system/media/audio_route/
H A Daudio_route.c210 if (ar->mixer_path_size <= ar->num_mixer_paths) { in path_create()
227 ar->mixer_path[ar->num_mixer_paths].name = strdup(name); in path_create()
228 ar->mixer_path[ar->num_mixer_paths].size = 0; in path_create()
229 ar->mixer_path[ar->num_mixer_paths].length = 0; in path_create()
230 ar->mixer_path[ar->num_mixer_paths].setting = NULL; in path_create()
233 return &ar->mixer_path[ar->num_mixer_paths++]; in path_create()
475 struct audio_route *ar = state->ar; in start_tag() local
655 ar->num_mixer_ctls = mixer_get_num_ctls(ar->mixer); in alloc_mixer_state()
974 if (!ar) in audio_route_init()
1009 state.ar = ar; in audio_route_init()
[all …]
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DSIMRecords.java623 AsyncResult ar; in handleMessage() local
773 if (ar.userObj != null) { in handleMessage()
774 AsyncResult.forMessage(((Message) ar.userObj)).exception = ar.exception; in handleMessage()
874 getSpnFsm(false, ar); in handleMessage()
1024 if (ar.exception == null && ar.userObj != null) { in handleMessage()
1073 if (ar.userObj != null) { in handleMessage()
1307 mEfPl = (byte[]) ar.result; in onRecordLoaded()
1318 mEfLi = (byte[]) ar.result; in onRecordLoaded()
1765 if (ar != null && ar.exception == null) { in getSpnFsm()
1802 if (ar != null && ar.exception == null) { in getSpnFsm()
[all …]
H A DAdnRecordLoader.java151 AsyncResult ar; in handleMessage() local
161 if (ar.exception != null) { in handleMessage()
163 ar.exception); in handleMessage()
174 ar.exception); in handleMessage()
181 ar.exception); in handleMessage()
193 if (ar.exception != null) { in handleMessage()
195 ar.exception); in handleMessage()
202 data = (byte[])(ar.result); in handleMessage()
204 if (ar.exception != null) { in handleMessage()
233 data = (byte[])(ar.result); in handleMessage()
[all …]
H A DUiccPkcs15.java103 if (ar.exception != null || ar.result == null) { in handleMessage()
104 log("Error: " + ar.exception); 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()
199 if (ar.exception == null) { in handleMessage()
214 if (ar.exception == null && ar.result != null) { in handleMessage()
225 if (ar.exception == null && ar.result != null) { in handleMessage()
236 if (ar.exception == null && ar.result != null) { in handleMessage()
247 if (ar.exception == null && ar.result != null) { in handleMessage()
[all …]
H A DUiccCardApplication.java249 if (ar.exception != null) { in onQueryFdnEnabled()
276 if (ar.exception == null) { in onChangeFdnDone()
304 if(ar.exception != null) { in onQueryFacilityLock()
309 int[] ints = (int[])ar.result; in onQueryFacilityLock()
352 if (ar.exception == null) { in onChangeFacilityLock()
371 int[] result = (int[]) ar.result; in parsePinPukErrorResult()
388 AsyncResult ar;
396 if (ar != null) {
424 onQueryFdnEnabled(ar);
428 onChangeFdnDone(ar);
[all …]
H A DUiccCarrierPrivilegeRules.java263 for (UiccAccessRule ar : mAccessRules) { in getPackageNames()
297 for (UiccAccessRule ar : mAccessRules) { in getCarrierPrivilegeStatus()
355 for (UiccAccessRule ar : mAccessRules) { in getCarrierPrivilegeStatus()
451 int[] results = (int[]) ar.result; in shouldRetry()
469 AsyncResult ar; in handleMessage() local
476 ar = (AsyncResult) msg.obj; in handleMessage()
477 if (ar.exception == null && ar.result != null) { in handleMessage()
518 ar = (AsyncResult) msg.obj; in handleMessage()
519 if (ar.exception == null && ar.result != null) { in handleMessage()
753 for (UiccAccessRule ar : mAccessRules) { in dump()
[all …]
H A DSimPhonebookRecordCache.java338 AsyncResult ar; in handleMessage() local
346 ar = (AsyncResult)msg.obj; in handleMessage()
347 if (ar != null && ar.exception != null) { in handleMessage()
357 ar = (AsyncResult)msg.obj; in handleMessage()
358 if (ar != null && ar.exception == null) { in handleMessage()
365 ar = (AsyncResult)msg.obj; in handleMessage()
366 if (ar.exception != null) { in handleMessage()
368 ar.result = null; in handleMessage()
375 ar = (AsyncResult)msg.obj; in handleMessage()
380 ar = (AsyncResult)msg.obj; in handleMessage()
[all …]
H A DIccFileHandler.java461 if (ar.exception != null) { in processException()
478 AsyncResult ar; in handleMessage() local
493 ar = (AsyncResult)msg.obj; in handleMessage()
519 ar = (AsyncResult)msg.obj; in handleMessage()
560 ar = (AsyncResult)msg.obj; in handleMessage()
561 response = (Message) ar.userObj; in handleMessage()
596 ar = (AsyncResult)msg.obj; in handleMessage()
632 ar = (AsyncResult)msg.obj; in handleMessage()
633 response = (Message) ar.userObj; in handleMessage()
644 ar = (AsyncResult) msg.obj; in handleMessage()
[all …]
/aosp12/frameworks/base/core/jni/
H A Dcom_android_internal_os_KernelCpuUidBpfMapReader.cpp38 if (!ar) { in getUidArray()
39 ar = env->NewLongArray(sz); in getUidArray()
40 if (ar == nullptr) return ar; in getUidArray()
43 return ar; in getUidArray()
78 if (ar == nullptr) return false; in KernelCpuUidFreqTimeBpfMapReader_readBpfData()
102 if (ar == nullptr) return false; in KernelCpuUidActiveTimeBpfMapReader_readBpfData()
113 auto ar = env->NewLongArray(1); in KernelCpuUidActiveTimeBpfMapReader_getDataDimensions() local
114 if (ar != nullptr) env->SetLongArrayRegion(ar, 0, 1, &nCpus); in KernelCpuUidActiveTimeBpfMapReader_getDataDimensions()
115 return ar; in KernelCpuUidActiveTimeBpfMapReader_getDataDimensions()
151 if (ar != nullptr) env->SetLongArrayRegion(ar, 0, clusterCores.size(), clusterCores.data()); in KernelCpuUidClusterTimeBpfMapReader_getDataDimensions()
[all …]
H A Dcom_android_internal_os_KernelCpuBpfTracking.cpp38 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()
/aosp12/system/media/audio_route/include/audio_route/
H A Daudio_route.h26 void audio_route_free(struct audio_route *ar);
29 int audio_route_apply_path(struct audio_route *ar, const char *name);
32 int audio_route_apply_and_update_path(struct audio_route *ar, const char *name);
35 int audio_route_reset_path(struct audio_route *ar, const char *name);
38 int audio_route_reset_and_update_path(struct audio_route *ar, const char *name);
41 int audio_route_force_reset_and_update_path(struct audio_route *ar, const char *name);
44 void audio_route_reset(struct audio_route *ar);
47 int audio_route_update_mixer(struct audio_route *ar);
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
H A DUiccCarrierPrivilegeRulesTest.java79 message.obj = ar; in testHelper()
91 message.obj = ar; in testHelper()
333 message.obj = ar; in testAID_OnlyARAM()
394 message.obj = ar; in testAID_OnlyARAD()
434 message.obj = ar; in testAID_BothARAMandARAD()
451 message.obj = ar; in testAID_BothARAMandARAD()
503 message.obj = ar; in testAID_ARFFailed()
560 message.obj = ar; in testAID_ARFSucceed()
574 message.obj = ar; in testAID_ARFSucceed()
613 message.obj = ar; in testAID_ARFSucceed()
[all …]
H A DSIMRecordsTest.java124 AsyncResult ar = (AsyncResult) message.obj; in testSetForbiddenPlmnsPad() local
139 AsyncResult ar = (AsyncResult) message.obj; in testSetForbiddenPlmnsTruncate() local
200 assertNull(ar.exception); in testGetForbiddenPlmns()
202 (String[]) ar.result); in testGetForbiddenPlmns()
226 assertNull(ar.result); in testGetForbiddenPlmnsException()
246 assertNull(ar.exception); in testGetForbiddenPlmnsNull()
247 assertNull(ar.result); in testGetForbiddenPlmnsNull()
268 assertNull(ar.exception); in testGetForbiddenPlmnsEmptyList()
270 (String[]) ar.result); in testGetForbiddenPlmnsEmptyList()
290 assertNull(ar.exception); in testGetForbiddenPlmnsInvalidLength()
[all …]
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
H A DCdmaSubscriptionSourceManager.java115 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()
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()
205 logw("Unable to get CDMA Subscription Source, Exception: " + ar.exception in handleGetCdmaSubscriptionSource()
[all …]
/aosp12/packages/services/Telephony/src/com/android/phone/
H A DCdmaCallWaitingPreference.java130 AsyncResult ar = (AsyncResult) msg.obj; in handleGetCallWaitingResponse() local
140 if (ar.exception instanceof CommandException) { in handleGetCallWaitingResponse()
143 ar.exception); in handleGetCallWaitingResponse()
147 (CommandException)ar.exception); in handleGetCallWaitingResponse()
149 } else if (ar.userObj instanceof Throwable || ar.exception != null) { in handleGetCallWaitingResponse()
161 int[] cwArray = (int[])ar.result; in handleGetCallWaitingResponse()
187 AsyncResult ar = (AsyncResult) msg.obj; in handleSetCallWaitingResponse() local
189 if (ar.exception != null) { in handleSetCallWaitingResponse()
195 if (ar.result != null) { in handleSetCallWaitingResponse()
196 int arr = (int)ar.result; in handleSetCallWaitingResponse()
[all …]
H A DCLIRListPreference.java177 AsyncResult ar = (AsyncResult) msg.obj; in handleGetCLIRResponse() local
185 if (ar.exception != null) { in handleGetCLIRResponse()
186 Log.i(LOG_TAG, "handleGetCLIRResponse: ar.exception=" + ar.exception); in handleGetCLIRResponse()
187 mTcpListener.onException(CLIRListPreference.this, (CommandException) ar.exception); in handleGetCLIRResponse()
188 } else if (ar.userObj instanceof Throwable) { in handleGetCLIRResponse()
189 Log.i(LOG_TAG, "handleGetCLIRResponse: ar.throwable=" + ar.userObj); in handleGetCLIRResponse()
192 int clirArray[] = (int[]) ar.result; in handleGetCLIRResponse()
205 AsyncResult ar = (AsyncResult) msg.obj; in handleSetCLIRResponse() local
207 if (ar.exception != null) { in handleSetCLIRResponse()
208 if (DBG) Log.d(LOG_TAG, "handleSetCallWaitingResponse: ar.exception="+ar.exception); in handleSetCLIRResponse()
[all …]
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DPhoneConfigurationManager.java144 AsyncResult ar; in handleMessage() local
150 ar = (AsyncResult) msg.obj; in handleMessage()
151 if (ar.userObj != null && ar.userObj instanceof Phone) { in handleMessage()
152 phone = (Phone) ar.userObj; in handleMessage()
162 ar = (AsyncResult) msg.obj; in handleMessage()
163 if (ar != null && ar.exception == null) { in handleMessage()
171 ar = (AsyncResult) msg.obj; in handleMessage()
172 if (ar != null && ar.exception == null) { in handleMessage()
174 boolean enabled = (boolean) ar.result; in handleMessage()
182 ar = (AsyncResult) msg.obj; in handleMessage()
[all …]
H A DNetworkScanRequestTracker.java124 if (ar.result == null) { in logEmptyResultOrException()
421 if (ar.exception == null && ar.result != null) { in startScanDone()
426 logEmptyResultOrException(ar); in startScanDone()
427 if (ar.exception != null) { in startScanDone()
437 private void receiveResult(AsyncResult ar) { in receiveResult() argument
454 if (ar.exception == null && ar.result != null) { in receiveResult()
483 logEmptyResultOrException(ar); in receiveResult()
507 private void stopScanDone(AsyncResult ar) { in stopScanDone() argument
513 if (ar.exception == null && ar.result != null) { in stopScanDone()
516 logEmptyResultOrException(ar); in stopScanDone()
[all …]
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/apdu/
H A 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()
H A 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()
/aosp12/frameworks/compile/mclinker/lib/LD/
H A 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 …]
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
H A DImsPhoneMmiCode.java1225 AsyncResult ar; in handleMessage() local
1254 onQueryCfComplete(ar); in handleMessage()
1259 onQueryComplete(ar); in handleMessage()
1402 if (ar.exception != null) { in onSetComplete()
1421 } else if (ar.result != null && ar.result instanceof Integer in onSetComplete()
1559 if (ar.exception != null) { in onQueryCfComplete()
1623 if (ar.exception != null) { in onSuppSvcQueryComplete()
1683 if (ar.exception != null) { in onIcbQueryComplete()
1728 if (ar.exception != null) { in onQueryClirComplete()
1814 onQueryComplete(AsyncResult ar) { in onQueryComplete() argument
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A DAppWarnings.java246 if (ar != null && !hasPackageFlag( in showUnsupportedDisplaySizeDialogUiThread()
247 ar.packageName, FLAG_HIDE_DISPLAY_SIZE)) { in showUnsupportedDisplaySizeDialogUiThread()
267 if (ar != null && !hasPackageFlag( in showUnsupportedCompileSdkDialogUiThread()
268 ar.packageName, FLAG_HIDE_COMPILE_SDK)) { in showUnsupportedCompileSdkDialogUiThread()
288 if (ar != null && !hasPackageFlag( in showDeprecatedTargetSdkDialogUiThread()
289 ar.packageName, FLAG_HIDE_DEPRECATED_SDK)) { in showDeprecatedTargetSdkDialogUiThread()
388 final ActivityRecord ar = (ActivityRecord) msg.obj; in handleMessage() local
389 showUnsupportedDisplaySizeDialogUiThread(ar); in handleMessage()
395 final ActivityRecord ar = (ActivityRecord) msg.obj; in handleMessage() local
396 showUnsupportedCompileSdkDialogUiThread(ar); in handleMessage()
[all …]

123456789