Home
last modified time | relevance | path

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

1234

/frameworks/wilhelm/src/android/
DAudioRecorder_to_android.cpp39 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()
76 SLresult audioRecorder_getPreset(CAudioRecorder* ar, SLuint32* pPreset) { in audioRecorder_getPreset() argument
79 switch (ar->mRecordSource) { in audioRecorder_getPreset()
108 void audioRecorder_handleNewPos_lockRecord(CAudioRecorder* ar) { in audioRecorder_handleNewPos_lockRecord() argument
113 interface_lock_shared(&ar->mRecord); in audioRecorder_handleNewPos_lockRecord()
114 callback = ar->mRecord.mCallback; in audioRecorder_handleNewPos_lockRecord()
115 callbackPContext = ar->mRecord.mContext; in audioRecorder_handleNewPos_lockRecord()
116 interface_unlock_shared(&ar->mRecord); in audioRecorder_handleNewPos_lockRecord()
[all …]
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);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DSIMRecords.java529 AsyncResult ar; in handleMessage() local
551 ar = (AsyncResult)msg.obj; in handleMessage()
553 if (ar.exception != null) { in handleMessage()
554 loge("Exception querying IMSI, Exception:" + ar.exception); in handleMessage()
558 mImsi = (String) ar.result; in handleMessage()
603 ar = (AsyncResult)msg.obj; in handleMessage()
604 data = (byte[]) ar.result; in handleMessage()
607 if (ar.exception == null) { in handleMessage()
648 ar = (AsyncResult)msg.obj; in handleMessage()
650 if (ar.exception != null) { in handleMessage()
[all …]
DGSMPhone.java1161 AsyncResult ar; in handleMessage() local
1196 ar = (AsyncResult)msg.obj; in handleMessage()
1198 if (ar.exception != null) { in handleMessage()
1202 if (LOCAL_DEBUG) Log.d(LOG_TAG, "Baseband version: " + ar.result); in handleMessage()
1203 setSystemProperty(PROPERTY_BASEBAND_VERSION, (String)ar.result); in handleMessage()
1207 ar = (AsyncResult)msg.obj; in handleMessage()
1209 if (ar.exception != null) { in handleMessage()
1213 mImei = (String)ar.result; in handleMessage()
1217 ar = (AsyncResult)msg.obj; in handleMessage()
1219 if (ar.exception != null) { in handleMessage()
[all …]
DUsimPhoneBookManager.java336 AsyncResult ar; in handleMessage() local
340 ar = (AsyncResult) msg.obj; in handleMessage()
341 if (ar.exception == null) { in handleMessage()
342 createPbrFile((ArrayList<byte[]>)ar.result); in handleMessage()
350 ar = (AsyncResult) msg.obj; in handleMessage()
351 if (ar.exception == null) { in handleMessage()
352 mPhoneBookRecords.addAll((ArrayList<AdnRecord>)ar.result); in handleMessage()
360 ar = (AsyncResult) msg.obj; in handleMessage()
361 if (ar.exception == null) { in handleMessage()
362 mIapFileRecord = ((ArrayList<byte[]>)ar.result); in handleMessage()
[all …]
DGsmMmiCode.java890 AsyncResult ar; in handleMessage() local
894 ar = (AsyncResult) (msg.obj); in handleMessage()
896 onSetComplete(ar); in handleMessage()
900 ar = (AsyncResult) (msg.obj); in handleMessage()
906 if ((ar.exception == null) && (msg.arg1 == 1)) { in handleMessage()
913 onSetComplete(ar); in handleMessage()
917 ar = (AsyncResult) (msg.obj); in handleMessage()
918 onGetClirComplete(ar); in handleMessage()
922 ar = (AsyncResult) (msg.obj); in handleMessage()
923 onQueryCfComplete(ar); in handleMessage()
[all …]
DGsmServiceStateTracker.java269 AsyncResult ar; in handleMessage() local
320 ar = (AsyncResult) msg.obj; in handleMessage()
321 onSignalStrengthResult(ar, true); in handleMessage()
327 ar = (AsyncResult) msg.obj; in handleMessage()
329 if (ar.exception == null) { in handleMessage()
330 String states[] = (String[])ar.result; in handleMessage()
358 ar = (AsyncResult) msg.obj; in handleMessage()
360 handlePollStateResult(msg.what, ar); in handleMessage()
370 ar = (AsyncResult) msg.obj; in handleMessage()
372 String nitzString = (String)((Object[])ar.result)[0]; in handleMessage()
[all …]
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);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DAdnRecordLoader.java132 AsyncResult ar; in handleMessage() local
139 ar = (AsyncResult)(msg.obj); in handleMessage()
140 adn = (AdnRecord)(ar.userObj); in handleMessage()
142 if (ar.exception != null) { in handleMessage()
144 ar.exception); in handleMessage()
147 int[] recordSize = (int[])ar.result; in handleMessage()
155 ar.exception); in handleMessage()
162 ar.exception); in handleMessage()
172 ar = (AsyncResult)(msg.obj); in handleMessage()
173 if (ar.exception != null) { in handleMessage()
[all …]
DIccFileHandler.java321 AsyncResult ar; in handleMessage() local
338 ar = (AsyncResult) msg.obj; in handleMessage()
339 lc = (LoadLinearFixedContext) ar.userObj; in handleMessage()
340 result = (IccIoResult) ar.result; in handleMessage()
343 if (ar.exception != null) { in handleMessage()
344 sendResult(response, null, ar.exception); in handleMessage()
373 ar = (AsyncResult) msg.obj; in handleMessage()
374 lc = (LoadLinearFixedContext) ar.userObj; in handleMessage()
375 result = (IccIoResult) ar.result; in handleMessage()
380 sendResult(response, result.payload, ar.exception); in handleMessage()
[all …]
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.exception == null) {
[all …]
DUiccCardApplication.java207 private void onQueryFdnEnabled(AsyncResult ar) { in onQueryFdnEnabled() argument
209 if (ar.exception != null) { in onQueryFdnEnabled()
210 if (DBG) log("Error in querying facility lock:" + ar.exception); in onQueryFdnEnabled()
214 int[] ints = (int[])ar.result; in onQueryFdnEnabled()
224 private void onChangeFdnDone(AsyncResult ar) { in onChangeFdnDone() argument
226 if (ar.exception == null) { in onChangeFdnDone()
231 loge("Error change facility fdn with exception " + ar.exception); in onChangeFdnDone()
233 Message response = (Message)ar.userObj; in onChangeFdnDone()
234 AsyncResult.forMessage(response).exception = ar.exception; in onChangeFdnDone()
250 private void onQueryFacilityLock(AsyncResult ar) { in onQueryFacilityLock() argument
[all …]
DAdnRecordCache.java82 AsyncResult ar = new AsyncResult(null, null, new RuntimeException("AdnCache reset")); in clearWaiters() local
83 notifyWaiters(waiters, ar); in clearWaiters()
306 notifyWaiters(ArrayList<Message> waiters, AsyncResult ar) { in notifyWaiters() argument
315 AsyncResult.forMessage(waiter, ar.result, ar.exception); in notifyWaiters()
324 AsyncResult ar; in handleMessage() local
330 ar = (AsyncResult) msg.obj; in handleMessage()
337 if (ar.exception == null) { in handleMessage()
338 adnLikeFiles.put(efid, (ArrayList<AdnRecord>) ar.result); in handleMessage()
340 notifyWaiters(waiters, ar); in handleMessage()
343 ar = (AsyncResult)msg.obj; in handleMessage()
[all …]
DDataConnection.java331 AsyncResult ar = new AsyncResult(o, null, null); in tearDownData() local
332 sendMessage(obtainMessage(EVENT_DEACTIVATE_DONE, ar)); in tearDownData()
541 private DataCallState.SetupResult onSetupConnectionCompleted(AsyncResult ar) { in onSetupConnectionCompleted() argument
542 DataCallState response = (DataCallState) ar.result; in onSetupConnectionCompleted()
543 ConnectionParams cp = (ConnectionParams) ar.userObj; in onSetupConnectionCompleted()
546 if (ar.exception != null) { in onSetupConnectionCompleted()
548 log("onSetupConnectionCompleted failed, ar.exception=" + ar.exception + in onSetupConnectionCompleted()
552 if (ar.exception instanceof CommandException in onSetupConnectionCompleted()
553 && ((CommandException) (ar.exception)).getCommandError() in onSetupConnectionCompleted()
580 private int getSuggestedRetryTime(AsyncResult ar) { in getSuggestedRetryTime() argument
[all …]
/frameworks/compile/libbcc/tests/data/src/
Dbrackets.c1 void testBrackets(int* ar, int len) { in testBrackets() argument
5 ar[i] = i; in testBrackets()
8 if (ar[i] != i) { in testBrackets()
9 printf("error: [%d] %d != %d\n", i, ar[i], i); in testBrackets()
38 int* ar = (int*) malloc(100); in testHeap() local
39 testBrackets(ar, 25); in testHeap()
40 free(ar); in testHeap()
46 int* ar = (int*) malloc(lenX * lenY * 4); in testHeap2D() local
50 ar2D[i] = ar + lenY * i; in testHeap2D()
53 free(ar); in testHeap2D()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DRuimRecords.java231 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
232 mEFpl = (byte[]) ar.result; in onRecordLoaded()
243 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
244 mEFli = (byte[]) ar.result; in onRecordLoaded()
269 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
270 byte[] data = (byte[]) ar.result; in onRecordLoaded()
323 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
324 byte[] data = (byte[]) ar.result; in onRecordLoaded()
338 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
339 byte[] data = (byte[]) ar.result; in onRecordLoaded()
[all …]
DCdmaSubscriptionSourceManager.java107 AsyncResult ar; in handleMessage() local
113 ar = (AsyncResult) msg.obj; in handleMessage()
114 handleGetCdmaSubscriptionSource(ar); in handleMessage()
161 private void handleGetCdmaSubscriptionSource(AsyncResult ar) { in handleGetCdmaSubscriptionSource() argument
162 if ((ar.exception == null) && (ar.result != null)) { in handleGetCdmaSubscriptionSource()
163 int newSubscriptionSource = ((int[]) ar.result)[0]; in handleGetCdmaSubscriptionSource()
179 logw("Unable to get CDMA Subscription Source, Exception: " + ar.exception in handleGetCdmaSubscriptionSource()
180 + ", result: " + ar.result); in handleGetCdmaSubscriptionSource()
DCdmaServiceStateTracker.java270 AsyncResult ar; in handleMessage() local
331 ar = (AsyncResult) msg.obj; in handleMessage()
332 onSignalStrengthResult(ar, false); in handleMessage()
338 ar = (AsyncResult) msg.obj; in handleMessage()
340 if (ar.exception == null) { in handleMessage()
341 String states[] = (String[])ar.result; in handleMessage()
387 ar = (AsyncResult) msg.obj; in handleMessage()
388 handlePollStateResult(msg.what, ar); in handleMessage()
392 ar = (AsyncResult) msg.obj; in handleMessage()
394 if (ar.exception == null) { in handleMessage()
[all …]
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);
DCDMALTEPhone.java82 AsyncResult ar; in handleMessage() local
89 ar = (AsyncResult)msg.obj; in handleMessage()
90 m3gppSMS.dispatchMessage((SmsMessage)ar.result); in handleMessage()
176 private void handleSetSelectNetwork(AsyncResult ar) { in handleSetSelectNetwork() argument
179 if (!(ar.userObj instanceof NetworkSelectMessage)) { in handleSetSelectNetwork()
184 NetworkSelectMessage nsm = (NetworkSelectMessage) ar.userObj; in handleSetSelectNetwork()
190 AsyncResult.forMessage(nsm.message, ar.result, ar.exception); in handleSetSelectNetwork()
DCdmaMmiCode.java236 AsyncResult ar; in handleMessage() local
239 ar = (AsyncResult) (msg.obj); in handleMessage()
240 onSetComplete(ar); in handleMessage()
258 onSetComplete(AsyncResult ar){ in onSetComplete() argument
262 if (ar.exception != null) { in onSetComplete()
264 if (ar.exception instanceof CommandException) { in onSetComplete()
265 CommandException.Error err = ((CommandException)(ar.exception)).getCommandError(); in onSetComplete()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGSMPhoneTest.java138 AsyncResult ar; in brokenTestGeneral() local
309 ar = (AsyncResult) msg.obj; in brokenTestGeneral()
310 cn = (Connection) ar.result; in brokenTestGeneral()
601 ar = (AsyncResult) msg.obj; in brokenTestGeneral()
602 cn = (Connection) ar.result; in brokenTestGeneral()
1361 AsyncResult ar; in testPostDialSequences() local
1368 ar = (AsyncResult) (msg.obj); in testPostDialSequences()
1369 cn = (Connection) (ar.result); in testPostDialSequences()
1377 ar = (AsyncResult) (msg.obj); in testPostDialSequences()
1378 assertEquals(Connection.PostDialState.STARTED, ar.userObj); in testPostDialSequences()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DZygoteInit.java350 TypedArray ar = mResources.obtainTypedArray( in preloadResources() local
352 int N = preloadDrawables(runtime, ar); in preloadResources()
353 ar.recycle(); in preloadResources()
358 ar = mResources.obtainTypedArray( in preloadResources()
360 N = preloadColorStateLists(runtime, ar); in preloadResources()
361 ar.recycle(); in preloadResources()
373 private static int preloadColorStateLists(VMRuntime runtime, TypedArray ar) { in preloadColorStateLists() argument
374 int N = ar.length(); in preloadColorStateLists()
384 int id = ar.getResourceId(i, 0); in preloadColorStateLists()
393 + " (" + ar.getString(i) + ")"); in preloadColorStateLists()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccController.java184 AsyncResult ar = (AsyncResult)msg.obj; in handleMessage() local
185 onGetIccCardStatusDone(ar); in handleMessage()
202 private synchronized void onGetIccCardStatusDone(AsyncResult ar) { in onGetIccCardStatusDone() argument
203 if (ar.exception != null) { in onGetIccCardStatusDone()
206 + "never return an error", ar.exception); in onGetIccCardStatusDone()
210 IccCardStatus status = (IccCardStatus)ar.result; in onGetIccCardStatusDone()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/
DIsimUiccRecords.java133 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
134 byte[] data = (byte[]) ar.result; in onRecordLoaded()
144 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
145 ArrayList<byte[]> impuList = (ArrayList<byte[]>) ar.result; in onRecordLoaded()
161 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument
162 byte[] data = (byte[]) ar.result; in onRecordLoaded()

1234