Searched refs:ar (Results 1 - 25 of 71) sorted by relevance

123

/frameworks/wilhelm/src/android/
H A DAudioRecorder_to_android.h20 extern SLresult android_audioRecorder_checkSourceSinkSupport(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_destroy(CAudioRecorder* ar);
54 extern void android_audioRecorder_setRecordState(CAudioRecorder* ar, SLuint32 state);
56 extern void android_audioRecorder_useRecordEventMask(CAudioRecorder *ar);
58 extern void android_audioRecorder_getPosition(CAudioRecorder *ar, SLmillisecond *pPosMsec);
H A DAudioRecorder_to_android.cpp39 SLresult audioRecorder_setPreset(CAudioRecorder* ar, SLuint32 recordPreset) { argument
65 if (SL_OBJECT_STATE_UNREALIZED != ar->mObject.mState) {
69 ar->mRecordSource = newRecordSource;
76 SLresult audioRecorder_getPreset(CAudioRecorder* ar, SLuint32* pPreset) { argument
79 switch (ar->mRecordSource) {
108 void audioRecorder_handleNewPos_lockRecord(CAudioRecorder* ar) { argument
113 interface_lock_shared(&ar->mRecord);
114 callback = ar->mRecord.mCallback;
115 callbackPContext = ar->mRecord.mContext;
116 interface_unlock_shared(&ar
125 audioRecorder_handleMarker_lockRecord(CAudioRecorder* ar) argument
142 audioRecorder_handleOverrun_lockRecord(CAudioRecorder* ar) argument
160 android_audioRecorder_checkSourceSinkSupport(CAudioRecorder* ar) argument
214 CAudioRecorder *ar = (CAudioRecorder *)user; local
296 android_audioRecorder_create(CAudioRecorder* ar) argument
325 android_audioRecorder_setConfig(CAudioRecorder* ar, const SLchar *configKey, const void *pConfigValue, SLuint32 valueSize) argument
351 android_audioRecorder_getConfig(CAudioRecorder* ar, const SLchar *configKey, SLuint32* pValueSize, void *pConfigValue) argument
380 android_audioRecorder_realize(CAudioRecorder* ar, SLboolean async) argument
426 android_audioRecorder_destroy(CAudioRecorder* ar) argument
445 android_audioRecorder_setRecordState(CAudioRecorder* ar, SLuint32 state) argument
473 android_audioRecorder_useRecordEventMask(CAudioRecorder *ar) argument
526 android_audioRecorder_getPosition(CAudioRecorder *ar, SLmillisecond *pPosMsec) argument
[all...]
/frameworks/compile/libbcc/tests/data/src/
H A Dbrackets.c1 void testBrackets(int* ar, int len) { argument
5 ar[i] = i;
8 if (ar[i] != i) {
9 printf("error: [%d] %d != %d\n", i, ar[i], i);
38 int* ar = (int*) malloc(100); local
39 testBrackets(ar, 25);
40 free(ar);
46 int* ar = (int*) malloc(lenX * lenY * 4); local
50 ar2D[i] = ar + lenY * i;
53 free(ar);
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DSIMRecords.java529 AsyncResult ar;
551 ar = (AsyncResult)msg.obj;
553 if (ar.exception != null) {
554 loge("Exception querying IMSI, Exception:" + ar.exception);
558 mImsi = (String) ar.result;
603 ar = (AsyncResult)msg.obj;
604 data = (byte[]) ar.result;
607 if (ar.exception == null) {
648 ar = (AsyncResult)msg.obj;
650 if (ar
1484 getSpnFsm(boolean start, AsyncResult ar) argument
[all...]
H A DGSMPhone.java1161 AsyncResult ar;
1196 ar = (AsyncResult)msg.obj;
1198 if (ar.exception != null) {
1202 if (LOCAL_DEBUG) Log.d(LOG_TAG, "Baseband version: " + ar.result);
1203 setSystemProperty(PROPERTY_BASEBAND_VERSION, (String)ar.result);
1207 ar = (AsyncResult)msg.obj;
1209 if (ar.exception != null) {
1213 mImei = (String)ar.result;
1217 ar = (AsyncResult)msg.obj;
1219 if (ar
1401 handleSetSelectNetwork(AsyncResult ar) argument
[all...]
H A DSimSmsInterfaceManager.java70 AsyncResult ar;
74 ar = (AsyncResult) msg.obj;
76 mSuccess = (ar.exception == null);
81 ar = (AsyncResult)msg.obj;
83 if (ar.exception == null) {
84 mSms = buildValidRawData((ArrayList<byte[]>) ar.result);
95 ar = (AsyncResult) msg.obj;
97 mSuccess = (ar.exception == null);
H A DGsmServiceStateTracker.java269 AsyncResult ar;
320 ar = (AsyncResult) msg.obj;
321 onSignalStrengthResult(ar, true);
327 ar = (AsyncResult) msg.obj;
329 if (ar.exception == null) {
330 String states[] = (String[])ar.result;
358 ar = (AsyncResult) msg.obj;
360 handlePollStateResult(msg.what, ar);
370 ar = (AsyncResult) msg.obj;
372 String nitzString = (String)((Object[])ar
576 handlePollStateResult(int what, AsyncResult ar) argument
1134 onRestrictedStateChanged(AsyncResult ar) argument
[all...]
H A DUsimPhoneBookManager.java336 AsyncResult ar;
340 ar = (AsyncResult) msg.obj;
341 if (ar.exception == null) {
342 createPbrFile((ArrayList<byte[]>)ar.result);
350 ar = (AsyncResult) msg.obj;
351 if (ar.exception == null) {
352 mPhoneBookRecords.addAll((ArrayList<AdnRecord>)ar.result);
360 ar = (AsyncResult) msg.obj;
361 if (ar.exception == null) {
362 mIapFileRecord = ((ArrayList<byte[]>)ar
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DAdnRecordLoader.java132 AsyncResult ar;
139 ar = (AsyncResult)(msg.obj);
140 adn = (AdnRecord)(ar.userObj);
142 if (ar.exception != null) {
144 ar.exception);
147 int[] recordSize = (int[])ar.result;
155 ar.exception);
162 ar.exception);
172 ar = (AsyncResult)(msg.obj);
173 if (ar
[all...]
H A DIccFileHandler.java310 AsyncResult ar;
326 ar = (AsyncResult) msg.obj;
327 lc = (LoadLinearFixedContext) ar.userObj;
328 result = (IccIoResult) ar.result;
333 sendResult(response, result.payload, ar.exception);
337 ar = (AsyncResult) msg.obj;
338 response = (Message) ar.userObj;
339 result = (IccIoResult) ar.result;
343 sendResult(response, result.payload, ar.exception);
347 ar
[all...]
H A DIccPhoneBookInterfaceManager.java54 AsyncResult ar;
58 ar = (AsyncResult) msg.obj;
60 if (ar.exception == null) {
61 recordSize = (int[])ar.result;
69 notifyPending(ar);
73 ar = (AsyncResult) msg.obj;
75 success = (ar.exception == null);
76 notifyPending(ar);
80 ar = (AsyncResult)msg.obj;
82 if (ar
[all...]
H A DAdnRecordCache.java82 AsyncResult ar = new AsyncResult(null, null, new RuntimeException("AdnCache reset"));
83 notifyWaiters(waiters, ar);
306 notifyWaiters(ArrayList<Message> waiters, AsyncResult ar) { argument
315 AsyncResult.forMessage(waiter, ar.result, ar.exception);
324 AsyncResult ar;
330 ar = (AsyncResult) msg.obj;
337 if (ar.exception == null) {
338 adnLikeFiles.put(efid, (ArrayList<AdnRecord>) ar.result);
340 notifyWaiters(waiters, ar);
[all...]
H A DUiccCardApplication.java205 * @param ar is asyncResult of Query_Facility_Locked
207 private void onQueryFdnEnabled(AsyncResult ar) { argument
209 if (ar.exception != null) {
210 if (DBG) log("Error in querying facility lock:" + ar.exception);
214 int[] ints = (int[])ar.result;
224 private void onChangeFdnDone(AsyncResult ar) { argument
226 if (ar.exception == null) {
231 loge("Error change facility fdn with exception " + ar.exception);
233 Message response = (Message)ar.userObj;
234 AsyncResult.forMessage(response).exception = ar
250 onQueryFacilityLock(AsyncResult ar) argument
296 onChangeFacilityLock(AsyncResult ar) argument
[all...]
H A DDataConnection.java331 AsyncResult ar = new AsyncResult(o, null, null);
332 sendMessage(obtainMessage(EVENT_DEACTIVATE_DONE, ar));
366 * Send ar.userObj if its a message, which is should be back to originator.
538 * @param ar is the result
541 private DataCallState.SetupResult onSetupConnectionCompleted(AsyncResult ar) { argument
542 DataCallState response = (DataCallState) ar.result;
543 ConnectionParams cp = (ConnectionParams) ar.userObj;
546 if (ar.exception != null) {
548 log("onSetupConnectionCompleted failed, ar.exception=" + ar
580 getSuggestedRetryTime(AsyncResult ar) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
H A DCdmaSubscriptionSourceManager.java107 AsyncResult ar;
113 ar = (AsyncResult) msg.obj;
114 handleGetCdmaSubscriptionSource(ar);
158 * @param ar AsyncResult object that contains the result of get CDMA
161 private void handleGetCdmaSubscriptionSource(AsyncResult ar) { argument
162 if ((ar.exception == null) && (ar.result != null)) {
163 int newSubscriptionSource = ((int[]) ar.result)[0];
179 logw("Unable to get CDMA Subscription Source, Exception: " + ar.exception
180 + ", result: " + ar
[all...]
H A DRuimRecords.java231 public void onRecordLoaded(AsyncResult ar) { argument
232 mEFpl = (byte[]) ar.result;
243 public void onRecordLoaded(AsyncResult ar) { argument
244 mEFli = (byte[]) ar.result;
269 public void onRecordLoaded(AsyncResult ar) { argument
270 byte[] data = (byte[]) ar.result;
323 public void onRecordLoaded(AsyncResult ar) { argument
324 byte[] data = (byte[]) ar.result;
338 public void onRecordLoaded(AsyncResult ar) { argument
339 byte[] data = (byte[]) ar
373 onRecordLoaded(AsyncResult ar) argument
404 onRecordLoaded(AsyncResult ar) argument
409 onGetCSimEprlDone(AsyncResult ar) argument
[all...]
H A DRuimSmsInterfaceManager.java57 AsyncResult ar;
61 ar = (AsyncResult) msg.obj;
63 mSuccess = (ar.exception == null);
68 ar = (AsyncResult)msg.obj;
70 if (ar.exception == null) {
71 mSms = buildValidRawData((ArrayList<byte[]>) ar.result);
H A DCDMALTEPhone.java82 AsyncResult ar;
89 ar = (AsyncResult)msg.obj;
90 m3gppSMS.dispatchMessage((SmsMessage)ar.result);
176 private void handleSetSelectNetwork(AsyncResult ar) { argument
179 if (!(ar.userObj instanceof NetworkSelectMessage)) {
184 NetworkSelectMessage nsm = (NetworkSelectMessage) ar.userObj;
190 AsyncResult.forMessage(nsm.message, ar.result, ar.exception);
H A DCdmaMmiCode.java236 AsyncResult ar;
239 ar = (AsyncResult) (msg.obj);
240 onSetComplete(ar);
258 onSetComplete(AsyncResult ar){ argument
262 if (ar.exception != null) {
264 if (ar.exception instanceof CommandException) {
265 CommandException.Error err = ((CommandException)(ar.exception)).getCommandError();
/frameworks/base/core/java/android/os/
H A DRegistrant.java62 * This makes a copy of @param ar
65 notifyRegistrant(AsyncResult ar) argument
67 internalNotifyRegistrant (ar.result, ar.exception);
H A DRegistrantList.java104 notifyRegistrants(AsyncResult ar) argument
106 internalNotifyRegistrants(ar.result, ar.exception);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DUiccController.java184 AsyncResult ar = (AsyncResult)msg.obj;
185 onGetIccCardStatusDone(ar);
202 private synchronized void onGetIccCardStatusDone(AsyncResult ar) { argument
203 if (ar.exception != null) {
206 + "never return an error", ar.exception);
210 IccCardStatus status = (IccCardStatus)ar.result;
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
H A DGSMPhoneTest.java138 AsyncResult ar;
309 ar = (AsyncResult) msg.obj;
310 cn = (Connection) ar.result;
601 ar = (AsyncResult) msg.obj;
602 cn = (Connection) ar.result;
1361 AsyncResult ar;
1368 ar = (AsyncResult) (msg.obj);
1369 cn = (Connection) (ar.result);
1377 ar = (AsyncResult) (msg.obj);
1378 assertEquals(Connection.PostDialState.STARTED, ar
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DZygoteInit.java350 TypedArray ar = mResources.obtainTypedArray(
352 int N = preloadDrawables(runtime, ar);
353 ar.recycle();
358 ar = mResources.obtainTypedArray(
360 N = preloadColorStateLists(runtime, ar);
361 ar.recycle();
373 private static int preloadColorStateLists(VMRuntime runtime, TypedArray ar) { argument
374 int N = ar.length();
384 int id = ar.getResourceId(i, 0);
393 + " (" + ar
401 preloadDrawables(VMRuntime runtime, TypedArray ar) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DIconLoader.java132 AsyncResult ar;
137 ar = (AsyncResult) msg.obj;
138 if (handleImageDescriptor((byte[]) ar.result)) {
145 ar = (AsyncResult) msg.obj;
146 byte[] rawData = ((byte[]) ar.result);
157 ar = (AsyncResult) msg.obj;
158 byte [] clut = ((byte[]) ar.result);

Completed in 898 milliseconds

123