Home
last modified time | relevance | path

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

123

/packages/services/Telephony/src/com/android/phone/
DPhoneInterfaceManager.java433 AsyncResult ar; in handleMessage() local
500 ar = (AsyncResult) msg.obj; in handleMessage()
501 request = (MainThreadRequest) ar.userObj; in handleMessage()
502 if (ar.exception == null && ar.result != null) { in handleMessage()
503 request.result = ar.result; in handleMessage()
506 if (ar.result == null) { in handleMessage()
508 } else if (ar.exception instanceof CommandException) { in handleMessage()
510 ar.exception); in handleMessage()
536 ar = (AsyncResult) msg.obj; in handleMessage()
537 request = (MainThreadRequest) ar.userObj; in handleMessage()
[all …]
DCdmaCallWaitingPreference.java115 AsyncResult ar = (AsyncResult) msg.obj; in handleGetCallWaitingResponse() local
125 if (ar.exception instanceof CommandException) { in handleGetCallWaitingResponse()
128 ar.exception); in handleGetCallWaitingResponse()
132 (CommandException)ar.exception); in handleGetCallWaitingResponse()
134 } else if (ar.userObj instanceof Throwable || ar.exception != null) { in handleGetCallWaitingResponse()
136 Log.d(LOG_TAG, "handleGetCallWaitingResponse: Exception" + ar.exception); in handleGetCallWaitingResponse()
146 int[] cwArray = (int[])ar.result; in handleGetCallWaitingResponse()
172 AsyncResult ar = (AsyncResult) msg.obj; in handleSetCallWaitingResponse() local
174 if (ar.exception != null) { in handleSetCallWaitingResponse()
176 Log.d(LOG_TAG, "handleSetCallWaitingResponse: ar.exception=" + ar.exception); in handleSetCallWaitingResponse()
[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.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 …]
DCallBarringEditPreference.java271 AsyncResult ar = (AsyncResult) msg.obj; in handleGetCallBarringResponse() local
280 if (ar.exception != null) { in handleGetCallBarringResponse()
282 Log.d(LOG_TAG, "handleGetCallBarringResponse: ar.exception=" + ar.exception); in handleGetCallBarringResponse()
284 pref.mTcpListener.onException(pref, (CommandException) ar.exception); in handleGetCallBarringResponse()
286 if (ar.userObj instanceof Throwable) { in handleGetCallBarringResponse()
289 int[] ints = (int[]) ar.result; in handleGetCallBarringResponse()
316 AsyncResult ar = (AsyncResult) msg.obj; in handleSetCallBarringResponse() local
318 if (ar.exception != null || ar.userObj instanceof Throwable) { in handleSetCallBarringResponse()
320 Log.d(LOG_TAG, "handleSetCallBarringResponse: ar.exception=" + ar.exception); in handleSetCallBarringResponse()
330 ar.exception), in handleSetCallBarringResponse()
DCallForwardEditPreference.java364 AsyncResult ar = (AsyncResult) msg.obj; in handleGetCFResponse() local
368 if (ar.exception != null) { in handleGetCFResponse()
369 Log.d(LOG_TAG, "handleGetCFResponse: ar.exception=" + ar.exception); in handleGetCFResponse()
370 if (ar.exception instanceof CommandException) { in handleGetCFResponse()
372 (CommandException) ar.exception); in handleGetCFResponse()
381 if (ar.userObj instanceof Throwable) { in handleGetCFResponse()
384 CallForwardInfo cfInfoArray[] = (CallForwardInfo[]) ar.result; in handleGetCFResponse()
399 if (ar.userObj instanceof Throwable) { in handleGetCFResponse()
469 AsyncResult ar = (AsyncResult) msg.obj; in handleSetCFResponse() local
470 if (ar.exception != null) { 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()
DGsmUmtsCallBarringOptions.java227 AsyncResult ar = (AsyncResult) msg.obj;
233 if (ar.exception != null) {
237 + ar.exception);
239 onException(mButtonChangePW, (CommandException) ar.exception);
241 } else if (ar.userObj instanceof Throwable) {
254 if (ar.exception != null) {
257 + ar.exception);
259 onException(mButtonDisableAll, (CommandException) ar.exception);
261 } else if (ar.userObj instanceof Throwable) {
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()
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()
DPhoneUtils.java554 int[] ar = r.getIntArray(resid); in getLongArray() local
555 if (ar == null) { in getLongArray()
558 final int len = ar.length; in getLongArray()
561 out[i] = ar[i]; in getLongArray()
/packages/services/Telephony/src/com/android/phone/otasp/
DOtaspSimStateReceiver.java42 AsyncResult ar;
45 ar = (AsyncResult) msg.obj;
46 if (ar.exception == null && ar.result != null) {
47 int otaspMode = (Integer) ar.result;
57 logd("EVENT_OTASP_CHANGED: exception=" + ar.exception);
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DBandMode.java214 AsyncResult ar;
217 ar = (AsyncResult) msg.obj;
219 bandListLoaded(ar);
223 ar = (AsyncResult) msg.obj;
230 displayBandSelectionResult(ar.exception);
DRadioInfo.java347 AsyncResult ar;
350 ar= (AsyncResult) msg.obj;
351 if (ar.exception == null && ar.result != null) {
352 updatePreferredNetworkType(((int[])ar.result)[0]);
359 ar= (AsyncResult) msg.obj;
360 if (ar.exception != null) {
365 ar= (AsyncResult) msg.obj;
366 if (ar.exception != null) {
369 smsc.setText((String)ar.result);
374 ar= (AsyncResult) msg.obj;
[all …]
DIccLockSettings.java132 AsyncResult ar = (AsyncResult) msg.obj;
135 iccLockChanged(ar.exception == null, msg.arg1, ar.exception);
138 iccPinChanged(ar.exception == null, msg.arg1);
/packages/services/Telephony/src/com/android/phone/settings/
DBandMode.java231 AsyncResult ar;
234 ar = (AsyncResult) msg.obj;
236 bandListLoaded(ar);
240 ar = (AsyncResult) msg.obj;
247 displayBandSelectionResult(ar.exception);
DRadioInfo.java416 AsyncResult ar;
419 ar = (AsyncResult) msg.obj;
420 if (ar.exception == null && ar.result != null) {
421 updatePreferredNetworkType(((int []) ar.result)[0]);
428 ar = (AsyncResult) msg.obj;
429 if (ar.exception != null) {
434 ar = (AsyncResult) msg.obj;
435 if (ar.exception != null) {
438 mSmsc.setText((String) ar.result);
443 ar = (AsyncResult) msg.obj;
[all …]
DVoicemailSettingsActivity.java756 private void handleForwardingSettingsReadResult(AsyncResult ar, int idx) { in handleForwardingSettingsReadResult() argument
760 if (ar.exception != null) { in handleForwardingSettingsReadResult()
761 error = ar.exception; in handleForwardingSettingsReadResult()
764 if (ar.userObj instanceof Throwable) { in handleForwardingSettingsReadResult()
765 error = (Throwable) ar.userObj; in handleForwardingSettingsReadResult()
786 (CallForwardInfo[]) ar.result, in handleForwardingSettingsReadResult()
/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/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/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/modules/NetworkStack/src/com/android/server/connectivity/ipmemorystore/
DUtils.java47 private static void appendByteArray(@NonNull final StringBuilder sb, @NonNull final byte[] ar, in appendByteArray() argument
50 sb.append(String.format("%02X", ar[i])); in appendByteArray()
/packages/services/Telephony/src/com/android/services/telephony/
DPstnPhoneCapabilitiesNotifier.java87 private void handleVideoCapabilitesChanged(AsyncResult ar) { in handleVideoCapabilitesChanged() argument
89 boolean isVideoCapable = (Boolean) ar.result; in handleVideoCapabilitesChanged()
/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()

123