Lines Matching refs:ar

439             AsyncResult ar;  in handleMessage()  local
506 ar = (AsyncResult) msg.obj; in handleMessage()
507 request = (MainThreadRequest) ar.userObj; in handleMessage()
508 if (ar.exception == null && ar.result != null) { in handleMessage()
509 request.result = ar.result; in handleMessage()
512 if (ar.result == null) { in handleMessage()
514 } else if (ar.exception instanceof CommandException) { in handleMessage()
516 ar.exception); in handleMessage()
542 ar = (AsyncResult) msg.obj; in handleMessage()
543 request = (MainThreadRequest) ar.userObj; in handleMessage()
544 if (ar.exception == null && ar.result != null) { in handleMessage()
545 request.result = ar.result; in handleMessage()
548 if (ar.result == null) { in handleMessage()
550 } else if (ar.exception instanceof CommandException) { in handleMessage()
552 ar.exception); in handleMessage()
578 ar = (AsyncResult) msg.obj; in handleMessage()
579 request = (MainThreadRequest) ar.userObj; in handleMessage()
580 if (ar.exception == null && ar.result != null) { in handleMessage()
581 request.result = ar.result; in handleMessage()
602 ar = (AsyncResult) msg.obj; in handleMessage()
603 request = (MainThreadRequest) ar.userObj; in handleMessage()
604 if (ar.exception == null && ar.result != null) { in handleMessage()
605 request.result = ar.result; in handleMessage()
608 if (ar.result == null) { in handleMessage()
610 } else if (ar.exception instanceof CommandException) { in handleMessage()
612 ar.exception); in handleMessage()
614 loge("sendEnvelopeWithStatus: exception:" + ar.exception); in handleMessage()
637 ar = (AsyncResult) msg.obj; in handleMessage()
638 request = (MainThreadRequest) ar.userObj; in handleMessage()
640 if (ar.exception == null && ar.result != null) { in handleMessage()
641 int[] result = (int[]) ar.result; in handleMessage()
653 if (ar.result == null) { in handleMessage()
656 if (ar.exception != null) { in handleMessage()
657 loge("iccOpenLogicalChannel: Exception: " + ar.exception); in handleMessage()
661 if (ar.exception instanceof CommandException) { in handleMessage()
663 ((CommandException) (ar.exception)).getCommandError(); in handleMessage()
702 ar = (AsyncResult) msg.obj; in handleMessage()
703 request = (MainThreadRequest) ar.userObj; in handleMessage()
704 if (ar.exception == null && ar.result != null) { in handleMessage()
705 request.result = ar.result; // String in handleMessage()
708 if (ar.result == null) { in handleMessage()
710 } else if (ar.exception instanceof CommandException) { in handleMessage()
712 ar.exception); in handleMessage()
759 ar = (AsyncResult) msg.obj; in handleMessage()
760 request = (MainThreadRequest) ar.userObj; in handleMessage()
761 if (ar.exception == null && ar.result != null) { in handleMessage()
762 request.result = ar.result; // Integer in handleMessage()
765 if (ar.result == null) { in handleMessage()
767 } else if (ar.exception instanceof CommandException) { in handleMessage()
769 ar.exception); in handleMessage()
795 ar = (AsyncResult)msg.obj; in handleMessage()
796 request = (MainThreadRequest)ar.userObj; in handleMessage()
797 request.result = ar; in handleMessage()
839 ar = (AsyncResult) msg.obj; in handleMessage()
840 request = (MainThreadRequest) ar.userObj; in handleMessage()
842 if (ar.exception == null && ar.result != null) { in handleMessage()
843 CallForwardInfo[] callForwardInfos = (CallForwardInfo[]) ar.result; in handleMessage()
863 if (ar.result == null) { in handleMessage()
866 if (ar.exception != null) { in handleMessage()
867 loge("EVENT_GET_CALL_FORWARDING_DONE: Exception: " + ar.exception); in handleMessage()
870 if (ar.exception instanceof CommandException) { in handleMessage()
872 ((CommandException) (ar.exception)).getCommandError(); in handleMessage()
899 ar = (AsyncResult) msg.obj; in handleMessage()
900 request = (MainThreadRequest) ar.userObj; in handleMessage()
901 if (ar.exception == null) { in handleMessage()
905 loge("setCallForwarding exception: " + ar.exception); in handleMessage()
917 ar = (AsyncResult) msg.obj; in handleMessage()
918 request = (MainThreadRequest) ar.userObj; in handleMessage()
920 if (ar.exception == null && ar.result != null) { in handleMessage()
921 int[] callForwardResults = (int[]) ar.result; in handleMessage()
934 if (ar.result == null) { in handleMessage()
937 if (ar.exception != null) { in handleMessage()
938 loge("EVENT_GET_CALL_WAITING_DONE: Exception: " + ar.exception); in handleMessage()
940 if (ar.exception instanceof CommandException) { in handleMessage()
942 ((CommandException) (ar.exception)).getCommandError(); in handleMessage()
961 ar = (AsyncResult) msg.obj; in handleMessage()
962 request = (MainThreadRequest) ar.userObj; in handleMessage()
963 if (ar.exception == null) { in handleMessage()
967 loge("setCallWaiting exception: " + ar.exception); in handleMessage()
973 ar = (AsyncResult) msg.obj; in handleMessage()
974 request = (MainThreadRequest) ar.userObj; in handleMessage()
976 if (ar.exception == null && ar.result != null) { in handleMessage()
979 (List<OperatorInfo>) ar.result); in handleMessage()
981 if (ar.result == null) { in handleMessage()
984 if (ar.exception != null) { in handleMessage()
985 loge("getCellNetworkScanResults: Exception: " + ar.exception); in handleMessage()
988 if (ar.exception instanceof CommandException) { in handleMessage()
990 ((CommandException) (ar.exception)).getCommandError(); in handleMessage()
1014 ar = (AsyncResult) msg.obj; in handleMessage()
1015 request = (MainThreadRequest) ar.userObj; in handleMessage()
1016 if (ar.exception == null) { in handleMessage()
1020 loge("setNetworkSelectionModeManual " + ar.exception); in handleMessage()
1041 ar = (AsyncResult) msg.obj; in handleMessage()
1042 request = (MainThreadRequest) ar.userObj; in handleMessage()
1046 if (ar.exception == null && ar.result != null) { in handleMessage()
1048 ModemActivityInfo info = (ModemActivityInfo) ar.result; in handleMessage()
1073 if (ar.result == null) { in handleMessage()
1075 } else if (ar.exception instanceof CommandException) { in handleMessage()
1077 ar.exception); in handleMessage()
1097 ar = (AsyncResult) msg.obj; in handleMessage()
1098 request = (MainThreadRequest) ar.userObj; in handleMessage()
1099 if (ar.exception == null && ar.result != null) { in handleMessage()
1100 request.result = ar.result; in handleMessage()
1103 if (ar.exception instanceof CommandException) { in handleMessage()
1104 loge("setAllowedCarriers: CommandException: " + ar.exception); in handleMessage()
1106 ((CommandException) (ar.exception)).getCommandError(); in handleMessage()
1125 ar = (AsyncResult) msg.obj; in handleMessage()
1126 request = (MainThreadRequest) ar.userObj; in handleMessage()
1127 if (ar.exception == null && ar.result != null) { in handleMessage()
1128 request.result = ar.result; in handleMessage()
1132 if (ar.result == null) { in handleMessage()
1134 } else if (ar.exception instanceof CommandException) { in handleMessage()
1136 ar.exception); in handleMessage()
1145 ar = (AsyncResult) msg.obj; in handleMessage()
1146 request = (MainThreadRequest) ar.userObj; in handleMessage()
1147 if (ar.exception == null && ar.result != null) { in handleMessage()
1148 request.result = ar.result; in handleMessage()
1152 if (ar.result == null) { in handleMessage()
1196 ar = (AsyncResult) msg.obj; in handleMessage()
1197 request = (MainThreadRequest) ar.userObj; in handleMessage()
1198 request.result = (ar.exception == null); in handleMessage()
1208 ar = (AsyncResult) msg.obj; in handleMessage()
1209 request = (MainThreadRequest) ar.userObj; in handleMessage()
1210 if (ar.exception != null) { in handleMessage()
1213 int mode = ((int[]) ar.result)[0]; in handleMessage()
1228 ar = (AsyncResult) msg.obj; in handleMessage()
1229 request = (MainThreadRequest) ar.userObj; in handleMessage()
1230 if (ar.exception != null) { in handleMessage()
1233 request.result = ((int[]) ar.result)[0]; in handleMessage()
1244 ar = (AsyncResult) msg.obj; in handleMessage()
1245 request = (MainThreadRequest) ar.userObj; in handleMessage()
1246 request.result = ar.exception == null; in handleMessage()
1256 ar = (AsyncResult) msg.obj; in handleMessage()
1257 request = (MainThreadRequest) ar.userObj; in handleMessage()
1258 request.result = ar.exception == null; in handleMessage()
1267 ar = (AsyncResult) msg.obj; in handleMessage()
1268 request = (MainThreadRequest) ar.userObj; in handleMessage()
1270 request.result = (ar.exception == null && ar.result != null) in handleMessage()
1271 ? ar.result : new ArrayList<CellInfo>(); in handleMessage()
1282 ar = (AsyncResult) msg.obj; in handleMessage()
1283 request = (MainThreadRequest) ar.userObj; in handleMessage()
1286 if (ar.exception != null) { in handleMessage()
1287 Log.e(LOG_TAG, "Exception retrieving CellInfo=" + ar.exception); in handleMessage()
1290 ar.exception.getClass().getName(), in handleMessage()
1291 ar.exception.toString()); in handleMessage()
1292 } else if (ar.result == null) { in handleMessage()
1297 cb.onCellInfo((List<CellInfo>) ar.result); in handleMessage()
1310 ar = (AsyncResult) msg.obj; in handleMessage()
1311 request = (MainThreadRequest) ar.userObj; in handleMessage()
1312 if (ar.exception == null) { in handleMessage()
1313 request.result = ar.result; in handleMessage()
1341 ar = (AsyncResult) msg.obj; in handleMessage()
1342 request = (MainThreadRequest) ar.userObj; in handleMessage()
1343 request.result = (ar.exception == null); in handleMessage()
1351 + ar.exception); in handleMessage()
1362 ar = (AsyncResult) msg.obj; in handleMessage()
1363 request = (MainThreadRequest) ar.userObj; in handleMessage()
1365 if (ar.exception == null && ar.result != null) { in handleMessage()
1366 request.result = ar.result; in handleMessage()
1378 + ar.exception); in handleMessage()
1391 ar = (AsyncResult) msg.obj; in handleMessage()
1392 request = (MainThreadRequest) ar.userObj; in handleMessage()
1395 args.second.accept(ar.exception == null); in handleMessage()
1400 ar = (AsyncResult) msg.obj; in handleMessage()
1401 request = (MainThreadRequest) ar.userObj; in handleMessage()
1402 if (ar.exception == null && ar.result != null) { in handleMessage()
1403 request.result = ar.result; in handleMessage()
1407 if (ar.result == null) { in handleMessage()
1409 } else if (ar.exception != null) { in handleMessage()
1410 loge("setForbiddenPlmns: Exception: " + ar.exception); in handleMessage()
1460 ar = (AsyncResult) msg.obj; in handleMessage()
1461 request = (MainThreadRequest) ar.userObj; in handleMessage()
1462 if (ar.exception == null) { in handleMessage()
1478 ar = (AsyncResult) msg.obj; in handleMessage()
1479 request = (MainThreadRequest) ar.userObj; in handleMessage()
1480 if (ar.exception == null) { in handleMessage()
1508 AsyncResult ar = (AsyncResult) msg.obj; in handleNullReturnEvent() local
1509 MainThreadRequest request = (MainThreadRequest) ar.userObj; in handleNullReturnEvent()
1510 if (ar.exception == null) { in handleNullReturnEvent()
1514 if (ar.exception instanceof CommandException) { in handleNullReturnEvent()
1515 loge(command + ": CommandException: " + ar.exception); in handleNullReturnEvent()
1873 AsyncResult ar = (AsyncResult) msg.obj; in run()
1879 if (ar.exception != null) { in run()
1880 if (ar.exception instanceof CommandException && in run()
1881 ((CommandException)(ar.exception)).getCommandError() in run()