/frameworks/wilhelm/src/android/ |
D | AudioRecorder_to_android.cpp | 39 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 …]
|
D | AudioRecorder_to_android.h | 20 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/base/telephony/java/com/android/internal/telephony/gsm/ |
D | SIMRecords.java | 517 AsyncResult ar; in handleMessage() local 539 ar = (AsyncResult)msg.obj; in handleMessage() 541 if (ar.exception != null) { in handleMessage() 542 loge("Exception querying IMSI, Exception:" + ar.exception); in handleMessage() 546 imsi = (String) ar.result; in handleMessage() 592 ar = (AsyncResult)msg.obj; in handleMessage() 593 data = (byte[]) ar.result; in handleMessage() 596 if (ar.exception == null) { in handleMessage() 637 ar = (AsyncResult)msg.obj; in handleMessage() 639 if (ar.exception != null) { in handleMessage() [all …]
|
D | GSMPhone.java | 1150 AsyncResult ar; in handleMessage() local 1185 ar = (AsyncResult)msg.obj; in handleMessage() 1187 if (ar.exception != null) { in handleMessage() 1191 if (LOCAL_DEBUG) Log.d(LOG_TAG, "Baseband version: " + ar.result); in handleMessage() 1192 setSystemProperty(PROPERTY_BASEBAND_VERSION, (String)ar.result); in handleMessage() 1196 ar = (AsyncResult)msg.obj; in handleMessage() 1198 if (ar.exception != null) { in handleMessage() 1202 mImei = (String)ar.result; in handleMessage() 1206 ar = (AsyncResult)msg.obj; in handleMessage() 1208 if (ar.exception != null) { in handleMessage() [all …]
|
D | GsmServiceStateTracker.java | 269 AsyncResult ar; in handleMessage() local 329 ar = (AsyncResult) msg.obj; in handleMessage() 330 onSignalStrengthResult(ar); in handleMessage() 336 ar = (AsyncResult) msg.obj; in handleMessage() 338 if (ar.exception == null) { in handleMessage() 339 String states[] = (String[])ar.result; in handleMessage() 367 ar = (AsyncResult) msg.obj; in handleMessage() 369 handlePollStateResult(msg.what, ar); in handleMessage() 379 ar = (AsyncResult) msg.obj; in handleMessage() 381 String nitzString = (String)((Object[])ar.result)[0]; in handleMessage() [all …]
|
D | UsimPhoneBookManager.java | 336 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 …]
|
D | GsmMmiCode.java | 870 AsyncResult ar; in handleMessage() local 874 ar = (AsyncResult) (msg.obj); in handleMessage() 876 onSetComplete(ar); in handleMessage() 880 ar = (AsyncResult) (msg.obj); in handleMessage() 886 if ((ar.exception == null) && (msg.arg1 == 1)) { in handleMessage() 891 onSetComplete(ar); in handleMessage() 895 ar = (AsyncResult) (msg.obj); in handleMessage() 896 onGetClirComplete(ar); in handleMessage() 900 ar = (AsyncResult) (msg.obj); in handleMessage() 901 onQueryCfComplete(ar); in handleMessage() [all …]
|
D | SimSmsInterfaceManager.java | 70 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/base/telephony/java/com/android/internal/telephony/ |
D | AdnRecordLoader.java | 132 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 …]
|
D | IccFileHandler.java | 292 AsyncResult ar; in handleMessage() local 308 ar = (AsyncResult) msg.obj; in handleMessage() 309 lc = (LoadLinearFixedContext) ar.userObj; in handleMessage() 310 result = (IccIoResult) ar.result; in handleMessage() 315 sendResult(response, result.payload, ar.exception); in handleMessage() 319 ar = (AsyncResult) msg.obj; in handleMessage() 320 response = (Message) ar.userObj; in handleMessage() 321 result = (IccIoResult) ar.result; in handleMessage() 325 sendResult(response, result.payload, ar.exception); in handleMessage() 329 ar = (AsyncResult)msg.obj; in handleMessage() [all …]
|
D | IccPhoneBookInterfaceManager.java | 52 AsyncResult ar; 56 ar = (AsyncResult) msg.obj; 58 if (ar.exception == null) { 59 recordSize = (int[])ar.result; 67 notifyPending(ar); 71 ar = (AsyncResult) msg.obj; 73 success = (ar.exception == null); 74 notifyPending(ar); 78 ar = (AsyncResult)msg.obj; 80 if (ar.exception == null) { [all …]
|
D | IccCard.java | 503 private void getIccCardStatusDone(AsyncResult ar) { in getIccCardStatusDone() argument 504 if (ar.exception != null) { in getIccCardStatusDone() 507 + "never return an error", ar.exception); in getIccCardStatusDone() 510 handleIccCardStatus((IccCardStatus) ar.result); in getIccCardStatusDone() 639 private void onQueryFdnEnabled(AsyncResult ar) { in onQueryFdnEnabled() argument 640 if(ar.exception != null) { in onQueryFdnEnabled() 641 if(mDbg) log("Error in querying facility lock:" + ar.exception); in onQueryFdnEnabled() 645 int[] ints = (int[])ar.result; in onQueryFdnEnabled() 658 private void onQueryFacilityLock(AsyncResult ar) { in onQueryFacilityLock() argument 659 if(ar.exception != null) { in onQueryFacilityLock() [all …]
|
D | AdnRecordCache.java | 82 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 …]
|
D | DataConnection.java | 311 AsyncResult ar = new AsyncResult(o, null, null); in tearDownData() local 312 sendMessage(obtainMessage(EVENT_DEACTIVATE_DONE, ar)); in tearDownData() 513 private DataCallState.SetupResult onSetupConnectionCompleted(AsyncResult ar) { in onSetupConnectionCompleted() argument 514 DataCallState response = (DataCallState) ar.result; in onSetupConnectionCompleted() 515 ConnectionParams cp = (ConnectionParams) ar.userObj; in onSetupConnectionCompleted() 518 if (ar.exception != null) { in onSetupConnectionCompleted() 520 log("onSetupConnectionCompleted failed, ar.exception=" + ar.exception + in onSetupConnectionCompleted() 524 if (ar.exception instanceof CommandException in onSetupConnectionCompleted() 525 && ((CommandException) (ar.exception)).getCommandError() in onSetupConnectionCompleted() 552 private int getSuggestedRetryTime(AsyncResult ar) { in getSuggestedRetryTime() argument [all …]
|
/frameworks/compile/libbcc/tests/data/src/ |
D | brackets.c | 1 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/base/telephony/java/com/android/internal/telephony/cdma/ |
D | RuimRecords.java | 196 AsyncResult ar; in handleMessage() local 221 ar = (AsyncResult)msg.obj; in handleMessage() 222 if (ar.exception != null) { in handleMessage() 223 loge("Exception querying IMSI, Exception:" + ar.exception); in handleMessage() 227 mImsi = (String) ar.result; in handleMessage() 247 ar = (AsyncResult)msg.obj; in handleMessage() 248 String localTemp[] = (String[])ar.result; in handleMessage() 249 if (ar.exception != null) { in handleMessage() 264 ar = (AsyncResult)msg.obj; in handleMessage() 265 data = (byte[])ar.result; in handleMessage() [all …]
|
D | CdmaSubscriptionSourceManager.java | 107 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()
|
D | CdmaLteUiccRecords.java | 70 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument 71 mEFpl = (byte[]) ar.result; in onRecordLoaded() 82 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument 83 mEFli = (byte[]) ar.result; in onRecordLoaded() 108 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument 109 byte[] data = (byte[]) ar.result; in onRecordLoaded() 161 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument 162 byte[] data = (byte[]) ar.result; in onRecordLoaded() 175 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument 176 byte[] data = (byte[]) ar.result; in onRecordLoaded() [all …]
|
D | CdmaServiceStateTracker.java | 270 AsyncResult ar; in handleMessage() local 339 ar = (AsyncResult) msg.obj; in handleMessage() 340 onSignalStrengthResult(ar); in handleMessage() 346 ar = (AsyncResult) msg.obj; in handleMessage() 348 if (ar.exception == null) { in handleMessage() 349 String states[] = (String[])ar.result; in handleMessage() 395 ar = (AsyncResult) msg.obj; in handleMessage() 396 handlePollStateResult(msg.what, ar); in handleMessage() 400 ar = (AsyncResult) msg.obj; in handleMessage() 402 if (ar.exception == null) { in handleMessage() [all …]
|
D | CDMALTEPhone.java | 74 AsyncResult ar; in handleMessage() local 81 ar = (AsyncResult)msg.obj; in handleMessage() 82 m3gppSMS.dispatchMessage((SmsMessage)ar.result); in handleMessage() 172 private void handleSetSelectNetwork(AsyncResult ar) { in handleSetSelectNetwork() argument 175 if (!(ar.userObj instanceof NetworkSelectMessage)) { in handleSetSelectNetwork() 180 NetworkSelectMessage nsm = (NetworkSelectMessage) ar.userObj; in handleSetSelectNetwork() 186 AsyncResult.forMessage(nsm.message, ar.result, ar.exception); in handleSetSelectNetwork()
|
D | RuimSmsInterfaceManager.java | 57 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);
|
D | CdmaMmiCode.java | 236 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/base/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
D | GSMPhoneTest.java | 137 AsyncResult ar; in brokenTestGeneral() local 308 ar = (AsyncResult) msg.obj; in brokenTestGeneral() 309 cn = (Connection) ar.result; in brokenTestGeneral() 600 ar = (AsyncResult) msg.obj; in brokenTestGeneral() 601 cn = (Connection) ar.result; in brokenTestGeneral() 1360 AsyncResult ar; in testPostDialSequences() local 1367 ar = (AsyncResult) (msg.obj); in testPostDialSequences() 1368 cn = (Connection) (ar.result); in testPostDialSequences() 1376 ar = (AsyncResult) (msg.obj); in testPostDialSequences() 1377 assertEquals(Connection.PostDialState.STARTED, ar.userObj); in testPostDialSequences() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/ims/ |
D | IsimUiccRecords.java | 54 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument 55 byte[] data = (byte[]) ar.result; in onRecordLoaded() 65 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument 66 ArrayList<byte[]> impuList = (ArrayList<byte[]>) ar.result; in onRecordLoaded() 82 public void onRecordLoaded(AsyncResult ar) { in onRecordLoaded() argument 83 byte[] data = (byte[]) ar.result; in onRecordLoaded()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | ZygoteInit.java | 348 TypedArray ar = mResources.obtainTypedArray( in preloadResources() local 350 int N = preloadDrawables(runtime, ar); in preloadResources() 351 ar.recycle(); in preloadResources() 356 ar = mResources.obtainTypedArray( in preloadResources() 358 N = preloadColorStateLists(runtime, ar); in preloadResources() 359 ar.recycle(); in preloadResources() 371 private static int preloadColorStateLists(VMRuntime runtime, TypedArray ar) { in preloadColorStateLists() argument 372 int N = ar.length(); in preloadColorStateLists() 382 int id = ar.getResourceId(i, 0); in preloadColorStateLists() 394 private static int preloadDrawables(VMRuntime runtime, TypedArray ar) { in preloadDrawables() argument [all …]
|