Home
last modified time | relevance | path

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

12

/packages/services/Telephony/src/com/android/phone/
DPhoneInterfaceManager.java277 AsyncResult ar; in handleMessage() local
339 ar = (AsyncResult) msg.obj; in handleMessage()
340 request = (MainThreadRequest) ar.userObj; in handleMessage()
341 if (ar.exception == null && ar.result != null) { in handleMessage()
342 request.result = ar.result; in handleMessage()
408 ar = (AsyncResult) msg.obj; in handleMessage()
409 request = (MainThreadRequest) ar.userObj; in handleMessage()
410 if (ar.exception == null && ar.result != null) { in handleMessage()
411 request.result = ar.result; in handleMessage()
414 if (ar.result == null) { in handleMessage()
[all …]
DCallWaitingSwitchPreference.java78 AsyncResult ar = (AsyncResult) msg.obj; in handleGetCallWaitingResponse() local
88 if (ar.exception instanceof CommandException) { in handleGetCallWaitingResponse()
91 ar.exception); in handleGetCallWaitingResponse()
95 (CommandException)ar.exception); in handleGetCallWaitingResponse()
97 } else if (ar.userObj instanceof Throwable || ar.exception != null) { in handleGetCallWaitingResponse()
100 Log.d(LOG_TAG, "handleGetCallWaitingResponse: Exception" + ar.exception); in handleGetCallWaitingResponse()
109 int[] cwArray = (int[])ar.result; in handleGetCallWaitingResponse()
123 AsyncResult ar = (AsyncResult) msg.obj; in handleSetCallWaitingResponse() local
125 if (ar.exception != null) { in handleSetCallWaitingResponse()
127 Log.d(LOG_TAG, "handleSetCallWaitingResponse: ar.exception=" + ar.exception); in handleSetCallWaitingResponse()
[all …]
DCLIRListPreference.java129 AsyncResult ar = (AsyncResult) msg.obj; in handleGetCLIRResponse() local
137 if (ar.exception != null) { in handleGetCLIRResponse()
138 if (DBG) Log.d(LOG_TAG, "handleGetCLIRResponse: ar.exception="+ar.exception); in handleGetCLIRResponse()
139 mTcpListener.onException(CLIRListPreference.this, (CommandException) ar.exception); in handleGetCLIRResponse()
140 } else if (ar.userObj instanceof Throwable) { in handleGetCLIRResponse()
143 int clirArray[] = (int[]) ar.result; in handleGetCLIRResponse()
158 AsyncResult ar = (AsyncResult) msg.obj; in handleSetCLIRResponse() local
160 if (ar.exception != null) { in handleSetCLIRResponse()
161 if (DBG) Log.d(LOG_TAG, "handleSetCallWaitingResponse: ar.exception="+ar.exception); in handleSetCLIRResponse()
167 MESSAGE_SET_CLIR, MESSAGE_SET_CLIR, ar.exception)); in handleSetCLIRResponse()
DCallForwardEditPreference.java202 AsyncResult ar = (AsyncResult) msg.obj; in handleGetCFResponse() local
205 if (ar.exception != null) { in handleGetCFResponse()
206 if (DBG) Log.d(LOG_TAG, "handleGetCFResponse: ar.exception=" + ar.exception); in handleGetCFResponse()
207 if (ar.exception instanceof CommandException) { in handleGetCFResponse()
209 (CommandException) ar.exception); in handleGetCFResponse()
218 if (ar.userObj instanceof Throwable) { in handleGetCFResponse()
221 CallForwardInfo cfInfoArray[] = (CallForwardInfo[]) ar.result; in handleGetCFResponse()
272 AsyncResult ar = (AsyncResult) msg.obj; in handleSetCFResponse() local
274 if (ar.exception != null) { in handleSetCFResponse()
275 if (DBG) Log.d(LOG_TAG, "handleSetCFResponse: ar.exception=" + ar.exception); in handleSetCFResponse()
[all …]
DCdmaVoicePrivacySwitchPreference.java79 AsyncResult ar = (AsyncResult) msg.obj; in handleGetVPResponse() local
81 if (ar.exception != null) { in handleGetVPResponse()
82 if (DBG) Log.d(LOG_TAG, "handleGetVPResponse: ar.exception=" + ar.exception); in handleGetVPResponse()
86 final int enable = ((int[]) ar.result)[0]; in handleGetVPResponse()
95 AsyncResult ar = (AsyncResult) msg.obj; in handleSetVPResponse() local
97 if (ar.exception != null) { in handleSetVPResponse()
98 if (DBG) Log.d(LOG_TAG, "handleSetVPResponse: ar.exception=" + ar.exception); in handleSetVPResponse()
DNetworkSetting.java96 AsyncResult ar;
107 ar = (AsyncResult) msg.obj;
108 if (ar.exception != null) {
110 displayNetworkSelectionFailed(ar.exception);
132 ar = (AsyncResult) msg.obj;
133 if (ar.exception != null) {
135 displayNetworkSelectionFailed(ar.exception);
DEnableIccPinScreen.java54 AsyncResult ar = (AsyncResult) msg.obj;
55 handleResult(ar);
109 private void handleResult(AsyncResult ar) { in handleResult() argument
110 if (ar.exception == null) { in handleResult()
114 } else if (ar.exception instanceof CommandException in handleResult()
DCdmaSystemSelectListPreference.java116 AsyncResult ar = (AsyncResult) msg.obj; in handleQueryCdmaRoamingPreference() local
118 if (ar.exception == null) { in handleQueryCdmaRoamingPreference()
119 int statusCdmaRoamingMode = ((int[])ar.result)[0]; in handleQueryCdmaRoamingPreference()
146 AsyncResult ar = (AsyncResult) msg.obj; in handleSetCdmaRoamingPreference() local
148 if ((ar.exception == null) && (getValue() != null)) { in handleSetCdmaRoamingPreference()
DChangeIccPinScreen.java82 AsyncResult ar = (AsyncResult) msg.obj;
83 handleResult(ar);
234 private void handleResult(AsyncResult ar) { in handleResult() argument
235 if (ar.exception == null) { in handleResult()
251 } else if (ar.exception instanceof CommandException in handleResult()
258 CommandException ce = (CommandException) ar.exception; in handleResult()
DNetworkQueryService.java201 private void broadcastQueryResults (AsyncResult ar) { in broadcastQueryResults() argument
207 if (ar == null) { in broadcastQueryResults()
214 int exception = (ar.exception == null) ? QUERY_OK : QUERY_EXCEPTION; in broadcastQueryResults()
222 cb.onQueryComplete((ArrayList<OperatorInfo>) ar.result, exception); in broadcastQueryResults()
DCdmaSubscriptionListPreference.java119 AsyncResult ar = (AsyncResult) msg.obj; in handleSetCdmaSubscriptionMode() local
121 if (ar.exception == null) { in handleSetCdmaSubscriptionMode()
123 int cdmaSubscriptionMode = Integer.parseInt((String) ar.userObj); in handleSetCdmaSubscriptionMode()
/packages/services/Telephony/src/com/android/services/telephony/
DTtyManager.java46 AsyncResult ar = (AsyncResult) msg.obj;
47 if (ar.exception != null) {
48 Log.d(TtyManager.this, "setTTYMode exception: %s", ar.exception);
55 AsyncResult ar = (AsyncResult) msg.obj;
56 if (ar.exception != null) {
57 Log.d(TtyManager.this, "queryTTYMode exception: %s", ar.exception);
59 int ttyMode = phoneModeToTelecomMode(((int[]) ar.result)[0]);
DPstnPhoneCapabilitiesNotifier.java90 private void handleVideoCapabilitesChanged(AsyncResult ar) { in handleVideoCapabilitesChanged() argument
92 boolean isVideoCapable = (Boolean) ar.result; in handleVideoCapabilitesChanged()
/packages/services/Telephony/src/com/android/phone/settings/fdn/
DFdnSetting.java249 AsyncResult ar = (AsyncResult) msg.obj;
250 if (ar.exception != null) {
251 if (ar.exception instanceof CommandException) {
255 ((CommandException) ar.exception).getCommandError();
285 AsyncResult ar = (AsyncResult) msg.obj;
286 if (ar.exception != null) {
287 if (ar.exception instanceof CommandException) {
291 CommandException ce = (CommandException) ar.exception;
/packages/apps/Settings/src/com/android/settings/
DBandMode.java220 AsyncResult ar;
223 ar = (AsyncResult) msg.obj;
225 bandListLoaded(ar);
229 ar = (AsyncResult) msg.obj;
236 displayBandSelectionResult(ar.exception);
DRadioInfo.java304 AsyncResult ar;
307 ar= (AsyncResult) msg.obj;
308 if (ar.exception == null && ar.result != null) {
309 updatePreferredNetworkType(((int[])ar.result)[0]);
316 ar= (AsyncResult) msg.obj;
317 if (ar.exception != null) {
322 ar= (AsyncResult) msg.obj;
323 if (ar.exception != null) {
326 smsc.setText((String)ar.result);
331 ar= (AsyncResult) msg.obj;
[all …]
DIccLockSettings.java118 AsyncResult ar = (AsyncResult) msg.obj;
121 iccLockChanged(ar.exception == null, msg.arg1);
124 iccPinChanged(ar.exception == null, msg.arg1);
/packages/apps/SpeechRecorder/src/com/android/speechrecorder/
DMicrophoneInputStream.java50 AudioRecord ar = new AudioRecord(VOICE_RECOGNITION, in createAudioRecord() local
53 if (ar.getState() != AudioRecord.STATE_INITIALIZED) { in createAudioRecord()
54 ar.release(); in createAudioRecord()
58 return ar; in createAudioRecord()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DRoundedLine.java58 final double ar = Math.asin(dr / l); in makePath() local
60 final double aa = a - (RIGHT_ANGLE + ar); in makePath()
62 final double ab = a + (RIGHT_ANGLE + ar); in makePath()
81 final float ar2degree = (float)(ar * 2.0d * RADIAN_TO_DEGREE); in makePath()
/packages/experimental/ExampleImsFramework/src/com/android/example/imsframework/
DImsFrameworkApp.java118 AsyncResult ar = (AsyncResult) msg.obj; in handleMessage() local
119 if (ar.exception != null) { in handleMessage()
120 Log.d(TAG, "requestIsimAuthentication exception: " + ar.exception); in handleMessage()
122 String response = (String) ar.result; in handleMessage()
/packages/apps/Gallery2/src/com/android/photos/data/
DGalleryBitmapPool.java95 for (Point ar : COMMON_PHOTO_ASPECT_RATIOS) { in getPoolIndexForDimensions()
96 if (min * ar.x == max * ar.y) { in getPoolIndexForDimensions()
/packages/services/Telephony/src/com/android/phone/settings/
DVoicemailSettingsActivity.java724 private void handleForwardingSettingsReadResult(AsyncResult ar, int idx) { in handleForwardingSettingsReadResult() argument
728 if (ar.exception != null) { in handleForwardingSettingsReadResult()
729 error = ar.exception; in handleForwardingSettingsReadResult()
732 if (ar.userObj instanceof Throwable) { in handleForwardingSettingsReadResult()
733 error = (Throwable) ar.userObj; in handleForwardingSettingsReadResult()
754 (CallForwardInfo[]) ar.result, in handleForwardingSettingsReadResult()
/packages/apps/Camera2/src/com/android/camera/ui/
DBottomBar.java100 TypedArray ar = context.getResources() in BottomBar() local
102 int len = ar.length(); in BottomBar()
105 int drawableId = ar.getResourceId(i, -1); in BottomBar()
109 ar.recycle(); in BottomBar()
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherProvider.java993 TypedArray ar = mContext.obtainStyledAttributes(attrs, in loadFavorites() local
1000 addAppShortcut(db, values, ar, packageManager, intent); in loadFavorites()
1005 long id = addUriShortcut(db, values, ar); in loadFavorites()
1013 ar.recycle(); in loadFavorites()
1167 TypedArray ar = mContext.obtainStyledAttributes(attrs, R.styleable.Extra); in addAppWidget() local
1169 String key = ar.getString(R.styleable.Extra_key); in addAppWidget()
1170 String value = ar.getString(R.styleable.Extra_value); in addAppWidget()
1179 ar.recycle(); in addAppWidget()
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_indexing.h35 inline void db_SetupMatrixRefs(double **ar,long rows,long cols,double *a) in db_SetupMatrixRefs() argument
38 for(i=0;i<rows;i++) ar[i]=&a[i*cols]; in db_SetupMatrixRefs()

12